diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-16 13:24:16 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:39 +0200 |
commit | 1fcbd1764ed41a1f857052dae1981f24d4bd33ae (patch) | |
tree | f64fe9055def4afd511aca18e63c048b0d4aa526 /libc/sysdeps | |
parent | 78b0d99085e043890efa3a4f311bc3b5ffd43584 (diff) |
umask.c: umask always succeeds, use _syscall_noerr1
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/umask.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 <sys/syscall.h> #include <sys/stat.h> -#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) |