Lines Matching defs:fl
590 struct flock fl;
736 error = copyin(argp, (caddr_t)&fl, sizeof(fl));
741 if ((fl.l_whence == SEEK_CUR) && (fl.l_start + offset < fl.l_start)) {
749 if (fl.l_whence == SEEK_CUR)
750 fl.l_start += offset;
754 F_SETLK, &fl);
760 switch (fl.l_type) {
770 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_SETLK, &fl, flg, &context);
782 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_SETLK, &fl, flg, &context);
787 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &fl,
809 error = copyin(argp, (caddr_t)&fl, sizeof(fl));
815 if (((fl.l_whence == SEEK_CUR) &&
816 ((fl.l_start + offset < fl.l_start) ||
817 ((fl.l_len > 0) && (fl.l_start+offset + fl.l_len - 1 < fl.l_start+offset)))) ||
818 ((fl.l_whence == SEEK_SET) && (fl.l_len > 0) && (fl.l_start + fl.l_len - 1 < fl.l_start)))
825 if ((fl.l_whence == SEEK_SET) && (fl.l_start < 0)) {
830 switch (fl.l_type) {
840 switch (fl.l_whence) {
851 if (fl.l_whence == SEEK_CUR)
852 fl.l_start += offset;
856 F_GETLK, &fl);
859 error = VNOP_ADVLOCK(vp, (caddr_t)p, F_GETLK, &fl, F_POSIX, &context);
864 error = copyout((caddr_t)&fl, argp, sizeof(fl));