diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-01-21 04:20:30 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-01-21 04:20:55 +0100 |
commit | ae1144b1562e7675e9e97529bba7eb168d2f0500 (patch) | |
tree | 19d760d625d0af7597c7502a8f6e70661d00d09e /include/sys | |
parent | 6b6f51c21dd29685bd1339de0bdffc0929316c63 (diff) |
add prlimit syscall wrapper
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/resource.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h index 17167ed99..00c63ff0f 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -101,6 +101,13 @@ extern int setpriority (__priority_which_t __which, id_t __who, int __prio) __THROW; libc_hidden_proto(setpriority) +#ifdef __USE_GNU +/* Modify and return resource limits of a process atomically. */ +extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource, + const struct rlimit *__new_limit, + struct rlimit *__old_limit) __THROW; +#endif + __END_DECLS #endif /* sys/resource.h */ |