summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-07-06 07:15:53 +0000
committercharnier <charnier@FreeBSD.org>1998-07-06 07:15:53 +0000
commit10dd9df3855ffef5284d5e4c2c1c7e2cfc1676f9 (patch)
tree0606ec711215abc4c14df2f2b69fe605c5c49a10 /sbin
parent9b4886fff434edd3fa6bce646819f3f4d774a860 (diff)
downloadFreeBSD-src-10dd9df3855ffef5284d5e4c2c1c7e2cfc1676f9.zip
FreeBSD-src-10dd9df3855ffef5284d5e4c2c1c7e2cfc1676f9.tar.gz
Sync usage string and man page. Correct use of .Nm. Spelling. Remove
unused #includes.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_nfs/mount_nfs.88
-rw-r--r--sbin/mount_nfs/mount_nfs.c34
2 files changed, 19 insertions, 23 deletions
diff --git a/sbin/mount_nfs/mount_nfs.8 b/sbin/mount_nfs/mount_nfs.8
index aacd843..92568d7 100644
--- a/sbin/mount_nfs/mount_nfs.8
+++ b/sbin/mount_nfs/mount_nfs.8
@@ -31,7 +31,7 @@
.\"
.\" @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95
.\"
-.\" $Id: mount_nfs.8,v 1.12 1998/05/19 07:18:27 peter Exp $
+.\" $Id: mount_nfs.8,v 1.13 1998/06/29 06:58:46 jkoshy Exp $
.\""
.Dd March 29, 1995
.Dt MOUNT_NFS 8
@@ -57,7 +57,7 @@
.Ar rhost:path node
.Sh DESCRIPTION
The
-.Nm mount_nfs
+.Nm
command
calls the
.Xr mount 2
@@ -191,7 +191,7 @@ The default is to query the portmapper for the NFS port.
.It acregmax=<seconds>
.It acdirmin=<seconds>
.It acdirmax=<seconds>
-When attributes of files are cached, a timeout caclulated to determine
+When attributes of files are cached, a timeout calculated to determine
whether a given cache entry has expired. These four values determine the
upper and lower bounds of the timeouts for ``directory'' attributes and
``regular'' (ie: everything else). The default values are 3 -> 60 seconds
@@ -205,7 +205,7 @@ the longer the cache is considered valid, subject to the limits above.
.Pp
Use of these options is deprecated, they are only mentioned here for
compatibility with historic versions of
-.Nm mount_nfs .
+.Nm Ns .
.It bg
Same as
.Fl b .
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index f28e199..c3fdb30 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -35,23 +35,21 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1992, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-/*
+#if 0
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
-*/
+#endif
static const char rcsid[] =
- "$Id: mount_nfs.c,v 1.27 1998/02/01 21:53:19 bde Exp $";
+ "$Id$";
#endif /* not lint */
#include <sys/param.h>
#include <sys/mount.h>
-#include <sys/socket.h>
-#include <sys/socketvar.h>
#include <sys/stat.h>
#include <sys/syslog.h>
@@ -78,9 +76,7 @@ static const char rcsid[] =
#include <ctype.h>
#include <err.h>
#include <errno.h>
-#include <fcntl.h>
#include <netdb.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
@@ -213,7 +209,7 @@ int xdr_fh __P((XDR *, struct nfhret *));
/*
* Used to set mount flags with getmntopts. Call with dir=TRUE to
- * initialise altflags from the current mount flags. Call with
+ * initialize altflags from the current mount flags. Call with
* dir=FALSE to update mount flags with the new value of altflags after
* the call to getmntopts.
*/
@@ -493,7 +489,7 @@ main(argc, argv)
#endif
if (nfsargsp->flags & (NFSMNT_NQNFS | NFSMNT_KERB)) {
if ((opflags & ISBGRND) == 0) {
- if (i = fork()) {
+ if ((i = fork())) {
if (i == -1)
err(1, "nqnfs 1");
exit(0);
@@ -522,7 +518,7 @@ main(argc, argv)
* as last time, so that the right ticket file
* is found.
* Get the Kerberos credential structure so that
- * we have the seesion key and get a ticket for
+ * we have the session key and get a ticket for
* this uid.
* For more info see the IETF Draft "Authentication
* in ONC RPC".
@@ -548,7 +544,7 @@ main(argc, argv)
realm, 0);
/*
- * Fill in the AKN_FULLNAME authenticator and verfier.
+ * Fill in the AKN_FULLNAME authenticator and verifier.
* Along with the Kerberos ticket, we need to build
* the timestamp verifier and encrypt it in CBC mode.
*/
@@ -771,7 +767,7 @@ tryagain:
mountmode = V2;
goto tryagain;
} else {
- errx(1, "Can't contact NFS server");
+ errx(1, "can't contact NFS server");
}
}
saddr.sin_port = 0;
@@ -820,7 +816,7 @@ tryagain:
if (--retrycnt > 0) {
if (opflags & BGRND) {
opflags &= ~BGRND;
- if (i = fork()) {
+ if ((i = fork())) {
if (i == -1)
err(1, "nqnfs 2");
exit(0);
@@ -914,10 +910,10 @@ xdr_fh(xdrsp, np)
void
usage()
{
- (void)fprintf(stderr, "\
-usage: mount_nfs [-23KPTUbcdilqs] [-D deadthresh] [-I readdirsize]\n\
- [-L leaseterm] [-R retrycnt] [-a maxreadahead] [-g maxgroups]\n\
- [-m realm] [-o options] [-r readsize] [-t timeout] [-w writesize]\n\
- [-x retrans] rhost:path node\n");
+ (void)fprintf(stderr, "%s\n%s\n%s\n%s\n",
+"usage: mount_nfs [-23KNPTUbcdilqs] [-D deadthresh] [-I readdirsize]",
+" [-L leaseterm] [-R retrycnt] [-a maxreadahead]",
+" [-g maxgroups] [-m realm] [-o options] [-r readsize]",
+" [-t timeout] [-w writesize] [-x retrans] rhost:path node");
exit(1);
}
OpenPOWER on IntegriCloud