Lines Matching defs:fl
172 struct flock *fl = ap->a_fl;
187 fl->l_type = F_UNLCK;
196 switch (fl->l_whence) {
204 start = fl->l_start;
221 (fl->l_start > 0 &&
222 size > (u_quad_t)(OFF_MAX - fl->l_start)))
224 start = size + fl->l_start;
228 LOCKF_DEBUG(0, "lf_advlock: unknown whence %d\n", fl->l_whence);
235 if (fl->l_len < 0) {
241 start += fl->l_len;
246 } else if (fl->l_len == 0)
249 oadd = fl->l_len - 1;
266 lock->lf_type = fl->l_type;
293 error = lf_getlock(lock, fl, -1);
909 * fl Pointer to flock structure to receive
917 * *fl Contents modified to reflect the
921 * Notes: fl->l_pid will be (-1) for file locks and will only be set to
925 lf_getlock(struct lockf *lock, struct flock *fl, pid_t matchpid)
935 fl->l_type = block->lf_type;
936 fl->l_whence = SEEK_SET;
937 fl->l_start = block->lf_start;
939 fl->l_len = 0;
941 fl->l_len = block->lf_end - block->lf_start + 1;
943 fl->l_pid = proc_pid((struct proc *)(block->lf_id));
945 fl->l_pid = -1;
947 fl->l_type = F_UNLCK;