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

Side by Side Diff: src/trusted/service_runtime/sys_filename.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/trusted/service_runtime/sys_fdio.c ('k') | src/trusted/service_runtime/sys_filename.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 /* 1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2013 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 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_FILENAME_H_ 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_FILENAME_H_
8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_FILENAME_H_ 1 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_FILENAME_H_ 1
9 9
10 #include "native_client/src/include/nacl_base.h" 10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/include/portability.h" 11 #include "native_client/src/include/portability.h"
12 12
13 #include "native_client/src/trusted/service_runtime/include/sys/stat.h"
14
13 EXTERN_C_BEGIN 15 EXTERN_C_BEGIN
14 16
15 struct NaClApp; 17 struct NaClApp;
16 struct NaClAppThread; 18 struct NaClAppThread;
17 struct nacl_abi_stat; 19 struct nacl_abi_stat;
18 20
19 int32_t NaClOpenAclCheck(struct NaClApp *nap, 21 int32_t NaClOpenAclCheck(struct NaClApp *nap,
20 char const *path, 22 char const *path,
21 int flags, 23 int flags,
22 int mode); 24 int mode);
(...skipping 20 matching lines...) Expand all
43 int32_t NaClSysChdir(struct NaClAppThread *natp, 45 int32_t NaClSysChdir(struct NaClAppThread *natp,
44 uint32_t path); 46 uint32_t path);
45 47
46 int32_t NaClSysGetcwd(struct NaClAppThread *natp, 48 int32_t NaClSysGetcwd(struct NaClAppThread *natp,
47 uint32_t buffer, 49 uint32_t buffer,
48 int len); 50 int len);
49 51
50 int32_t NaClSysUnlink(struct NaClAppThread *natp, 52 int32_t NaClSysUnlink(struct NaClAppThread *natp,
51 uint32_t path); 53 uint32_t path);
52 54
55 int32_t NaClSysTruncate(struct NaClAppThread *natp,
56 uint32_t path,
57 nacl_abi_off_t length);
58
59 int32_t NaClSysLstat(struct NaClAppThread *natp,
60 uint32_t path,
61 struct nacl_abi_stat *buf);
62
63 int32_t NaClSysLink(struct NaClAppThread *natp,
64 uint32_t oldpath,
65 uint32_t newpath);
66
67 int32_t NaClSysChmod(struct NaClAppThread *natp,
68 uint32_t pathname,
69 int mode);
70
71 int32_t NaClSysAccess(struct NaClAppThread *natp,
72 uint32_t pathname,
73 int mode);
74
75 int32_t NaClSysRename(struct NaClAppThread *natp,
76 uint32_t oldpath,
77 uint32_t newpath);
78
79 int32_t NaClSysReadlink(struct NaClAppThread *natp,
80 uint32_t path,
81 uint32_t buf,
82 size_t bufsiz);
83
84 int32_t NaClSysSymlink(struct NaClAppThread *natp,
85 uint32_t oldpath,
86 uint32_t newpath);
87
88 int32_t NaClSysUtimes(struct NaClAppThread *natp,
89 uint32_t filename,
90 uint32_t times);
91
53 EXTERN_C_END 92 EXTERN_C_END
54 93
55 #endif 94 #endif
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/sys_fdio.c ('k') | src/trusted/service_runtime/sys_filename.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698