Mercurial > hg > octave-jordi > gnulib-hg
changeset 1445:d59bd56497f1
(REMOTE_FS_TYPE): New macro.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 25 Jul 1998 14:55:10 +0000 |
parents | 8a70cc03ce0d |
children | d7a46a55964c |
files | lib/mountlist.h |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/mountlist.h +++ b/lib/mountlist.h @@ -30,3 +30,9 @@ #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