Lines Matching defs:fl
564 struct flock *fl;
577 fl = ap->a_fl;
603 if (fl->l_whence != SEEK_END) {
604 if ((fl->l_whence != SEEK_CUR && fl->l_whence != SEEK_SET) ||
605 fl->l_start < 0 ||
606 (fl->l_len > 0 && fl->l_len - 1 > OFF_MAX - fl->l_start) ||
607 (fl->l_len < 0 && fl->l_start + fl->l_len < 0))
633 switch (fl->l_whence) {
638 * to fl->l_start when SEEK_CUR is used.
640 start = fl->l_start;
665 start = np->n_size + fl->l_start;
672 if (fl->l_len == 0)
674 else if (fl->l_len > 0)
675 end = start + fl->l_len - 1;
678 start += fl->l_len;
701 msg->lm_fl = *fl;
806 if (fl->l_type == F_UNLCK)
825 if (fl->l_type == F_UNLCK)
942 fl->l_type = msg->lm_fl.l_type;
943 fl->l_pid = msg->lm_fl.l_pid;
944 fl->l_start = msg->lm_fl.l_start;
945 fl->l_len = msg->lm_fl.l_len;
946 fl->l_whence = SEEK_SET;
948 fl->l_type = F_UNLCK;