version 1.1, 1995/10/18 08:46:07 |
version 1.2, 1996/04/21 23:43:53 |
|
|
/* $NetBSD: showmount.c,v 1.5 1995/08/31 22:26:08 jtc Exp $ */ |
/* $NetBSD: showmount.c,v 1.6 1996/04/01 21:32:19 mark Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1989, 1993, 1995 |
* Copyright (c) 1989, 1993, 1995 |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95"; |
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95"; |
#endif |
#endif |
static char rcsid[] = "$NetBSD: showmount.c,v 1.5 1995/08/31 22:26:08 jtc Exp $"; |
static char rcsid[] = "$NetBSD: showmount.c,v 1.6 1996/04/01 21:32:19 mark Exp $"; |
#endif not lint |
#endif not lint |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
struct exportslist *exp; |
struct exportslist *exp; |
struct grouplist *grp; |
struct grouplist *grp; |
int estat, rpcs = 0, mntvers = 1; |
int estat, rpcs = 0, mntvers = 1; |
char ch, *host; |
char *host; |
|
int ch; |
|
|
while ((ch = getopt(argc, argv, "ade3")) != EOF) |
while ((ch = getopt(argc, argv, "ade3")) != -1) |
switch((char)ch) { |
switch((char)ch) { |
case 'a': |
case 'a': |
if (type == 0) { |
if (type == 0) { |