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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 1
2 /* This file overrides sysdeps/nacl/syscalls.list for x86-32 and x86-64 NaCl. 2 /* This file overrides sysdeps/nacl/syscalls.list for x86-32 and x86-64 NaCl.
3 Also make_sysd_rules.py explicitly enforces the override. It's because 3 Also make_sysd_rules.py explicitly enforces the override. It's because
4 x86-64 build requires umount.o but does not generate a rule to compile it: no 4 x86-64 build requires umount.o but does not generate a rule to compile it: no
5 relevant entry in sysd-syscalls. With no entry in syscalls.list the x64-32 5 relevant entry in sysd-syscalls. With no entry in syscalls.list the x64-32
6 build picks an umount.S that it fails to compile. 6 build picks an umount.S that it fails to compile.
7 7
8 TODO(pasko): find a better way for an override. */ 8 TODO(pasko): find a better way for an override. */
9 9
10 int __unimplemented_syscall(const char *name); 10 #define __umount __umount_RENAMED
11 11 #define umount umount_RENAMED
12 int __umount (void); 12 #include <sysdep.h>
13 libc_hidden_proto (__umount); 13 #undef __umount
14 int __umount (void) 14 #undef umount
15 { 15 int __umount ( ); /* i:s */
16 return __unimplemented_syscall ("umount"); 16 libc_hidden_proto (__umount)
17 int __umount (char *s1) {
18 return INLINE_SYSCALL (umount, 1, s1);
17 } 19 }
18 strong_alias (__umount, __umount_nocancel); 20 strong_alias (__umount, __umount_nocancel)
19 libc_hidden_def (__umount); 21 libc_hidden_def (__umount)
20 22 int umount ( );
21 int umount (void); 23 libc_hidden_proto (umount)
22 libc_hidden_proto (umount); 24 weak_alias (__umount, umount)
23 weak_alias (__umount, umount); 25 libc_hidden_weak (umount)
24 libc_hidden_weak (umount);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698