Commit f33ebbe9da2c3c24664a0ad4f8fd83f293547e63

Authored by Jiri Slaby
Committed by Jiri Slaby
1 parent c022a0acad

unistd: add __NR_prlimit64 syscall numbers

Add __NR_prlimit64 syscall numbers to asm-generic. Add them also to
asm-x86, both 32 and 64-bit.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>

Showing 5 changed files with 9 additions and 2 deletions Side-by-side Diff

arch/x86/ia32/ia32entry.S
... ... @@ -842,5 +842,6 @@
842 842 .quad compat_sys_rt_tgsigqueueinfo /* 335 */
843 843 .quad sys_perf_event_open
844 844 .quad compat_sys_recvmmsg
  845 + .quad sys_prlimit64
845 846 ia32_syscall_end:
arch/x86/include/asm/unistd_32.h
... ... @@ -343,10 +343,11 @@
343 343 #define __NR_rt_tgsigqueueinfo 335
344 344 #define __NR_perf_event_open 336
345 345 #define __NR_recvmmsg 337
  346 +#define __NR_prlimit64 338
346 347  
347 348 #ifdef __KERNEL__
348 349  
349   -#define NR_syscalls 338
  350 +#define NR_syscalls 339
350 351  
351 352 #define __ARCH_WANT_IPC_PARSE_VERSION
352 353 #define __ARCH_WANT_OLD_READDIR
arch/x86/include/asm/unistd_64.h
... ... @@ -663,6 +663,8 @@
663 663 __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
664 664 #define __NR_recvmmsg 299
665 665 __SYSCALL(__NR_recvmmsg, sys_recvmmsg)
  666 +#define __NR_prlimit64 300
  667 +__SYSCALL(__NR_prlimit64, sys_prlimit64)
666 668  
667 669 #ifndef __NO_STUBS
668 670 #define __ARCH_WANT_OLD_READDIR
arch/x86/kernel/syscall_table_32.S
... ... @@ -337,4 +337,5 @@
337 337 .long sys_rt_tgsigqueueinfo /* 335 */
338 338 .long sys_perf_event_open
339 339 .long sys_recvmmsg
  340 + .long sys_prlimit64
include/asm-generic/unistd.h
... ... @@ -626,9 +626,11 @@
626 626 __SYSCALL(__NR_accept4, sys_accept4)
627 627 #define __NR_recvmmsg 243
628 628 __SYSCALL(__NR_recvmmsg, sys_recvmmsg)
  629 +#define __NR_prlimit64 244
  630 +__SYSCALL(__NR_prlimit64, sys_prlimit64)
629 631  
630 632 #undef __NR_syscalls
631   -#define __NR_syscalls 244
  633 +#define __NR_syscalls 245
632 634  
633 635 /*
634 636 * All syscalls below here should go away really,