21 #ifndef LELY_IO2_INTERN_POSIX_FD_H_ 22 #define LELY_IO2_INTERN_POSIX_FD_H_ 26 #if _POSIX_C_SOURCE >= 200112L 28 #include <sys/socket.h> 57 int io_fd_wait(
int fd,
int *events,
int timeout);
67 ssize_t
io_fd_recvmsg(
int fd,
struct msghdr *msg,
int flags,
int timeout);
77 ssize_t
io_fd_sendmsg(
int fd,
const struct msghdr *msg,
int flags,
int timeout);
83 #endif // _POSIX_C_SOURCE >= 200112L 85 #endif // !LELY_IO2_INTERN_POSIX_FD_H_ This is the internal header file of the POSIX-specific I/O declarations.
int io_fd_set_cloexec(int fd)
Sets the FD_CLOEXEC flag of the file descriptor fd.
int io_fd_wait(int fd, int *events, int timeout)
Waits for one or more of the I/O events in *events to occur as if by POSIX poll().
int io_fd_set_nonblock(int fd)
Sets the O_NONBLOCK flag of the file descriptor fd.
ssize_t io_fd_sendmsg(int fd, const struct msghdr *msg, int flags, int timeout)
Equivalent to POSIX sendmsg(fd, msg, flags | MSG_NOSIGNAL), except that if fd is non-blocking (or the...
ssize_t io_fd_recvmsg(int fd, struct msghdr *msg, int flags, int timeout)
Equivalent to POSIX recvmsg(fd, msg, flags), except that if fd is non-blocking (or the implementation...