From d878dceccaff9931160250496c6cc87a8fe45811 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 21 Apr 2011 21:52:41 -0400 Subject: [PATCH] omit errno update path for syscalls that cannot fail --- src/unistd/getegid.c | 2 +- src/unistd/geteuid.c | 2 +- src/unistd/getgid.c | 2 +- src/unistd/getpgrp.c | 2 +- src/unistd/getpid.c | 2 +- src/unistd/getppid.c | 2 +- src/unistd/getuid.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/unistd/getegid.c b/src/unistd/getegid.c index 76038f63..6287490d 100644 --- a/src/unistd/getegid.c +++ b/src/unistd/getegid.c @@ -3,5 +3,5 @@ gid_t getegid(void) { - return syscall(SYS_getegid); + return __syscall(SYS_getegid); } diff --git a/src/unistd/geteuid.c b/src/unistd/geteuid.c index 187ba0a1..88f2cd53 100644 --- a/src/unistd/geteuid.c +++ b/src/unistd/geteuid.c @@ -3,5 +3,5 @@ uid_t geteuid(void) { - return syscall(SYS_geteuid); + return __syscall(SYS_geteuid); } diff --git a/src/unistd/getgid.c b/src/unistd/getgid.c index 84823103..1c9fe715 100644 --- a/src/unistd/getgid.c +++ b/src/unistd/getgid.c @@ -3,5 +3,5 @@ gid_t getgid(void) { - return syscall(SYS_getgid); + return __syscall(SYS_getgid); } diff --git a/src/unistd/getpgrp.c b/src/unistd/getpgrp.c index 02449da9..433f42e8 100644 --- a/src/unistd/getpgrp.c +++ b/src/unistd/getpgrp.c @@ -3,5 +3,5 @@ pid_t getpgrp(void) { - return syscall(SYS_getpgrp); + return __syscall(SYS_getpgrp); } diff --git a/src/unistd/getpid.c b/src/unistd/getpid.c index 4ab2b7f1..a6d4e6d1 100644 --- a/src/unistd/getpid.c +++ b/src/unistd/getpid.c @@ -3,5 +3,5 @@ pid_t getpid(void) { - return syscall(SYS_getpid); + return __syscall(SYS_getpid); } diff --git a/src/unistd/getppid.c b/src/unistd/getppid.c index 7d103207..05cade53 100644 --- a/src/unistd/getppid.c +++ b/src/unistd/getppid.c @@ -3,5 +3,5 @@ pid_t getppid(void) { - return syscall(SYS_getppid); + return __syscall(SYS_getppid); } diff --git a/src/unistd/getuid.c b/src/unistd/getuid.c index 0bf9e714..61309d1b 100644 --- a/src/unistd/getuid.c +++ b/src/unistd/getuid.c @@ -3,5 +3,5 @@ uid_t getuid(void) { - return syscall(SYS_getuid); + return __syscall(SYS_getuid); } -- 2.25.1