unistd.h 892 B

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