unistd.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * S390 version
  3. *
  4. * Derived from "include/asm-i386/unistd.h"
  5. */
  6. #ifndef _ASM_S390_UNISTD_H_
  7. #define _ASM_S390_UNISTD_H_
  8. #include <uapi/asm/unistd.h>
  9. #ifndef CONFIG_64BIT
  10. #define __IGNORE_select
  11. #else
  12. #define __IGNORE_time
  13. #endif
  14. /* Ignore NUMA system calls. Not wired up on s390. */
  15. #define __IGNORE_mbind
  16. #define __IGNORE_get_mempolicy
  17. #define __IGNORE_set_mempolicy
  18. #define __IGNORE_migrate_pages
  19. #define __IGNORE_move_pages
  20. /* Ignore system calls that are also reachable via sys_socket */
  21. #define __IGNORE_recvmmsg
  22. #define __IGNORE_sendmmsg
  23. #define __ARCH_WANT_OLD_READDIR
  24. #define __ARCH_WANT_SYS_ALARM
  25. #define __ARCH_WANT_SYS_GETHOSTNAME
  26. #define __ARCH_WANT_SYS_PAUSE
  27. #define __ARCH_WANT_SYS_SIGNAL
  28. #define __ARCH_WANT_SYS_UTIME
  29. #define __ARCH_WANT_SYS_SOCKETCALL
  30. #define __ARCH_WANT_SYS_IPC
  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_MMAP
  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. # ifndef CONFIG_64BIT
  43. # define __ARCH_WANT_STAT64
  44. # define __ARCH_WANT_SYS_TIME
  45. # endif
  46. # ifdef CONFIG_COMPAT
  47. # define __ARCH_WANT_COMPAT_SYS_TIME
  48. # define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
  49. # endif
  50. #define __ARCH_WANT_SYS_EXECVE
  51. #define __ARCH_WANT_SYS_FORK
  52. #define __ARCH_WANT_SYS_VFORK
  53. #define __ARCH_WANT_SYS_CLONE
  54. /*
  55. * "Conditional" syscalls
  56. *
  57. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  58. * but it doesn't work on all toolchains, so we just do it by hand
  59. */
  60. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  61. #endif /* _ASM_S390_UNISTD_H_ */