summaryrefslogtreecommitdiff
path: root/klibc_fixups/mntent.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-20 13:15:26 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 22:06:44 -0700
commit993a633ab848487b8e546f66087595e2dc5aa4af (patch)
treeee1303c8a6b13cbcc9ac97f7a58bcc67d1aee2fd /klibc_fixups/mntent.h
parentf8c1ccde6aaf08c858616c9a8a83c06d609f52f5 (diff)
[PATCH] update to libsysfs 1.2.0 and add some stuff klib_fixup
Diffstat (limited to 'klibc_fixups/mntent.h')
-rw-r--r--klibc_fixups/mntent.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/klibc_fixups/mntent.h b/klibc_fixups/mntent.h
new file mode 100644
index 0000000000..ea79a2dd63
--- /dev/null
+++ b/klibc_fixups/mntent.h
@@ -0,0 +1,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__ */