Index: fusl/include/sys/epoll.h |
diff --git a/fusl/include/sys/epoll.h b/fusl/include/sys/epoll.h |
index 1f0312e59ee217b55c954347ac46537974910d55..316c5f380045bae6b788938fa8adc3070d74d88a 100644 |
--- a/fusl/include/sys/epoll.h |
+++ b/fusl/include/sys/epoll.h |
@@ -1,5 +1,5 @@ |
-#ifndef _SYS_EPOLL_H |
-#define _SYS_EPOLL_H |
+#ifndef _SYS_EPOLL_H |
+#define _SYS_EPOLL_H |
#ifdef __cplusplus |
extern "C" { |
@@ -28,37 +28,35 @@ enum EPOLL_EVENTS { __EPOLL_DUMMY }; |
#define EPOLLERR 0x008 |
#define EPOLLHUP 0x010 |
#define EPOLLRDHUP 0x2000 |
-#define EPOLLWAKEUP (1U<<29) |
-#define EPOLLONESHOT (1U<<30) |
-#define EPOLLET (1U<<31) |
+#define EPOLLWAKEUP (1U << 29) |
+#define EPOLLONESHOT (1U << 30) |
+#define EPOLLET (1U << 31) |
#define EPOLL_CTL_ADD 1 |
#define EPOLL_CTL_DEL 2 |
#define EPOLL_CTL_MOD 3 |
typedef union epoll_data { |
- void *ptr; |
- int fd; |
- uint32_t u32; |
- uint64_t u64; |
+ void* ptr; |
+ int fd; |
+ uint32_t u32; |
+ uint64_t u64; |
} epoll_data_t; |
struct epoll_event { |
- uint32_t events; |
- epoll_data_t data; |
+ uint32_t events; |
+ epoll_data_t data; |
} |
#ifdef __x86_64__ |
-__attribute__ ((__packed__)) |
+__attribute__((__packed__)) |
#endif |
; |
- |
int epoll_create(int); |
int epoll_create1(int); |
-int epoll_ctl(int, int, int, struct epoll_event *); |
-int epoll_wait(int, struct epoll_event *, int, int); |
-int epoll_pwait(int, struct epoll_event *, int, int, const sigset_t *); |
- |
+int epoll_ctl(int, int, int, struct epoll_event*); |
+int epoll_wait(int, struct epoll_event*, int, int); |
+int epoll_pwait(int, struct epoll_event*, int, int, const sigset_t*); |
#ifdef __cplusplus |
} |