summaryrefslogtreecommitdiffstats
path: root/gl/mountlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/mountlist.c')
-rw-r--r--gl/mountlist.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/gl/mountlist.c b/gl/mountlist.c
index 6d38481..06300d6 100644
--- a/gl/mountlist.c
+++ b/gl/mountlist.c
@@ -1,6 +1,6 @@
1/* mountlist.c -- return a list of mounted file systems 1/* mountlist.c -- return a list of mounted file systems
2 2
3 Copyright (C) 1991-1992, 1997-2023 Free Software Foundation, Inc. 3 Copyright (C) 1991-1992, 1997-2024 Free Software Foundation, Inc.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -154,11 +154,18 @@
154 154
155/* The results of opendir() in this file are not used with dirfd and fchdir, 155/* The results of opendir() in this file are not used with dirfd and fchdir,
156 therefore save some unnecessary work in fchdir.c. */ 156 therefore save some unnecessary work in fchdir.c. */
157#ifdef GNULIB_defined_opendir 157#ifdef GNULIB_defined_DIR
158# undef DIR
158# undef opendir 159# undef opendir
159#endif
160#ifdef GNULIB_defined_closedir
161# undef closedir 160# undef closedir
161# undef readdir
162#else
163# ifdef GNULIB_defined_opendir
164# undef opendir
165# endif
166# ifdef GNULIB_defined_closedir
167# undef closedir
168# endif
162#endif 169#endif
163 170
164#define ME_DUMMY_0(Fs_name, Fs_type) \ 171#define ME_DUMMY_0(Fs_name, Fs_type) \
@@ -185,11 +192,11 @@
185 we grant an exception to any with "bind" in its list of mount options. 192 we grant an exception to any with "bind" in its list of mount options.
186 I.e., those are *not* dummy entries. */ 193 I.e., those are *not* dummy entries. */
187#ifdef MOUNTED_GETMNTENT1 194#ifdef MOUNTED_GETMNTENT1
188# define ME_DUMMY(Fs_name, Fs_type, Bind) \ 195# define ME_DUMMY(Fs_name, Fs_type, Bind) \
189 (ME_DUMMY_0 (Fs_name, Fs_type) \ 196 (ME_DUMMY_0 (Fs_name, Fs_type) \
190 || (strcmp (Fs_type, "none") == 0 && !Bind)) 197 || (strcmp (Fs_type, "none") == 0 && !Bind))
191#else 198#else
192# define ME_DUMMY(Fs_name, Fs_type) \ 199# define ME_DUMMY(Fs_name, Fs_type) \
193 (ME_DUMMY_0 (Fs_name, Fs_type) || strcmp (Fs_type, "none") == 0) 200 (ME_DUMMY_0 (Fs_name, Fs_type) || strcmp (Fs_type, "none") == 0)
194#endif 201#endif
195 202