File: nfs_mntent.h

package info (click to toggle)
nfs-utils 1%3A1.0.10-6%2Betch.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,232 kB
  • ctags: 2,554
  • sloc: ansic: 24,691; sh: 9,398; makefile: 667
file content (34 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * 2006-06-08 Amit Gud <agud@redhat.com>
 * - Moved code snippets here from util-linux/mount/my_mntent.h
 */

#ifndef _NFS_MNTENT_H
#define _NFS_MNTENT_H

typedef struct nfs_mntent_s {
	const char *mnt_fsname;
	const char *mnt_dir;
	const char *mnt_type;
	const char *mnt_opts;
	int mnt_freq;
	int mnt_passno;
} nfs_mntent_t;

#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, nfs_mntent_t *mnt);
struct nfs_mntent *my_getmntent (mntFILE *mfp);
nfs_mntent_t *nfs_getmntent (mntFILE *mfp);

#endif /* _NFS_MNTENT_H */