From: Jim Meyering Date: Sat, 25 Jul 1998 14:55:10 +0000 (+0000) Subject: (REMOTE_FS_TYPE): New macro. X-Git-Tag: FILEUTILS-3_16s~12 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=122d3f15ae0ea033bd4ff99df2eae455e042a609;p=thirdparty%2Fcoreutils.git (REMOTE_FS_TYPE): New macro. --- diff --git a/lib/mountlist.h b/lib/mountlist.h index 0a6e6d8b25..963670d4b9 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