unistd.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. # ifndef CONFIG_64BIT
  41. # define __ARCH_WANT_STAT64
  42. # define __ARCH_WANT_SYS_TIME
  43. # endif
  44. # ifdef CONFIG_COMPAT
  45. # define __ARCH_WANT_COMPAT_SYS_TIME
  46. # endif
  47. #define __ARCH_WANT_SYS_FORK
  48. #define __ARCH_WANT_SYS_VFORK
  49. #define __ARCH_WANT_SYS_CLONE
  50. /*
  51. * "Conditional" syscalls
  52. *
  53. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  54. * but it doesn't work on all toolchains, so we just do it by hand
  55. */
  56. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  57. #endif /* _ASM_S390_UNISTD_H_ */