22 lines
395 B
C
22 lines
395 B
C
// POSIX poll declarations supported by nt-lite.
|
|
|
|
#pragma once
|
|
|
|
#include <ntlite_posix_api.h>
|
|
|
|
typedef unsigned long nfds_t;
|
|
|
|
struct pollfd {
|
|
int fd;
|
|
short events;
|
|
short revents;
|
|
};
|
|
|
|
#define POLLIN 0x0001
|
|
#define POLLOUT 0x0002
|
|
#define POLLERR 0x0004
|
|
#define POLLHUP 0x0008
|
|
#define POLLNVAL 0x0010
|
|
|
|
NTL_POSIX_API int poll(struct pollfd* descriptors, nfds_t count, int timeout);
|