xref: /titanic_44/usr/src/cmd/fs.d/cachefs/cachefspack/elfrd.h (revision 4496171313bed39e96f21bc2f9faf2868e267ae3)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1996, by Sun Microsystems, Inc.
24  * All Rights Reserved.
25  */
26 
27 #ifndef	_ELFRD_H
28 #define	_ELFRD_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 struct libpath *add_libpath(struct libpath *, char *, int);
33 struct libpath *stk_libpath(struct libpath *, char *, int);
34 struct libpath *pop_libpath(struct libpath *);
35 
36 
37 struct sobj {
38 	char *so_name;
39 	struct sobj *so_next;
40 };
41 
42 struct libpath {
43 	char *lp_path;
44 	struct libpath *lp_next;
45 	int lp_level;
46 };
47 
48 
49 #define	ERR_NOERROR	0
50 #define	ERR_NOFILE	-1
51 #define	ERR_NOELFVER	-2
52 #define	ERR_NOELFBEG	-3
53 #define	ERR_NOELFEHD	-4
54 #define	ERR_NOELFSHD	-5
55 #define	ERR_NOELFSDT	-6
56 #define	ERR_NOELFNAM	-7
57 #define	ERR_HASHFULL	-8
58 
59 
60 #define	GSO_ADDEXCLD	1
61 
62 #ifdef MAIN
63 #define	EXTERN
64 #else
65 #define	EXTERN	extern
66 #endif
67 
68 EXTERN struct libpath *libp, libp_hd;
69 
70 #undef EXTERN
71 
72 #endif /* _ELFRD_H */
73