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

Unified Diff: src/shared/platform/osx/nacl_host_dir.c

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/nacl_host_dir.h ('k') | src/shared/platform/posix/nacl_host_desc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « src/shared/platform/nacl_host_dir.h ('k') | src/shared/platform/posix/nacl_host_desc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698