]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/fstab.h
In recent Fedora builds, the '-D _FORTIFY_SOURCE=2' compile
[nfs-utils.git] / utils / mount / fstab.h
1 #ifndef _NFS_UTILS_MOUNT_FSTAB_H
2 #define _NFS_UTILS_MOUNT_FSTAB_H
3
4 #include "nfs_mntent.h"
5
6 #ifndef _PATH_FSTAB
7 #define _PATH_FSTAB "/etc/fstab"
8 #endif
9
10 int mtab_is_writable(void);
11 int mtab_does_not_exist(void);
12 void reset_mtab_info(void);
13
14 struct mntentchn {
15         struct mntentchn *nxt, *prev;
16         struct mntent m;
17 };
18
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);
22
23 struct mntentchn *getfsfile (const char *file);
24 struct mntentchn *getfsspec (const char *spec);
25
26 void lock_mtab (void);
27 void unlock_mtab (void);
28 void update_mtab (const char *special, struct mntent *with);
29
30 #endif  /* _NFS_UTILS_MOUNT_FSTAB_H */