1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 16:21:11 +03:00
systemd-stable/klibc_fixups/mntent.h

40 lines
550 B
C

#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__ */