print.c revision 5aefb6555731130ca4fd295960123d71f2d21fe8
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * CDDL HEADER START
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * The contents of this file are subject to the terms of the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Common Development and Distribution License (the "License").
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * You may not use this file except in compliance with the License.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * See the License for the specific language governing permissions
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * and limitations under the License.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * When distributing Covered Code, include this CDDL HEADER in each
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * If applicable, add the following below this CDDL HEADER, with the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * fields enclosed by brackets "[]" replaced with your own identifying
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * information: Portions Copyright [yyyy] [name of copyright owner]
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * CDDL HEADER END
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Use is subject to license terms.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#pragma ident "%Z%%M% %I% %E% SMI"
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Display the command line required to regenerate the configuration file.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Under normal mode the command is printed on one line to make it more
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * available for grep(1) use. Under verbose mode the command is separated
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * into each argument (a little more readable perhaps when the arguments are
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * numerous of have long pathnames).
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Note that for version 1 configuration files we never used to generate any
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * command-line information, and as the attempt to do so is only a best effort
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * don't bother printing anything.
char *cmd;
int output = 0;
if (output++ == 0) {
const char *path;
char **list;
switch (flag) {
case CRLE_EDLIB:
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
case CRLE_ESLIB:
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
case CRLE_ADLIB:
case CRLE_ASLIB:
static Half
flags &=
const char *strtbl;
const char *fmt;
char *alter;
const char *str;
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
const char *str;
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
const char *str;
const char *str;
const char *str;
_fltetbl++) {
fltrtbl++;
const char *str;
* same test will be carried out by ld.so.1.
if ((objdir == 0) ||
alter = 0;
if (alter) {
_cmd);
str);
* same test will be carried out by ld.so.1.
str);
const char *str;
if (*hash == 0)
#ifndef SGS_PRE_UNIFIED_PROCESS
#ifndef SGS_PRE_UNIFIED_PROCESS
return (error);