Deleted Added
full compact
mntopts.h (302408) mntopts.h (310374)
1/*-
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)mntopts.h 8.7 (Berkeley) 3/29/95
1/*-
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)mntopts.h 8.7 (Berkeley) 3/29/95
30 * $FreeBSD: stable/11/sbin/mount/mntopts.h 270096 2014-08-17 09:44:42Z trasz $
30 * $FreeBSD: stable/11/sbin/mount/mntopts.h 310374 2016-12-21 22:04:44Z brooks $
31 */
32
33struct mntopt {
34 const char *m_option; /* option name */
35 int m_inverse; /* if a negative option, e.g. "atime" */
36 long long m_flag; /* bit to set, e.g. MNT_RDONLY */
37 int m_altloc; /* 1 => set bit in altflags */
38};

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

94 MOPT_AUTOMOUNTED
95
96void getmntopts(const char *, const struct mntopt *, int *, int *);
97void rmslashes(char *, char *);
98int checkpath(const char *, char resolved_path[]);
99extern int getmnt_silent;
100void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
101void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
31 */
32
33struct mntopt {
34 const char *m_option; /* option name */
35 int m_inverse; /* if a negative option, e.g. "atime" */
36 long long m_flag; /* bit to set, e.g. MNT_RDONLY */
37 int m_altloc; /* 1 => set bit in altflags */
38};

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

94 MOPT_AUTOMOUNTED
95
96void getmntopts(const char *, const struct mntopt *, int *, int *);
97void rmslashes(char *, char *);
98int checkpath(const char *, char resolved_path[]);
99extern int getmnt_silent;
100void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
101void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
102void free_iovec(struct iovec **iovec, int *iovlen);