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

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

Issue 9965011: added several syscalls for nacl mounts (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: fixed getcwd 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 #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 <stddef.h> 5 #include <stddef.h>
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <time.h> 7 #include <time.h>
8 8
9 #include <nacl_stat.h> 9 #include <nacl_stat.h>
10 10
11 struct dirent; 11 struct dirent;
12 struct nacl_abi_stat; 12 struct nacl_abi_stat;
13 struct timeval; 13 struct timeval;
14 struct timespec; 14 struct timespec;
15 15
16 extern size_t (*__nacl_irt_query)(const char *interface_ident, 16 extern size_t (*__nacl_irt_query)(const char *interface_ident,
17 void *table, size_t tablesize); 17 void *table, size_t tablesize);
18 18
19 extern void (*__nacl_irt_exit) (int status); 19 extern void (*__nacl_irt_exit) (int status);
20 extern int (*__nacl_irt_gettod) (struct timeval *tv); 20 extern int (*__nacl_irt_gettod) (struct timeval *tv);
21 extern int (*__nacl_irt_clock) (clock_t *ticks); 21 extern int (*__nacl_irt_clock) (clock_t *ticks);
22 extern int (*__nacl_irt_nanosleep) (const struct timespec *req, 22 extern int (*__nacl_irt_nanosleep) (const struct timespec *req,
23 struct timespec *rem); 23 struct timespec *rem);
24 extern int (*__nacl_irt_sched_yield) (void); 24 extern int (*__nacl_irt_sched_yield) (void);
25 extern int (*__nacl_irt_sysconf) (int name, int *value); 25 extern int (*__nacl_irt_sysconf) (int name, int *value);
26 26
27 extern int (*__nacl_irt_mkdir) (const char* pathname, mode_t mode);
28 extern int (*__nacl_irt_rmdir) (const char* pathname);
29 extern int (*__nacl_irt_chdir) (const char* pathname);
30 extern int (*__nacl_irt_getcwd) (char* buf, size_t size, int* ret);
31
27 extern int (*__nacl_irt_open) (const char *pathname, int oflag, mode_t cmode, 32 extern int (*__nacl_irt_open) (const char *pathname, int oflag, mode_t cmode,
28 int *newfd); 33 int *newfd);
29 extern int (*__nacl_irt_close) (int fd); 34 extern int (*__nacl_irt_close) (int fd);
30 extern int (*__nacl_irt_read) (int fd, void *buf, size_t count, size_t *nread); 35 extern int (*__nacl_irt_read) (int fd, void *buf, size_t count, size_t *nread);
31 extern int (*__nacl_irt_write) (int fd, const void *buf, size_t count, 36 extern int (*__nacl_irt_write) (int fd, const void *buf, size_t count,
32 size_t *nwrote); 37 size_t *nwrote);
33 extern int (*__nacl_irt_seek) (int fd, nacl_abi_off_t offset, int whence, 38 extern int (*__nacl_irt_seek) (int fd, nacl_abi_off_t offset, int whence,
34 nacl_abi_off_t *new_offset); 39 nacl_abi_off_t *new_offset);
35 extern int (*__nacl_irt_dup) (int fd, int *newfd); 40 extern int (*__nacl_irt_dup) (int fd, int *newfd);
36 extern int (*__nacl_irt_dup2) (int fd, int newfd); 41 extern int (*__nacl_irt_dup2) (int fd, int newfd);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 struct robust_list_head 138 struct robust_list_head
134 { 139 {
135 void *list; 140 void *list;
136 long int futex_offset; 141 long int futex_offset;
137 void *list_op_pending; 142 void *list_op_pending;
138 }; 143 };
139 #endif 144 #endif
140 145
141 #endif 146 #endif
142 #endif 147 #endif
OLDNEW
« no previous file with comments | « elf/Versions ('k') | sysdeps/nacl/irt_syscalls.c » ('j') | sysdeps/nacl/sysdep.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698