xref: /third_party/musl/libc-test/src/api/poll.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/libc-test/src/api/
1570af302Sopenharmony_ci#include <poll.h>
2570af302Sopenharmony_ci#define T(t) (t*)0;
3570af302Sopenharmony_ci#define F(t,n) {t *y = &x.n;}
4570af302Sopenharmony_ci#define C(n) switch(n){case n:;}
5570af302Sopenharmony_cistatic void f()
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ciT(nfds_t)
8570af302Sopenharmony_ci{
9570af302Sopenharmony_cistruct pollfd x;
10570af302Sopenharmony_ciF(int, fd)
11570af302Sopenharmony_ciF(short, events)
12570af302Sopenharmony_ciF(short, revents)
13570af302Sopenharmony_ci}
14570af302Sopenharmony_ciC(POLLIN)
15570af302Sopenharmony_ciC(POLLRDNORM)
16570af302Sopenharmony_ciC(POLLRDBAND)
17570af302Sopenharmony_ciC(POLLPRI)
18570af302Sopenharmony_ciC(POLLOUT)
19570af302Sopenharmony_ciC(POLLWRNORM)
20570af302Sopenharmony_ciC(POLLWRBAND)
21570af302Sopenharmony_ciC(POLLERR)
22570af302Sopenharmony_ciC(POLLHUP)
23570af302Sopenharmony_ciC(POLLNVAL)
24570af302Sopenharmony_ci{int(*p)(struct pollfd[],nfds_t,int) = poll;}
25570af302Sopenharmony_ci}
26

Indexes created Thu Nov 07 10:32:03 CST 2024