chiark / gitweb /
[PATCH] 052 release
[elogind.git] / klibc_fixups / mntent.h
1 #ifdef __KLIBC__
2
3 #ifndef _MNTENT_H
4 #define _MNTENT_H
5
6 #include <stdio.h>
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 static inline FILE *setmntent (const char *file, const char *mode)
19 {
20         return (FILE *) 1;
21 }
22
23 static inline struct mntent *getmntent (FILE *stream)
24 {
25         static struct mntent mntent = {
26                 .mnt_dir        = "/sys",
27                 .mnt_type       = "sysfs"
28         };
29
30         return &mntent;
31 }
32
33 static inline int endmntent (FILE *stream)
34 {
35         return 0;
36 }
37
38 #endif /* _MNTENT_H */
39 #endif /* __KLIBC__ */