]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/nfs_mntent.h
libexport.a: Reduce code duplication in client_init()
[nfs-utils.git] / support / include / nfs_mntent.h
1 /*
2  * 2006-06-08 Amit Gud <agud@redhat.com>
3  * - Moved code snippets here from util-linux/mount/my_mntent.h
4  */
5
6 #ifndef _NFS_MNTENT_H
7 #define _NFS_MNTENT_H
8 #include <mntent.h>
9
10 #define ERR_MAX 5
11
12 typedef struct mntFILEstruct {
13         FILE *mntent_fp;
14         char *mntent_file;
15         int mntent_lineno;
16         int mntent_errs;
17         int mntent_softerrs;
18 } mntFILE;
19
20 mntFILE *nfs_setmntent (const char *file, char *mode);
21 void nfs_endmntent (mntFILE *mfp);
22 int nfs_addmntent (mntFILE *mfp, struct mntent *mnt);
23 struct nfs_mntent *my_getmntent (mntFILE *mfp);
24 struct mntent *nfs_getmntent (mntFILE *mfp);
25
26 #endif /* _NFS_MNTENT_H */