diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-05-07 19:05:39 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-05-07 19:05:39 +0000 |
commit | 2bbf6b4b75457aadc05058cc03b671f3372b6eb2 (patch) | |
tree | 209c00ccf482e7ce79ada75189d4cc3da804f889 /sys/compat/linux/linux_misc.h | |
parent | 5caad23a8a432db49f549d3e8e215f47f1ba89e6 (diff) | |
download | FreeBSD-src-2bbf6b4b75457aadc05058cc03b671f3372b6eb2.zip FreeBSD-src-2bbf6b4b75457aadc05058cc03b671f3372b6eb2.tar.gz |
MFC r295856 (by des@):
Implement /proc/$$/limits.
MFC r297781 (by dchagin@):
More complete implementation of /proc/self/limits.
Fix the way the code accesses process limits struct - pointed out by mjg@.
MFC r298318, 298319 (by cem@):
Don't print uninitialized values and initialize error return before use.
PR: 207386
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r-- | sys/compat/linux/linux_misc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index f969c4d..d140c67 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -141,6 +141,13 @@ extern int stclohz; #define LINUX_P_PID 1 #define LINUX_P_PGID 2 +#define LINUX_RLIMIT_LOCKS RLIM_NLIMITS + 1 +#define LINUX_RLIMIT_SIGPENDING RLIM_NLIMITS + 2 +#define LINUX_RLIMIT_MSGQUEUE RLIM_NLIMITS + 3 +#define LINUX_RLIMIT_NICE RLIM_NLIMITS + 4 +#define LINUX_RLIMIT_RTPRIO RLIM_NLIMITS + 5 +#define LINUX_RLIMIT_RTTIME RLIM_NLIMITS + 6 + #define LINUX_RLIM_INFINITY (~0UL) int linux_common_wait(struct thread *td, int pid, int *status, |