home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / sys / systm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-09  |  5.8 KB  |  159 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:    systm.h,v $
  29.  * Revision 2.2  92/07/08  16:26:29  mrt
  30.  *     Added ... to panic prototype, so extra args can be placed
  31.  *     on the stack for debugging.
  32.  *     [92/06/26            mrt]
  33.  * 
  34.  * Revision 2.1  92/04/21  17:16:41  rwd
  35.  * BSDSS
  36.  * 
  37.  *
  38.  */
  39.  
  40. /*-
  41.  * Copyright (c) 1982, 1988, 1991 The Regents of the University of California.
  42.  * All rights reserved.
  43.  *
  44.  * Redistribution and use in source and binary forms, with or without
  45.  * modification, are permitted provided that the following conditions
  46.  * are met:
  47.  * 1. Redistributions of source code must retain the above copyright
  48.  *    notice, this list of conditions and the following disclaimer.
  49.  * 2. Redistributions in binary form must reproduce the above copyright
  50.  *    notice, this list of conditions and the following disclaimer in the
  51.  *    documentation and/or other materials provided with the distribution.
  52.  * 3. All advertising materials mentioning features or use of this software
  53.  *    must display the following acknowledgement:
  54.  *    This product includes software developed by the University of
  55.  *    California, Berkeley and its contributors.
  56.  * 4. Neither the name of the University nor the names of its contributors
  57.  *    may be used to endorse or promote products derived from this software
  58.  *    without specific prior written permission.
  59.  *
  60.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  61.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  62.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  63.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  64.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  65.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  66.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  67.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  68.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  69.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  70.  * SUCH DAMAGE.
  71.  *
  72.  *    @(#)systm.h    7.17 (Berkeley) 5/25/91
  73.  */
  74.  
  75. extern char *panicstr;        /* panic message */
  76. extern char version[];        /* system version */
  77. extern char copyright[];    /* system copyright */
  78.  
  79. extern int nblkdev;        /* number of entries in bdevsw */
  80. extern int nchrdev;        /* number of entries in cdevsw */
  81. extern int nswdev;        /* number of swap devices */
  82. extern int nswap;        /* size of swap space */
  83.  
  84. extern int selwait;        /* select timeout address */
  85.  
  86. extern u_char curpri;        /* priority of current process */
  87.  
  88. extern int maxmem;        /* max memory per process */
  89. extern int physmem;        /* physical memory */
  90.  
  91. extern dev_t dumpdev;        /* dump device */
  92. extern long dumplo;        /* offset into dumpdev */
  93.  
  94. extern dev_t rootdev;        /* root device */
  95. extern struct vnode *rootvp;    /* vnode equivalent to above */
  96.  
  97. extern dev_t swapdev;        /* swapping device */
  98. extern struct vnode *swapdev_vp;/* vnode equivalent to above */
  99.  
  100. extern struct sysent {        /* system call table */
  101.     int    sy_narg;    /* number of arguments */
  102.     int    (*sy_call)();    /* implementing function */
  103. } sysent[];
  104.  
  105. extern int boothowto;        /* reboot flags, from console subsystem */
  106. #ifdef    KADB
  107. extern char *bootesym;        /* end of symbol info from boot */
  108. #endif
  109.  
  110. /* casts to keep lint happy */
  111. #define    insque(q,p)    _insque((caddr_t)q,(caddr_t)p)
  112. #define    remque(q)    _remque((caddr_t)q)
  113.  
  114. /*
  115.  * General function declarations.
  116.  */
  117. int    nullop __P((void));
  118. int    enodev __P((void));
  119. int    enoioctl __P((void));
  120. int    enxio __P((void));
  121. int    eopnotsupp __P((void));
  122. int    seltrue __P((dev_t, int, struct proc *));
  123.  
  124. void    panic __P((char *, ...));
  125. void    tablefull __P((char *));
  126. void    addlog __P((const char *, ...));
  127. void    log __P((int, const char *, ...));
  128. void    printf __P((const char *, ...));
  129. int    sprintf __P((char *buf, const char *, ...));
  130. void    ttyprintf __P((struct tty *, const char *, ...));
  131.  
  132. void    bcopy __P((void *from, void *to, u_int len));
  133. void    ovbcopy __P((void *from, void *to, u_int len));
  134. void    bzero __P((void *buf, u_int len));
  135. int    bcmp __P((void *str1, void *str2, u_int len));
  136. int    strlen __P((char *string));
  137.  
  138. int    copystr __P((void *kfaddr, void *kdaddr, u_int len, u_int *done));
  139. int    copyinstr __P((void *udaddr, void *kaddr, u_int len, u_int *done));
  140. int    copyoutstr __P((void *kaddr, void *udaddr, u_int len, u_int *done));
  141. int    copyin __P((void *udaddr, void *kaddr, u_int len));
  142. int    copyout __P((void *kaddr, void *udaddr, u_int len));
  143.  
  144. int    fubyte __P((void *base));
  145. #ifdef notdef
  146. int    fuibyte __P((void *base));
  147. #endif
  148. int    subyte __P((void *base, int byte));
  149. int    suibyte __P((void *base, int byte));
  150. int    fuword __P((void *base));
  151. int    fuiword __P((void *base));
  152. int    suword __P((void *base, int word));
  153. int    suiword __P((void *base, int word));
  154.  
  155. int    scanc __P((unsigned size, u_char *cp, u_char *table, int mask));
  156. int    skpc __P((int mask, int size, char *cp));
  157. int    locc __P((int mask, char *cp, unsigned size));
  158. int    ffs __P((long value));
  159.