Lines Matching refs:flocks
64 struct flock flocks; in file_lock() local
66 memset(&flocks, 0, sizeof(struct flock)); in file_lock()
73 flocks.l_whence = 0; in file_lock()
74 flocks.l_start = 0; in file_lock()
75 flocks.l_len = 0; in file_lock()
78 flocks.l_type = F_UNLCK; in file_lock()
80 flocks.l_type = F_WRLCK; in file_lock()
82 flocks.l_type = F_RDLCK; in file_lock()
95 fd, cmd, flocks.l_type, flocks.l_whence, in file_lock()
96 (long long)flocks.l_start, (long long)flocks.l_len); in file_lock()
99 ret = fcntl(fd, cmd, &flocks); in file_lock()
136 struct flock flocks; in record_lock() local
138 memset(&flocks, 0, sizeof(struct flock)); in record_lock()
145 flocks.l_whence = 0; in record_lock()
146 flocks.l_start = start; in record_lock()
147 flocks.l_len = len; in record_lock()
150 flocks.l_type = F_UNLCK; in record_lock()
152 flocks.l_type = F_WRLCK; in record_lock()
154 flocks.l_type = F_RDLCK; in record_lock()
167 fd, cmd, flocks.l_type, flocks.l_whence, in record_lock()
168 (long long)flocks.l_start, (long long)flocks.l_len); in record_lock()
171 ret = fcntl(fd, cmd, &flocks); in record_lock()