74e20cfe817b82802b16fac8690dadcda76f54f5nh * CDDL HEADER START
74e20cfe817b82802b16fac8690dadcda76f54f5nh * The contents of this file are subject to the terms of the
74e20cfe817b82802b16fac8690dadcda76f54f5nh * Common Development and Distribution License (the "License").
74e20cfe817b82802b16fac8690dadcda76f54f5nh * You may not use this file except in compliance with the License.
74e20cfe817b82802b16fac8690dadcda76f54f5nh * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
74e20cfe817b82802b16fac8690dadcda76f54f5nh * See the License for the specific language governing permissions
74e20cfe817b82802b16fac8690dadcda76f54f5nh * and limitations under the License.
74e20cfe817b82802b16fac8690dadcda76f54f5nh * When distributing Covered Code, include this CDDL HEADER in each
74e20cfe817b82802b16fac8690dadcda76f54f5nh * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
74e20cfe817b82802b16fac8690dadcda76f54f5nh * If applicable, add the following below this CDDL HEADER, with the
74e20cfe817b82802b16fac8690dadcda76f54f5nh * fields enclosed by brackets "[]" replaced with your own identifying
74e20cfe817b82802b16fac8690dadcda76f54f5nh * information: Portions Copyright [yyyy] [name of copyright owner]
74e20cfe817b82802b16fac8690dadcda76f54f5nh * CDDL HEADER END
74e20cfe817b82802b16fac8690dadcda76f54f5nh * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
74e20cfe817b82802b16fac8690dadcda76f54f5nh * Use is subject to license terms.
74e20cfe817b82802b16fac8690dadcda76f54f5nh#pragma ident "%Z%%M% %I% %E% SMI"
74e20cfe817b82802b16fac8690dadcda76f54f5nhstatic const char USAGE[] = "Usage:\tsdpadm\tstatus\n\t\tenable\n\t\tdisable\n";
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# CDDL HEADER START\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# The contents of this file are subject to the terms of the\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# Common Development and Distribution License (the \"License\").\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# You may not use this file except in compliance with the License.\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# See the License for the specific language governing permissions\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# and limitations under the License.\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# When distributing Covered Code, include this CDDL HEADER in each\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# file and include the License file at usr/src/OPENSOLARIS.LICENSE.\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# If applicable, add the following below this CDDL HEADER, with the\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# fields enclosed by brackets \"[]\" replaced with your own identifying\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# information: Portions Copyright [yyyy] [name of copyright owner]\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# CDDL HEADER END\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# ident \"@(#)sdp.conf 1.1 07/01/03 SMI\"\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# Copyright 2007 Sun Microsystems, Inc. All rights reserved.\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nh"# Use is subject to license terms.\n"
74e20cfe817b82802b16fac8690dadcda76f54f5nhstatic void
74e20cfe817b82802b16fac8690dadcda76f54f5nh switch (c) {
74e20cfe817b82802b16fac8690dadcda76f54f5nh if (fd < 0) {
74e20cfe817b82802b16fac8690dadcda76f54f5nh (void) fprintf(stderr, gettext("opening %s failed errno %d\n"),
74e20cfe817b82802b16fac8690dadcda76f54f5nh /* Parse the on|off from the user */
74e20cfe817b82802b16fac8690dadcda76f54f5nh if (enable == 0) {