Provided by: manpages-dev_3.15-1_all epoll_create, epoll_create1
- open an epoll file descriptor int epoll_create(int size); int
epoll_create1(int flags); epoll_create() opens an epoll file
descriptor by requesting the kernel to allocate an event backing
store dimensioned for size descriptors. The size is not the
maximum size of the backing store but just a hint to the kernel
about how to dimension internal structures. (Nowadays, size is
ignored; see NOTES below.) The returned file descriptor is used
for all the subsequent calls to the epoll interface. The file
descriptor returned by epoll_create() must be closed by using
close(2). If flags is 0, then, other than the fact that the
obsolete flags argument is dropped, epoll_create1() is the same
as epoll_create(). The following value can be included in flags
to obtain different Set the close-on-exec (FD_CLOEXEC) flag on
the new file descriptor. See the description of the O_CLOEXEC
flag in open(2) for reasons why this may be useful. On success,
these system call