unistd.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_EXECVE
  22. #define __ARCH_WANT_SYS_CLONE
  23. #define __ARCH_WANT_SYS_FORK
  24. #define __ARCH_WANT_SYS_VFORK
  25. #define __IGNORE_lchown
  26. #define __IGNORE_setuid
  27. #define __IGNORE_getuid
  28. #define __IGNORE_setgid
  29. #define __IGNORE_getgid
  30. #define __IGNORE_geteuid
  31. #define __IGNORE_getegid
  32. #define __IGNORE_fcntl
  33. #define __IGNORE_setreuid
  34. #define __IGNORE_setregid
  35. #define __IGNORE_getrlimit
  36. #define __IGNORE_getgroups
  37. #define __IGNORE_setgroups
  38. #define __IGNORE_select
  39. #define __IGNORE_mmap
  40. #define __IGNORE_fchown
  41. #define __IGNORE_setfsuid
  42. #define __IGNORE_setfsgid
  43. #define __IGNORE_setresuid
  44. #define __IGNORE_getresuid
  45. #define __IGNORE_setresgid
  46. #define __IGNORE_getresgid
  47. #define __IGNORE_chown
  48. /*
  49. * "Conditional" syscalls
  50. *
  51. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  52. * but it doesn't work on all toolchains, so we just do it by hand
  53. */
  54. #ifndef cond_syscall
  55. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  56. #endif
  57. #endif /* _ASM_M32R_UNISTD_H */