fcntl.h 695 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _ARM_FCNTL_H
  2. #define _ARM_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_DIRECTORY 040000 /* must be a directory */
  6. #define O_NOFOLLOW 0100000 /* don't follow links */
  7. #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */
  8. #define O_LARGEFILE 0400000
  9. #define F_GETLK64 12 /* using 'struct flock64' */
  10. #define F_SETLK64 13
  11. #define F_SETLKW64 14
  12. struct flock {
  13. short l_type;
  14. short l_whence;
  15. off_t l_start;
  16. off_t l_len;
  17. pid_t l_pid;
  18. };
  19. struct flock64 {
  20. short l_type;
  21. short l_whence;
  22. loff_t l_start;
  23. loff_t l_len;
  24. pid_t l_pid;
  25. };
  26. #include <asm-generic/fcntl.h>
  27. #endif