From 1fcbd1764ed41a1f857052dae1981f24d4bd33ae Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 13:24:16 +0200 Subject: umask.c: umask always succeeds, use _syscall_noerr1 Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/umask.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/common/umask.c b/libc/sysdeps/linux/common/umask.c index b838e1731..b558885c1 100644 --- a/libc/sysdeps/linux/common/umask.c +++ b/libc/sysdeps/linux/common/umask.c @@ -10,10 +10,4 @@ #include #include -#define __NR___syscall_umask __NR_umask -static __inline__ _syscall1(__kernel_mode_t, __syscall_umask, __kernel_mode_t, mode) - -mode_t umask(mode_t mode) -{ - return __syscall_umask(mode); -} +_syscall_noerr1(mode_t, umask, mode_t, mode) -- cgit v1.2.3