diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/unistd_32.h | 1 | ||||
-rw-r--r-- | include/asm-x86/unistd_64.h | 2 | ||||
-rw-r--r-- | include/linux/eventfd.h | 6 | ||||
-rw-r--r-- | include/linux/syscalls.h | 1 |
4 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/unistd_32.h b/include/asm-x86/unistd_32.h index c310371f5613..edbd8723c939 100644 --- a/include/asm-x86/unistd_32.h +++ b/include/asm-x86/unistd_32.h | |||
@@ -333,6 +333,7 @@ | |||
333 | #define __NR_timerfd_settime 325 | 333 | #define __NR_timerfd_settime 325 |
334 | #define __NR_timerfd_gettime 326 | 334 | #define __NR_timerfd_gettime 326 |
335 | #define __NR_signalfd4 327 | 335 | #define __NR_signalfd4 327 |
336 | #define __NR_eventfd2 328 | ||
336 | 337 | ||
337 | #ifdef __KERNEL__ | 338 | #ifdef __KERNEL__ |
338 | 339 | ||
diff --git a/include/asm-x86/unistd_64.h b/include/asm-x86/unistd_64.h index e0a9b45b2346..fb059a6feeb1 100644 --- a/include/asm-x86/unistd_64.h +++ b/include/asm-x86/unistd_64.h | |||
@@ -643,6 +643,8 @@ __SYSCALL(__NR_timerfd_gettime, sys_timerfd_gettime) | |||
643 | __SYSCALL(__NR_paccept, sys_paccept) | 643 | __SYSCALL(__NR_paccept, sys_paccept) |
644 | #define __NR_signalfd4 289 | 644 | #define __NR_signalfd4 289 |
645 | __SYSCALL(__NR_signalfd4, sys_signalfd4) | 645 | __SYSCALL(__NR_signalfd4, sys_signalfd4) |
646 | #define __NR_eventfd2 290 | ||
647 | __SYSCALL(__NR_eventfd2, sys_eventfd2) | ||
646 | 648 | ||
647 | 649 | ||
648 | #ifndef __NO_STUBS | 650 | #ifndef __NO_STUBS |
diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index a701399b7fed..a6c0eaedb1b0 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h | |||
@@ -10,6 +10,12 @@ | |||
10 | 10 | ||
11 | #ifdef CONFIG_EVENTFD | 11 | #ifdef CONFIG_EVENTFD |
12 | 12 | ||
13 | /* For O_CLOEXEC */ | ||
14 | #include <linux/fcntl.h> | ||
15 | |||
16 | /* Flags for eventfd2. */ | ||
17 | #define EFD_CLOEXEC O_CLOEXEC | ||
18 | |||
13 | struct file *eventfd_fget(int fd); | 19 | struct file *eventfd_fget(int fd); |
14 | int eventfd_signal(struct file *file, int n); | 20 | int eventfd_signal(struct file *file, int n); |
15 | 21 | ||
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 1c2707797845..9ab09926a7f2 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -617,6 +617,7 @@ asmlinkage long sys_timerfd_settime(int ufd, int flags, | |||
617 | struct itimerspec __user *otmr); | 617 | struct itimerspec __user *otmr); |
618 | asmlinkage long sys_timerfd_gettime(int ufd, struct itimerspec __user *otmr); | 618 | asmlinkage long sys_timerfd_gettime(int ufd, struct itimerspec __user *otmr); |
619 | asmlinkage long sys_eventfd(unsigned int count); | 619 | asmlinkage long sys_eventfd(unsigned int count); |
620 | asmlinkage long sys_eventfd2(unsigned int count, int flags); | ||
620 | asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); | 621 | asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); |
621 | 622 | ||
622 | int kernel_execve(const char *filename, char *const argv[], char *const envp[]); | 623 | int kernel_execve(const char *filename, char *const argv[], char *const envp[]); |