| 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 1852a7bf5443f5cc8fd3959b105194ede06dfebf..b8d624ddffe0f5690ef1c8eca9685cdb135eaff4 100644
|
| --- a/src/shared/platform/osx/nacl_host_dir.c
|
| +++ b/src/shared/platform/osx/nacl_host_dir.c
|
| @@ -156,3 +156,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;
|
| +}
|
|
|