fcntl.h 608 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _H8300_FCNTL_H
  2. #define _H8300_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_GETLK64 12 /* using 'struct flock64' */
  8. #define F_SETLK64 13
  9. #define F_SETLKW64 14
  10. struct flock {
  11. short l_type;
  12. short l_whence;
  13. off_t l_start;
  14. off_t l_len;
  15. pid_t l_pid;
  16. };
  17. struct flock64 {
  18. short l_type;
  19. short l_whence;
  20. loff_t l_start;
  21. loff_t l_len;
  22. pid_t l_pid;
  23. };
  24. #include <asm-generic/fcntl.h>
  25. #endif /* _H8300_FCNTL_H */