devela::_dep::nc::call

Function epoll_create1

pub unsafe fn epoll_create1(flags: i32) -> Result<i32, i32> 
Available on crate feature dep_nc only.
Expand description

Open an epoll file descriptor.

§Examples

let poll_fd = unsafe { nc::epoll_create1(nc::EPOLL_CLOEXEC) };
assert!(poll_fd.is_ok());
let poll_fd = poll_fd.unwrap();
let ret = unsafe { nc::close(poll_fd) };
assert!(ret.is_ok());