unistd.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * System calls under the Sparc.
  4. *
  5. * Don't be scared by the ugly clobbers, it is the only way I can
  6. * think of right now to force the arguments into fixed registers
  7. * before the trap into the system call with gcc 'asm' statements.
  8. *
  9. * Copyright (C) 1995, 2007 David S. Miller ([email protected])
  10. *
  11. * SunOS compatibility based upon preliminary work which is:
  12. *
  13. * Copyright (C) 1995 Adrian M. Rodriguez ([email protected])
  14. */
  15. #ifndef _SPARC_UNISTD_H
  16. #define _SPARC_UNISTD_H
  17. #include <uapi/asm/unistd.h>
  18. #define NR_syscalls __NR_syscalls
  19. #ifdef __32bit_syscall_numbers__
  20. #else
  21. #define __NR_time 231 /* Linux sparc32 */
  22. #endif
  23. #define __ARCH_WANT_NEW_STAT
  24. #define __ARCH_WANT_OLD_READDIR
  25. #define __ARCH_WANT_STAT64
  26. #define __ARCH_WANT_SYS_ALARM
  27. #define __ARCH_WANT_SYS_GETHOSTNAME
  28. #define __ARCH_WANT_SYS_PAUSE
  29. #define __ARCH_WANT_SYS_SIGNAL
  30. #define __ARCH_WANT_SYS_TIME32
  31. #define __ARCH_WANT_SYS_UTIME32
  32. #define __ARCH_WANT_SYS_WAITPID
  33. #define __ARCH_WANT_SYS_SOCKETCALL
  34. #define __ARCH_WANT_SYS_FADVISE64
  35. #define __ARCH_WANT_SYS_GETPGRP
  36. #define __ARCH_WANT_SYS_NICE
  37. #define __ARCH_WANT_SYS_OLDUMOUNT
  38. #define __ARCH_WANT_SYS_SIGPENDING
  39. #define __ARCH_WANT_SYS_SIGPROCMASK
  40. #ifdef __32bit_syscall_numbers__
  41. #define __ARCH_WANT_SYS_IPC
  42. #else
  43. #define __ARCH_WANT_SYS_TIME
  44. #define __ARCH_WANT_SYS_UTIME
  45. #define __ARCH_WANT_COMPAT_SYS_SENDFILE
  46. #define __ARCH_WANT_COMPAT_STAT
  47. #endif
  48. #ifdef __32bit_syscall_numbers__
  49. /* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
  50. * it never had the plain ones and there is no value to adding those
  51. * old versions into the syscall table.
  52. */
  53. #define __IGNORE_setresuid
  54. #define __IGNORE_getresuid
  55. #define __IGNORE_setresgid
  56. #define __IGNORE_getresgid
  57. #endif
  58. #endif /* _SPARC_UNISTD_H */