2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Copyright (c) 1988 AT&T 2N/A * All Rights Reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * NOTE: The environment symbol pair may also occur in crt1.o. The definitions 2N/A * within crt1.o are required for the generation of ABI compliant applications 2N/A * (see bugid 1181124). No other symbol definitions should be added to this 2N/A * The original SVR3 ABI states: 2N/A * Application Constraints 2N/A * As described above, libsys provides symbols for applications. In a few cases, 2N/A * however, an application is obliged to provide symbols for the library. 2N/A * extern char **environ; 2N/A * Normally, this symbol is synonymous with environ, as 2N/A * exec(BA_OS) describes. This isn't always true, though, because 2N/A * ANSI C does not define environ. Thus, an ANSI C-conforming 2N/A * application can define its own environ symbol, unrelated to the pro- 2N/A * cess environment. If the application defines environ and intends it 2N/A * to have the System V Interface Definition, Third Edition semantics, it 2N/A * must also define _environ so that the two symbols refer to the same 2N/A * The ABI description implies that the process environment should use 2N/A * _environ and that nothing in libc should make reference to the unadorned 2N/A * "environ" symbol. This way, an application can define and use a symbol 2N/A * named "environ" for its own purposes without affecting the actual 2N/A * process environment.