/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Name: getzonepath.c
*
* Description: Get the zone pathname associated with a label.
*
* Usage: getzonepath sensitivity_label
*/
#include <errno.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char *prog;
static void
{
switch (err) {
case M_BAD_STRING:
break;
case M_BAD_LABEL:
break;
default:
gettext("%s: parsing error found in "
break;
}
} else {
}
exit(1);
}
int
{
int err = 0;
char *zone_root;
#if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */
#endif
(void) textdomain(TEXT_DOMAIN);
else
prog++;
if (argc != 2) {
"Usage: %s label\n"), prog);
return (1);
}
&err) == -1) {
}
return (3);
}
return (0);
} /* end main() */