1 #ifndef ACL_IOSTUFF_INCLUDE_H 2 #define ACL_IOSTUFF_INCLUDE_H 11 #define ACL_CLOSE_ON_EXEC 1 12 #define ACL_PASS_ON_EXEC 0 14 #define ACL_BLOCKING 0 15 #define ACL_NON_BLOCKING 1 77 #if defined(ACL_LINUX) && !defined(MINGW) 84 ACL_API
int acl_read_epoll_wait(ACL_SOCKET fd,
int delay);
94 ACL_API
int acl_read_poll_wait(ACL_SOCKET fd,
int delay);
109 ACL_API
void acl_doze(
unsigned delay);
129 ACL_API
int acl_timed_read(ACL_SOCKET fd,
void *buf,
unsigned len,
130 int timeout,
void *unused_context);
144 int timeout,
void *unused_context);
154 ACL_API
int acl_write_buf(ACL_SOCKET fd,
const char *buf,
int len,
int timeout);
168 ACL_API
int acl_pipe(ACL_FILE_HANDLE fds[2]);
191 ACL_API
int acl_close_on_exec(
int fd,
int on);
198 ACL_API
int acl_closefrom(
int lowfd);
205 ACL_API
int acl_open_limit(
int limit);
212 ACL_API
int acl_issock(
int fd);
217 #if defined(_WIN32) || defined(_WIN64) 219 fd_set*,
const struct timeval*);
220 # if(_WIN32_WINNT >= 0x0600) 221 # define ACL_HAS_POLL 222 typedef int (WINAPI *
acl_poll_fn)(
struct pollfd*,
unsigned long, int);
228 # define ACL_HAS_POLL 230 typedef int (*
acl_select_fn)(int, fd_set*, fd_set*, fd_set*,
struct timeval*);
ACL_API void acl_set_delay_slice(int n)
ACL_API int acl_pipe_close(ACL_FILE_HANDLE fds[2])
ACL_API int acl_duplex_pipe(ACL_FILE_HANDLE fds[2])
ACL_API void acl_set_select(acl_select_fn fn)
ACL_API void acl_set_poll(acl_poll_fn fn)
int(* acl_select_fn)(int, fd_set *, fd_set *, fd_set *, struct timeval *)
ACL_API int acl_timed_write(ACL_SOCKET fd, void *buf, unsigned len, int timeout, void *unused_context)
ACL_API int acl_non_blocking(ACL_SOCKET fd, int on)
ACL_API int acl_write_wait_ms(ACL_SOCKET fd, int timeout)
int(* acl_poll_fn)(struct pollfd *, nfds_t, int)
ACL_API int acl_timed_read(ACL_SOCKET fd, void *buf, unsigned len, int timeout, void *unused_context)
ACL_API int acl_read_select_wait(ACL_SOCKET fd, int delay)
ACL_API void acl_doze(unsigned delay)
ACL_API int acl_peekfd(ACL_SOCKET fd)
ACL_API int acl_read_wait(ACL_SOCKET fd, int timeout)
ACL_API int acl_is_blocking(ACL_SOCKET fd)
ACL_API int acl_readable(ACL_SOCKET fd)
ACL_API int acl_pipe(ACL_FILE_HANDLE fds[2])
ACL_API int acl_write_wait(ACL_SOCKET fd, int timeout)
ACL_API int acl_read_wait_ms(ACL_SOCKET fd, int timeout)
ACL_API int acl_write_buf(ACL_SOCKET fd, const char *buf, int len, int timeout)