Don't depend on FIFO being defined to enable mkfifo.

It is now always compiled.

Submitted by:	bde
This commit is contained in:
Mike Pritchard 1997-02-12 16:55:32 +00:00
parent dc14cd9f1b
commit 61f84e5b27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22604
2 changed files with 0 additions and 8 deletions

View File

@ -1037,9 +1037,6 @@ mkfifo(p, uap, retval)
} */ *uap;
register_t *retval;
{
#ifndef FIFO
return (EOPNOTSUPP);
#else
struct vattr vattr;
int error;
struct nameidata nd;
@ -1061,7 +1058,6 @@ mkfifo(p, uap, retval)
vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask;
VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
return (VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr));
#endif /* FIFO */
}
/*

View File

@ -1037,9 +1037,6 @@ mkfifo(p, uap, retval)
} */ *uap;
register_t *retval;
{
#ifndef FIFO
return (EOPNOTSUPP);
#else
struct vattr vattr;
int error;
struct nameidata nd;
@ -1061,7 +1058,6 @@ mkfifo(p, uap, retval)
vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask;
VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
return (VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr));
#endif /* FIFO */
}
/*