blob: ea79a2dd633133e4d6f40d77f67d91e114790a62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifdef __KLIBC__
#ifndef _MNTENT_H
#define _MNTENT_H
#include <stdio.h>
struct mntent
{
char *mnt_fsname;
char *mnt_dir;
char *mnt_type;
char *mnt_opts;
int mnt_freq;
int mnt_passno;
};
static inline FILE *setmntent (const char *file, const char *mode)
{
return (FILE *) 1;
}
static inline struct mntent *getmntent (FILE *stream)
{
static struct mntent mntent = {
.mnt_dir = "/sys",
.mnt_type = "sysfs"
};
return &mntent;
}
static inline int endmntent (FILE *stream)
{
return 0;
}
#endif /* _MNTENT_H */
#endif /* __KLIBC__ */
|