OLD | NEW |
1 #ifndef _NACL_SYSDEP_H | 1 #ifndef _NACL_SYSDEP_H |
2 #define _NACL_SYSDEP_H 1 | 2 #define _NACL_SYSDEP_H 1 |
3 | 3 |
4 #if !defined(__ASSEMBLER__) | 4 #if !defined(__ASSEMBLER__) |
5 #include <futex_emulation.h> | 5 #include <futex_emulation.h> |
6 #include <irt_syscalls.h> | 6 #include <irt_syscalls.h> |
7 #include <lowlevellock.h> | 7 #include <lowlevellock.h> |
8 | 8 |
9 /* Implementation of all syscalls for use in platform- and OS- independent code | 9 /* Implementation of all syscalls for use in platform- and OS- independent code |
10 as inline functions. Each function translates the syscall arguments into IRT | 10 as inline functions. Each function translates the syscall arguments into IRT |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 238 } |
239 | 239 |
240 __extern_always_inline int | 240 __extern_always_inline int |
241 INTERNAL_SYSCALL_epoll_create_1 (int *err, int size) | 241 INTERNAL_SYSCALL_epoll_create_1 (int *err, int size) |
242 { | 242 { |
243 *err = __nacl_irt_epoll_create (size); | 243 *err = __nacl_irt_epoll_create (size); |
244 return 0; | 244 return 0; |
245 } | 245 } |
246 | 246 |
247 __extern_always_inline int | 247 __extern_always_inline int |
248 INTERNAL_SYSCALL_epoll_create1_1 (int *err, int flags) | |
249 { | |
250 *err = __nacl_irt_epoll_create1 (flags); | |
251 return 0; | |
252 } | |
253 | |
254 __extern_always_inline int | |
255 INTERNAL_SYSCALL_epoll_ctl_4 (int *err, int epfd, int op, int fd, | 248 INTERNAL_SYSCALL_epoll_ctl_4 (int *err, int epfd, int op, int fd, |
256 struct epoll_event *event) | 249 struct epoll_event *event) |
257 { | 250 { |
258 *err = __nacl_irt_epoll_ctl (epfd, op, fd, event); | 251 *err = __nacl_irt_epoll_ctl (epfd, op, fd, event); |
259 return 0; | 252 return 0; |
260 } | 253 } |
261 | 254 |
262 __extern_always_inline int | 255 __extern_always_inline int |
263 INTERNAL_SYSCALL_epoll_pwait_6 (int *err, int epfd, struct epoll_event *events, | 256 INTERNAL_SYSCALL_epoll_pwait_6 (int *err, int epfd, struct epoll_event *events, |
264 int maxevents, int timeout, | 257 int maxevents, int timeout, |
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 #define PSEUDO_END_ERRVAL(name) \ | 2231 #define PSEUDO_END_ERRVAL(name) \ |
2239 END (name) | 2232 END (name) |
2240 | 2233 |
2241 #undef SYSCALL_ERROR_HANDLER_TLS_STORE | 2234 #undef SYSCALL_ERROR_HANDLER_TLS_STORE |
2242 #define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff) \ | 2235 #define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff) \ |
2243 movl %gs:0, %eax; \ | 2236 movl %gs:0, %eax; \ |
2244 movl src, (%eax,destoff) | 2237 movl src, (%eax,destoff) |
2245 | 2238 |
2246 #endif | 2239 #endif |
2247 #endif | 2240 #endif |
OLD | NEW |