Deleted Added
full compact
getmntopts.3 (4065) getmntopts.3 (23678)
1.\" Copyright (c) 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
1.\" Copyright (c) 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getmntopts.3 8.1 (Berkeley) 3/27/94
32.\" @(#)getmntopts.3 8.3 (Berkeley) 3/30/95
33.\"
33.\"
34.Dd March 27, 1994
34.Dd March 30, 1995
35.Dt GETMNTOPTS 3
36.Os BSD 4.4
37.Sh NAME
38.Nm getmntopts
39.Nd scan mount options
40.Sh SYNOPSIS
41.Fd #include <mntopts.h>
42.Ft void

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

57the word referenced by either
58.Dv flagp
59or
60.Dv altflagp
61(depending on the
62.Dv m_altloc
63field of the option's table entry)
64are updated.
35.Dt GETMNTOPTS 3
36.Os BSD 4.4
37.Sh NAME
38.Nm getmntopts
39.Nd scan mount options
40.Sh SYNOPSIS
41.Fd #include <mntopts.h>
42.Ft void

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

57the word referenced by either
58.Dv flagp
59or
60.Dv altflagp
61(depending on the
62.Dv m_altloc
63field of the option's table entry)
64are updated.
65The flag word is not initialized by
65The flag words are not initialized by
66.Nm getmntopt .
67The table,
68.Dv mopts ,
69has the following format:
70.Bd -literal
71struct mntopt {
72 char *m_option; /* option name */
73 int m_inverse; /* is this a negative option, eg "dev" */

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

149
150struct mntopt mopts[] = {
151 MOPT_STDOPTS,
152 MOPT_UPDATE,
153 { NULL }
154};
155
156 ...
66.Nm getmntopt .
67The table,
68.Dv mopts ,
69has the following format:
70.Bd -literal
71struct mntopt {
72 char *m_option; /* option name */
73 int m_inverse; /* is this a negative option, eg "dev" */

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

149
150struct mntopt mopts[] = {
151 MOPT_STDOPTS,
152 MOPT_UPDATE,
153 { NULL }
154};
155
156 ...
157 mntflags = 0;
157 mntflags = mntaltflags = 0;
158 ...
158 ...
159 getmntopts(options, mopts, &mntflags)
159 getmntopts(options, mopts, &mntflags, &mntaltflags);
160 ...
161.Ed
162.Sh DIAGNOSTICS
160 ...
161.Ed
162.Sh DIAGNOSTICS
163The
163If the external integer variable
164.Dv getmnt_silent
165is non-zero then the
164.Nm getmntopts
165function displays an error message and exits if an
166unrecognized option is encountered.
166.Nm getmntopts
167function displays an error message and exits if an
168unrecognized option is encountered.
169By default
170.Dv getmnt_silent
171is zero.
167.Sh SEE ALSO
168.Xr err 3 ,
169.Xr mount 8
170.Sh HISTORY
171The
172.Fn getmntopts
173function appeared in
174.Bx 4.4 .
172.Sh SEE ALSO
173.Xr err 3 ,
174.Xr mount 8
175.Sh HISTORY
176The
177.Fn getmntopts
178function appeared in
179.Bx 4.4 .