unistd.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * include/asm-xtensa/unistd.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #include <uapi/asm/unistd.h>
  11. /*
  12. * "Conditional" syscalls
  13. *
  14. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  15. * but it doesn't work on all toolchains, so we just do it by hand
  16. */
  17. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
  18. #define __ARCH_WANT_STAT64
  19. #define __ARCH_WANT_SYS_UTIME
  20. #define __ARCH_WANT_SYS_LLSEEK
  21. #define __ARCH_WANT_SYS_RT_SIGACTION
  22. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  23. #define __ARCH_WANT_SYS_GETPGRP
  24. /*
  25. * Ignore legacy system calls in the checksyscalls.sh script
  26. */
  27. #define __IGNORE_fork /* use clone */
  28. #define __IGNORE_time
  29. #define __IGNORE_alarm /* use setitimer */
  30. #define __IGNORE_pause
  31. #define __IGNORE_mmap /* use mmap2 */
  32. #define __IGNORE_vfork /* use clone */
  33. #define __IGNORE_fadvise64 /* use fadvise64_64 */