xref: /original-bsd/sys/miscfs/fifofs/fifo.h (revision bdfadfff)
1 /*
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)fifo.h	7.7 (Berkeley) 07/02/92
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 int	fifo_ioctl __P((struct vop_ioctl_args *));
28 int	fifo_select __P((struct vop_select_args *));
29 #define fifo_mmap ((int (*) __P((struct  vop_mmap_args *)))fifo_badop)
30 #define fifo_fsync ((int (*) __P((struct  vop_fsync_args *)))nullop)
31 #define fifo_seek ((int (*) __P((struct  vop_seek_args *)))fifo_badop)
32 #define fifo_remove ((int (*) __P((struct  vop_remove_args *)))fifo_badop)
33 #define fifo_link ((int (*) __P((struct  vop_link_args *)))fifo_badop)
34 #define fifo_rename ((int (*) __P((struct  vop_rename_args *)))fifo_badop)
35 #define fifo_mkdir ((int (*) __P((struct  vop_mkdir_args *)))fifo_badop)
36 #define fifo_rmdir ((int (*) __P((struct  vop_rmdir_args *)))fifo_badop)
37 #define fifo_symlink ((int (*) __P((struct  vop_symlink_args *)))fifo_badop)
38 #define fifo_readdir ((int (*) __P((struct  vop_readdir_args *)))fifo_badop)
39 #define fifo_readlink ((int (*) __P((struct  vop_readlink_args *)))fifo_badop)
40 #define fifo_abortop ((int (*) __P((struct  vop_abortop_args *)))fifo_badop)
41 #define fifo_inactive ((int (*) __P((struct  vop_inactive_args *)))nullop)
42 #define fifo_reclaim ((int (*) __P((struct  vop_reclaim_args *)))nullop)
43 int	fifo_lock __P((struct vop_lock_args *));
44 int	fifo_unlock __P((struct vop_unlock_args *));
45 int	fifo_bmap __P((struct vop_bmap_args *));
46 #define fifo_strategy ((int (*) __P((struct  vop_strategy_args *)))fifo_badop)
47 int	fifo_print __P((struct vop_print_args *));
48 #define fifo_islocked ((int (*) __P((struct  vop_islocked_args *)))nullop)
49 int	fifo_advlock __P((struct vop_advlock_args *));
50 #define fifo_blkatoff ((int (*) __P((struct  vop_blkatoff_args *)))fifo_badop)
51 #define fifo_valloc ((int (*) __P((struct  vop_valloc_args *)))fifo_badop)
52 #define fifo_vfree ((int (*) __P((struct  vop_vfree_args *)))fifo_badop)
53 #define fifo_truncate ((int (*) __P((struct  vop_truncate_args *)))nullop)
54 #define fifo_update ((int (*) __P((struct  vop_update_args *)))nullop)
55 #define fifo_bwrite ((int (*) __P((struct  vop_bwrite_args *)))nullop)
56 #endif /* FIFO */
57