projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7e84e3
)
(REMOTE_FS_TYPE): New macro.
author
Jim Meyering
<jim@meyering.net>
Sat, 25 Jul 1998 14:55:10 +0000
(14:55 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 25 Jul 1998 14:55:10 +0000
(14:55 +0000)
lib/mountlist.h
patch
|
blob
|
history
diff --git
a/lib/mountlist.h
b/lib/mountlist.h
index 0a6e6d8b25ba7cb29d2c2945649893267fd9b1af..963670d4b9951b4d2bf36e999852812f5413501c 100644
(file)
--- 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