unistd.h 1.5 KB

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