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 /src/misc | |
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 'src/misc')
-rw-r--r-- | src/misc/prlimit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/prlimit.c b/src/misc/prlimit.c new file mode 100644 index 00000000..b9dbb446 --- /dev/null +++ b/src/misc/prlimit.c @@ -0,0 +1,8 @@ +#include <unistd.h> +#include <sys/resource.h> +#include "syscall.h" + +int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit) +{ + return syscall(SYS_prlimit64, pid, resource, new_limit, old_limit); +} |