12874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2b8b572e1SStephen Rothwell /* 3b8b572e1SStephen Rothwell * This file contains the system call numbers. 4b8b572e1SStephen Rothwell */ 5c3617f72SDavid Howells #ifndef _ASM_POWERPC_UNISTD_H_ 6c3617f72SDavid Howells #define _ASM_POWERPC_UNISTD_H_ 7b8b572e1SStephen Rothwell 8c3617f72SDavid Howells #include <uapi/asm/unistd.h> 9b8b572e1SStephen Rothwell 108a19eeeaSFiroz Khan #define NR_syscalls __NR_syscalls 11b8b572e1SStephen Rothwell 12b8b572e1SStephen Rothwell #define __NR__exit __NR_exit 13b8b572e1SStephen Rothwell 14b8b572e1SStephen Rothwell #ifndef __ASSEMBLY__ 15b8b572e1SStephen Rothwell 16b8b572e1SStephen Rothwell #include <linux/types.h> 17b8b572e1SStephen Rothwell #include <linux/compiler.h> 18b8b572e1SStephen Rothwell #include <linux/linkage.h> 19b8b572e1SStephen Rothwell 2082b355d1SArnd Bergmann #define __ARCH_WANT_NEW_STAT 21b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_READDIR 22b8b572e1SStephen Rothwell #define __ARCH_WANT_STAT64 23b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_ALARM 24b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETHOSTNAME 25baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC 26b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_PAUSE 27b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGNAL 28d33c577cSArnd Bergmann #define __ARCH_WANT_SYS_TIME32 29d33c577cSArnd Bergmann #define __ARCH_WANT_SYS_UTIME32 30b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_WAITPID 31b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SOCKETCALL 32b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_FADVISE64 33b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETPGRP 34b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NICE 35b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLD_GETRLIMIT 365cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME 37b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT 38b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING 39b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK 40b8b572e1SStephen Rothwell #ifdef CONFIG_PPC32 41b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_STAT 42b8b572e1SStephen Rothwell #endif 43b8b572e1SStephen Rothwell #ifdef CONFIG_PPC64 44d33c577cSArnd Bergmann #define __ARCH_WANT_SYS_TIME 45d33c577cSArnd Bergmann #define __ARCH_WANT_SYS_UTIME 46b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NEWFSTATAT 478f9c0119SCatalin Marinas #define __ARCH_WANT_COMPAT_SYS_SENDFILE 48b8b572e1SStephen Rothwell #endif 490bcfe540SAl Viro #define __ARCH_WANT_SYS_FORK 500bcfe540SAl Viro #define __ARCH_WANT_SYS_VFORK 510bcfe540SAl Viro #define __ARCH_WANT_SYS_CLONE 52*cee3536dSMichael Ellerman #define __ARCH_WANT_SYS_CLONE3 53b8b572e1SStephen Rothwell 54b8b572e1SStephen Rothwell #endif /* __ASSEMBLY__ */ 55b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_UNISTD_H_ */ 56