Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: fusl/include/poll.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/paths.h ('k') | fusl/include/pthread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _POLL_H
2 #define _POLL_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #include <bits/poll.h>
11
12 #define POLLIN 0x001
13 #define POLLPRI 0x002
14 #define POLLOUT 0x004
15 #define POLLERR 0x008
16 #define POLLHUP 0x010
17 #define POLLNVAL 0x020
18 #define POLLRDNORM 0x040
19 #define POLLRDBAND 0x080
20 #ifndef POLLWRNORM
21 #define POLLWRNORM 0x100
22 #define POLLWRBAND 0x200
23 #endif
24 #ifndef POLLMSG
25 #define POLLMSG 0x400
26 #define POLLRDHUP 0x2000
27 #endif
28
29 typedef unsigned long nfds_t;
30
31 struct pollfd
32 {
33 int fd;
34 short events;
35 short revents;
36 };
37
38 int poll (struct pollfd *, nfds_t, int);
39
40 #ifdef _GNU_SOURCE
41 #define __NEED_time_t
42 #define __NEED_struct_timespec
43 #define __NEED_sigset_t
44 #include <bits/alltypes.h>
45 int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);
46 #endif
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif
OLDNEW
« no previous file with comments | « fusl/include/paths.h ('k') | fusl/include/pthread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698