summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-25 14:55:10 +0000
committerJim Meyering <jim@meyering.net>1998-07-25 14:55:10 +0000
commit122d3f15ae0ea033bd4ff99df2eae455e042a609 (patch)
tree4f2184468bae56800015f0131f62cfc1cf9a5d58
parentbb3fca40db7abb3ea7be513cd459872a13b1e56c (diff)
downloadcoreutils-122d3f15ae0ea033bd4ff99df2eae455e042a609.tar.xz
(REMOTE_FS_TYPE): New macro.
-rw-r--r--lib/mountlist.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mountlist.h b/lib/mountlist.h
index 0a6e6d8b2..963670d4b 100644
--- a/lib/mountlist.h
+++ b/lib/mountlist.h
@@ -30,3 +30,9 @@ struct mount_entry *read_filesystem_list (int need_fs_type, int all_fs);
#else
struct mount_entry *read_filesystem_list ();
#endif
+
+/* In most environments, by default, a filesystem type is remote if it
+ begins with "nfs". This allows variants like "nfs3". */
+#ifndef REMOTE_FS_TYPE
+# define REMOTE_FS_TYPE(t) (!strncmp (t, "nfs", 3))
+#endif