• Home
  • Raw
  • Download

Lines Matching refs:fl

134 	struct flock fl;  in do_child()  local
139 child_get(&fl); in do_child()
140 if (fcntl(fd, F_GETLK, &fl) < 0) { in do_child()
145 child_put(&fl); in do_child()
151 struct flock fl; in do_lock() local
153 fl.l_type = type; in do_lock()
154 fl.l_whence = whence; in do_lock()
155 fl.l_start = start; in do_lock()
156 fl.l_len = len; in do_lock()
157 return (fcntl(fd, cmd, &fl)); in do_lock()
160 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() argument
162 fl->l_type = type; in do_test()
163 fl->l_whence = whence; in do_test()
164 fl->l_start = start; in do_test()
165 fl->l_len = len; in do_test()
166 fl->l_pid = (short)0; in do_test()
168 parent_put(fl); in do_test()
169 parent_get(fl); in do_test()
173 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() argument
176 if (fl->l_type != type) { in compare_lock()
178 str_type(type), str_type(fl->l_type)); in compare_lock()
182 if (fl->l_whence != whence) { in compare_lock()
184 whence, fl->l_whence); in compare_lock()
188 if (fl->l_start != start) { in compare_lock()
190 "%d is %" PRId64, start, (int64_t) fl->l_start); in compare_lock()
194 if (fl->l_len != len) { in compare_lock()
197 len, (int64_t) fl->l_len); in compare_lock()
201 if (fl->l_pid != pid) { in compare_lock()
203 pid, fl->l_pid); in compare_lock()
210 struct flock fl; in unlock_file() local
216 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
217 compare_lock(&fl, (short)F_UNLCK, (short)0, 0, 0, (pid_t) 0); in unlock_file()
273 struct flock fl; in stop_child() local
276 fl.l_type = STOP; in stop_child()
277 parent_put(&fl); in stop_child()