Lines Matching refs:fl
18 struct flock fl; in do_lock_exclusive() local
21 memset((void *)&fl, 0, sizeof(fl)); in do_lock_exclusive()
23 fl.l_type = F_WRLCK; in do_lock_exclusive()
24 fl.l_whence = fl.l_start = 0; in do_lock_exclusive()
25 fl.l_len = 0; /* 0 means "to end of file" */ in do_lock_exclusive()
27 res = fcntl(fd, F_SETLK, &fl); in do_lock_exclusive()
37 struct flock fl; in do_unlock() local
39 memset((void *)&fl, 0, sizeof(fl)); in do_unlock()
41 fl.l_type = F_UNLCK; in do_unlock()
42 fl.l_whence = fl.l_start = 0; in do_unlock()
43 fl.l_len = 0; /* 0 means "to end of file" */ in do_unlock()
45 return fcntl(fd, F_SETLK, &fl); in do_unlock()