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