Index: src/shared/platform/osx/nacl_host_dir.c |
diff --git a/src/shared/platform/osx/nacl_host_dir.c b/src/shared/platform/osx/nacl_host_dir.c |
index 74f4fe29eb01b31db5d681dbe737ab5420c967be..8eb28ece8b7858b8925a31b346428e496f294a3e 100644 |
--- a/src/shared/platform/osx/nacl_host_dir.c |
+++ b/src/shared/platform/osx/nacl_host_dir.c |
@@ -147,3 +147,31 @@ int NaClHostDirClose(struct NaClHostDir *d) { |
NaClMutexDtor(&d->mu); |
return (-1 == retval) ? -NaClXlateErrno(errno) : retval; |
} |
+ |
+int NaClHostDirFchdir(struct NaClHostDir *d) { |
+ if (-1 == fchdir(d->fd)) { |
+ return -NaClXlateErrno(errno); |
+ } |
+ return 0; |
+} |
+ |
+int NaClHostDirFchmod(struct NaClHostDir *d, int mode) { |
+ if (-1 == fchmod(d->fd, mode)) { |
+ return -NaClXlateErrno(errno); |
+ } |
+ return 0; |
+} |
+ |
+int NaClHostDirFsync(struct NaClHostDir *d) { |
+ if (-1 == fsync(d->fd)) { |
+ return -NaClXlateErrno(errno); |
+ } |
+ return 0; |
+} |
+ |
+int NaClHostDirFdatasync(struct NaClHostDir *d) { |
+ if (-1 == fdatasync(d->fd)) { |
+ return -NaClXlateErrno(errno); |
+ } |
+ return 0; |
+} |