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

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

Issue 1127103006: nacl_io: Add glibc IRT redirect for rename syscall (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc
index 308a0929ba48e93a4a40e436112b47eedf4a2922..158c52a4f8992ac4d9b3793eb8fff957100dd5a9 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc
@@ -175,6 +175,7 @@ EXTERN_C_BEGIN
OP(fdatasync); \
OP(lstat); \
OP(link); \
+ OP(rename); \
OP(readlink); \
OP(utimes);
@@ -348,6 +349,10 @@ int WRAP(link)(const char* pathname, const char* newpath) {
ERRNO_RTN(ki_link(pathname, newpath));
}
+int WRAP(rename)(const char* pathname, const char* newpath) {
+ ERRNO_RTN(ki_rename(pathname, newpath));
+}
+
int WRAP(readlink)(const char* pathname,
char* buf,
size_t count,
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698