home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / sys / fifo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-22  |  6.4 KB  |  216 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1992 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie Mellon 
  24.  * the rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    fifo.h,v $
  29.  * Revision 2.1  92/04/21  17:17:33  rwd
  30.  * BSDSS
  31.  * 
  32.  *
  33.  */
  34.  
  35. /*
  36.  * Copyright (c) 1991 The Regents of the University of California.
  37.  * All rights reserved.
  38.  *
  39.  * Redistribution and use in source and binary forms, with or without
  40.  * modification, are permitted provided that the following conditions
  41.  * are met:
  42.  * 1. Redistributions of source code must retain the above copyright
  43.  *    notice, this list of conditions and the following disclaimer.
  44.  * 2. Redistributions in binary form must reproduce the above copyright
  45.  *    notice, this list of conditions and the following disclaimer in the
  46.  *    documentation and/or other materials provided with the distribution.
  47.  * 3. All advertising materials mentioning features or use of this software
  48.  *    must display the following acknowledgement:
  49.  *    This product includes software developed by the University of
  50.  *    California, Berkeley and its contributors.
  51.  * 4. Neither the name of the University nor the names of its contributors
  52.  *    may be used to endorse or promote products derived from this software
  53.  *    without specific prior written permission.
  54.  *
  55.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  56.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  57.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  58.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  59.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  60.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  61.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  62.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  63.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  64.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  65.  * SUCH DAMAGE.
  66.  *
  67.  *    @(#)fifo.h    7.1 (Berkeley) 4/15/91
  68.  */
  69.  
  70. #include <fifo.h>
  71. #if FIFO
  72. /*
  73.  * Prototypes for fifo operations on vnodes.
  74.  */
  75. int    fifo_badop(),
  76.     fifo_ebadf();
  77.  
  78. int    fifo_lookup __P((
  79.         struct vnode *vp,
  80.         struct nameidata *ndp,
  81.         struct proc *p));
  82. #define fifo_create ((int (*) __P(( \
  83.         struct nameidata *ndp, \
  84.         struct vattr *vap, \
  85.         struct proc *p))) fifo_badop)
  86. #define fifo_mknod ((int (*) __P(( \
  87.         struct nameidata *ndp, \
  88.         struct vattr *vap, \
  89.         struct ucred *cred, \
  90.         struct proc *p))) fifo_badop)
  91. int    fifo_open __P((
  92.         struct vnode *vp,
  93.         int mode,
  94.         struct ucred *cred,
  95.         struct proc *p));
  96. int    fifo_close __P((
  97.         struct vnode *vp,
  98.         int fflag,
  99.         struct ucred *cred,
  100.         struct proc *p));
  101. #define fifo_access ((int (*) __P(( \
  102.         struct vnode *vp, \
  103.         int mode, \
  104.         struct ucred *cred, \
  105.         struct proc *p))) fifo_ebadf)
  106. #define fifo_getattr ((int (*) __P(( \
  107.         struct vnode *vp, \
  108.         struct vattr *vap, \
  109.         struct ucred *cred, \
  110.         struct proc *p))) fifo_ebadf)
  111. #define fifo_setattr ((int (*) __P(( \
  112.         struct vnode *vp, \
  113.         struct vattr *vap, \
  114.         struct ucred *cred, \
  115.         struct proc *p))) fifo_ebadf)
  116. int    fifo_read __P((
  117.         struct vnode *vp,
  118.         struct uio *uio,
  119.         int ioflag,
  120.         struct ucred *cred));
  121. int    fifo_write __P((
  122.         struct vnode *vp,
  123.         struct uio *uio,
  124.         int ioflag,
  125.         struct ucred *cred));
  126. int    fifo_ioctl __P((
  127.         struct vnode *vp,
  128.         int command,
  129.         caddr_t data,
  130.         int fflag,
  131.         struct ucred *cred,
  132.         struct proc *p));
  133. int    fifo_select __P((
  134.         struct vnode *vp,
  135.         int which,
  136.         int fflags,
  137.         struct ucred *cred,
  138.         struct proc *p));
  139. #define fifo_mmap ((int (*) __P(( \
  140.         struct vnode *vp, \
  141.         int fflags, \
  142.         struct ucred *cred, \
  143.         struct proc *p))) fifo_badop)
  144. #define fifo_fsync ((int (*) __P(( \
  145.         struct vnode *vp, \
  146.         int fflags, \
  147.         struct ucred *cred, \
  148.         int waitfor, \
  149.         struct proc *p))) nullop)
  150. #define fifo_seek ((int (*) __P(( \
  151.         struct vnode *vp, \
  152.         off_t oldoff, \
  153.         off_t newoff, \
  154.         struct ucred *cred))) fifo_badop)
  155. #define fifo_remove ((int (*) __P(( \
  156.         struct nameidata *ndp, \
  157.         struct proc *p))) fifo_badop)
  158. #define fifo_link ((int (*) __P(( \
  159.         struct vnode *vp, \
  160.         struct nameidata *ndp, \
  161.         struct proc *p))) fifo_badop)
  162. #define fifo_rename ((int (*) __P(( \
  163.         struct nameidata *fndp, \
  164.         struct nameidata *tdnp, \
  165.         struct proc *p))) fifo_badop)
  166. #define fifo_mkdir ((int (*) __P(( \
  167.         struct nameidata *ndp, \
  168.         struct vattr *vap, \
  169.         struct proc *p))) fifo_badop)
  170. #define fifo_rmdir ((int (*) __P(( \
  171.         struct nameidata *ndp, \
  172.         struct proc *p))) fifo_badop)
  173. #define fifo_symlink ((int (*) __P(( \
  174.         struct nameidata *ndp, \
  175.         struct vattr *vap, \
  176.         char *target, \
  177.         struct proc *p))) fifo_badop)
  178. #define fifo_readdir ((int (*) __P(( \
  179.         struct vnode *vp, \
  180.         struct uio *uio, \
  181.         struct ucred *cred, \
  182.         int *eofflagp))) fifo_badop)
  183. #define fifo_readlink ((int (*) __P(( \
  184.         struct vnode *vp, \
  185.         struct uio *uio, \
  186.         struct ucred *cred))) fifo_badop)
  187. #define fifo_abortop ((int (*) __P(( \
  188.         struct nameidata *ndp))) fifo_badop)
  189. #define fifo_inactive ((int (*) __P(( \
  190.         struct vnode *vp, \
  191.         struct proc *p))) nullop)
  192. #define fifo_reclaim ((int (*) __P(( \
  193.         struct vnode *vp))) nullop)
  194. int    fifo_lock __P((
  195.         struct vnode *vp));
  196. int    fifo_unlock __P((
  197.         struct vnode *vp));
  198. int    fifo_bmap __P((
  199.         struct vnode *vp,
  200.         daddr_t bn,
  201.         struct vnode **vpp,
  202.         daddr_t *bnp));
  203. #define fifo_strategy ((int (*) __P(( \
  204.         struct buf *bp))) fifo_badop)
  205. int    fifo_print __P((
  206.         struct vnode *vp));
  207. #define fifo_islocked ((int (*) __P(( \
  208.         struct vnode *vp))) nullop)
  209. int    fifo_advlock __P((
  210.         struct vnode *vp,
  211.         caddr_t id,
  212.         int op,
  213.         struct flock *fl,
  214.         int flags));
  215. #endif /* FIFO */
  216.