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

Unified Diff: sysdeps/nacl/umount.c

Issue 7737022: Change make-syscalls.sh to make syscall interception possible. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: base => name Created 9 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
« no previous file with comments | « sysdeps/nacl/sysdep.h ('k') | sysdeps/nacl/unimpl_syscall.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/umount.c
diff --git a/sysdeps/nacl/umount.c b/sysdeps/nacl/umount.c
index 3bc733c4da37cfc219b32085d97d7ce1733563e3..aca020a1bf5891f07debb97c00b15e950bf04a51 100644
--- a/sysdeps/nacl/umount.c
+++ b/sysdeps/nacl/umount.c
@@ -7,18 +7,19 @@
TODO(pasko): find a better way for an override. */
-int __unimplemented_syscall(const char *name);
-
-int __umount (void);
-libc_hidden_proto (__umount);
-int __umount (void)
-{
- return __unimplemented_syscall ("umount");
+#define __umount __umount_RENAMED
+#define umount umount_RENAMED
+#include <sysdep.h>
+#undef __umount
+#undef umount
+int __umount ( ); /* i:s */
+libc_hidden_proto (__umount)
+int __umount (char *s1) {
+ return INLINE_SYSCALL (umount, 1, s1);
}
-strong_alias (__umount, __umount_nocancel);
-libc_hidden_def (__umount);
-
-int umount (void);
-libc_hidden_proto (umount);
-weak_alias (__umount, umount);
-libc_hidden_weak (umount);
+strong_alias (__umount, __umount_nocancel)
+libc_hidden_def (__umount)
+int umount ( );
+libc_hidden_proto (umount)
+weak_alias (__umount, umount)
+libc_hidden_weak (umount)
« no previous file with comments | « sysdeps/nacl/sysdep.h ('k') | sysdeps/nacl/unimpl_syscall.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698