mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
Search for mntopts.h globally, not locally
Change the include directives to use <mntopts.h> instead of "mntopts.h"
now that it's installed by libutil (the latter option was dubious
regardless since a -I${SRCTOP}/sbin/mount was required anyway).
Reviewed by: olce, imp, dim, emaste
Differential Revision: https://reviews.freebsd.org/D49952
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <err.h>
|
||||
#include <sysexits.h>
|
||||
#include <mntopts.h>
|
||||
|
||||
#include <cflib.h>
|
||||
|
||||
@@ -56,8 +57,6 @@
|
||||
|
||||
#include <fs/smbfs/smbfs.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
static char mount_point[MAXPATHLEN + 1];
|
||||
static void usage(void);
|
||||
|
||||
|
||||
@@ -36,14 +36,13 @@
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <mntopts.h>
|
||||
#include <paths.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
int getmnt_silent = 0;
|
||||
|
||||
void
|
||||
|
||||
+1
-1
@@ -49,6 +49,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <kenv.h>
|
||||
#include <libutil.h>
|
||||
#include <mntopts.h>
|
||||
#include <paths.h>
|
||||
#include <signal.h>
|
||||
#include <stdarg.h>
|
||||
@@ -69,7 +70,6 @@
|
||||
#include <login_cap.h>
|
||||
#endif
|
||||
|
||||
#include "mntopts.h"
|
||||
#include "pathnames.h"
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <fstab.h>
|
||||
#include <mntopts.h>
|
||||
#include <paths.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
@@ -51,7 +52,6 @@
|
||||
#include <libxo/xo.h>
|
||||
|
||||
#include "extern.h"
|
||||
#include "mntopts.h"
|
||||
#include "pathnames.h"
|
||||
|
||||
#define EXIT(a) { \
|
||||
|
||||
@@ -38,13 +38,13 @@
|
||||
#include <err.h>
|
||||
#include <getopt.h>
|
||||
#include <libgen.h>
|
||||
#include <mntopts.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "extern.h"
|
||||
#include "mntopts.h"
|
||||
|
||||
static struct mntopt mopts[] = {
|
||||
MOPT_STDOPTS,
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <grp.h>
|
||||
#include <mntopts.h>
|
||||
#include <pwd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -55,8 +56,6 @@
|
||||
#include <sysexits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
static struct mntopt mopts[] = {
|
||||
MOPT_STDOPTS,
|
||||
MOPT_UPDATE,
|
||||
|
||||
@@ -49,11 +49,10 @@
|
||||
#include <signal.h>
|
||||
#include <getopt.h>
|
||||
#include <limits.h>
|
||||
#include <mntopts.h>
|
||||
#include <osreldate.h>
|
||||
#include <paths.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
#ifndef FUSE4BSD_VERSION
|
||||
#define FUSE4BSD_VERSION "0.3.9-pre1"
|
||||
#endif
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include <errno.h>
|
||||
#include <grp.h>
|
||||
#include <locale.h>
|
||||
#include <mntopts.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
/* must be after stdio to declare fparseln */
|
||||
@@ -53,8 +54,6 @@
|
||||
#include <sysexits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
static gid_t a_gid(char *);
|
||||
static uid_t a_uid(char *);
|
||||
static mode_t a_mask(char *);
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <mntopts.h>
|
||||
#include <netdb.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
@@ -67,7 +68,6 @@
|
||||
#include <sysexits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
#include "mounttab.h"
|
||||
|
||||
/* Table for af,sotype -> netid conversions. */
|
||||
|
||||
@@ -38,14 +38,13 @@
|
||||
#include <sys/uio.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <mntopts.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
static void usage(void) __dead2;
|
||||
|
||||
static int
|
||||
|
||||
@@ -53,14 +53,13 @@
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <mntopts.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
static struct mntopt mopts[] = {
|
||||
MOPT_STDOPTS,
|
||||
MOPT_UPDATE,
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <sys/errno.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <mntopts.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -49,8 +50,6 @@
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#include "mntopts.h"
|
||||
|
||||
static int
|
||||
subdir(const char *p, const char *dir)
|
||||
{
|
||||
|
||||
@@ -32,10 +32,9 @@ extern "C" {
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <mntopts.h> // for build_iovec
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h" // for build_iovec
|
||||
}
|
||||
|
||||
#include "mockfs.hh"
|
||||
|
||||
@@ -39,13 +39,12 @@ extern "C" {
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <libutil.h>
|
||||
#include <mntopts.h> // for build_iovec
|
||||
#include <poll.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mntopts.h" // for build_iovec
|
||||
}
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
@@ -33,7 +33,7 @@ extern "C" {
|
||||
#include <sys/mount.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#include "mntopts.h" // for build_iovec
|
||||
#include <mntopts.h> // for build_iovec
|
||||
}
|
||||
|
||||
#include "mockfs.hh"
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <libgen.h>
|
||||
#include <libutil.h>
|
||||
#include <mntopts.h>
|
||||
#include <netdb.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
@@ -55,7 +56,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "mntopts.h"
|
||||
|
||||
static int
|
||||
unmount_by_statfs(const struct statfs *sb, bool force)
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#include <grp.h>
|
||||
#include <libutil.h>
|
||||
#include <limits.h>
|
||||
#include <mntopts.h>
|
||||
#include <netdb.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
@@ -73,7 +74,6 @@
|
||||
#include <unistd.h>
|
||||
#include <vis.h>
|
||||
#include "pathnames.h"
|
||||
#include "mntopts.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include <stdarg.h>
|
||||
|
||||
Reference in New Issue
Block a user