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

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

Issue 24889002: Provides some of the missing POSIX file syscalls Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/untrusted/irt/irt_interfaces.c ('k') | tests/syscalls/syscalls.cc » ('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
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 typedef int (*TYPE_nacl_write) (int desc, void const *buf, size_t count); 69 typedef int (*TYPE_nacl_write) (int desc, void const *buf, size_t count);
70 70
71 typedef int (*TYPE_nacl_open) (char const *pathname, int flags, mode_t mode); 71 typedef int (*TYPE_nacl_open) (char const *pathname, int flags, mode_t mode);
72 72
73 typedef int (*TYPE_nacl_lseek) (int desc, 73 typedef int (*TYPE_nacl_lseek) (int desc,
74 off_t *offset, /* 64 bit value */ 74 off_t *offset, /* 64 bit value */
75 int whence); 75 int whence);
76 76
77 typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st); 77 typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st);
78 78
79 typedef int (*TYPE_nacl_fchdir) (int fd);
80
81 typedef int (*TYPE_nacl_fchmod) (int fd, mode_t mode);
82
83 typedef int (*TYPE_nacl_fsync) (int fd);
84
85 typedef int (*TYPE_nacl_fdatasync) (int fd);
86
87 typedef int (*TYPE_nacl_ftruncate) (int fd, off_t length);
88
89 typedef int (*TYPE_nacl_truncate) (const char *pathname, off_t length);
90
91 typedef int (*TYPE_nacl_lstat) (const char *pathname, struct stat *);
92
93 typedef int (*TYPE_nacl_link) (const char *oldpath, const char *newpath);
94
95 typedef int (*TYPE_nacl_chmod) (const char *path, mode_t mode);
96
97 typedef int (*TYPE_nacl_access) (const char *path, int amode);
98
99 typedef int (*TYPE_nacl_rename) (const char *oldpath, const char *newpath);
100
101 typedef int (*TYPE_nacl_readlink) (const char *path, char *buf, size_t bufsiz);
102
103 typedef int (*TYPE_nacl_symlink) (const char *oldpath, const char *newpath);
104
105 typedef int (*TYPE_nacl_utimes) (const char *filename,
106 const struct timeval *times);
107
79 /* ============================================================ */ 108 /* ============================================================ */
80 /* imc */ 109 /* imc */
81 /* ============================================================ */ 110 /* ============================================================ */
82 111
83 typedef int (*TYPE_nacl_imc_recvmsg) (int desc, 112 typedef int (*TYPE_nacl_imc_recvmsg) (int desc,
84 struct NaClAbiNaClImcMsgHdr *nmhp, 113 struct NaClAbiNaClImcMsgHdr *nmhp,
85 int flags); 114 int flags);
86 typedef int (*TYPE_nacl_imc_sendmsg) (int desc, 115 typedef int (*TYPE_nacl_imc_sendmsg) (int desc,
87 struct NaClAbiNaClImcMsgHdr const *nmhp, 116 struct NaClAbiNaClImcMsgHdr const *nmhp,
88 int flags); 117 int flags);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 254
226 typedef int (*TYPE_nacl_test_infoleak) (void); 255 typedef int (*TYPE_nacl_test_infoleak) (void);
227 256
228 typedef int (*TYPE_nacl_test_crash) (int crash_type); 257 typedef int (*TYPE_nacl_test_crash) (int crash_type);
229 258
230 #if defined(__cplusplus) 259 #if defined(__cplusplus)
231 } 260 }
232 #endif 261 #endif
233 262
234 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */ 263 #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/syscalls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698