Lines Matching refs:start
29 do_lock(int fd, int type, off_t start, off_t length)
31 printf("%s lock %lld:%lld\n", type_name(type), start, length);
36 flock.l_start = start;
40 start, length, strerror(errno));
49 shared_lock(int fd, off_t start, off_t length)
51 return do_lock(fd, F_RDLCK, start, length);
56 exclusive_lock(int fd, off_t start, off_t length)
58 return do_lock(fd, F_WRLCK, start, length);
63 remove_lock(int fd, off_t start, off_t length)
65 return do_lock(fd, F_UNLCK, start, length);
81 fprintf(stderr, "usage: %s [shared|exclusive|unlock <start> <length>] "
119 off_t start = strtoll(argv[2], NULL, 0);
131 do_lock(fd, type, start, length);