aboutsummaryrefslogtreecommitdiff
path: root/win32/mntent.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--win32/mntent.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/win32/mntent.h b/win32/mntent.h
new file mode 100644
index 000000000..029f18b96
--- /dev/null
+++ b/win32/mntent.h
@@ -0,0 +1,33 @@
1#ifndef MNTENT_H
2#define MNTENT_H
3
4#include <stdio.h>
5
6struct mntent {
7 char *mnt_fsname; /* Device or server for filesystem. */
8 char *mnt_dir; /* Directory mounted on. */
9 char *mnt_type; /* Type of filesystem: ufs, nfs, etc. */
10 char *mnt_opts; /* Comma-separated options for fs. */
11 int mnt_freq; /* Dump frequency (in days). */
12 int mnt_passno; /* Pass number for `fsck'. */
13};
14
15extern FILE *mingw_setmntent(void);
16extern struct mntent *getmntent(FILE *stream);
17extern int endmntent(FILE *stream);
18
19# if defined(MNTENT_PRIVATE)
20struct mntdata {
21 struct mntent me;
22 char mnt_fsname[PATH_MAX];
23 char mnt_dir[4];
24 char mnt_type[100];
25 char mnt_opts[4];
26};
27
28extern int fill_mntdata(struct mntdata *data, int index);
29# endif
30
31#define setmntent(f, m) mingw_setmntent()
32
33#endif