aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/include/uapi
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-01-11 15:09:11 +0100
committerArnd Bergmann <arnd@arndb.de>2019-01-25 17:22:51 +0100
commitecf7e0a4ad1528710c90f0a6f4285741ac525f6e (patch)
tree75f7ed5694cd10f3860b80c877551258b0307047 /arch/alpha/include/uapi
parentalpha: add standard statfs64/fstatfs64 syscalls (diff)
downloadlinux-dev-ecf7e0a4ad1528710c90f0a6f4285741ac525f6e.tar.xz
linux-dev-ecf7e0a4ad1528710c90f0a6f4285741ac525f6e.zip
alpha: add generic get{eg,eu,g,p,u,pp}id() syscalls
Alpha has traditionally followed the OSF1 calling conventions here, with its getxpid, getxuid, getxgid system calls returning two different values in separate registers. Following what glibc has done here, we can define getpid, getuid and getgid to be aliases for getxpid, getxuid and getxgid respectively, and add new system call numbers for getppid, geteuid and getegid. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/alpha/include/uapi')
-rw-r--r--arch/alpha/include/uapi/asm/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/alpha/include/uapi/asm/unistd.h b/arch/alpha/include/uapi/asm/unistd.h
index 4507071f995f..71fd5db06866 100644
--- a/arch/alpha/include/uapi/asm/unistd.h
+++ b/arch/alpha/include/uapi/asm/unistd.h
@@ -7,6 +7,11 @@
#define __NR_umount __NR_umount2
#define __NR_osf_shmat __NR_shmat
+/* These return an extra value but can be used as aliases */
+#define __NR_getpid __NR_getxpid
+#define __NR_getuid __NR_getxuid
+#define __NR_getgid __NR_getxgid
+
#include <asm/unistd_32.h>
#endif /* _UAPI_ALPHA_UNISTD_H */