1 #ifndef _NFS_UTILS_MOUNT_FSTAB_H
2 #define _NFS_UTILS_MOUNT_FSTAB_H
4 #include "nfs_mntent.h"
7 #define _PATH_FSTAB "/etc/fstab"
10 int mtab_is_writable(void);
11 int mtab_does_not_exist(void);
12 void reset_mtab_info(void);
15 struct mntentchn
*nxt
, *prev
;
19 struct mntentchn
*getmntoptfile (const char *file
);
20 struct mntentchn
*getmntdirbackward (const char *dir
, struct mntentchn
*mc
);
21 struct mntentchn
*getmntdevbackward (const char *dev
, struct mntentchn
*mc
);
23 struct mntentchn
*getfsfile (const char *file
);
24 struct mntentchn
*getfsspec (const char *spec
);
26 void lock_mtab (void);
27 void unlock_mtab (void);
28 void update_mtab (const char *special
, struct mntent
*with
);
30 #endif /* _NFS_UTILS_MOUNT_FSTAB_H */