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

Side by Side Diff: src/untrusted/nacl/syscall_bindings_trampoline.h

Issue 1235633004: DON'T USE THIS -- Providing some missing POSIX File syscalls. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 5 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 | « src/untrusted/irt/irt_interfaces.c ('k') | tests/syscalls/nacl.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 /* 6 /*
7 * TODO(bradchen): figure out where to move this include file and then 7 * TODO(bradchen): figure out where to move this include file and then
8 * move it. 8 * move it.
9 */ 9 */
10 10
11 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H 11 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H
12 #define NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H 12 #define NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H
13 13
14 #if defined(__cplusplus) 14 #if defined(__cplusplus)
15 extern "C" { 15 extern "C" {
16 #endif 16 #endif
17 17
18 #include <stdint.h> 18 #include <stdint.h>
19 #include <sys/types.h> 19 #include <sys/types.h>
20 #include <time.h> 20 #include <time.h>
21 #include <utime.h>
21 22
22 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h " 23 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h "
23 #include "native_client/src/trusted/service_runtime/nacl_config.h" 24 #include "native_client/src/trusted/service_runtime/nacl_config.h"
24 25
25 struct NaClExceptionContext; 26 struct NaClExceptionContext;
26 struct NaClAbiNaClImcMsgHdr; 27 struct NaClAbiNaClImcMsgHdr;
27 struct NaClMemMappingInfo; 28 struct NaClMemMappingInfo;
28 struct stat; 29 struct stat;
29 struct timespec; 30 struct timespec;
30 struct timeval; 31 struct timeval;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 typedef int (*TYPE_nacl_write) (int desc, void const *buf, size_t count); 77 typedef int (*TYPE_nacl_write) (int desc, void const *buf, size_t count);
77 78
78 typedef int (*TYPE_nacl_open) (char const *pathname, int flags, mode_t mode); 79 typedef int (*TYPE_nacl_open) (char const *pathname, int flags, mode_t mode);
79 80
80 typedef int (*TYPE_nacl_lseek) (int desc, 81 typedef int (*TYPE_nacl_lseek) (int desc,
81 off_t *offset, /* 64 bit value */ 82 off_t *offset, /* 64 bit value */
82 int whence); 83 int whence);
83 84
84 typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st); 85 typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st);
85 86
87 typedef int (*TYPE_nacl_fchdir) (int fd);
88
89 typedef int (*TYPE_nacl_fchmod) (int fd, mode_t mode);
90
91 typedef int (*TYPE_nacl_fsync) (int fd);
92
93 typedef int (*TYPE_nacl_fdatasync) (int fd);
94
95 typedef int (*TYPE_nacl_ftruncate) (int fd, off_t length);
96
86 typedef int (*TYPE_nacl_pread) (int fd, void *buf, size_t count, off_t *offset); 97 typedef int (*TYPE_nacl_pread) (int fd, void *buf, size_t count, off_t *offset);
87 98
88 typedef int (*TYPE_nacl_pwrite) (int fd, 99 typedef int (*TYPE_nacl_pwrite) (int fd,
89 const void *buf, size_t count, 100 const void *buf, size_t count,
90 off_t *offset); 101 off_t *offset);
91 102
92 typedef int (*TYPE_nacl_isatty) (int fd); 103 typedef int (*TYPE_nacl_isatty) (int fd);
93 104
94 /* ============================================================ */ 105 /* ============================================================ */
95 /* imc */ 106 /* imc */
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 typedef int (*TYPE_nacl_symlink) (const char *oldpath, const char *newpath); 228 typedef int (*TYPE_nacl_symlink) (const char *oldpath, const char *newpath);
218 229
219 typedef int (*TYPE_nacl_chmod) (const char *path, mode_t mode); 230 typedef int (*TYPE_nacl_chmod) (const char *path, mode_t mode);
220 231
221 typedef int (*TYPE_nacl_access) (const char *path, int amode); 232 typedef int (*TYPE_nacl_access) (const char *path, int amode);
222 233
223 typedef int (*TYPE_nacl_readlink) (const char *path, char *buf, size_t bufsize); 234 typedef int (*TYPE_nacl_readlink) (const char *path, char *buf, size_t bufsize);
224 235
225 typedef int (*TYPE_nacl_utimes) (const char *path, const struct timeval *times); 236 typedef int (*TYPE_nacl_utimes) (const char *path, const struct timeval *times);
226 237
238 typedef int (*TYPE_nacl_utime) (const char *path, const struct utimbuf *times);
239
227 #ifdef __GNUC__ 240 #ifdef __GNUC__
228 typedef void (*TYPE_nacl_exit) (int status) __attribute__((noreturn)); 241 typedef void (*TYPE_nacl_exit) (int status) __attribute__((noreturn));
229 #else 242 #else
230 typedef void (*TYPE_nacl_exit) (int status); 243 typedef void (*TYPE_nacl_exit) (int status);
231 #endif 244 #endif
232 245
233 typedef void (*TYPE_nacl_null) (void); 246 typedef void (*TYPE_nacl_null) (void);
234 247
235 typedef int (*TYPE_nacl_tls_init) (void *thread_ptr); 248 typedef int (*TYPE_nacl_tls_init) (void *thread_ptr);
236 249
(...skipping 28 matching lines...) Expand all
265 278
266 typedef int (*TYPE_nacl_futex_wake) (volatile int *addr, int nwake); 279 typedef int (*TYPE_nacl_futex_wake) (volatile int *addr, int nwake);
267 280
268 typedef int (*TYPE_nacl_get_random_bytes) (void *buf, size_t buf_size); 281 typedef int (*TYPE_nacl_get_random_bytes) (void *buf, size_t buf_size);
269 282
270 #if defined(__cplusplus) 283 #if defined(__cplusplus)
271 } 284 }
272 #endif 285 #endif
273 286
274 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */ 287 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */
OLDNEW
« no previous file with comments | « src/untrusted/irt/irt_interfaces.c ('k') | tests/syscalls/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698