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

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

Issue 1261203002: Fix signature of __nacl_irt_xx functions (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-glibc.git@master
Patch Set: Created 5 years, 4 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 | « sysdeps/nacl/irt.h ('k') | sysdeps/nacl/irt_syscalls.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef _IRT_SYSCALLS_H 1 #ifndef _IRT_SYSCALLS_H
2 #define _IRT_SYSCALLS_H 2 #define _IRT_SYSCALLS_H
3 3
4 #include <sys/types.h> 4 #include <sys/types.h>
5 #include <sys/epoll.h> 5 #include <sys/epoll.h>
6 #include <sys/select.h> 6 #include <sys/select.h>
7 #include <poll.h> 7 #include <poll.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <time.h> 10 #include <time.h>
11 11
12 #include <nacl_stat.h> 12 #include <nacl_stat.h>
13 #include <nacl_dirent.h>
13 14
14 struct dirent;
15 struct nacl_abi_stat;
16 struct timeval; 15 struct timeval;
17 struct timespec; 16 struct timespec;
18 struct sockaddr; 17 struct sockaddr;
19 struct msghdr; 18 struct msghdr;
20 19
21 #define socklen_t unsigned int 20 #define socklen_t unsigned int
22 21
23 extern size_t (*__nacl_irt_query)(const char *interface_ident, 22 extern size_t (*__nacl_irt_query)(const char *interface_ident,
24 void *table, size_t tablesize); 23 void *table, size_t tablesize);
25 24
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 extern int (*__nacl_irt_close) (int fd); 99 extern int (*__nacl_irt_close) (int fd);
101 extern int (*__nacl_irt_read) (int fd, void *buf, size_t count, size_t *nread); 100 extern int (*__nacl_irt_read) (int fd, void *buf, size_t count, size_t *nread);
102 extern int (*__nacl_irt_write) (int fd, const void *buf, size_t count, 101 extern int (*__nacl_irt_write) (int fd, const void *buf, size_t count,
103 size_t *nwrote); 102 size_t *nwrote);
104 extern int (*__nacl_irt_seek) (int fd, nacl_abi_off_t offset, int whence, 103 extern int (*__nacl_irt_seek) (int fd, nacl_abi_off_t offset, int whence,
105 nacl_abi_off_t *new_offset); 104 nacl_abi_off_t *new_offset);
106 extern int (*__nacl_irt_dup) (int fd, int *newfd); 105 extern int (*__nacl_irt_dup) (int fd, int *newfd);
107 extern int (*__nacl_irt_dup2) (int fd, int newfd); 106 extern int (*__nacl_irt_dup2) (int fd, int newfd);
108 extern int (*__nacl_irt_fstat) (int fd, struct nacl_abi_stat *); 107 extern int (*__nacl_irt_fstat) (int fd, struct nacl_abi_stat *);
109 extern int (*__nacl_irt_stat) (const char *pathname, struct nacl_abi_stat *); 108 extern int (*__nacl_irt_stat) (const char *pathname, struct nacl_abi_stat *);
110 extern int (*__nacl_irt_getdents) (int fd, struct dirent *, size_t count, 109 extern int (*__nacl_irt_getdents) (int fd, struct nacl_abi_dirent *, size_t coun t,
111 size_t *nread); 110 size_t *nread);
112 111
113 extern int (*__nacl_irt_sysbrk)(void **newbrk); 112 extern int (*__nacl_irt_sysbrk)(void **newbrk);
114 extern int (*__nacl_irt_mmap)(void **addr, size_t len, int prot, int flags, 113 extern int (*__nacl_irt_mmap)(void **addr, size_t len, int prot, int flags,
115 int fd, nacl_abi_off_t off); 114 int fd, nacl_abi_off_t off);
116 extern int (*__nacl_irt_munmap)(void *addr, size_t len); 115 extern int (*__nacl_irt_munmap)(void *addr, size_t len);
117 extern int (*__nacl_irt_mprotect)(void *addr, size_t len, int prot); 116 extern int (*__nacl_irt_mprotect)(void *addr, size_t len, int prot);
118 117
119 extern int (*__nacl_irt_dyncode_create) (void *dest, const void *src, 118 extern int (*__nacl_irt_dyncode_create) (void *dest, const void *src,
120 size_t size); 119 size_t size);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 struct robust_list_head 228 struct robust_list_head
230 { 229 {
231 void *list; 230 void *list;
232 long int futex_offset; 231 long int futex_offset;
233 void *list_op_pending; 232 void *list_op_pending;
234 }; 233 };
235 #endif 234 #endif
236 235
237 #endif 236 #endif
238 #endif 237 #endif
OLDNEW
« no previous file with comments | « sysdeps/nacl/irt.h ('k') | sysdeps/nacl/irt_syscalls.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698