aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/eventpoll.h4
-rw-r--r--include/linux/syscalls.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h
index cf79853967ff..1cfaa40059c8 100644
--- a/include/linux/eventpoll.h
+++ b/include/linux/eventpoll.h
@@ -14,8 +14,12 @@
14#ifndef _LINUX_EVENTPOLL_H 14#ifndef _LINUX_EVENTPOLL_H
15#define _LINUX_EVENTPOLL_H 15#define _LINUX_EVENTPOLL_H
16 16
17/* For O_CLOEXEC */
18#include <linux/fcntl.h>
17#include <linux/types.h> 19#include <linux/types.h>
18 20
21/* Flags for epoll_create2. */
22#define EPOLL_CLOEXEC O_CLOEXEC
19 23
20/* Valid opcodes to issue to sys_epoll_ctl() */ 24/* Valid opcodes to issue to sys_epoll_ctl() */
21#define EPOLL_CTL_ADD 1 25#define EPOLL_CTL_ADD 1
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 9ab09926a7f2..85953240f28c 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -430,6 +430,7 @@ asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
430asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp, 430asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp,
431 fd_set __user *exp, struct timeval __user *tvp); 431 fd_set __user *exp, struct timeval __user *tvp);
432asmlinkage long sys_epoll_create(int size); 432asmlinkage long sys_epoll_create(int size);
433asmlinkage long sys_epoll_create2(int size, int flags);
433asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, 434asmlinkage long sys_epoll_ctl(int epfd, int op, int fd,
434 struct epoll_event __user *event); 435 struct epoll_event __user *event);
435asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events, 436asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,