unistd.h 847 B

1234567891011121314151617181920212223242526272829303132
  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_GETPGRP
  16. /*
  17. * Ignore legacy system calls in the checksyscalls.sh script
  18. */
  19. #define __IGNORE_fork /* use clone */
  20. #define __IGNORE_time
  21. #define __IGNORE_alarm /* use setitimer */
  22. #define __IGNORE_pause
  23. #define __IGNORE_mmap /* use mmap2 */
  24. #define __IGNORE_vfork /* use clone */
  25. #define __IGNORE_fadvise64 /* use fadvise64_64 */
  26. #endif /* _XTENSA_UNISTD_H */