/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* nfs dfshares
*/
#include <stdio.h>
#include <string.h>
#include <rpc/rpcb_clnt.h>
#include <netdb.h>
int hflg;
void pr_exports();
void free_ex();
void usage();
int
{
extern int optind;
extern char *optarg;
int i, c;
switch (c) {
case 'h':
hflg++;
break;
default:
usage();
exit(1);
}
}
pr_exports(argv[i]);
} else {
perror("nfs dfshares: gethostname");
exit(1);
}
}
return (0);
}
void
char *host;
{
/*
* First try circuit, then drop back to datagram if
* circuit is unavailable (an old version of mountd perhaps)
* Using circuit is preferred because it can handle
* arbitrarily long export lists.
*/
"datagram_n");
(void) __rpc_control(CLCR_SET_RPCB_TIMEOUT,
exit(1);
}
}
exit(1);
}
exit(1);
}
if (!hflg) {
printf("%-35s %12s %-8s %s\n",
"RESOURCE", "SERVER", "ACCESS", "TRANSPORT");
hflg++;
}
while (ex) {
printf("%10s:%-24s %12s %-8s %s\n",
}
}
void
struct exportnode *ex;
{
while (ex) {
while (gr) {
}
}
}
void
usage()
{
}