fcntl.h 848 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ASM_IA64_FCNTL_H
  2. #define _ASM_IA64_FCNTL_H
  3. /*
  4. * Modified 1998-2000
  5. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co.
  6. */
  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. /* for posix fcntl() and lockf() */
  15. #define F_RDLCK 0
  16. #define F_WRLCK 1
  17. #define F_UNLCK 2
  18. /* for old implementation of bsd flock () */
  19. #define F_EXLCK 4 /* or 3 */
  20. #define F_SHLCK 8 /* or 4 */
  21. /* for leases */
  22. #define F_INPROGRESS 16
  23. struct flock {
  24. short l_type;
  25. short l_whence;
  26. off_t l_start;
  27. off_t l_len;
  28. pid_t l_pid;
  29. };
  30. #define force_o_largefile() \
  31. (personality(current->personality) != PER_LINUX32)
  32. #include <asm-generic/fcntl.h>
  33. #endif /* _ASM_IA64_FCNTL_H */