• Home
  • Raw
  • Download

Lines Matching refs:fl

130 	struct flock fl;  in do_child()  local
135 child_get(&fl); in do_child()
136 if (fcntl(fd, F_GETLK, &fl) < 0) in do_child()
138 child_put(&fl); in do_child()
144 struct flock fl; in do_lock() local
146 fl.l_type = type; in do_lock()
147 fl.l_whence = whence; in do_lock()
148 fl.l_start = start; in do_lock()
149 fl.l_len = len; in do_lock()
150 return (fcntl(fd, cmd, &fl)); in do_lock()
153 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() argument
155 fl->l_type = type; in do_test()
156 fl->l_whence = whence; in do_test()
157 fl->l_start = start; in do_test()
158 fl->l_len = len; in do_test()
159 fl->l_pid = (short)0; in do_test()
161 parent_put(fl); in do_test()
162 parent_get(fl); in do_test()
166 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() argument
169 if (fl->l_type != type) { in compare_lock()
171 str_type(type), str_type(fl->l_type)); in compare_lock()
175 if (fl->l_whence != whence) { in compare_lock()
177 whence, fl->l_whence); in compare_lock()
181 if (fl->l_start != start) { in compare_lock()
183 "%d is %" PRId64, start, (int64_t) fl->l_start); in compare_lock()
187 if (fl->l_len != len) { in compare_lock()
190 len, (int64_t) fl->l_len); in compare_lock()
194 if (fl->l_pid != pid) { in compare_lock()
196 pid, fl->l_pid); in compare_lock()
203 struct flock fl; in unlock_file() local
209 do_test(&fl, F_WRLCK, 0, 0, 0); in unlock_file()
210 compare_lock(&fl, (short)F_UNLCK, (short)0, 0, 0, (pid_t) 0); in unlock_file()
266 struct flock fl; in stop_child() local
269 fl.l_type = STOP; in stop_child()
270 parent_put(&fl); in stop_child()