History

asm-generic: Drop getrlimit and setrlimit syscalls from default list

The newer prlimit64 syscall provides all the functionality of getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected.

Yury Norov committed 8 years ago

Commit 80d7da11 parent 942fa9813 files · +21 −0Browse files

Showing the changes to include/uapi (1 of 13 files). Show all

Unified · Split

include/uapi/asm-generic/unistd.h+5−0
@@ -467,10 +467,15 @@ __SYSCALL(__NR_uname, sys_newuname) · 466 unmodified lines
467467 __SYSCALL(__NR_sethostname, sys_sethostname)
468468 #define __NR_setdomainname 162
469469 __SYSCALL(__NR_setdomainname, sys_setdomainname)
470+
471+#ifdef __ARCH_WANT_SET_GET_RLIMIT
472+/* getrlimit and setrlimit are superseded with prlimit64 */
470473 #define __NR_getrlimit 163
471474 __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit)
472475 #define __NR_setrlimit 164
473476 __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit)
477+#endif
478+
474479 #define __NR_getrusage 165
475480 __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage)
476481 #define __NR_umask 166

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t