mount.c revision 5d54f3d8999eac1762fe0a8c7177d20f1f201fae
/*
* 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 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <errno.h>
#define MS_RFFLAGS (MS_CACHE)
/*
*/
/*
* structs netbuf, knetconfig, and nfsarg from SVR4
*/
struct netbuf {
unsigned int maxlen;
unsigned int len;
char *buf;
};
struct knetconfig {
unsigned long knc_semantics; /* token name */
char *knc_protofmly; /* protocol family */
char *knc_proto; /* protocol */
unsigned long knc_unused[8];
};
struct nfsarg {
/* secure NFS time sync address */
/* transport knetconfig struct */
struct knetconfig *knconf;
char *hostname; /* server's hostname */
char *netname; /* server's netname */
int flags; /* flags */
int wsize; /* write size in bytes */
int rsize; /* read size in bytes */
int timeo; /* initial timeout in .1 secs */
int retrans; /* times to retry send */
int acregmin; /* attr cache file min secs */
int acregmax; /* attr cache file max secs */
int acdirmin; /* attr cache dir min secs */
int acdirmax; /* attr cache dir max secs */
};
int
{
int returnValue;
char fstr[32];
return (-1);
nflags = MS_NOTRUNC;
switch (flags) {
}
return (-1);
return (-1);
}
return (-1);
}
sizeof (struct nfsarg)));
return (returnValue);
}
return (-1);
}