2017-11-01 22:08:43 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2012-12-17 21:47:09 +08:00
|
|
|
#ifndef _UAPI_ALPHA_UNISTD_H
|
|
|
|
#define _UAPI_ALPHA_UNISTD_H
|
|
|
|
|
alpha: update syscall macro definitions
Other architectures commonly use __NR_umount2 for sys_umount,
only ia64 and alpha use __NR_umount here. In order to synchronize
the generated tables, use umount2 like everyone else, and add back
the old name from asm/unistd.h for compatibility.
For shmat, alpha uses the osf_shmat name, we can do the same thing
here, which means we don't have to add an entry in the __IGNORE
list now that shmat is mandatory everywhere
alarm, creat, pause, time, and utime are optional everywhere
these days, no need to list them here any more.
I considered also adding the regular versions of the get*id system
calls that have different names and calling conventions on alpha,
which would further help unify the syscall ABI, but for now
I decided against that.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2018-12-30 22:16:48 +08:00
|
|
|
/* 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
|
|
|
|
|
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>
2019-01-11 22:09:11 +08:00
|
|
|
/* 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
|
|
|
|
|
2018-11-13 17:31:53 +08:00
|
|
|
#include <asm/unistd_32.h>
|
2018-11-13 17:31:51 +08:00
|
|
|
|
2012-12-17 21:47:09 +08:00
|
|
|
#endif /* _UAPI_ALPHA_UNISTD_H */
|