ndd.c revision a924b63fa966be82bd67880ed760a9532ca55939
4b22b9337f359bfd063322244f5336cc7c6ffcfars * CDDL HEADER START
4b22b9337f359bfd063322244f5336cc7c6ffcfars * The contents of this file are subject to the terms of the
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Common Development and Distribution License (the "License").
4b22b9337f359bfd063322244f5336cc7c6ffcfars * You may not use this file except in compliance with the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4b22b9337f359bfd063322244f5336cc7c6ffcfars * See the License for the specific language governing permissions
4b22b9337f359bfd063322244f5336cc7c6ffcfars * and limitations under the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * When distributing Covered Code, include this CDDL HEADER in each
4b22b9337f359bfd063322244f5336cc7c6ffcfars * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * If applicable, add the following below this CDDL HEADER, with the
4b22b9337f359bfd063322244f5336cc7c6ffcfars * fields enclosed by brackets "[]" replaced with your own identifying
4b22b9337f359bfd063322244f5336cc7c6ffcfars * information: Portions Copyright [yyyy] [name of copyright owner]
4b22b9337f359bfd063322244f5336cc7c6ffcfars * CDDL HEADER END
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Use is subject to license terms.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Copyright (c) 1990 Mentat Inc.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * ndd.c 2.1, last change 11/14/90
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <stdarg.h>
#include <fcntl.h>
#include <unistd.h>
#include <stropts.h>
#include <string.h>
#include <stdlib.h>
#include <libdllink.h>
#include <libintl.h>
static int open_device(void);
char *link;
int cmd;
int fd;
return (EXIT_SUCCESS);
return (EXIT_SUCCESS);
return (EXIT_FAILURE);
return (EXIT_FAILURE);
} while (cp);
return (EXIT_SUCCESS);
rwtag++;
static boolean_t
return (B_TRUE);
return (B_FALSE);
static boolean_t
char *cp;
return (B_TRUE);
return (B_FALSE);
if (is_name_get)
return (B_TRUE);
int len;
len++;
return (len);
int cmd;
char *cp;
if (print_errno)
return (fd);