Lines Matching refs:flp
714 flock_check(vnode_t *vp, flock64_t *flp, offset_t offset, offset_t max)
723 switch (flp->l_whence) {
725 start = (u_offset_t)flp->l_start;
730 if (flp->l_start > (max - offset))
732 start = (u_offset_t)(flp->l_start + offset);
740 if (flp->l_start > (max - (offset_t)vattr.va_size))
742 start = (u_offset_t)(flp->l_start + (offset_t)vattr.va_size);
753 if (flp->l_len == 0)
755 else if ((offset_t)flp->l_len > 0) {
756 if (flp->l_len > (max - start + 1))
758 end = (u_offset_t)(start + (flp->l_len - 1));
767 start += (u_offset_t)flp->l_len;
774 if (flp->l_type == F_UNLCK && flp->l_len > 0 &&
776 flp->l_len = 0;
784 flock_get_start(vnode_t *vp, flock64_t *flp, offset_t offset, u_offset_t *start)
793 switch (flp->l_whence) {
795 *start = (u_offset_t)flp->l_start;
798 *start = (u_offset_t)(flp->l_start + offset);
804 *start = (u_offset_t)(flp->l_start + (offset_t)vattr.va_size);