unistd.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * System calls under the Sparc.
  3. *
  4. * Don't be scared by the ugly clobbers, it is the only way I can
  5. * think of right now to force the arguments into fixed registers
  6. * before the trap into the system call with gcc 'asm' statements.
  7. *
  8. * Copyright (C) 1995, 2007 David S. Miller ([email protected])
  9. *
  10. * SunOS compatibility based upon preliminary work which is:
  11. *
  12. * Copyright (C) 1995 Adrian M. Rodriguez ([email protected])
  13. */
  14. #ifndef _SPARC_UNISTD_H
  15. #define _SPARC_UNISTD_H
  16. #include <uapi/asm/unistd.h>
  17. #ifdef __32bit_syscall_numbers__
  18. #else
  19. #define __NR_time 231 /* Linux sparc32 */
  20. #endif
  21. #define __ARCH_WANT_OLD_READDIR
  22. #define __ARCH_WANT_STAT64
  23. #define __ARCH_WANT_SYS_ALARM
  24. #define __ARCH_WANT_SYS_GETHOSTNAME
  25. #define __ARCH_WANT_SYS_PAUSE
  26. #define __ARCH_WANT_SYS_SIGNAL
  27. #define __ARCH_WANT_SYS_TIME
  28. #define __ARCH_WANT_SYS_UTIME
  29. #define __ARCH_WANT_SYS_WAITPID
  30. #define __ARCH_WANT_SYS_SOCKETCALL
  31. #define __ARCH_WANT_SYS_FADVISE64
  32. #define __ARCH_WANT_SYS_GETPGRP
  33. #define __ARCH_WANT_SYS_LLSEEK
  34. #define __ARCH_WANT_SYS_NICE
  35. #define __ARCH_WANT_SYS_OLDUMOUNT
  36. #define __ARCH_WANT_SYS_SIGPENDING
  37. #define __ARCH_WANT_SYS_SIGPROCMASK
  38. #ifdef __32bit_syscall_numbers__
  39. #define __ARCH_WANT_SYS_IPC
  40. #else
  41. #define __ARCH_WANT_COMPAT_SYS_TIME
  42. #define __ARCH_WANT_COMPAT_SYS_SENDFILE
  43. #endif
  44. #endif /* _SPARC_UNISTD_H */