fcntl.h 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _ASM_FCNTL_H
  2. #define _ASM_FCNTL_H
  3. #define F_GETLK 5
  4. #define F_SETLK 6
  5. #define F_SETLKW 7
  6. #define F_SETOWN 8 /* for sockets. */
  7. #define F_GETOWN 9 /* for sockets. */
  8. #define F_SETSIG 10 /* for sockets. */
  9. #define F_GETSIG 11 /* for sockets. */
  10. #define F_GETLK64 12 /* using 'struct flock64' */
  11. #define F_SETLK64 13
  12. #define F_SETLKW64 14
  13. /* for posix fcntl() and lockf() */
  14. #define F_RDLCK 0
  15. #define F_WRLCK 1
  16. #define F_UNLCK 2
  17. /* for old implementation of bsd flock () */
  18. #define F_EXLCK 4 /* or 3 */
  19. #define F_SHLCK 8 /* or 4 */
  20. /* for leases */
  21. #define F_INPROGRESS 16
  22. struct flock {
  23. short l_type;
  24. short l_whence;
  25. off_t l_start;
  26. off_t l_len;
  27. pid_t l_pid;
  28. };
  29. struct flock64 {
  30. short l_type;
  31. short l_whence;
  32. loff_t l_start;
  33. loff_t l_len;
  34. pid_t l_pid;
  35. };
  36. #include <asm-generic/fcntl.h>
  37. #endif /* _ASM_FCNTL_H */