OLD | NEW |
1 #ifndef _MNTENT_H | 1 #ifndef _MNTENT_H |
2 #define _MNTENT_H | 2 #define _MNTENT_H |
3 | 3 |
4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
5 extern "C" { | 5 extern "C" { |
6 #endif | 6 #endif |
7 | 7 |
8 #define __NEED_FILE | 8 #define __NEED_FILE |
9 #include <bits/alltypes.h> | 9 #include <bits/alltypes.h> |
10 | 10 |
11 #define MOUNTED "/etc/mtab" | 11 #define MOUNTED "/etc/mtab" |
12 | 12 |
13 #define MNTTYPE_IGNORE» "ignore" | 13 #define MNTTYPE_IGNORE "ignore" |
14 #define MNTTYPE_NFS» "nfs" | 14 #define MNTTYPE_NFS "nfs" |
15 #define MNTTYPE_SWAP» "swap" | 15 #define MNTTYPE_SWAP "swap" |
16 #define MNTOPT_DEFAULTS»"defaults" | 16 #define MNTOPT_DEFAULTS "defaults" |
17 #define MNTOPT_RO» "ro" | 17 #define MNTOPT_RO "ro" |
18 #define MNTOPT_RW» "rw" | 18 #define MNTOPT_RW "rw" |
19 #define MNTOPT_SUID» "suid" | 19 #define MNTOPT_SUID "suid" |
20 #define MNTOPT_NOSUID» "nosuid" | 20 #define MNTOPT_NOSUID "nosuid" |
21 #define MNTOPT_NOAUTO» "noauto" | 21 #define MNTOPT_NOAUTO "noauto" |
22 | 22 |
23 struct mntent | 23 struct mntent { |
24 { | 24 char* mnt_fsname; |
25 » char *mnt_fsname; | 25 char* mnt_dir; |
26 » char *mnt_dir; | 26 char* mnt_type; |
27 » char *mnt_type; | 27 char* mnt_opts; |
28 » char *mnt_opts; | 28 int mnt_freq; |
29 » int mnt_freq; | 29 int mnt_passno; |
30 » int mnt_passno; | |
31 }; | 30 }; |
32 | 31 |
33 FILE *setmntent(const char *, const char *); | 32 FILE* setmntent(const char*, const char*); |
34 int endmntent(FILE *); | 33 int endmntent(FILE*); |
35 struct mntent *getmntent(FILE *); | 34 struct mntent* getmntent(FILE*); |
36 struct mntent *getmntent_r(FILE *, struct mntent *, char *, int); | 35 struct mntent* getmntent_r(FILE*, struct mntent*, char*, int); |
37 int addmntent(FILE *, const struct mntent *); | 36 int addmntent(FILE*, const struct mntent*); |
38 char *hasmntopt(const struct mntent *, const char *); | 37 char* hasmntopt(const struct mntent*, const char*); |
39 | 38 |
40 #ifdef __cplusplus | 39 #ifdef __cplusplus |
41 } | 40 } |
42 #endif | 41 #endif |
43 | 42 |
44 #endif | 43 #endif |
OLD | NEW |