Back to index

nagios-plugins  1.4.16
mountlist.h
Go to the documentation of this file.
00001 /* mountlist.h -- declarations for list of mounted file systems
00002 
00003    Copyright (C) 1991-1992, 1998, 2000-2005, 2009-2010 Free Software
00004    Foundation, Inc.
00005 
00006    This program is free software: you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #ifndef MOUNTLIST_H_
00020 # define MOUNTLIST_H_
00021 
00022 # include <stdbool.h>
00023 # include <sys/types.h>
00024 
00025 /* A mount table entry. */
00026 struct mount_entry
00027 {
00028   char *me_devname;             /* Device node name, including "/dev/". */
00029   char *me_mountdir;            /* Mount point directory name. */
00030   char *me_type;                /* "nfs", "4.2", etc. */
00031   dev_t me_dev;                 /* Device number of me_mountdir. */
00032   unsigned int me_dummy : 1;    /* Nonzero for dummy file systems. */
00033   unsigned int me_remote : 1;   /* Nonzero for remote fileystems. */
00034   unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */
00035   struct mount_entry *me_next;
00036 };
00037 
00038 struct mount_entry *read_file_system_list (bool need_fs_type);
00039 
00040 #endif