home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / mntent.h < prev    next >
C/C++ Source or Header  |  1996-08-13  |  995b  |  49 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_mntent_h_
  3. #define __dj_include_mntent_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #include <stdio.h>
  16.  
  17. #define    MNT_MNTTAB    "/etc/mnttab"
  18.  
  19. struct mntent
  20. {
  21.   char *mnt_fsname;
  22.   char *mnt_dir;
  23.   char *mnt_type;
  24.   char *mnt_opts;
  25.   int  mnt_freq;
  26.   int  mnt_passno;
  27.   long mnt_time;
  28. };
  29.  
  30. extern FILE        *setmntent(const char *, const char *);
  31. extern struct mntent    *getmntent(FILE *);
  32. extern int        addmntent(FILE *, const struct mntent *);
  33. extern char        *hasmntopt(const struct mntent *, const char *);
  34. extern int        endmntent(FILE *);
  35.  
  36.  
  37. #endif /* !_POSIX_SOURCE */
  38. #endif /* !__STRICT_ANSI__ */
  39. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  40.  
  41. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  42. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif /* !__dj_include_mntent_h_ */
  49.