1 /* $NetBSD: tmpfs_fifoops.h,v 1.5 2008/01/25 14:32:13 ad Exp $ */
4 * Copyright (c) 2005 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
20 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
33 #ifndef _FS_TMPFS_TMPFS_FIFOOPS_H_
34 #define _FS_TMPFS_TMPFS_FIFOOPS_H_
37 #error not supposed to be exposed to userland.
40 #include <miscfs/fifofs/fifo.h>
41 #include <fs/tmpfs/tmpfs_vnops.h>
43 /* --------------------------------------------------------------------- */
46 * Declarations for tmpfs_fifoops.c.
49 extern int (**tmpfs_fifoop_p
)(void *);
51 #define tmpfs_fifo_lookup fifo_lookup
52 #define tmpfs_fifo_create fifo_create
53 #define tmpfs_fifo_mknod fifo_mknod
54 #define tmpfs_fifo_open fifo_open
55 int tmpfs_fifo_close (void *);
56 #define tmpfs_fifo_access tmpfs_access
57 #define tmpfs_fifo_getattr tmpfs_getattr
58 #define tmpfs_fifo_setattr tmpfs_setattr
59 int tmpfs_fifo_read (void *);
60 int tmpfs_fifo_write (void *);
61 #define tmpfs_fifo_fcntl tmpfs_fcntl
62 #define tmpfs_fifo_ioctl fifo_ioctl
63 #define tmpfs_fifo_poll fifo_poll
64 #define tmpfs_fifo_kqfilter fifo_kqfilter
65 #define tmpfs_fifo_revoke fifo_revoke
66 #define tmpfs_fifo_mmap fifo_mmap
67 #define tmpfs_fifo_fsync fifo_fsync
68 #define tmpfs_fifo_seek fifo_seek
69 #define tmpfs_fifo_remove fifo_remove
70 #define tmpfs_fifo_link fifo_link
71 #define tmpfs_fifo_rename fifo_rename
72 #define tmpfs_fifo_mkdir fifo_mkdir
73 #define tmpfs_fifo_rmdir fifo_rmdir
74 #define tmpfs_fifo_symlink fifo_symlink
75 #define tmpfs_fifo_readdir fifo_readdir
76 #define tmpfs_fifo_readlink fifo_readlink
77 #define tmpfs_fifo_abortop fifo_abortop
78 #define tmpfs_fifo_inactive tmpfs_inactive
79 #define tmpfs_fifo_reclaim tmpfs_reclaim
80 #define tmpfs_fifo_lock tmpfs_lock
81 #define tmpfs_fifo_unlock tmpfs_unlock
82 #define tmpfs_fifo_bmap fifo_bmap
83 #define tmpfs_fifo_strategy fifo_strategy
84 #define tmpfs_fifo_print tmpfs_print
85 #define tmpfs_fifo_pathconf fifo_pathconf
86 #define tmpfs_fifo_islocked tmpfs_islocked
87 #define tmpfs_fifo_advlock fifo_advlock
88 #define tmpfs_fifo_bwrite tmpfs_bwrite
89 #define tmpfs_fifo_getpages genfs_badop
90 #define tmpfs_fifo_putpages fifo_putpages
92 /* --------------------------------------------------------------------- */
93 #endif /* _FS_TMPFS_TMPFS_FIFOOPS_H_ */