xref: /titanic_50/usr/src/lib/libc/i386/crt/alias_boot.h (revision 74e20cfe817b82802b16fac8690dadcda76f54f5)
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) 1991 Sun Microsystems, Inc.
24  */
25 
26 #ifndef	_ALIAS_BOOT_H
27 #define	_ALIAS_BOOT_H
28 
29 #ident	"%W%	%E% SMI"
30 
31 /*
32  * Offsets for string constants used in alias bootstrap.
33  */
34 #define	LDSO_S		0		/* "/usr/lib/ld.so.n" */
35 #define	ZERO_S		1		/* "/dev/zero" */
36 #define	EMPTY_S		2		/* "(null)" */
37 #define	S_MAX		3		/* count of strings */
38 
39 /*
40  * Offsets for function pointers used in alias bootstrap.
41  */
42 #define	PANIC_F		0		/* panic() */
43 #define	OPEN_F		1		/* open() */
44 #define	MMAP_F		2		/* mmap() */
45 #define	FSTAT_F		3		/* fstat() */
46 #define	SYSCONFIG_F	4		/* sysconfig() */
47 #define	CLOSE_F		5		/* close() */
48 #define	MUNMAP_F	6		/* munmap() */
49 #define	F_MAX		7		/* count of functions */
50 
51 #endif	/* _ALIAS_BOOT_H */
52