aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2015-05-24 15:18:19 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2015-05-24 15:18:19 +0000
commitc3978c7bb18fd1d32ef860a5de14966c655cbf2e (patch)
tree412c9e774d03f783080ad109cd4f95638619517b /sys/amd64
parent737325a46da4d7cde486b8bf825dd9e984a6c8db (diff)
downloadsrc-c3978c7bb18fd1d32ef860a5de14966c655cbf2e.tar.gz
src-c3978c7bb18fd1d32ef860a5de14966c655cbf2e.zip
Implement prlimit64() system call.
Differential Revision: https://reviews.freebsd.org/D1050 Reviewed by: emaste, trasz
Notes
Notes: svn path=/head/; revision=283401
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/linux32/linux32_dummy.c2
-rw-r--r--sys/amd64/linux32/syscalls.master5
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/amd64/linux32/linux32_dummy.c b/sys/amd64/linux32/linux32_dummy.c
index ccc684584103..c14711c59104 100644
--- a/sys/amd64/linux32/linux32_dummy.c
+++ b/sys/amd64/linux32/linux32_dummy.c
@@ -133,8 +133,6 @@ DUMMY(perf_event_open);
DUMMY(recvmmsg);
DUMMY(fanotify_init);
DUMMY(fanotify_mark);
-/* linux 2.6.36: */
-DUMMY(prlimit64);
/* later: */
DUMMY(name_to_handle_at);
DUMMY(open_by_handle_at);
diff --git a/sys/amd64/linux32/syscalls.master b/sys/amd64/linux32/syscalls.master
index 53fd315fe73d..a6e19f00797d 100644
--- a/sys/amd64/linux32/syscalls.master
+++ b/sys/amd64/linux32/syscalls.master
@@ -554,7 +554,10 @@
338 AUE_NULL STD { int linux_fanotify_init(void); }
339 AUE_NULL STD { int linux_fanotify_mark(void); }
; linux 2.6.36:
-340 AUE_NULL STD { int linux_prlimit64(void); }
+340 AUE_NULL STD { int linux_prlimit64(l_pid_t pid, \
+ l_uint resource, \
+ struct rlimit *new, \
+ struct rlimit *old); }
; later:
341 AUE_NULL STD { int linux_name_to_handle_at(void); }
342 AUE_NULL STD { int linux_open_by_handle_at(void); }