1 /* $OpenBSD: fifo.h,v 1.8 2001/06/23 02:14:24 csapuntz Exp $ */ 2 /* $NetBSD: fifo.h,v 1.10 1996/02/09 22:40:15 christos Exp $ */ 3 4 /* 5 * Copyright (c) 1991, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. All advertising materials mentioning features or use of this software 17 * must display the following acknowledgement: 18 * This product includes software developed by the University of 19 * California, Berkeley and its contributors. 20 * 4. Neither the name of the University nor the names of its contributors 21 * may be used to endorse or promote products derived from this software 22 * without specific prior written permission. 23 * 24 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)fifo.h 8.3 (Berkeley) 8/10/94 37 */ 38 #ifdef FIFO 39 40 /* 41 * Prototypes for fifo operations on vnodes. 42 */ 43 int fifo_badop __P((void *)); 44 int fifo_ebadf __P((void *)); 45 46 int fifo_lookup __P((void *)); 47 #define fifo_create fifo_badop 48 #define fifo_mknod fifo_badop 49 int fifo_open __P((void *)); 50 int fifo_close __P((void *)); 51 #define fifo_access fifo_ebadf 52 #define fifo_getattr fifo_ebadf 53 #define fifo_setattr fifo_ebadf 54 int fifo_read __P((void *)); 55 int fifo_write __P((void *)); 56 #define fifo_lease_check nullop 57 int fifo_ioctl __P((void *)); 58 int fifo_select __P((void *)); 59 int fifo_kqfilter __P((void *)); 60 #define fifo_fsync nullop 61 #define fifo_remove fifo_badop 62 #define fifo_revoke vop_generic_revoke 63 #define fifo_link fifo_badop 64 #define fifo_rename fifo_badop 65 #define fifo_mkdir fifo_badop 66 #define fifo_rmdir fifo_badop 67 #define fifo_symlink fifo_badop 68 #define fifo_readdir fifo_badop 69 #define fifo_readlink fifo_badop 70 #define fifo_abortop fifo_badop 71 int fifo_inactive __P((void *)); 72 #define fifo_reclaim nullop 73 #define fifo_lock vop_generic_lock 74 #define fifo_unlock vop_generic_unlock 75 int fifo_bmap __P((void *)); 76 #define fifo_strategy fifo_badop 77 int fifo_print __P((void *)); 78 #define fifo_islocked vop_generic_islocked 79 int fifo_pathconf __P((void *)); 80 int fifo_advlock __P((void *)); 81 #define fifo_reallocblks fifo_badop 82 #define fifo_bwrite nullop 83 84 void fifo_printinfo __P((struct vnode *)); 85 86 extern int (**fifo_vnodeop_p) __P((void *)); 87 88 #endif /* FIFO */ 89