main.c revision 7010c12ad3ac2cada55cf126121a8c46957d3632
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * CDDL HEADER START
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * The contents of this file are subject to the terms of the
42a7bded1b1244af097afdc88654381a3d3879f9jacobs * Common Development and Distribution License (the "License").
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * You may not use this file except in compliance with the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * See the License for the specific language governing permissions
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * and limitations under the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * When distributing Covered Code, include this CDDL HEADER in each
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * If applicable, add the following below this CDDL HEADER, with the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * fields enclosed by brackets "[]" replaced with your own identifying
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * information: Portions Copyright [yyyy] [name of copyright owner]
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * CDDL HEADER END
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * Copyright (c) 1988 AT&T
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * All Rights Reserved
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * Use is subject to license terms.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem#pragma ident "%Z%%M% %I% %E% SMI"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * Function prototypes.
18c2aff776a775d34a4c9893a4c72e0434d68e36artemstatic void usage(int);
18c2aff776a775d34a4c9893a4c72e0434d68e36artemstatic void sigexit(int);
18c2aff776a775d34a4c9893a4c72e0434d68e36artemstatic int setup_sectname(char *, int);
18c2aff776a775d34a4c9893a4c72e0434d68e36artemstatic void check_swap();
18c2aff776a775d34a4c9893a4c72e0434d68e36artemstatic void queue(int, char *);
18c2aff776a775d34a4c9893a4c72e0434d68e36artem const char *opt;
18c2aff776a775d34a4c9893a4c72e0434d68e36artem int error_count = 0, num_sect = 0, errflag = 0, Dflag = 0;
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * Check for a binary that better fits this architecture.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * mcs(1) and strip() are hard linked together, determine which command
18c2aff776a775d34a4c9893a4c72e0434d68e36artem * was invoked.
#if !defined(TEXT_DOMAIN)
for (i = 0; signum[i]; i++)
if ((Action =
optcnt++;
Dflag++;
optcnt++;
optcnt++;
optcnt++;
optcnt++;
num_sect++;
optcnt++;
optcnt++;
optcnt++;
errflag++;
if (errflag) {
if (Dflag)
check_swap();
if (Dflag)
check_swap();
actmax++;
sigexit(int i)