unistd.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #ifdef CONFIG_MIPS32_N32
  16. #define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls)
  17. #elif defined(CONFIG_64BIT)
  18. #define NR_syscalls (__NR_64_Linux + __NR_64_Linux_syscalls)
  19. #else
  20. #define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls)
  21. #endif
  22. #ifndef __ASSEMBLY__
  23. #define __ARCH_WANT_OLD_READDIR
  24. #define __ARCH_WANT_SYS_ALARM
  25. #define __ARCH_WANT_SYS_GETHOSTNAME
  26. #define __ARCH_WANT_SYS_IPC
  27. #define __ARCH_WANT_SYS_PAUSE
  28. #define __ARCH_WANT_SYS_UTIME
  29. #define __ARCH_WANT_SYS_WAITPID
  30. #define __ARCH_WANT_SYS_SOCKETCALL
  31. #define __ARCH_WANT_SYS_GETPGRP
  32. #define __ARCH_WANT_SYS_LLSEEK
  33. #define __ARCH_WANT_SYS_NICE
  34. #define __ARCH_WANT_SYS_OLD_GETRLIMIT
  35. #define __ARCH_WANT_SYS_OLD_UNAME
  36. #define __ARCH_WANT_SYS_OLDUMOUNT
  37. #define __ARCH_WANT_SYS_SIGPENDING
  38. #define __ARCH_WANT_SYS_SIGPROCMASK
  39. # ifdef CONFIG_32BIT
  40. # define __ARCH_WANT_STAT64
  41. # define __ARCH_WANT_SYS_TIME
  42. # endif
  43. # ifdef CONFIG_MIPS32_O32
  44. # define __ARCH_WANT_COMPAT_SYS_TIME
  45. # endif
  46. #define __ARCH_WANT_SYS_FORK
  47. #define __ARCH_WANT_SYS_CLONE
  48. /* whitelists for checksyscalls */
  49. #define __IGNORE_select
  50. #define __IGNORE_vfork
  51. #define __IGNORE_time
  52. #define __IGNORE_uselib
  53. #define __IGNORE_fadvise64_64
  54. #define __IGNORE_getdents64
  55. #if _MIPS_SIM == _MIPS_SIM_NABI32
  56. #define __IGNORE_truncate64
  57. #define __IGNORE_ftruncate64
  58. #define __IGNORE_stat64
  59. #define __IGNORE_lstat64
  60. #define __IGNORE_fstat64
  61. #define __IGNORE_fstatat64
  62. #endif
  63. #endif /* !__ASSEMBLY__ */
  64. #endif /* _ASM_UNISTD_H */