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

Unified Diff: src/shared/platform/nacl_host_desc.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 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 ddfa7da723bd6aa107da287e2f0dc1af6934c68a..c08290d98275d389326dcdbe34d2dfaa2d2bddcd 100644
--- a/src/shared/platform/nacl_host_desc.h
+++ b/src/shared/platform/nacl_host_desc.h
@@ -18,6 +18,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"
@@ -64,7 +65,6 @@ typedef struct stat nacl_host_stat_t;
typedef struct _stati64 nacl_host_stat_t;
# define NACL_HOST_FSTAT64 _fstat64
# define NACL_HOST_STAT64 _stati64
-# define NACL_HOST_LSTAT64 _lstati64
#elif defined __native_client__
/* nacl_host_stat_t not exposed to NaCl module code */
#else
@@ -359,11 +359,12 @@ extern int NaClHostDescRename(const char *oldpath,
/*
* Create a new symlink called 'newpath', pointing to 'oldpath'.
*/
-extern int NaClHostDescSymlink(const char *oldpath, const char *newpath);
+extern int NaClHostDescSymlink(const char *oldpath,
+ const char *newpath) NACL_WUR;
-extern int NaClHostDescChmod(const char *path, nacl_abi_mode_t amode);
+extern int NaClHostDescChmod(const char *path, nacl_abi_mode_t amode) NACL_WUR;
-extern int NaClHostDescAccess(const char *path, int amode);
+extern int NaClHostDescAccess(const char *path, int amode) NACL_WUR;
/*
* Find the target of a symlink.
@@ -373,6 +374,18 @@ extern int NaClHostDescAccess(const char *path, int amode);
*/
extern int NaClHostDescReadlink(const char *path, char *buf, size_t bufsize);
+extern int NaClHostDescUtimes(const char *filename,
+ const struct nacl_abi_timeval *times) NACL_WUR;
+
+extern int NaClHostDescFchmod(struct NaClHostDesc *d, nacl_abi_mode_t 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