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

Unified Diff: src/shared/platform/nacl_host_desc.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/shared/platform/linux/nacl_host_dir.c ('k') | src/shared/platform/nacl_host_dir.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/nacl_host_desc.h
diff --git a/src/shared/platform/nacl_host_desc.h b/src/shared/platform/nacl_host_desc.h
index 834b73c266b6d1e1b9d93cbd45ed995fee06943a..7ed75823e6358510d45d0778fd39fc0518d9f53e 100644
--- a/src/shared/platform/nacl_host_desc.h
+++ b/src/shared/platform/nacl_host_desc.h
@@ -17,6 +17,7 @@
#include "native_client/src/include/nacl_compiler_annotations.h"
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_sync.h"
+#include "native_client/src/trusted/service_runtime/include/sys/time.h"
#if NACL_LINUX || NACL_OSX
# include "native_client/src/shared/platform/posix/nacl_host_desc_types.h"
@@ -333,6 +334,41 @@ extern int NaClHostDescGetcwd(char *path, size_t len) NACL_WUR;
*/
extern int NaClHostDescUnlink(char const *path) NACL_WUR;
+extern int NaClHostDescTruncate(const char *path,
+ nacl_off64_t length) NACL_WUR;
+
+extern int NaClHostDescLstat(char const *host_os_pathname,
+ nacl_host_stat_t *nasp) NACL_WUR;
+
+extern int NaClHostDescLink(const char *oldpath,
+ const char *newpath) NACL_WUR;
+
+extern int NaClHostDescChmod(const char *path, int mode) NACL_WUR;
+
+extern int NaClHostDescAccess(const char *pathname, int mode) NACL_WUR;
+
+extern int NaClHostDescRename(const char *oldpath,
+ const char *newpath) NACL_WUR;
+
+extern int NaClHostDescReadlink(const char *path,
+ char *buf,
+ size_t bufsiz) NACL_WUR;
+
+extern int NaClHostDescSymlink(const char *oldpath,
+ const char *newpath) NACL_WUR;
+
+extern int NaClHostDescUtimes(const char *filename,
+ const struct nacl_abi_timeval times[2]) NACL_WUR;
+
+extern int NaClHostDescFchmod(struct NaClHostDesc *d, int mode) NACL_WUR;
+
+extern int NaClHostDescFsync(struct NaClHostDesc *d) NACL_WUR;
+
+extern int NaClHostDescFdatasync(struct NaClHostDesc *d) NACL_WUR;
+
+extern int NaClHostDescFtruncate(struct NaClHostDesc *d,
+ nacl_off64_t length) NACL_WUR;
+
/*
* Maps NACI_ABI_ versions of the mmap prot argument to host ABI versions
* of the bit values
« no previous file with comments | « src/shared/platform/linux/nacl_host_dir.c ('k') | src/shared/platform/nacl_host_dir.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698