13 lines
180 B

  1. #include <stdint.h>
  2. #include <sys/types.h>
  3. typedef struct lock_s lock_t;
  4. struct lock_s
  5. {
  6. int type;
  7. off_t start;
  8. off_t end;
  9. pid_t pid;
  10. uint64_t owner;
  11. lock_t *next;
  12. };