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>
57int io_fd_wait(
int fd,
int *events,
int timeout);
67ssize_t
io_fd_recvmsg(
int fd,
struct msghdr *msg,
int flags,
int timeout);
77ssize_t
io_fd_sendmsg(
int fd,
const struct msghdr *msg,
int flags,
int timeout);
int io_fd_set_cloexec(int fd)
Sets the FD_CLOEXEC 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...
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.
This is the internal header file of the Windows-specific I/O declarations.