Lines Matching refs:flp
573 struct flock *flp; in kern_fcntl() local
723 flp = (struct flock *)arg; in kern_fcntl()
724 if ((flg & F_REMOTE) != 0 && flp->l_sysid == 0) { in kern_fcntl()
738 if (flp->l_whence == SEEK_CUR) { in kern_fcntl()
741 (flp->l_start > 0 && in kern_fcntl()
742 foffset > OFF_MAX - flp->l_start)) { in kern_fcntl()
747 flp->l_start += foffset; in kern_fcntl()
751 switch (flp->l_type) { in kern_fcntl()
763 flp, flg); in kern_fcntl()
776 flp, flg); in kern_fcntl()
780 flp, flg); in kern_fcntl()
788 F_UNLCKSYS, flp, flg); in kern_fcntl()
794 if (error != 0 || flp->l_type == F_UNLCK || in kern_fcntl()
795 flp->l_type == F_UNLCKSYS) { in kern_fcntl()
822 flp->l_whence = SEEK_SET; in kern_fcntl()
823 flp->l_start = 0; in kern_fcntl()
824 flp->l_len = 0; in kern_fcntl()
825 flp->l_type = F_UNLCK; in kern_fcntl()
827 F_UNLCK, flp, F_POSIX); in kern_fcntl()
842 flp = (struct flock *)arg; in kern_fcntl()
843 if (flp->l_type != F_RDLCK && flp->l_type != F_WRLCK && in kern_fcntl()
844 flp->l_type != F_UNLCK) { in kern_fcntl()
849 if (flp->l_whence == SEEK_CUR) { in kern_fcntl()
851 if ((flp->l_start > 0 && in kern_fcntl()
852 foffset > OFF_MAX - flp->l_start) || in kern_fcntl()
853 (flp->l_start < 0 && in kern_fcntl()
854 foffset < OFF_MIN - flp->l_start)) { in kern_fcntl()
859 flp->l_start += foffset; in kern_fcntl()
862 error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_GETLK, flp, in kern_fcntl()