util-linux/mount/fstab.h

30 lines
759 B
C
Raw Normal View History

#define _PATH_FSTAB "/etc/fstab"
#define MOUNTED_LOCK "/etc/mtab~"
#define MOUNTED_TEMP "/etc/mtab.tmp"
#define LOCK_BUSY 10
2006-12-06 17:25:32 -06:00
int mtab_is_writable(void);
int mtab_does_not_exist(void);
int mtab_is_a_symlink(void);
2006-12-06 17:25:32 -06:00
struct mntentchn {
struct mntentchn *nxt, *prev;
char *mnt_fsname;
char *mnt_dir;
char *mnt_type;
char *mnt_opts;
};
2006-12-06 17:25:32 -06:00
struct mntentchn *mtab_head (void);
struct mntentchn *getmntfile (const char *name);
struct mntentchn *getmntoptfile (const char *file);
2006-12-06 17:25:32 -06:00
struct mntentchn *fstab_head (void);
struct mntentchn *getfsfile (const char *file);
struct mntentchn *getfsspec (const char *spec);
2006-12-06 17:25:32 -06:00
#include <mntent.h>
void lock_mtab (void);
void unlock_mtab (void);
void update_mtab (const char *special, struct mntent *with);