unistd.h 1.2 KB

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