diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-01-20 22:10:47 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-01-20 22:10:47 -0500 |
commit | 26f38328d66f4bd525e9d21a9245ba4c54d6ca10 (patch) | |
tree | 8b98756234e60b896cbbe0f17b5ffc84fbcc2f58 /include | |
parent | 0b6dc0974426238cfe8fbb01ef64e7911f2da678 (diff) | |
download | musl-26f38328d66f4bd525e9d21a9245ba4c54d6ca10.tar.gz musl-26f38328d66f4bd525e9d21a9245ba4c54d6ca10.tar.bz2 musl-26f38328d66f4bd525e9d21a9245ba4c54d6ca10.tar.xz musl-26f38328d66f4bd525e9d21a9245ba4c54d6ca10.zip |
add prlimit syscall wrapper
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/resource.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h index b9189028..cb39923f 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -9,6 +9,10 @@ extern "C" { #define __NEED_time_t #define __NEED_struct_timeval +#ifdef _GNU_SOURCE +#define __NEED_pid_t +#endif + #include <bits/alltypes.h> typedef unsigned long long rlim_t; @@ -49,6 +53,10 @@ int getrusage (int, struct rusage *); int getpriority (int, id_t); int setpriority (int, id_t, int); +#ifdef _GNU_SOURCE +int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); +#endif + #define PRIO_PROCESS 0 #define PRIO_PGRP 1 #define PRIO_USER 2 |