xref: /onnv-gate/usr/src/lib/libc/sparc/crt/alias_boot.h (revision 11798:1e7f1f154004)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*11798SRoger.Faulkner@Sun.COM  * Common Development and Distribution License (the "License").
6*11798SRoger.Faulkner@Sun.COM  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
21*11798SRoger.Faulkner@Sun.COM 
220Sstevel@tonic-gate /*
23*11798SRoger.Faulkner@Sun.COM  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24*11798SRoger.Faulkner@Sun.COM  * Use is subject to license terms.
250Sstevel@tonic-gate  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate #ifndef	_ALIAS_BOOT_H
280Sstevel@tonic-gate #define	_ALIAS_BOOT_H
290Sstevel@tonic-gate 
300Sstevel@tonic-gate /*
310Sstevel@tonic-gate  * Offsets for string constants used in alias bootstrap.
320Sstevel@tonic-gate  */
330Sstevel@tonic-gate #define	LDSO_S		0		/* "/usr/lib/ld.so.n" */
340Sstevel@tonic-gate #define	ZERO_S		1		/* "/dev/zero" */
350Sstevel@tonic-gate #define	EMPTY_S		2		/* "(null)" */
360Sstevel@tonic-gate #define	S_MAX		3		/* count of strings */
370Sstevel@tonic-gate 
380Sstevel@tonic-gate /*
390Sstevel@tonic-gate  * Offsets for function pointers used in alias bootstrap.
400Sstevel@tonic-gate  */
410Sstevel@tonic-gate #define	PANIC_F		0		/* panic() */
42*11798SRoger.Faulkner@Sun.COM #define	OPENAT_F	1		/* openat() */
430Sstevel@tonic-gate #define	MMAP_F		2		/* mmap() */
44*11798SRoger.Faulkner@Sun.COM #define	FSTATAT_F	3		/* fstatat() */
450Sstevel@tonic-gate #define	SYSCONFIG_F	4		/* sysconfig() */
460Sstevel@tonic-gate #define	CLOSE_F		5		/* close() */
470Sstevel@tonic-gate #define	MUNMAP_F	6		/* munmap() */
480Sstevel@tonic-gate #define	F_MAX		7		/* count of functions */
490Sstevel@tonic-gate 
500Sstevel@tonic-gate #endif	/* _ALIAS_BOOT_H */
51