xref: /original-bsd/sys/miscfs/fifofs/fifo.h (revision 2619e652)
1 /*
2  * Copyright (c) 1991, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)fifo.h	8.6 (Berkeley) 05/21/95
8  */
9 
10 #ifdef FIFO
11 /*
12  * Prototypes for fifo operations on vnodes.
13  */
14 int	fifo_badop(),
15 	fifo_ebadf();
16 
17 int	fifo_lookup __P((struct vop_lookup_args *));
18 #define fifo_create ((int (*) __P((struct  vop_create_args *)))fifo_badop)
19 #define fifo_mknod ((int (*) __P((struct  vop_mknod_args *)))fifo_badop)
20 int	fifo_open __P((struct vop_open_args *));
21 int	fifo_close __P((struct vop_close_args *));
22 #define fifo_access ((int (*) __P((struct  vop_access_args *)))fifo_ebadf)
23 #define fifo_getattr ((int (*) __P((struct  vop_getattr_args *)))fifo_ebadf)
24 #define fifo_setattr ((int (*) __P((struct  vop_setattr_args *)))fifo_ebadf)
25 int	fifo_read __P((struct vop_read_args *));
26 int	fifo_write __P((struct vop_write_args *));
27 #define fifo_lease_check ((int (*) __P((struct  vop_lease_args *)))nullop)
28 int	fifo_ioctl __P((struct vop_ioctl_args *));
29 int	fifo_select __P((struct vop_select_args *));
30 #define	fifo_revoke vop_revoke
31 #define fifo_mmap ((int (*) __P((struct  vop_mmap_args *)))fifo_badop)
32 #define fifo_fsync ((int (*) __P((struct  vop_fsync_args *)))nullop)
33 #define fifo_seek ((int (*) __P((struct  vop_seek_args *)))fifo_badop)
34 #define fifo_remove ((int (*) __P((struct  vop_remove_args *)))fifo_badop)
35 #define fifo_link ((int (*) __P((struct  vop_link_args *)))fifo_badop)
36 #define fifo_rename ((int (*) __P((struct  vop_rename_args *)))fifo_badop)
37 #define fifo_mkdir ((int (*) __P((struct  vop_mkdir_args *)))fifo_badop)
38 #define fifo_rmdir ((int (*) __P((struct  vop_rmdir_args *)))fifo_badop)
39 #define fifo_symlink ((int (*) __P((struct  vop_symlink_args *)))fifo_badop)
40 #define fifo_readdir ((int (*) __P((struct  vop_readdir_args *)))fifo_badop)
41 #define fifo_readlink ((int (*) __P((struct  vop_readlink_args *)))fifo_badop)
42 #define fifo_abortop ((int (*) __P((struct  vop_abortop_args *)))fifo_badop)
43 int	fifo_inactive __P((struct  vop_inactive_args *));
44 #define fifo_reclaim ((int (*) __P((struct  vop_reclaim_args *)))nullop)
45 #define fifo_lock ((int (*) __P((struct  vop_lock_args *)))vop_nolock)
46 #define fifo_unlock ((int (*) __P((struct  vop_unlock_args *)))vop_nounlock)
47 int	fifo_bmap __P((struct vop_bmap_args *));
48 #define fifo_strategy ((int (*) __P((struct  vop_strategy_args *)))fifo_badop)
49 int	fifo_print __P((struct vop_print_args *));
50 #define fifo_islocked ((int(*) __P((struct vop_islocked_args *)))vop_noislocked)
51 int	fifo_pathconf __P((struct vop_pathconf_args *));
52 int	fifo_advlock __P((struct vop_advlock_args *));
53 #define fifo_blkatoff ((int (*) __P((struct  vop_blkatoff_args *)))fifo_badop)
54 #define fifo_valloc ((int (*) __P((struct  vop_valloc_args *)))fifo_badop)
55 #define fifo_reallocblks \
56 	((int (*) __P((struct  vop_reallocblks_args *)))fifo_badop)
57 #define fifo_vfree ((int (*) __P((struct  vop_vfree_args *)))fifo_badop)
58 #define fifo_truncate ((int (*) __P((struct  vop_truncate_args *)))nullop)
59 #define fifo_update ((int (*) __P((struct  vop_update_args *)))nullop)
60 #define fifo_bwrite ((int (*) __P((struct  vop_bwrite_args *)))nullop)
61 #endif /* FIFO */
62