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

Unified Diff: src/shared/platform/linux/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 | « no previous file | src/shared/platform/nacl_host_desc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/linux/nacl_host_dir.c
diff --git a/src/shared/platform/linux/nacl_host_dir.c b/src/shared/platform/linux/nacl_host_dir.c
index bdeee9da28d91980ed2f3c78bbafebd49de3c4ef..ce2c42caacf568bd3d06c0296a63ec8554637fad 100644
--- a/src/shared/platform/linux/nacl_host_dir.c
+++ b/src/shared/platform/linux/nacl_host_dir.c
@@ -327,3 +327,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 | « no previous file | src/shared/platform/nacl_host_desc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698