home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3296 / mntops.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-07  |  503 b   |  30 lines

  1. #ifndef MNTOPS_H
  2. #define MNTOPS_H
  3.  
  4. #include <sys/types.h>
  5. #include "structmtab.h" /* for MNTMAXSTR */
  6.  
  7. struct mounted
  8.  {
  9.   char *mountpoint;
  10.   char *filesystem;
  11.  }
  12. ;
  13.  
  14. struct statlist
  15.  {
  16.   struct statlist *next;
  17.   char filename[MNTMAXSTR];
  18.   char fsname[MNTMAXSTR];
  19.   dev_t device;
  20.  }
  21. ;
  22.  
  23. extern struct statlist *stats;
  24.  
  25. extern int get_mntlist();
  26. extern struct mounted *getmntname(); /* for directory or block dev name */
  27. extern struct mounted *getmntfile(); /* for dev number (in struct stat) */
  28.  
  29. #endif
  30.