unistd.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifdef __KERNEL__
  2. # ifdef CONFIG_SUPERH32
  3. # include "unistd_32.h"
  4. # define __ARCH_WANT_SYS_RT_SIGSUSPEND
  5. # else
  6. # include "unistd_64.h"
  7. # endif
  8. # define __ARCH_WANT_IPC_PARSE_VERSION
  9. # define __ARCH_WANT_OLD_READDIR
  10. # define __ARCH_WANT_OLD_STAT
  11. # define __ARCH_WANT_STAT64
  12. # define __ARCH_WANT_SYS_ALARM
  13. # define __ARCH_WANT_SYS_GETHOSTNAME
  14. # define __ARCH_WANT_SYS_IPC
  15. # define __ARCH_WANT_SYS_PAUSE
  16. # define __ARCH_WANT_SYS_SGETMASK
  17. # define __ARCH_WANT_SYS_SIGNAL
  18. # define __ARCH_WANT_SYS_TIME
  19. # define __ARCH_WANT_SYS_UTIME
  20. # define __ARCH_WANT_SYS_WAITPID
  21. # define __ARCH_WANT_SYS_SOCKETCALL
  22. # define __ARCH_WANT_SYS_FADVISE64
  23. # define __ARCH_WANT_SYS_GETPGRP
  24. # define __ARCH_WANT_SYS_LLSEEK
  25. # define __ARCH_WANT_SYS_NICE
  26. # define __ARCH_WANT_SYS_OLD_GETRLIMIT
  27. # define __ARCH_WANT_SYS_OLD_UNAME
  28. # define __ARCH_WANT_SYS_OLDUMOUNT
  29. # define __ARCH_WANT_SYS_SIGPENDING
  30. # define __ARCH_WANT_SYS_SIGPROCMASK
  31. # define __ARCH_WANT_SYS_RT_SIGACTION
  32. /*
  33. * "Conditional" syscalls
  34. *
  35. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  36. * but it doesn't work on all toolchains, so we just do it by hand
  37. */
  38. # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  39. #else
  40. # ifdef __SH5__
  41. # include "unistd_64.h"
  42. # else
  43. # include "unistd_32.h"
  44. # endif
  45. #endif