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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/sys_filename.h
diff --git a/src/trusted/service_runtime/sys_filename.h b/src/trusted/service_runtime/sys_filename.h
index 0d9721badaabbdccb5c41d96c458fe795b3f741f..c45325182fa69d895b829582907523a8eb071769 100644
--- a/src/trusted/service_runtime/sys_filename.h
+++ b/src/trusted/service_runtime/sys_filename.h
@@ -10,6 +10,8 @@
#include "native_client/src/include/nacl_base.h"
#include "native_client/src/include/portability.h"
+#include "native_client/src/trusted/service_runtime/include/sys/stat.h"
+
EXTERN_C_BEGIN
struct NaClApp;
@@ -50,6 +52,43 @@ int32_t NaClSysGetcwd(struct NaClAppThread *natp,
int32_t NaClSysUnlink(struct NaClAppThread *natp,
uint32_t path);
+int32_t NaClSysTruncate(struct NaClAppThread *natp,
+ uint32_t path,
+ nacl_abi_off_t length);
+
+int32_t NaClSysLstat(struct NaClAppThread *natp,
+ uint32_t path,
+ struct nacl_abi_stat *buf);
+
+int32_t NaClSysLink(struct NaClAppThread *natp,
+ uint32_t oldpath,
+ uint32_t newpath);
+
+int32_t NaClSysChmod(struct NaClAppThread *natp,
+ uint32_t pathname,
+ int mode);
+
+int32_t NaClSysAccess(struct NaClAppThread *natp,
+ uint32_t pathname,
+ int mode);
+
+int32_t NaClSysRename(struct NaClAppThread *natp,
+ uint32_t oldpath,
+ uint32_t newpath);
+
+int32_t NaClSysReadlink(struct NaClAppThread *natp,
+ uint32_t path,
+ uint32_t buf,
+ size_t bufsiz);
+
+int32_t NaClSysSymlink(struct NaClAppThread *natp,
+ uint32_t oldpath,
+ uint32_t newpath);
+
+int32_t NaClSysUtimes(struct NaClAppThread *natp,
+ uint32_t filename,
+ uint32_t times);
+
EXTERN_C_END
#endif
« 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