Home | History | Annotate | Download | only in ultrix

Lines Matching defs:ufl

688 ultrix_to_bsd_flock(struct ultrix_flock *ufl, struct flock *fl)
693 fl->l_start = ufl->l_start;
694 fl->l_len = ufl->l_len;
695 fl->l_pid = ufl->l_pid;
696 fl->l_whence = ufl->l_whence;
698 switch (ufl->l_type) {
716 bsd_to_ultrix_flock(struct flock *fl, struct ultrix_flock *ufl)
719 memset(ufl, 0, sizeof(*ufl));
721 ufl->l_start = fl->l_start;
722 ufl->l_len = fl->l_len;
723 ufl->l_pid = fl->l_pid;
724 ufl->l_whence = fl->l_whence;
728 ufl->l_type = ULTRIX_F_RDLCK;
731 ufl->l_type = ULTRIX_F_WRLCK;
734 ufl->l_type = ULTRIX_F_UNLCK;
743 struct ultrix_flock ufl;
750 error = copyin(SCARG(uap, arg), &ufl, sizeof(ufl));
753 error = ultrix_to_bsd_flock(&ufl, &fl);
759 bsd_to_ultrix_flock(&fl, &ufl);
760 return copyout(&ufl, SCARG(uap, arg), sizeof(ufl));