1 /* 2 Declarations for list of mounted filesystems 3 */ 4 5 /** \file mountlist.h 6 * \brief Header: list of mounted filesystems 7 */ 8 9 #ifndef MC__MOUNTLIST_H 10 #define MC__MOUNTLIST_H 11 12 #include <stdint.h> /* uintmax_t */ 13 14 /*** typedefs(not structures) and defined constants **********************************************/ 15 16 /*** enums ***************************************************************************************/ 17 18 /*** structures declarations (and typedefs of structures)*****************************************/ 19 20 /* Filesystem status */ 21 struct my_statfs 22 { 23 int type; 24 char *typename; 25 const char *mpoint; 26 const char *mroot; 27 const char *device; 28 uintmax_t avail; /* in kB */ 29 uintmax_t total; /* in kB */ 30 uintmax_t nfree; 31 uintmax_t nodes; 32 }; 33 34 /*** global variables defined in .c file *********************************************************/ 35 36 /*** declarations of public functions ************************************************************/ 37 38 void init_my_statfs (void); 39 void my_statfs (struct my_statfs *myfs_stats, const char *path); 40 void free_my_statfs (void); 41 42 /*** inline functions ****************************************************************************/ 43 44 #endif /* MC__MOUNTLIST_H */