fcntl.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef __V850_FCNTL_H__
  2. #define __V850_FCNTL_H__
  3. #define O_DIRECTORY 040000 /* must be a directory */
  4. #define O_NOFOLLOW 0100000 /* don't follow links */
  5. #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */
  6. #define O_LARGEFILE 0400000
  7. #define F_GETLK 5
  8. #define F_SETLK 6
  9. #define F_SETLKW 7
  10. #define F_SETOWN 8 /* for sockets. */
  11. #define F_GETOWN 9 /* for sockets. */
  12. #define F_SETSIG 10 /* for sockets. */
  13. #define F_GETSIG 11 /* for sockets. */
  14. #define F_GETLK64 12 /* using 'struct flock64' */
  15. #define F_SETLK64 13
  16. #define F_SETLKW64 14
  17. /* for posix fcntl() and lockf() */
  18. #define F_RDLCK 0
  19. #define F_WRLCK 1
  20. #define F_UNLCK 2
  21. /* for old implementation of bsd flock () */
  22. #define F_EXLCK 4 /* or 3 */
  23. #define F_SHLCK 8 /* or 4 */
  24. /* for leases */
  25. #define F_INPROGRESS 16
  26. struct flock {
  27. short l_type;
  28. short l_whence;
  29. off_t l_start;
  30. off_t l_len;
  31. pid_t l_pid;
  32. };
  33. struct flock64 {
  34. short l_type;
  35. short l_whence;
  36. loff_t l_start;
  37. loff_t l_len;
  38. pid_t l_pid;
  39. };
  40. #include <asm-generic/fcntl.h>
  41. #endif /* __V850_FCNTL_H__ */