OSDN Git Service

Initial revision
[pf3gnuchains/pf3gnuchains3x.git] / winsup / cygwin / include / mntent.h
1 #ifndef _MNTENT_H
2 #define _MNTENT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 struct mntent
9 {
10   char *mnt_fsname;
11   char *mnt_dir;
12   char *mnt_type;
13   char *mnt_opts;
14   int mnt_freq;
15   int mnt_passno;
16 };
17
18 FILE *setmntent (const char *__filep, const char *__type);
19 struct mntent *getmntent (FILE *__filep);
20 int addmntent (FILE *__filep, const struct mntent *__mnt);
21 int endmntent (FILE *__filep);
22 char *hasmntopt (const struct mntent *__mnt, const char *__opt);
23
24 /* This next file doesn't exist, it is in the registry,
25    however applications need the define to pass to
26    the above calls.
27 */
28 #ifndef MOUNTED
29 #define MOUNTED "/etc/mtab"
30 #endif
31 #ifdef __cplusplus
32 };
33 #endif
34
35 #endif /* _MNTENT_H */