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

Side by Side Diff: sysdeps/nacl/sysdep.h

Issue 10095010: removed epoll_create1 (EPOLL_CLOEXEC is not applicable to NaCl, as there is no possibility to fork)… (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Created 8 years, 8 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
« sysdeps/nacl/syscalls.list ('K') | « sysdeps/nacl/syscalls.list ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« sysdeps/nacl/syscalls.list ('K') | « sysdeps/nacl/syscalls.list ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698