summaryrefslogtreecommitdiffstats
path: root/sbin/mount/getmntopts.3
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-03-11 12:28:00 +0000
committerpeter <peter@FreeBSD.org>1997-03-11 12:28:00 +0000
commit2feef020b355ece983a669243a95d099367b171c (patch)
tree9839b9610f8f5ce97f93c3d8c197a93fc61d2c61 /sbin/mount/getmntopts.3
parentd2924d1b179ce176f260d3d1bc75c9cc4ea6262e (diff)
downloadFreeBSD-src-2feef020b355ece983a669243a95d099367b171c.zip
FreeBSD-src-2feef020b355ece983a669243a95d099367b171c.tar.gz
Merge from Lite2
- use new getvfsbyname() interface and mount(2) interface **DANGER WILL ROBINSON!!** You must be running a -current kernel from within a week or so in order for this to work!
Diffstat (limited to 'sbin/mount/getmntopts.3')
-rw-r--r--sbin/mount/getmntopts.317
1 files changed, 11 insertions, 6 deletions
diff --git a/sbin/mount/getmntopts.3 b/sbin/mount/getmntopts.3
index c1bd25a..8424104 100644
--- a/sbin/mount/getmntopts.3
+++ b/sbin/mount/getmntopts.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)getmntopts.3 8.1 (Berkeley) 3/27/94
+.\" @(#)getmntopts.3 8.3 (Berkeley) 3/30/95
.\"
-.Dd March 27, 1994
+.Dd March 30, 1995
.Dt GETMNTOPTS 3
.Os BSD 4.4
.Sh NAME
@@ -62,7 +62,7 @@ or
.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 ,
@@ -154,16 +154,21 @@ struct mntopt mopts[] = {
};
...
- mntflags = 0;
+ mntflags = mntaltflags = 0;
...
- getmntopts(options, mopts, &mntflags)
+ getmntopts(options, mopts, &mntflags, &mntaltflags);
...
.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.
+By default
+.Dv getmnt_silent
+is zero.
.Sh SEE ALSO
.Xr err 3 ,
.Xr mount 8
OpenPOWER on IntegriCloud