fcntl.h 547 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * include/asm-s390/fcntl.h
  3. *
  4. * S390 version
  5. *
  6. * Derived from "include/asm-i386/fcntl.h"
  7. */
  8. #ifndef _S390_FCNTL_H
  9. #define _S390_FCNTL_H
  10. #ifndef __s390x__
  11. #define F_GETLK64 12 /* using 'struct flock64' */
  12. #define F_SETLK64 13
  13. #define F_SETLKW64 14
  14. #endif /* ! __s390x__ */
  15. struct flock {
  16. short l_type;
  17. short l_whence;
  18. off_t l_start;
  19. off_t l_len;
  20. pid_t l_pid;
  21. };
  22. #ifndef __s390x__
  23. struct flock64 {
  24. short l_type;
  25. short l_whence;
  26. loff_t l_start;
  27. loff_t l_len;
  28. pid_t l_pid;
  29. };
  30. #endif
  31. #include <asm-generic/fcntl.h>
  32. #endif