1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00
freebsd/sbin/mount
Kirk McKusick 906c312bbf Document the mntopts(3) functions.
The mntopts(3) functions support operations associated with a mount
point. The main purpose of this commit is to document the mntopts(3)
functions that now appear in 18 utilities in the base system. See
mntopts(3) for the documentation details.

The getmntopts() function appeared in 4.4BSD. The build_iovec(),
build_iovec_argf(), free_iovec(), checkpath(), and rmslashes()
functions were added with nmount(8) in FreeBSD 5.0. The getmntpoint()
and chkdoreload() functions are being added in this commit.

These functions should be in a library but for historic reasons are
in a file in the sources for the mount(8) program. Thus, to access
them the following lines need to be added to the Makefile of the
program wanting to use them:

SRCS+= getmntopts.c
MOUNT= ${SRCTOP}/sbin/mount
CFLAGS+= -I${MOUNT}
.PATH: ${MOUNT}

Once these changes have been MFC'ed to 13 they may be made into
a library.

Reviewed by:  kib, gbe
MFC after:    2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37907
2023-01-15 10:21:31 -08:00
..
extern.h
getmntopts.c Document the mntopts(3) functions. 2023-01-15 10:21:31 -08:00
Makefile Document the mntopts(3) functions. 2023-01-15 10:21:31 -08:00
Makefile.depend
mntopts.3 Document the mntopts(3) functions. 2023-01-15 10:21:31 -08:00
mntopts.h Document the mntopts(3) functions. 2023-01-15 10:21:31 -08:00
mount_fs.c
mount.8 Delete xref to suidperl(1) which has long since been removed in perl5.12. 2022-08-14 15:43:27 +02:00
mount.c Document the mntopts(3) functions. 2023-01-15 10:21:31 -08:00
pathnames.h
vfslist.c vfslist.c: initialize skipvfs variable 2022-01-05 23:00:36 +01:00