unistd.h 1.2 KB

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