util-linux/mount/fstab.h

27 lines
795 B
C
Raw Normal View History

2006-12-06 17:25:32 -06:00
/* The fsent(3) routines are obsoleted by mntent(3). I use them for
convenience. Since the implementation uses mntent(3), be very
careful with the static buffers returned.
2006-12-06 17:25:33 -06:00
$Header: /home/faith/cvs/util-linux/mount/fstab.h,v 1.2 1995/09/25 20:57:42 faith Exp $ */
2006-12-06 17:25:32 -06:00
#ifndef _FSTAB_H
#include <stdio.h>
#include <mntent.h>
#define _PATH_FSTAB "/etc/fstab"
/* Translate fsent(3) stuff into mntent(3) stuff.
In general this won't work, but it's good enough here. */
#define fstab mntent
#define fs_type mnt_type
#define fs_spec mnt_fsname
2006-12-06 17:25:33 -06:00
#define fs_mntopts mnt_opts
2006-12-06 17:25:32 -06:00
#define FSTAB_SW MNTTYPE_SWAP
struct fstab *getfsent (void);
struct fstab *getfsspec (const char *spec);
struct fstab *getfsfile (const char *file);
int setfsent (void);
void endfsent (void);
#endif /* _FSTAB_H */