version 1.12, 2003/06/03 02:56:16 |
version 1.13, 2003/06/10 22:20:51 |
|
|
* for detailed information on the protocol. |
* for detailed information on the protocol. |
*/ |
*/ |
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char **argv; |
|
{ |
{ |
struct exportslist *exp; |
struct exportslist *exp; |
struct grouplist *grp; |
struct grouplist *grp; |
|
|
* Xdr routine for retrieving the mount dump list |
* Xdr routine for retrieving the mount dump list |
*/ |
*/ |
int |
int |
xdr_mntdump(xdrsp, mlp) |
xdr_mntdump(XDR *xdrsp, struct mountlist **mlp) |
XDR *xdrsp; |
|
struct mountlist **mlp; |
|
{ |
{ |
struct mountlist *mp, **otp = NULL, *tp; |
struct mountlist *mp, **otp = NULL, *tp; |
int bool, val, val2; |
int bool, val, val2; |
|
|
* Xdr routine to retrieve exports list |
* Xdr routine to retrieve exports list |
*/ |
*/ |
int |
int |
xdr_exports(xdrsp, exp) |
xdr_exports(XDR *xdrsp, struct exportslist **exp) |
XDR *xdrsp; |
|
struct exportslist **exp; |
|
{ |
{ |
struct exportslist *ep; |
struct exportslist *ep; |
struct grouplist *gp; |
struct grouplist *gp; |
|
|
} |
} |
|
|
void |
void |
usage() |
usage(void) |
{ |
{ |
|
|
fprintf(stderr, "usage: showmount [-ade3] host\n"); |
fprintf(stderr, "usage: showmount [-ade3] host\n"); |
|
|
* Print the binary tree in inorder so that output is sorted. |
* Print the binary tree in inorder so that output is sorted. |
*/ |
*/ |
void |
void |
print_dump(mp) |
print_dump(struct mountlist *mp) |
struct mountlist *mp; |
|
{ |
{ |
char vn[(RPCMNT_NAMELEN+1)*4]; |
char vn[(RPCMNT_NAMELEN+1)*4]; |
char vp[(RPCMNT_PATHLEN+1)*4]; |
char vp[(RPCMNT_PATHLEN+1)*4]; |