Revision | ae1144b1562e7675e9e97529bba7eb168d2f0500 (tree) |
---|---|
Zeit | 2022-01-21 12:20:55 |
Autor | Waldemar Brodkorb <wbx@open...> |
Commiter | Waldemar Brodkorb |
add prlimit syscall wrapper
@@ -101,6 +101,13 @@ extern int setpriority (__priority_which_t __which, id_t __who, int __prio) | ||
101 | 101 | __THROW; |
102 | 102 | libc_hidden_proto(setpriority) |
103 | 103 | |
104 | +#ifdef __USE_GNU | |
105 | +/* Modify and return resource limits of a process atomically. */ | |
106 | +extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource, | |
107 | + const struct rlimit *__new_limit, | |
108 | + struct rlimit *__old_limit) __THROW; | |
109 | +#endif | |
110 | + | |
104 | 111 | __END_DECLS |
105 | 112 | |
106 | 113 | #endif /* sys/resource.h */ |
@@ -38,6 +38,7 @@ CSRC-$(UCLIBC_LINUX_SPECIFIC) += \ | ||
38 | 38 | pipe2.c \ |
39 | 39 | ppoll.c \ |
40 | 40 | prctl.c \ |
41 | + prlimit.c \ | |
41 | 42 | readahead.c \ |
42 | 43 | reboot.c \ |
43 | 44 | remap_file_pages.c \ |