xref: /freebsd/cddl/contrib/opensolaris/head/nlist.h (revision 9268022b74279434ed6300244e3f977e56a8ceb5)
1d876124dSJohn Birrell /*
2d876124dSJohn Birrell  * CDDL HEADER START
3d876124dSJohn Birrell  *
4d876124dSJohn Birrell  * The contents of this file are subject to the terms of the
5d876124dSJohn Birrell  * Common Development and Distribution License, Version 1.0 only
6d876124dSJohn Birrell  * (the "License").  You may not use this file except in compliance
7d876124dSJohn Birrell  * with the License.
8d876124dSJohn Birrell  *
9d876124dSJohn Birrell  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10d876124dSJohn Birrell  * or http://www.opensolaris.org/os/licensing.
11d876124dSJohn Birrell  * See the License for the specific language governing permissions
12d876124dSJohn Birrell  * and limitations under the License.
13d876124dSJohn Birrell  *
14d876124dSJohn Birrell  * When distributing Covered Code, include this CDDL HEADER in each
15d876124dSJohn Birrell  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16d876124dSJohn Birrell  * If applicable, add the following below this CDDL HEADER, with the
17d876124dSJohn Birrell  * fields enclosed by brackets "[]" replaced with your own identifying
18d876124dSJohn Birrell  * information: Portions Copyright [yyyy] [name of copyright owner]
19d876124dSJohn Birrell  *
20d876124dSJohn Birrell  * CDDL HEADER END
21d876124dSJohn Birrell  */
22*fa448410SXin LI /*
23*fa448410SXin LI  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24*fa448410SXin LI  */
25d876124dSJohn Birrell /*	Copyright (c) 1988 AT&T	*/
26d876124dSJohn Birrell /*	  All Rights Reserved  	*/
27d876124dSJohn Birrell 
28d876124dSJohn Birrell 
29d876124dSJohn Birrell #ifndef _NLIST_H
30d876124dSJohn Birrell #define	_NLIST_H
31d876124dSJohn Birrell 
32d876124dSJohn Birrell #ifdef	__cplusplus
33d876124dSJohn Birrell extern "C" {
34d876124dSJohn Birrell #endif
35d876124dSJohn Birrell 
36d876124dSJohn Birrell struct nlist {
37d876124dSJohn Birrell 	char		*n_name;	/* symbol name */
38d876124dSJohn Birrell 	long		n_value;	/* value of symbol */
39d876124dSJohn Birrell 	short		n_scnum;	/* section number */
40d876124dSJohn Birrell 	unsigned short	n_type;		/* type and derived type */
41d876124dSJohn Birrell 	char		n_sclass;	/* storage class */
42d876124dSJohn Birrell 	char		n_numaux;	/* number of aux. entries */
43d876124dSJohn Birrell };
44d876124dSJohn Birrell 
45d876124dSJohn Birrell extern int nlist(const char *, struct nlist *);
46d876124dSJohn Birrell 
47d876124dSJohn Birrell #ifdef	__cplusplus
48d876124dSJohn Birrell }
49d876124dSJohn Birrell #endif
50d876124dSJohn Birrell 
51d876124dSJohn Birrell #endif	/* _NLIST_H */
52