Rich Felker | 26f3832 | 2012-01-20 22:10:47 -0500 | [diff] [blame] | 1 | #include <unistd.h> |
| 2 | #include <sys/resource.h> |
| 3 | #include "syscall.h" |
Rich Felker | f600105 | 2012-09-21 04:05:01 -0400 | [diff] [blame^] | 4 | #include "libc.h" |
Rich Felker | 26f3832 | 2012-01-20 22:10:47 -0500 | [diff] [blame] | 5 | |
| 6 | int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit) |
| 7 | { |
| 8 | return syscall(SYS_prlimit64, pid, resource, new_limit, old_limit); |
| 9 | } |
Rich Felker | f600105 | 2012-09-21 04:05:01 -0400 | [diff] [blame^] | 10 | |
| 11 | LFS64(prlimit); |