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

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

Issue 24889002: Provides some of the missing POSIX file syscalls Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 3 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 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;
+}
« 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