00001 /* mountlist.h -- declarations for list of mounted file systems 00002 00003 Copyright (C) 1991, 1992, 1998, 2000, 2001, 2002, 2003, 2004, 2005 00004 Free Software 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 2, or (at your option) 00009 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, write to the Free Software Foundation, 00018 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00019 00020 #ifndef MOUNTLIST_H_ 00021 # define MOUNTLIST_H_ 00022 00023 # include <stdbool.h> 00024 # include <sys/types.h> 00025 00026 /* A mount table entry. */ 00027 struct mount_entry 00028 { 00029 char *me_devname; /* Device node name, including "/dev/". */ 00030 char *me_mountdir; /* Mount point directory name. */ 00031 char *me_type; /* "nfs", "4.2", etc. */ 00032 dev_t me_dev; /* Device number of me_mountdir. */ 00033 unsigned int me_dummy : 1; /* Nonzero for dummy file systems. */ 00034 unsigned int me_remote : 1; /* Nonzero for remote fileystems. */ 00035 unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */ 00036 struct mount_entry *me_next; 00037 }; 00038 00039 struct mount_entry *read_file_system_list (bool need_fs_type); 00040 00041 #endif
1.5.8