blob: 3edecaba20646272993606b51c26b2f21d7b5bce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef _SYS_POLL_H
#define _SYS_POLL_H
#include <bits/types.h>
#include <bits/sigset_t.h>
#include <bits/ansi/timespec.h>
#include <abi-bits/poll.h>
#include <abi-bits/signal.h>
#include <mlibc-config.h>
typedef __mlibc_size nfds_t;
#ifdef __cplusplus
extern "C" {
#endif
struct pollfd {
int fd;
short events;
short revents;
};
#ifndef __MLIBC_ABI_ONLY
int poll(struct pollfd *, nfds_t, int);
#if __MLIBC_LINUX_OPTION
int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts, const sigset_t *sigmask);
#endif // __MLIBC_LINUX_OPTION
#endif /* !__MLIBC_ABI_ONLY */
#ifdef __cplusplus
}
#endif
#endif // _SYS_POLL_H
|