unistd.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 354
  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. #define __ARCH_WANT_SYS_RT_SIGACTION
  41. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  42. #ifdef CONFIG_PPC32
  43. #define __ARCH_WANT_OLD_STAT
  44. #endif
  45. #ifdef CONFIG_PPC64
  46. #define __ARCH_WANT_COMPAT_SYS_TIME
  47. #define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
  48. #define __ARCH_WANT_SYS_NEWFSTATAT
  49. #define __ARCH_WANT_COMPAT_SYS_SENDFILE
  50. #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL
  51. #endif
  52. #define __ARCH_WANT_SYS_FORK
  53. #define __ARCH_WANT_SYS_VFORK
  54. #define __ARCH_WANT_SYS_CLONE
  55. /*
  56. * "Conditional" syscalls
  57. */
  58. #define cond_syscall(x) \
  59. asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))
  60. #endif /* __ASSEMBLY__ */
  61. #endif /* _ASM_POWERPC_UNISTD_H_ */