diff options
Diffstat (limited to 'sys/fs/fifofs/fifo_vnops.c')
-rw-r--r-- | sys/fs/fifofs/fifo_vnops.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index b274365..a0a34f7 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)fifo_vnops.c 8.2 (Berkeley) 1/4/94 - * $Id: fifo_vnops.c,v 1.13 1995/12/11 09:24:13 phk Exp $ + * $Id: fifo_vnops.c,v 1.14 1995/12/11 10:26:34 phk Exp $ */ #include <sys/param.h> @@ -62,8 +62,13 @@ struct fifoinfo { long fi_writers; }; +static int fifo_ebadf __P((void)); +static int fifo_unlock __P((struct vop_unlock_args *)); +static int fifo_lock __P((struct vop_lock_args *)); +static int fifo_print __P((struct vop_print_args *)); + vop_t **fifo_vnodeop_p; -struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { +static struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { { &vop_default_desc, (vop_t *)vn_default_error }, { &vop_lookup_desc, (vop_t *)fifo_lookup }, /* lookup */ { &vop_create_desc, (vop_t *)fifo_create }, /* create */ @@ -107,7 +112,7 @@ struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { { &vop_bwrite_desc, (vop_t *)fifo_bwrite }, /* bwrite */ { NULL, NULL } }; -struct vnodeopv_desc fifo_vnodeop_opv_desc = +static struct vnodeopv_desc fifo_vnodeop_opv_desc = { &fifo_vnodeop_p, fifo_vnodeop_entries }; VNODEOP_SET(fifo_vnodeop_opv_desc); @@ -382,7 +387,7 @@ fifo_bmap(ap) * At the moment we do not do any locking. */ /* ARGSUSED */ -int +static int fifo_lock(ap) struct vop_lock_args /* { struct vnode *a_vp; @@ -393,7 +398,7 @@ fifo_lock(ap) } /* ARGSUSED */ -int +static int fifo_unlock(ap) struct vop_unlock_args /* { struct vnode *a_vp; @@ -459,7 +464,7 @@ fifo_printinfo(vp) /* * Print out the contents of a fifo vnode. */ -int +static int fifo_print(ap) struct vop_print_args /* { struct vnode *a_vp; @@ -503,7 +508,7 @@ fifo_pathconf(ap) /* * Fifo failed operation */ -int +static int fifo_ebadf() { |