aboutsummaryrefslogtreecommitdiff
path: root/win32/mntent.h
blob: 029f18b963db37b4e9212febe672bd31984fd754 (plain)
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
#ifndef MNTENT_H
#define MNTENT_H

#include <stdio.h>

struct mntent {
	char *mnt_fsname;   /* Device or server for filesystem.  */
	char *mnt_dir;      /* Directory mounted on.  */
	char *mnt_type;     /* Type of filesystem: ufs, nfs, etc.  */
	char *mnt_opts;     /* Comma-separated options for fs.  */
	int mnt_freq;       /* Dump frequency (in days).  */
	int mnt_passno;     /* Pass number for `fsck'.  */
};

extern FILE *mingw_setmntent(void);
extern struct mntent *getmntent(FILE *stream);
extern int endmntent(FILE *stream);

# if defined(MNTENT_PRIVATE)
struct mntdata {
	struct mntent me;
	char mnt_fsname[PATH_MAX];
	char mnt_dir[4];
	char mnt_type[100];
	char mnt_opts[4];
};

extern int fill_mntdata(struct mntdata *data, int index);
# endif

#define setmntent(f, m) mingw_setmntent()

#endif