From 4897093455a2bf08f3db3a1132cc2f6f5484d77c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 08:03:02 +0200 Subject: Adding upstream version 1:2.6.4. Signed-off-by: Daniel Baumann --- support/include/nfs_mntent.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 support/include/nfs_mntent.h (limited to 'support/include/nfs_mntent.h') diff --git a/support/include/nfs_mntent.h b/support/include/nfs_mntent.h new file mode 100644 index 0000000..010df24 --- /dev/null +++ b/support/include/nfs_mntent.h @@ -0,0 +1,26 @@ +/* + * 2006-06-08 Amit Gud + * - Moved code snippets here from util-linux/mount/my_mntent.h + */ + +#ifndef _NFS_MNTENT_H +#define _NFS_MNTENT_H +#include + +#define ERR_MAX 5 + +typedef struct mntFILEstruct { + FILE *mntent_fp; + char *mntent_file; + int mntent_lineno; + int mntent_errs; + int mntent_softerrs; +} mntFILE; + +mntFILE *nfs_setmntent (const char *file, char *mode); +void nfs_endmntent (mntFILE *mfp); +int nfs_addmntent (mntFILE *mfp, struct mntent *mnt); +struct nfs_mntent *my_getmntent (mntFILE *mfp); +struct mntent *nfs_getmntent (mntFILE *mfp); + +#endif /* _NFS_MNTENT_H */ -- cgit v1.2.3