| 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
|
|
|