OSDN Git Service

alpha: add generic get{eg,eu,g,p,u,pp}id() syscalls
authorArnd Bergmann <arnd@arndb.de>
Fri, 11 Jan 2019 14:09:11 +0000 (15:09 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 25 Jan 2019 16:22:51 +0000 (17:22 +0100)
commitecf7e0a4ad1528710c90f0a6f4285741ac525f6e
tree75f7ed5694cd10f3860b80c877551258b0307047
parent6691f16ae7624bb87beeafd8950373e015cd5e71
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>
arch/alpha/include/asm/unistd.h
arch/alpha/include/uapi/asm/unistd.h
arch/alpha/kernel/syscalls/syscall.tbl