unistd.h 922 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _XTENSA_UNISTD_H
  2. #define _XTENSA_UNISTD_H
  3. #define __ARCH_WANT_SYS_CLONE
  4. #include <uapi/asm/unistd.h>
  5. /*
  6. * "Conditional" syscalls
  7. *
  8. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  9. * but it doesn't work on all toolchains, so we just do it by hand
  10. */
  11. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
  12. #define __ARCH_WANT_STAT64
  13. #define __ARCH_WANT_SYS_UTIME
  14. #define __ARCH_WANT_SYS_LLSEEK
  15. #define __ARCH_WANT_SYS_RT_SIGACTION
  16. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  17. #define __ARCH_WANT_SYS_GETPGRP
  18. /*
  19. * Ignore legacy system calls in the checksyscalls.sh script
  20. */
  21. #define __IGNORE_fork /* use clone */
  22. #define __IGNORE_time
  23. #define __IGNORE_alarm /* use setitimer */
  24. #define __IGNORE_pause
  25. #define __IGNORE_mmap /* use mmap2 */
  26. #define __IGNORE_vfork /* use clone */
  27. #define __IGNORE_fadvise64 /* use fadvise64_64 */
  28. #endif /* _XTENSA_UNISTD_H */