Home | History | Annotate | Line # | Download | only in kvm_mkdb
extern.h revision 1.6
      1  1.6  thorpej /*	$NetBSD: extern.h,v 1.6 1997/06/15 23:51:09 thorpej Exp $	*/
      2  1.4  thorpej 
      3  1.1       pk /*-
      4  1.3      cgd  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
      5  1.1       pk  * Copyright (c) 1992, 1993
      6  1.1       pk  *	The Regents of the University of California.  All rights reserved.
      7  1.1       pk  *
      8  1.1       pk  * Redistribution and use in source and binary forms, with or without
      9  1.1       pk  * modification, are permitted provided that the following conditions
     10  1.1       pk  * are met:
     11  1.1       pk  * 1. Redistributions of source code must retain the above copyright
     12  1.1       pk  *    notice, this list of conditions and the following disclaimer.
     13  1.1       pk  * 2. Redistributions in binary form must reproduce the above copyright
     14  1.1       pk  *    notice, this list of conditions and the following disclaimer in the
     15  1.1       pk  *    documentation and/or other materials provided with the distribution.
     16  1.1       pk  * 3. All advertising materials mentioning features or use of this software
     17  1.1       pk  *    must display the following acknowledgement:
     18  1.1       pk  *	This product includes software developed by the University of
     19  1.1       pk  *	California, Berkeley and its contributors.
     20  1.1       pk  * 4. Neither the name of the University nor the names of its contributors
     21  1.1       pk  *    may be used to endorse or promote products derived from this software
     22  1.1       pk  *    without specific prior written permission.
     23  1.1       pk  *
     24  1.1       pk  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     25  1.1       pk  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     26  1.1       pk  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     27  1.1       pk  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     28  1.1       pk  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     29  1.1       pk  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     30  1.1       pk  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     31  1.1       pk  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     32  1.1       pk  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     33  1.1       pk  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34  1.1       pk  * SUCH DAMAGE.
     35  1.1       pk  *
     36  1.2  mycroft  *	from: @(#)extern.h	8.1 (Berkeley) 6/6/93
     37  1.1       pk  */
     38  1.1       pk 
     39  1.6  thorpej #if defined(__alpha__)
     40  1.6  thorpej #  define	NLIST_ECOFF
     41  1.6  thorpej #  define	NLIST_ELF64
     42  1.6  thorpej #elif defined(__mips__)
     43  1.6  thorpej #  define	NLIST_AOUT
     44  1.6  thorpej #  define	NLIST_ECOFF
     45  1.6  thorpej #  define	NLIST_ELF32
     46  1.6  thorpej #elif defined(__powerpc__)
     47  1.6  thorpej #  define	NLIST_AOUT
     48  1.6  thorpej #  define	NLIST_ELF32
     49  1.6  thorpej #else
     50  1.6  thorpej #  define	NLIST_AOUT
     51  1.3      cgd /* #define	NLIST_ECOFF */
     52  1.6  thorpej /* #define	NLIST_ELF32 */
     53  1.3      cgd /* #define	NLIST_ELF64 */
     54  1.3      cgd #endif
     55  1.3      cgd 
     56  1.3      cgd void	create_knlist __P((const char *, DB *));
     57  1.3      cgd void	punt __P((void));
     58  1.1       pk int	testdb __P(());
     59  1.3      cgd 
     60  1.3      cgd #ifdef NLIST_AOUT
     61  1.3      cgd int	create_knlist_aout __P((const char *, DB *));
     62  1.3      cgd #endif
     63  1.3      cgd #ifdef NLIST_ECOFF
     64  1.3      cgd int	create_knlist_ecoff __P((const char *, DB *));
     65  1.3      cgd #endif
     66  1.3      cgd #ifdef NLIST_ELF32
     67  1.3      cgd int	create_knlist_elf32 __P((const char *, DB *));
     68  1.3      cgd #endif
     69  1.3      cgd #ifdef NLIST_ELF64
     70  1.3      cgd int	create_knlist_elf64 __P((const char *, DB *));
     71  1.3      cgd #endif
     72