unistd.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef _ASM_M32R_UNISTD_H
  2. #define _ASM_M32R_UNISTD_H
  3. #include <uapi/asm/unistd.h>
  4. #define NR_syscalls 326
  5. #define __ARCH_WANT_STAT64
  6. #define __ARCH_WANT_SYS_ALARM
  7. #define __ARCH_WANT_SYS_GETHOSTNAME
  8. #define __ARCH_WANT_SYS_IPC
  9. #define __ARCH_WANT_SYS_PAUSE
  10. #define __ARCH_WANT_SYS_TIME
  11. #define __ARCH_WANT_SYS_UTIME
  12. #define __ARCH_WANT_SYS_WAITPID
  13. #define __ARCH_WANT_SYS_SOCKETCALL
  14. #define __ARCH_WANT_SYS_FADVISE64
  15. #define __ARCH_WANT_SYS_GETPGRP
  16. #define __ARCH_WANT_SYS_LLSEEK
  17. #define __ARCH_WANT_SYS_OLD_GETRLIMIT /*will be unused*/
  18. #define __ARCH_WANT_SYS_OLDUMOUNT
  19. #define __ARCH_WANT_SYS_RT_SIGACTION
  20. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  21. #define __ARCH_WANT_SYS_CLONE
  22. #define __ARCH_WANT_SYS_FORK
  23. #define __ARCH_WANT_SYS_VFORK
  24. #define __IGNORE_lchown
  25. #define __IGNORE_setuid
  26. #define __IGNORE_getuid
  27. #define __IGNORE_setgid
  28. #define __IGNORE_getgid
  29. #define __IGNORE_geteuid
  30. #define __IGNORE_getegid
  31. #define __IGNORE_fcntl
  32. #define __IGNORE_setreuid
  33. #define __IGNORE_setregid
  34. #define __IGNORE_getrlimit
  35. #define __IGNORE_getgroups
  36. #define __IGNORE_setgroups
  37. #define __IGNORE_select
  38. #define __IGNORE_mmap
  39. #define __IGNORE_fchown
  40. #define __IGNORE_setfsuid
  41. #define __IGNORE_setfsgid
  42. #define __IGNORE_setresuid
  43. #define __IGNORE_getresuid
  44. #define __IGNORE_setresgid
  45. #define __IGNORE_getresgid
  46. #define __IGNORE_chown
  47. /*
  48. * "Conditional" syscalls
  49. *
  50. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  51. * but it doesn't work on all toolchains, so we just do it by hand
  52. */
  53. #ifndef cond_syscall
  54. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  55. #endif
  56. #endif /* _ASM_M32R_UNISTD_H */