Lines 652-658
kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
Link Here
|
652 |
p->p_leader->p_flag |= P_ADVLOCK; |
652 |
p->p_leader->p_flag |= P_ADVLOCK; |
653 |
PROC_UNLOCK(p->p_leader); |
653 |
PROC_UNLOCK(p->p_leader); |
654 |
} |
654 |
} |
655 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_SETLK, |
655 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, cmd, |
656 |
flp, flg); |
656 |
flp, flg); |
657 |
break; |
657 |
break; |
658 |
case F_WRLCK: |
658 |
case F_WRLCK: |
Lines 665-675
kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
Link Here
|
665 |
p->p_leader->p_flag |= P_ADVLOCK; |
665 |
p->p_leader->p_flag |= P_ADVLOCK; |
666 |
PROC_UNLOCK(p->p_leader); |
666 |
PROC_UNLOCK(p->p_leader); |
667 |
} |
667 |
} |
668 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_SETLK, |
668 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, cmd, |
669 |
flp, flg); |
669 |
flp, flg); |
670 |
break; |
670 |
break; |
671 |
case F_UNLCK: |
671 |
case F_UNLCK: |
672 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_UNLCK, |
672 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, cmd, |
673 |
flp, flg); |
673 |
flp, flg); |
674 |
break; |
674 |
break; |
675 |
case F_UNLCKSYS: |
675 |
case F_UNLCKSYS: |
Lines 678-684
kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
Link Here
|
678 |
break; |
678 |
break; |
679 |
} |
679 |
} |
680 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, |
680 |
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, |
681 |
F_UNLCKSYS, flp, flg); |
681 |
cmd, flp, flg); |
682 |
break; |
682 |
break; |
683 |
default: |
683 |
default: |
684 |
error = EINVAL; |
684 |
error = EINVAL; |