summaryrefslogtreecommitdiff
path: root/net/linneighborhood/files/mntent.h
blob: 1e37778b2178e831aae48bdca6a45fdd5bec774a (plain) (blame)
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
35
#ifdef HAVE_MNTENT_H
#include <mntent.h>
#else

#ifndef mntent_h_
#define mntent_h_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>

#define MOUNTED "mounted"
#define MNTTYPE_NFS "nfs"

//#define MOPTSLEN (256 - (MNAMELEN * 2 + MFSNAMELEN + 2 * sizeof(int)))

struct mntent {
	char *mnt_fsname;   /* file system name */
	char *mnt_dir; /* file system path prefix */
	char *mnt_type;	   /* dbg, efs,	nfs */
	char *mnt_opts;	   /* ro, hide,	etc. */
	int  mnt_freq; /* dump frequency, in days */
	int  mnt_passno;	   /* pass number on parallel fsck */
};

FILE * setmntent(char * filep, char * type);
struct mntent *getmntent(FILE * filep);
//char * hasmntopt(struct mntent * mnt, char * opt);
int endmntent(FILE * filep);

#endif /* mntent_h_ */
#endif /* not HAVE_MNTENT_H */