2
0

target_fcntl.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License version 2 as
  4. * published by the Free Software Foundation, or (at your option) any
  5. * later version. See the COPYING file in the top-level directory.
  6. */
  7. #ifndef SPARC_TARGET_FCNTL_H
  8. #define SPARC_TARGET_FCNTL_H
  9. #define TARGET_O_APPEND 0x0008
  10. #define TARGET_FASYNC 0x0040 /* fcntl, for BSD compatibility */
  11. #define TARGET_O_CREAT 0x0200 /* not fcntl */
  12. #define TARGET_O_TRUNC 0x0400 /* not fcntl */
  13. #define TARGET_O_EXCL 0x0800 /* not fcntl */
  14. #define TARGET_O_DSYNC 0x2000
  15. #define TARGET_O_NONBLOCK 0x4000
  16. # ifdef TARGET_SPARC64
  17. # define TARGET_O_NDELAY 0x0004
  18. # else
  19. # define TARGET_O_NDELAY (0x0004 | TARGET_O_NONBLOCK)
  20. # endif
  21. #define TARGET_O_NOCTTY 0x8000 /* not fcntl */
  22. #define TARGET_O_LARGEFILE 0x40000
  23. #define TARGET_O_DIRECT 0x100000 /* direct disk access hint */
  24. #define TARGET_O_NOATIME 0x200000
  25. #define TARGET_O_CLOEXEC 0x400000
  26. #define TARGET___O_SYNC 0x800000
  27. #define TARGET_O_PATH 0x1000000
  28. #define TARGET___O_TMPFILE 0x2000000
  29. #define TARGET_F_RDLCK 1
  30. #define TARGET_F_WRLCK 2
  31. #define TARGET_F_UNLCK 3
  32. #define TARGET_F_GETOWN 5 /* for sockets. */
  33. #define TARGET_F_SETOWN 6 /* for sockets. */
  34. #define TARGET_F_GETLK 7
  35. #define TARGET_F_SETLK 8
  36. #define TARGET_F_SETLKW 9
  37. #define TARGET_ARCH_FLOCK_PAD abi_short __unused;
  38. #define TARGET_ARCH_FLOCK64_PAD abi_short __unused;
  39. #include "../generic/fcntl.h"
  40. #endif