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 #ifndef __ASSEMBLY__ 13b8b572e1SStephen Rothwell 14b8b572e1SStephen Rothwell #include <linux/types.h> 15b8b572e1SStephen Rothwell #include <linux/compiler.h> 16b8b572e1SStephen Rothwell #include <linux/linkage.h> 17b8b572e1SStephen Rothwell 1882b355d1SArnd Bergmann #define __ARCH_WANT_NEW_STAT 19b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_READDIR 20b8b572e1SStephen Rothwell #define __ARCH_WANT_STAT64 21b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_ALARM 22b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETHOSTNAME 23baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC 24b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_PAUSE 25b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGNAL 26d33c577cSArnd Bergmann #define __ARCH_WANT_SYS_TIME32 27d33c577cSArnd Bergmann #define __ARCH_WANT_SYS_UTIME32 28b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_WAITPID 29b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SOCKETCALL 30b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_FADVISE64 31b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETPGRP 329e62ccecSMichal Suchanek #define __ARCH_WANT_SYS_LLSEEK 33b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NICE 34b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLD_GETRLIMIT 355cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME 36b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT 37b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING 38b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK 39b8b572e1SStephen Rothwell #ifdef CONFIG_PPC32 40b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_STAT 41fd69d544SChristophe Leroy #define __ARCH_WANT_SYS_OLD_SELECT 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 47f18ed30dSGuo Ren #define __ARCH_WANT_COMPAT_STAT 48*c2e7a198SRohan McLure #define __ARCH_WANT_COMPAT_FALLOCATE 498f9c0119SCatalin Marinas #define __ARCH_WANT_COMPAT_SYS_SENDFILE 50b8b572e1SStephen Rothwell #endif 510bcfe540SAl Viro #define __ARCH_WANT_SYS_FORK 520bcfe540SAl Viro #define __ARCH_WANT_SYS_VFORK 530bcfe540SAl Viro #define __ARCH_WANT_SYS_CLONE 54b8b572e1SStephen Rothwell 55b8b572e1SStephen Rothwell #endif /* __ASSEMBLY__ */ 56b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_UNISTD_H_ */ 57