Blame src/api/poll.c

nsz d7c151
#include <poll.h>
nsz d7c151
#define T(t) (t*)0;
nsz d7c151
#define F(t,n) {t *y = &x.;;}
nsz d7c151
#define C(n) switch(n){case n:;}
nsz d7c151
static void f()
nsz d7c151
{
nsz d7c151
T(nfds_t)
nsz d7c151
{
nsz d7c151
struct pollfd x;
nsz d7c151
F(int, fd)
nsz d7c151
F(short, events)
nsz d7c151
F(short, revents)
nsz d7c151
}
nsz d7c151
C(POLLIN)
nsz d7c151
C(POLLRDNORM)
nsz d7c151
C(POLLRDBAND)
nsz d7c151
C(POLLPRI)
nsz d7c151
C(POLLOUT)
nsz d7c151
C(POLLWRNORM)
nsz d7c151
C(POLLWRBAND)
nsz d7c151
C(POLLERR)
nsz d7c151
C(POLLHUP)
nsz d7c151
C(POLLNVAL)
nsz d7c151
int(*p_poll)(struct pollfd[],nfds_t,int) = poll;
nsz d7c151
}