fcntl.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _ALPHA_FCNTL_H
  2. #define _ALPHA_FCNTL_H
  3. /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
  4. located on an ext2 file system */
  5. #define O_CREAT 01000 /* not fcntl */
  6. #define O_TRUNC 02000 /* not fcntl */
  7. #define O_EXCL 04000 /* not fcntl */
  8. #define O_NOCTTY 010000 /* not fcntl */
  9. #define O_NONBLOCK 00004
  10. #define O_APPEND 00010
  11. #define O_SYNC 040000
  12. #define O_DIRECTORY 0100000 /* must be a directory */
  13. #define O_NOFOLLOW 0200000 /* don't follow links */
  14. #define O_LARGEFILE 0400000 /* will be set by the kernel on every open */
  15. #define O_DIRECT 02000000 /* direct disk access - should check with OSF/1 */
  16. #define O_NOATIME 04000000
  17. #define O_CLOEXEC 010000000 /* set close_on_exec */
  18. #define F_GETLK 7
  19. #define F_SETLK 8
  20. #define F_SETLKW 9
  21. #define F_SETOWN 5 /* for sockets. */
  22. #define F_GETOWN 6 /* for sockets. */
  23. #define F_SETSIG 10 /* for sockets. */
  24. #define F_GETSIG 11 /* for sockets. */
  25. /* for posix fcntl() and lockf() */
  26. #define F_RDLCK 1
  27. #define F_WRLCK 2
  28. #define F_UNLCK 8
  29. /* for old implementation of bsd flock () */
  30. #define F_EXLCK 16 /* or 3 */
  31. #define F_SHLCK 32 /* or 4 */
  32. #define F_INPROGRESS 64
  33. #include <asm-generic/fcntl.h>
  34. #endif