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

Side by Side Diff: sysdeps/nacl/irt_syscalls.c

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
OLDNEW
1 #include <string.h> 1 #include <string.h>
2 #include <sys/stat.h> 2 #include <sys/stat.h>
3 #include <time.h> 3 #include <time.h>
4 #include <nacl_stat.h> 4 #include <nacl_stat.h>
5 #include <nacl_syscalls.h> 5 #include <nacl_syscalls.h>
6 #define stat nacl_abi_stat 6 #define stat nacl_abi_stat
7 #include <irt.h> 7 #include <irt.h>
8 #undef stat 8 #undef stat
9 #include <irt_syscalls.h> 9 #include <irt_syscalls.h>
10 #ifdef IS_IN_rtld 10 #ifdef IS_IN_rtld
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 int* ret); 318 int* ret);
319 int (*__nacl_irt_sendto) (int sockfd, const void *buf, size_t len, int flags, 319 int (*__nacl_irt_sendto) (int sockfd, const void *buf, size_t len, int flags,
320 const struct sockaddr *dest_addr, socklen_t addrlen, 320 const struct sockaddr *dest_addr, socklen_t addrlen,
321 int* ret); 321 int* ret);
322 int (*__nacl_irt_recv) (int sockfd, void *buf, size_t len, int flags, int* ret); 322 int (*__nacl_irt_recv) (int sockfd, void *buf, size_t len, int flags, int* ret);
323 int (*__nacl_irt_recvmsg) (int sockfd, struct msghdr *msg, int flags, int* ret); 323 int (*__nacl_irt_recvmsg) (int sockfd, struct msghdr *msg, int flags, int* ret);
324 int (*__nacl_irt_recvfrom) (int sockfd, void *buf, size_t len, int flags, 324 int (*__nacl_irt_recvfrom) (int sockfd, void *buf, size_t len, int flags,
325 struct sockaddr *dest_addr, socklen_t* addrlen, int* ret); 325 struct sockaddr *dest_addr, socklen_t* addrlen, int* ret);
326 326
327 int (*__nacl_irt_epoll_create) (int size); 327 int (*__nacl_irt_epoll_create) (int size);
328 int (*__nacl_irt_epoll_create1 )(int flags);
329 int (*__nacl_irt_epoll_ctl) (int epfd, int op, int fd, 328 int (*__nacl_irt_epoll_ctl) (int epfd, int op, int fd,
330 struct epoll_event *event); 329 struct epoll_event *event);
331 int (*__nacl_irt_epoll_pwait) (int epfd, struct epoll_event *events, 330 int (*__nacl_irt_epoll_pwait) (int epfd, struct epoll_event *events,
332 int maxevents, int timeout, 331 int maxevents, int timeout,
333 const sigset_t *sigmask, size_t sigset_size); 332 const sigset_t *sigmask, size_t sigset_size);
334 int (*__nacl_irt_epoll_wait) (int epfd, struct epoll_event *events, 333 int (*__nacl_irt_epoll_wait) (int epfd, struct epoll_event *events,
335 int maxevents, int timeout); 334 int maxevents, int timeout);
336 int (*__nacl_irt_poll) (struct pollfd *fds, nfds_t nfds, 335 int (*__nacl_irt_poll) (struct pollfd *fds, nfds_t nfds,
337 int timeout); 336 int timeout);
338 int (*__nacl_irt_ppoll) (struct pollfd *fds, nfds_t nfds, 337 int (*__nacl_irt_ppoll) (struct pollfd *fds, nfds_t nfds,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 603
605 if (!__nacl_irt_query) 604 if (!__nacl_irt_query)
606 __nacl_irt_query = no_interface; 605 __nacl_irt_query = no_interface;
607 606
608 __nacl_irt_mkdir = not_implemented; 607 __nacl_irt_mkdir = not_implemented;
609 __nacl_irt_chdir = not_implemented; 608 __nacl_irt_chdir = not_implemented;
610 __nacl_irt_rmdir = not_implemented; 609 __nacl_irt_rmdir = not_implemented;
611 __nacl_irt_getcwd = not_implemented; 610 __nacl_irt_getcwd = not_implemented;
612 611
613 __nacl_irt_epoll_create = not_implemented; 612 __nacl_irt_epoll_create = not_implemented;
614 __nacl_irt_epoll_create1 = not_implemented;
615 __nacl_irt_epoll_ctl = not_implemented; 613 __nacl_irt_epoll_ctl = not_implemented;
616 __nacl_irt_epoll_pwait = not_implemented; 614 __nacl_irt_epoll_pwait = not_implemented;
617 __nacl_irt_epoll_wait = not_implemented; 615 __nacl_irt_epoll_wait = not_implemented;
618 __nacl_irt_poll = not_implemented; 616 __nacl_irt_poll = not_implemented;
619 __nacl_irt_ppoll = not_implemented; 617 __nacl_irt_ppoll = not_implemented;
620 __nacl_irt_socket = not_implemented; 618 __nacl_irt_socket = not_implemented;
621 __nacl_irt_accept = not_implemented; 619 __nacl_irt_accept = not_implemented;
622 __nacl_irt_bind = not_implemented; 620 __nacl_irt_bind = not_implemented;
623 __nacl_irt_listen = not_implemented; 621 __nacl_irt_listen = not_implemented;
624 __nacl_irt_connect = not_implemented; 622 __nacl_irt_connect = not_implemented;
(...skipping 10 matching lines...) Expand all
635 __nacl_irt_getsockopt = not_implemented; 633 __nacl_irt_getsockopt = not_implemented;
636 __nacl_irt_setsockopt = not_implemented; 634 __nacl_irt_setsockopt = not_implemented;
637 __nacl_irt_socketpair = not_implemented; 635 __nacl_irt_socketpair = not_implemented;
638 __nacl_irt_shutdown = not_implemented; 636 __nacl_irt_shutdown = not_implemented;
639 } 637 }
640 638
641 size_t nacl_interface_query(const char *interface_ident, 639 size_t nacl_interface_query(const char *interface_ident,
642 void *table, size_t tablesize) { 640 void *table, size_t tablesize) {
643 return (*__nacl_irt_query)(interface_ident, table, tablesize); 641 return (*__nacl_irt_query)(interface_ident, table, tablesize);
644 } 642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698