update man page for altflags and getmnt_silent
authorJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Thu, 30 Mar 1995 21:43:45 +0000 (13:43 -0800)
committerJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Thu, 30 Mar 1995 21:43:45 +0000 (13:43 -0800)
SCCS-vsn: sbin/mount/getmntopts.3 8.3

usr/src/sbin/mount/getmntopts.3

index 4bf8e4d..ae3ec85 100644 (file)
@@ -3,7 +3,7 @@
 .\"
 .\" %sccs.include.redist.roff%
 .\"
 .\"
 .\" %sccs.include.redist.roff%
 .\"
-.\"    @(#)getmntopts.3        8.2 (Berkeley) %G%
+.\"    @(#)getmntopts.3        8.3 (Berkeley) %G%
 .\"
 .Dd 
 .Dt GETMNTOPTS 3
 .\"
 .Dd 
 .Dt GETMNTOPTS 3
@@ -36,7 +36,7 @@ or
 .Dv m_altloc
 field of the option's table entry)
 are updated.
 .Dv m_altloc
 field of the option's table entry)
 are updated.
-The flag word is not initialized by
+The flag words are not initialized by
 .Nm getmntopt .
 The table,
 .Dv mopts ,
 .Nm getmntopt .
 The table,
 .Dv mopts ,
@@ -128,16 +128,21 @@ struct mntopt mopts[] = {
 };
 
        ...
 };
 
        ...
-       mntflags = 0;
+       mntflags = mntaltflags = 0;
        ...
        ...
-       getmntopts(options, mopts, &mntflags)
+       getmntopts(options, mopts, &mntflags, &mntaltflags);
        ...
 .Ed
 .Sh DIAGNOSTICS
        ...
 .Ed
 .Sh DIAGNOSTICS
-The
+If the external integer variable
+.Dv getmnt_silent
+is non-zero then the
 .Nm getmntopts
 function displays an error message and exits if an
 unrecognized option is encountered.
 .Nm getmntopts
 function displays an error message and exits if an
 unrecognized option is encountered.
+By default
+.Dv getmnt_silent
+is zero.
 .Sh SEE ALSO
 .Xr err 3 ,
 .Xr mount 8
 .Sh SEE ALSO
 .Xr err 3 ,
 .Xr mount 8