* SUCH DAMAGE.
*
* from: @(#)fifo_vnops.c 7.7 (Berkeley) 4/15/91
- * $Id$
+ * $Id: fifo_vnops.c,v 1.4 1993/10/16 15:24:02 rgrimes Exp $
*/
#ifdef FIFO
* Trivial lookup routine that always fails.
*/
/* ARGSUSED */
+int
fifo_lookup(vp, ndp, p)
struct vnode *vp;
struct nameidata *ndp;
* to find an active instance of a fifo.
*/
/* ARGSUSED */
+int
fifo_open(vp, mode, cred, p)
register struct vnode *vp;
int mode;
* Vnode op for read
*/
/* ARGSUSED */
+int
fifo_read(vp, uio, ioflag, cred)
struct vnode *vp;
register struct uio *uio;
rso->so_state |= SS_NBIO;
startresid = uio->uio_resid;
VOP_UNLOCK(vp);
- error = soreceive(rso, (struct mbuf **)0, uio, (int *)0,
- (struct mbuf **)0, (struct mbuf **)0);
+ error = soreceive(rso, (struct mbuf **)0, uio,
+ (struct mbuf **)0, (struct mbuf **)0, (int *)0);
VOP_LOCK(vp);
/*
* Clear EOF indication after first such return.
* Vnode op for write
*/
/* ARGSUSED */
+int
fifo_write(vp, uio, ioflag, cred)
struct vnode *vp;
register struct uio *uio;
* Device ioctl operation.
*/
/* ARGSUSED */
+int
fifo_ioctl(vp, com, data, fflag, cred, p)
struct vnode *vp;
int com;
}
/* ARGSUSED */
+int
fifo_select(vp, which, fflag, cred, p)
struct vnode *vp;
int which, fflag;
/*
* This is a noop, simply returning what one has been given.
*/
+int
fifo_bmap(vp, bn, vpp, bnp)
struct vnode *vp;
daddr_t bn;
* At the moment we do not do any locking.
*/
/* ARGSUSED */
+int
fifo_lock(vp)
struct vnode *vp;
{
}
/* ARGSUSED */
+int
fifo_unlock(vp)
struct vnode *vp;
{
* Device close routine
*/
/* ARGSUSED */
+int
fifo_close(vp, fflag, cred, p)
register struct vnode *vp;
int fflag;
/*
* Print out the contents of a fifo vnode.
*/
+void
fifo_print(vp)
struct vnode *vp;
{
/*
* Print out internal contents of a fifo vnode.
*/
+void
fifo_printinfo(vp)
struct vnode *vp;
{
/*
* Fifo failed operation
*/
+int
fifo_ebadf()
{
* Fifo advisory byte-level locks.
*/
/* ARGSUSED */
+int
fifo_advlock(vp, id, op, fl, flags)
struct vnode *vp;
caddr_t id;
/*
* Fifo bad operation
*/
+int
fifo_badop()
{