unistd.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # ifdef CONFIG_SUPERH32
  2. # include <asm/unistd_32.h>
  3. # else
  4. # include <asm/unistd_64.h>
  5. # endif
  6. # define __ARCH_WANT_OLD_READDIR
  7. # define __ARCH_WANT_OLD_STAT
  8. # define __ARCH_WANT_STAT64
  9. # define __ARCH_WANT_SYS_ALARM
  10. # define __ARCH_WANT_SYS_GETHOSTNAME
  11. # define __ARCH_WANT_SYS_IPC
  12. # define __ARCH_WANT_SYS_PAUSE
  13. # define __ARCH_WANT_SYS_SGETMASK
  14. # define __ARCH_WANT_SYS_SIGNAL
  15. # define __ARCH_WANT_SYS_TIME
  16. # define __ARCH_WANT_SYS_UTIME
  17. # define __ARCH_WANT_SYS_WAITPID
  18. # define __ARCH_WANT_SYS_SOCKETCALL
  19. # define __ARCH_WANT_SYS_FADVISE64
  20. # define __ARCH_WANT_SYS_GETPGRP
  21. # define __ARCH_WANT_SYS_LLSEEK
  22. # define __ARCH_WANT_SYS_NICE
  23. # define __ARCH_WANT_SYS_OLD_GETRLIMIT
  24. # define __ARCH_WANT_SYS_OLD_UNAME
  25. # define __ARCH_WANT_SYS_OLDUMOUNT
  26. # define __ARCH_WANT_SYS_SIGPENDING
  27. # define __ARCH_WANT_SYS_SIGPROCMASK
  28. # define __ARCH_WANT_SYS_FORK
  29. # define __ARCH_WANT_SYS_VFORK
  30. # define __ARCH_WANT_SYS_CLONE
  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. #include <uapi/asm/unistd.h>