Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ |
2 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
||
3 | #ifndef __dj_include_mntent_h_ |
||
4 | #define __dj_include_mntent_h_ |
||
5 | |||
6 | #ifdef __cplusplus |
||
7 | extern "C" { |
||
8 | #endif |
||
9 | |||
10 | #ifndef __dj_ENFORCE_ANSI_FREESTANDING |
||
11 | |||
12 | #ifndef __STRICT_ANSI__ |
||
13 | |||
14 | #ifndef _POSIX_SOURCE |
||
15 | |||
16 | #include |
||
17 | |||
18 | #define MNT_MNTTAB "/etc/mnttab" |
||
19 | |||
20 | struct mntent |
||
21 | { |
||
22 | char *mnt_fsname; |
||
23 | char *mnt_dir; |
||
24 | char *mnt_type; |
||
25 | char *mnt_opts; |
||
26 | int mnt_freq; |
||
27 | int mnt_passno; |
||
28 | long mnt_time; |
||
29 | }; |
||
30 | |||
31 | extern FILE * setmntent(char *,char *); |
||
32 | extern struct mntent * getmntent(FILE *); |
||
33 | extern int addmntent(FILE *,struct mntent *); |
||
34 | extern char * hasmntopt(struct mntent *,char *); |
||
35 | extern int endmntent(FILE *); |
||
36 | |||
37 | |||
38 | #endif /* !_POSIX_SOURCE */ |
||
39 | #endif /* !__STRICT_ANSI__ */ |
||
40 | #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ |
||
41 | |||
42 | #ifndef __dj_ENFORCE_FUNCTION_CALLS |
||
43 | #endif /* !__dj_ENFORCE_FUNCTION_CALLS */ |
||
44 | |||
45 | #ifdef __cplusplus |
||
46 | } |
||
47 | #endif |
||
48 | |||
49 | #endif /* !__dj_include_mntent_h_ */ |