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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc

Issue 832413004: [NaCl SDK] nacl_io: Change default root filesystem type from passthroughfs to memfs Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_path
Patch Set: Created 5 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
Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc
index 535d16c401624a6d3bd4095adb3bb9548c25657f..13473c3f4dca61aa95dad7c2df55de48a96010df 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc
@@ -304,9 +304,9 @@ int _real_isatty(int fd, int* result) {
return REAL(isatty)(fd, result);
}
-int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t* nread) {
+int _real_getdents(int fd, struct dirent* buf, size_t count, size_t* nread) {
CHECK_REAL(getdents);
- return REAL(getdents)(fd, static_cast<dirent*>(nacl_buf), nacl_count, nread);
+ return REAL(getdents)(fd, buf, count, nread);
}
int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset) {

Powered by Google App Engine
This is Rietveld 408576698