fcntl.h 906 B

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