unistd.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * arch/arm/include/asm/unistd.h
  3. *
  4. * Copyright (C) 2001-2005 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
  11. * no matter what the change is. Thanks!
  12. */
  13. #ifndef __ASM_ARM_UNISTD_H
  14. #define __ASM_ARM_UNISTD_H
  15. #include <uapi/asm/unistd.h>
  16. #define __NR_syscalls (380)
  17. #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
  18. #define __ARCH_WANT_STAT64
  19. #define __ARCH_WANT_SYS_GETHOSTNAME
  20. #define __ARCH_WANT_SYS_PAUSE
  21. #define __ARCH_WANT_SYS_GETPGRP
  22. #define __ARCH_WANT_SYS_LLSEEK
  23. #define __ARCH_WANT_SYS_NICE
  24. #define __ARCH_WANT_SYS_SIGPENDING
  25. #define __ARCH_WANT_SYS_SIGPROCMASK
  26. #define __ARCH_WANT_SYS_RT_SIGACTION
  27. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  28. #define __ARCH_WANT_SYS_OLD_MMAP
  29. #define __ARCH_WANT_SYS_OLD_SELECT
  30. #if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT)
  31. #define __ARCH_WANT_SYS_TIME
  32. #define __ARCH_WANT_SYS_IPC
  33. #define __ARCH_WANT_SYS_OLDUMOUNT
  34. #define __ARCH_WANT_SYS_ALARM
  35. #define __ARCH_WANT_SYS_UTIME
  36. #define __ARCH_WANT_SYS_OLD_GETRLIMIT
  37. #define __ARCH_WANT_OLD_READDIR
  38. #define __ARCH_WANT_SYS_SOCKETCALL
  39. #endif
  40. #define __ARCH_WANT_SYS_FORK
  41. #define __ARCH_WANT_SYS_VFORK
  42. #define __ARCH_WANT_SYS_CLONE
  43. /*
  44. * "Conditional" syscalls
  45. *
  46. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  47. * but it doesn't work on all toolchains, so we just do it by hand
  48. */
  49. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  50. /*
  51. * Unimplemented (or alternatively implemented) syscalls
  52. */
  53. #define __IGNORE_fadvise64_64
  54. #define __IGNORE_migrate_pages
  55. #define __IGNORE_kcmp
  56. #endif /* __ASM_ARM_UNISTD_H */