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

Unified Diff: src/shared/platform/win/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/win/nacl_host_desc.c ('k') | src/trusted/desc/nacl_desc_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/win/nacl_host_dir.c
diff --git a/src/shared/platform/win/nacl_host_dir.c b/src/shared/platform/win/nacl_host_dir.c
index 6c04f4db4ab90f095978ec866246c7940b510acf..72e87158b5c2519f2139d43d59f516a102097dd0 100644
--- a/src/shared/platform/win/nacl_host_dir.c
+++ b/src/shared/platform/win/nacl_host_dir.c
@@ -270,3 +270,39 @@ int NaClHostDirClose(struct NaClHostDir *d) {
}
return 0;
}
+
+int NaClHostDirFchdir(struct NaClHostDir *d) {
+ NaClLog(1, "NaClHostDirFchdir Not yet implemented.\n");
+ /* TODO(smklein) Implement this function */
+
+ return -NACL_ABI_EINVAL;
+}
+
+int NaClHostDirFchmod(struct NaClHostDir *d, int mode) {
+ NaClLog(1, "NaClHostDirFchmod Not yet implemented.\n");
+ /* TODO(smklein) Implement this function */
+
+ return -NACL_ABI_EINVAL;
+}
+
+int NaClHostDirFsync(struct NaClHostDir *d) {
+ DWORD err;
+
+ if (!FlushFileBuffers(d->handle)) {
+ err = GetLastError();
+ return -NaClXlateSystemError(err);
+ }
+
+ return 0;
+}
+
+int NaClHostDirFdatasync(struct NaClHostDir *d) {
+ DWORD err;
+
+ if (!FlushFileBuffers(d->handle)) {
+ err = GetLastError();
+ return -NaClXlateSystemError(err);
+ }
+
+ return 0;
+}
« no previous file with comments | « src/shared/platform/win/nacl_host_desc.c ('k') | src/trusted/desc/nacl_desc_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698