unistd.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
  7. * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
  8. *
  9. * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
  10. * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
  11. */
  12. #ifndef _ASM_UNISTD_H
  13. #define _ASM_UNISTD_H
  14. #include <uapi/asm/unistd.h>
  15. #ifndef __ASSEMBLY__
  16. #define __ARCH_OMIT_COMPAT_SYS_GETDENTS64
  17. #define __ARCH_WANT_OLD_READDIR
  18. #define __ARCH_WANT_SYS_ALARM
  19. #define __ARCH_WANT_SYS_GETHOSTNAME
  20. #define __ARCH_WANT_SYS_IPC
  21. #define __ARCH_WANT_SYS_PAUSE
  22. #define __ARCH_WANT_SYS_SGETMASK
  23. #define __ARCH_WANT_SYS_UTIME
  24. #define __ARCH_WANT_SYS_WAITPID
  25. #define __ARCH_WANT_SYS_SOCKETCALL
  26. #define __ARCH_WANT_SYS_GETPGRP
  27. #define __ARCH_WANT_SYS_LLSEEK
  28. #define __ARCH_WANT_SYS_NICE
  29. #define __ARCH_WANT_SYS_OLD_GETRLIMIT
  30. #define __ARCH_WANT_SYS_OLD_UNAME
  31. #define __ARCH_WANT_SYS_OLDUMOUNT
  32. #define __ARCH_WANT_SYS_SIGPENDING
  33. #define __ARCH_WANT_SYS_SIGPROCMASK
  34. #define __ARCH_WANT_SYS_RT_SIGACTION
  35. # ifdef CONFIG_32BIT
  36. # define __ARCH_WANT_STAT64
  37. # define __ARCH_WANT_SYS_TIME
  38. # endif
  39. # ifdef CONFIG_MIPS32_O32
  40. # define __ARCH_WANT_COMPAT_SYS_TIME
  41. # endif
  42. #define __ARCH_WANT_SYS_FORK
  43. #define __ARCH_WANT_SYS_CLONE
  44. /* whitelists for checksyscalls */
  45. #define __IGNORE_select
  46. #define __IGNORE_vfork
  47. #define __IGNORE_time
  48. #define __IGNORE_uselib
  49. #define __IGNORE_fadvise64_64
  50. #define __IGNORE_getdents64
  51. #if _MIPS_SIM == _MIPS_SIM_NABI32
  52. #define __IGNORE_truncate64
  53. #define __IGNORE_ftruncate64
  54. #define __IGNORE_stat64
  55. #define __IGNORE_lstat64
  56. #define __IGNORE_fstat64
  57. #define __IGNORE_fstatat64
  58. #endif
  59. #endif /* !__ASSEMBLY__ */
  60. /*
  61. * "Conditional" syscalls
  62. *
  63. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  64. * but it doesn't work on all toolchains, so we just do it by hand
  65. */
  66. #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")
  67. #endif /* _ASM_UNISTD_H */