Deleted Added
full compact
mount_nfs.c (92806) mount_nfs.c (92882)
1/*
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
46#endif
47static const char rcsid[] =
1/*
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
46#endif
47static const char rcsid[] =
48 "$FreeBSD: head/sbin/mount_nfs/mount_nfs.c 92806 2002-03-20 17:55:10Z obrien $";
48 "$FreeBSD: head/sbin/mount_nfs/mount_nfs.c 92882 2002-03-21 13:14:21Z imp $";
49#endif /* not lint */
50
51#include <sys/param.h>
52#include <sys/mount.h>
53#include <sys/socket.h>
54#include <sys/stat.h>
55#include <sys/syslog.h>
56

--- 128 unchanged lines hidden (view full) ---

185/* Return codes for nfs_tryproto. */
186enum tryret {
187 TRYRET_SUCCESS,
188 TRYRET_TIMEOUT, /* No response received. */
189 TRYRET_REMOTEERR, /* Error received from remote server. */
190 TRYRET_LOCALERR /* Local failure. */
191};
192
49#endif /* not lint */
50
51#include <sys/param.h>
52#include <sys/mount.h>
53#include <sys/socket.h>
54#include <sys/stat.h>
55#include <sys/syslog.h>
56

--- 128 unchanged lines hidden (view full) ---

185/* Return codes for nfs_tryproto. */
186enum tryret {
187 TRYRET_SUCCESS,
188 TRYRET_TIMEOUT, /* No response received. */
189 TRYRET_REMOTEERR, /* Error received from remote server. */
190 TRYRET_LOCALERR /* Local failure. */
191};
192
193int getnfsargs __P((char *, struct nfs_args *));
194/* void set_rpc_maxgrouplist __P((int)); */
193int getnfsargs(char *, struct nfs_args *);
194/* void set_rpc_maxgrouplist(int); */
195struct netconfig *getnetconf_cached(const char *netid);
196char *netidbytype(int af, int sotype);
195struct netconfig *getnetconf_cached(const char *netid);
196char *netidbytype(int af, int sotype);
197void usage __P((void)) __dead2;
198int xdr_dir __P((XDR *, char *));
199int xdr_fh __P((XDR *, struct nfhret *));
197void usage(void) __dead2;
198int xdr_dir(XDR *, char *);
199int xdr_fh(XDR *, struct nfhret *);
200enum tryret nfs_tryproto(struct nfs_args *nfsargsp, struct addrinfo *ai,
201 char *hostp, char *spec, char **errstr);
202enum tryret returncode(enum clnt_stat stat, struct rpc_err *rpcerr);
203
204/*
205 * Used to set mount flags with getmntopts. Call with dir=TRUE to
206 * initialize altflags from the current mount flags. Call with
207 * dir=FALSE to update mount flags with the new value of altflags after

--- 700 unchanged lines hidden ---
200enum tryret nfs_tryproto(struct nfs_args *nfsargsp, struct addrinfo *ai,
201 char *hostp, char *spec, char **errstr);
202enum tryret returncode(enum clnt_stat stat, struct rpc_err *rpcerr);
203
204/*
205 * Used to set mount flags with getmntopts. Call with dir=TRUE to
206 * initialize altflags from the current mount flags. Call with
207 * dir=FALSE to update mount flags with the new value of altflags after

--- 700 unchanged lines hidden ---