diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-12 00:49:51 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-12 00:49:51 (GMT) |
commit | fbf1e60f477460205c2002bb34b87f9e1e3b0faf (patch) | |
tree | 96d568de54259a8b1f8e6a88dbb533037ef730e5 /lib/mountlist.h | |
parent | dbe8fb585697e3a7c073cef083ff2fb027b76968 (diff) | |
download | monitoring-plugins-fbf1e60f477460205c2002bb34b87f9e1e3b0faf.tar.gz |
Update to using coreutils 5.2.1 libraries and snprintf.c from samba 3.0.8
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@895 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/mountlist.h')
-rw-r--r-- | lib/mountlist.h | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/lib/mountlist.h b/lib/mountlist.h index c41490c..9e550a0 100644 --- a/lib/mountlist.h +++ b/lib/mountlist.h | |||
@@ -1,5 +1,7 @@ | |||
1 | /* mountlist.h -- declarations for list of mounted filesystems | 1 | /* mountlist.h -- declarations for list of mounted filesystems |
2 | Copyright (C) 1991, 1992, 1998, 2000 Free Software Foundation, Inc. | 2 | |
3 | Copyright (C) 1991, 1992, 1998, 2000, 2001, 2002, 2003 Free | ||
4 | Software Foundation, Inc. | ||
3 | 5 | ||
4 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
@@ -24,27 +26,28 @@ struct mount_entry | |||
24 | dev_t me_dev; /* Device number of me_mountdir. */ | 26 | dev_t me_dev; /* Device number of me_mountdir. */ |
25 | unsigned int me_dummy : 1; /* Nonzero for dummy filesystems. */ | 27 | unsigned int me_dummy : 1; /* Nonzero for dummy filesystems. */ |
26 | unsigned int me_remote : 1; /* Nonzero for remote fileystems. */ | 28 | unsigned int me_remote : 1; /* Nonzero for remote fileystems. */ |
29 | unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */ | ||
27 | struct mount_entry *me_next; | 30 | struct mount_entry *me_next; |
28 | }; | 31 | }; |
29 | 32 | ||
30 | #ifndef PARAMS | 33 | struct mount_entry *read_filesystem_list (int need_fs_type); |
31 | # if defined PROTOTYPES || (defined __STDC__ && __STDC__) | ||
32 | # define PARAMS(Args) Args | ||
33 | # else | ||
34 | # define PARAMS(Args) () | ||
35 | # endif | ||
36 | #endif | ||
37 | |||
38 | struct mount_entry *read_filesystem_list PARAMS ((int need_fs_type)); | ||
39 | 34 | ||
40 | #ifndef ME_DUMMY | 35 | #ifndef ME_DUMMY |
41 | # define ME_DUMMY(fs_name, fs_type) \ | 36 | # define ME_DUMMY(Fs_name, Fs_type) \ |
42 | (!strcmp (fs_type, "auto") \ | 37 | (!strcmp (Fs_type, "autofs") \ |
43 | || !strcmp (fs_type, "autofs") \ | ||
44 | /* for Irix 6.5 */ \ | 38 | /* for Irix 6.5 */ \ |
45 | || !strcmp (fs_type, "ignore")) | 39 | || !strcmp (Fs_type, "ignore")) |
46 | #endif | 40 | #endif |
47 | 41 | ||
42 | #undef STREQ | ||
43 | #define STREQ(a, b) (strcmp ((a), (b)) == 0) | ||
44 | |||
48 | #ifndef ME_REMOTE | 45 | #ifndef ME_REMOTE |
49 | # define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0) | 46 | /* A file system is `remote' if its Fs_name contains a `:' |
47 | or if (it is of type smbfs and its Fs_name starts with `//'). */ | ||
48 | # define ME_REMOTE(Fs_name, Fs_type) \ | ||
49 | (strchr ((Fs_name), ':') != 0 \ | ||
50 | || ((Fs_name)[0] == '/' \ | ||
51 | && (Fs_name)[1] == '/' \ | ||
52 | && STREQ (Fs_type, "smbfs"))) | ||
50 | #endif | 53 | #endif |