home *** CD-ROM | disk | FTP | other *** search
/ Chip 1995 March / CHIP3.mdf / slackwar / a / util / util-lin.2 / util-lin / util-linux-2.2 / mount / fstab.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-22  |  760 b   |  26 lines

  1. /* The fsent(3) routines are obsoleted by mntent(3).  I use them for
  2.    convenience.  Since the implementation uses mntent(3), be very
  3.    careful with the static buffers returned.
  4.    /home/faith/cvs/util-linux/mount/fstab.h,v 1.1.1.1 1995/02/22 19:09:21 faith Exp */
  5.  
  6. #ifndef _FSTAB_H
  7. #include <stdio.h>
  8. #include <mntent.h>
  9.  
  10. #define _PATH_FSTAB    "/etc/fstab"
  11.  
  12. /* Translate fsent(3) stuff into mntent(3) stuff.
  13.    In general this won't work, but it's good enough here.  */
  14. #define fstab mntent
  15. #define fs_type mnt_type
  16. #define fs_spec mnt_fsname
  17. #define FSTAB_SW MNTTYPE_SWAP
  18.  
  19. struct fstab *getfsent (void);
  20. struct fstab *getfsspec (const char *spec);
  21. struct fstab *getfsfile (const char *file);
  22. int setfsent (void);
  23. void endfsent (void);
  24.  
  25. #endif /* _FSTAB_H */
  26.