mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 02:26:44 +07:00
ecf7e0a4ad
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>
18 lines
516 B
C
18 lines
516 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_ALPHA_UNISTD_H
|
|
#define _UAPI_ALPHA_UNISTD_H
|
|
|
|
/* These are traditionally the names linux-alpha uses for
|
|
* the two otherwise generic system calls */
|
|
#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 */
|