unistd.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _ASM_CRIS_UNISTD_H_
  2. #define _ASM_CRIS_UNISTD_H_
  3. #include <uapi/asm/unistd.h>
  4. #define NR_syscalls 336
  5. #include <arch/unistd.h>
  6. #define __ARCH_WANT_OLD_READDIR
  7. #define __ARCH_WANT_OLD_STAT
  8. #define __ARCH_WANT_STAT64
  9. #define __ARCH_WANT_SYS_ALARM
  10. #define __ARCH_WANT_SYS_GETHOSTNAME
  11. #define __ARCH_WANT_SYS_IPC
  12. #define __ARCH_WANT_SYS_PAUSE
  13. #define __ARCH_WANT_SYS_SGETMASK
  14. #define __ARCH_WANT_SYS_SIGNAL
  15. #define __ARCH_WANT_SYS_TIME
  16. #define __ARCH_WANT_SYS_UTIME
  17. #define __ARCH_WANT_SYS_WAITPID
  18. #define __ARCH_WANT_SYS_SOCKETCALL
  19. #define __ARCH_WANT_SYS_FADVISE64
  20. #define __ARCH_WANT_SYS_GETPGRP
  21. #define __ARCH_WANT_SYS_LLSEEK
  22. #define __ARCH_WANT_SYS_NICE
  23. #define __ARCH_WANT_SYS_OLD_GETRLIMIT
  24. #define __ARCH_WANT_SYS_OLD_MMAP
  25. #define __ARCH_WANT_SYS_OLDUMOUNT
  26. #define __ARCH_WANT_SYS_SIGPENDING
  27. #define __ARCH_WANT_SYS_SIGPROCMASK
  28. #define __ARCH_WANT_SYS_RT_SIGACTION
  29. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  30. #define __ARCH_WANT_SYS_FORK
  31. #define __ARCH_WANT_SYS_VFORK
  32. #define __ARCH_WANT_SYS_CLONE
  33. /*
  34. * "Conditional" syscalls
  35. *
  36. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  37. * but it doesn't work on all toolchains, so we just do it by hand
  38. */
  39. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  40. #endif /* _ASM_CRIS_UNISTD_H_ */