unistd.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * This file contains the system call numbers.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. #ifndef _ASM_POWERPC_UNISTD_H_
  10. #define _ASM_POWERPC_UNISTD_H_
  11. #include <uapi/asm/unistd.h>
  12. #define __NR_syscalls 355
  13. #define __NR__exit __NR_exit
  14. #define NR_syscalls __NR_syscalls
  15. #ifndef __ASSEMBLY__
  16. #include <linux/types.h>
  17. #include <linux/compiler.h>
  18. #include <linux/linkage.h>
  19. #define __ARCH_WANT_OLD_READDIR
  20. #define __ARCH_WANT_STAT64
  21. #define __ARCH_WANT_SYS_ALARM
  22. #define __ARCH_WANT_SYS_GETHOSTNAME
  23. #define __ARCH_WANT_SYS_IPC
  24. #define __ARCH_WANT_SYS_PAUSE
  25. #define __ARCH_WANT_SYS_SGETMASK
  26. #define __ARCH_WANT_SYS_SIGNAL
  27. #define __ARCH_WANT_SYS_TIME
  28. #define __ARCH_WANT_SYS_UTIME
  29. #define __ARCH_WANT_SYS_WAITPID
  30. #define __ARCH_WANT_SYS_SOCKETCALL
  31. #define __ARCH_WANT_SYS_FADVISE64
  32. #define __ARCH_WANT_SYS_GETPGRP
  33. #define __ARCH_WANT_SYS_LLSEEK
  34. #define __ARCH_WANT_SYS_NICE
  35. #define __ARCH_WANT_SYS_OLD_GETRLIMIT
  36. #define __ARCH_WANT_SYS_OLD_UNAME
  37. #define __ARCH_WANT_SYS_OLDUMOUNT
  38. #define __ARCH_WANT_SYS_SIGPENDING
  39. #define __ARCH_WANT_SYS_SIGPROCMASK
  40. #ifdef CONFIG_PPC32
  41. #define __ARCH_WANT_OLD_STAT
  42. #endif
  43. #ifdef CONFIG_PPC64
  44. #define __ARCH_WANT_COMPAT_SYS_TIME
  45. #define __ARCH_WANT_SYS_NEWFSTATAT
  46. #define __ARCH_WANT_COMPAT_SYS_SENDFILE
  47. #endif
  48. #define __ARCH_WANT_SYS_FORK
  49. #define __ARCH_WANT_SYS_VFORK
  50. #define __ARCH_WANT_SYS_CLONE
  51. /*
  52. * "Conditional" syscalls
  53. */
  54. #define cond_syscall(x) \
  55. asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))
  56. #endif /* __ASSEMBLY__ */
  57. #endif /* _ASM_POWERPC_UNISTD_H_ */