mirror of https://github.com/F-Stack/f-stack.git
FreeBSD13 can simply work.
This commit is contained in:
parent
63f0426fdf
commit
8fe2bf87f3
|
@ -129,6 +129,7 @@ struct plimit
|
||||||
*lim_alloc(void);
|
*lim_alloc(void);
|
||||||
void lim_copy(struct plimit *dst, struct plimit *src);
|
void lim_copy(struct plimit *dst, struct plimit *src);
|
||||||
rlim_t lim_cur(struct thread *td, int which);
|
rlim_t lim_cur(struct thread *td, int which);
|
||||||
|
#ifndef FSTACK
|
||||||
#define lim_cur(td, which) ({ \
|
#define lim_cur(td, which) ({ \
|
||||||
rlim_t _rlim; \
|
rlim_t _rlim; \
|
||||||
struct thread *_td = (td); \
|
struct thread *_td = (td); \
|
||||||
|
@ -141,6 +142,7 @@ rlim_t lim_cur(struct thread *td, int which);
|
||||||
} \
|
} \
|
||||||
_rlim; \
|
_rlim; \
|
||||||
})
|
})
|
||||||
|
#endif
|
||||||
|
|
||||||
rlim_t lim_cur_proc(struct proc *p, int which);
|
rlim_t lim_cur_proc(struct proc *p, int which);
|
||||||
void lim_fork(struct proc *p1, struct proc *p2);
|
void lim_fork(struct proc *p1, struct proc *p2);
|
||||||
|
|
|
@ -191,6 +191,7 @@ FF_SRCS+= \
|
||||||
ff_kern_subr.c \
|
ff_kern_subr.c \
|
||||||
ff_kern_synch.c \
|
ff_kern_synch.c \
|
||||||
ff_kern_timeout.c \
|
ff_kern_timeout.c \
|
||||||
|
ff_subr_epoch.c \
|
||||||
ff_lock.c \
|
ff_lock.c \
|
||||||
ff_syscall_wrapper.c \
|
ff_syscall_wrapper.c \
|
||||||
ff_subr_prf.c \
|
ff_subr_prf.c \
|
||||||
|
@ -280,7 +281,6 @@ KERN_SRCS+= \
|
||||||
subr_taskqueue.c \
|
subr_taskqueue.c \
|
||||||
subr_unit.c \
|
subr_unit.c \
|
||||||
subr_smr.c \
|
subr_smr.c \
|
||||||
subr_epoch.c \
|
|
||||||
sys_capability.c \
|
sys_capability.c \
|
||||||
sys_generic.c \
|
sys_generic.c \
|
||||||
sys_socket.c \
|
sys_socket.c \
|
||||||
|
|
|
@ -753,7 +753,6 @@ lim_hold(struct plimit *limp)
|
||||||
return (limp);
|
return (limp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/*
|
/*
|
||||||
* Return the current (soft) limit for a particular system resource.
|
* Return the current (soft) limit for a particular system resource.
|
||||||
* The which parameter which specifies the index into the rlimit array
|
* The which parameter which specifies the index into the rlimit array
|
||||||
|
@ -766,7 +765,6 @@ lim_cur(struct thread *td, int which)
|
||||||
lim_rlimit(td, which, &rl);
|
lim_rlimit(td, which, &rl);
|
||||||
return (rl.rlim_cur);
|
return (rl.rlim_cur);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
rlim_t
|
rlim_t
|
||||||
lim_cur_proc(struct proc *p, int which)
|
lim_cur_proc(struct proc *p, int which)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010 Kip Macy All rights reserved.
|
* Copyright (c) 2010 Kip Macy All rights reserved.
|
||||||
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 2007 Attilio Rao <attilio@freebsd.org>
|
* Copyright (c) 2007 Attilio Rao <attilio@freebsd.org>
|
||||||
* Copyright (c) 2001 Jason Evans <jasone@freebsd.org>
|
* Copyright (c) 2001 Jason Evans <jasone@freebsd.org>
|
||||||
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010 Kip Macy All rights reserved.
|
* Copyright (c) 2010 Kip Macy All rights reserved.
|
||||||
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
||||||
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010 Kip Macy All rights reserved.
|
* Copyright (c) 2010 Kip Macy All rights reserved.
|
||||||
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010 Kip Macy All rights reserved.
|
* Copyright (c) 2010 Kip Macy All rights reserved.
|
||||||
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
|
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
Loading…
Reference in New Issue