22 #include "../../SDL_internal.h"
30 #include <sys/types.h>
49 info.events = POLLOUT;
51 info.events = POLLIN | POLLPRI;
53 result = poll(&info, 1, timeoutMS);
55 fd_set rfdset, *rfdp =
NULL;
56 fd_set wfdset, *wfdp =
NULL;
57 struct timeval tv, *tvp =
NULL;
73 tv.tv_sec = timeoutMS / 1000;
74 tv.tv_usec = (timeoutMS % 1000) * 1000;
81 }
while (
result < 0 && errno == EINTR );
#define SDL_assert(condition)
int SDL_IOReady(int fd, SDL_bool forWrite, int timeoutMS)