1
0
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:
Brooks Davis
2025-04-22 22:51:12 +01:00
parent cda23fc36d
commit a123502ef7
17 changed files with 17 additions and 27 deletions
+1 -2
View File
@@ -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);
+1 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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) { \
+1 -1
View File
@@ -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,
+1 -2
View File
@@ -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,
+1 -2
View File
@@ -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
+1 -2
View File
@@ -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 *);
+1 -1
View File
@@ -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. */
+1 -2
View File
@@ -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
+1 -2
View File
@@ -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,
+1 -2
View File
@@ -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)
{
+1 -2
View File
@@ -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"
+1 -2
View File
@@ -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>
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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>