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

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

Issue 433193002: [NaCl SDK] nacl_io: Remove unneeded glibc syscall entry points. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 1236e5da161f5de0fb75966afded3b66ea1cce70..e992c2784b6fc458991d2607d47a1eed796270e4 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
@@ -311,7 +311,8 @@ int _real_lseek(int fd, off_t offset, int whence, off_t* new_offset) {
}
int _real_mkdir(const char* pathname, mode_t mode) {
- return ENOSYS;
+ CHECK_REAL(mkdir);
+ return REAL(mkdir)(pathname, mode);
}
int _real_mmap(void** addr,
@@ -344,7 +345,8 @@ int _real_read(int fd, void* buf, size_t count, size_t* nread) {
}
int _real_rmdir(const char* pathname) {
- return ENOSYS;
+ CHECK_REAL(rmdir);
+ return REAL(rmdir)(pathname);
}
int _real_write(int fd, const void* buf, size_t count, size_t* nwrote) {

Powered by Google App Engine
This is Rietveld 408576698