summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 8542f57..d8a36a4 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -154,6 +154,19 @@ extern mapping_t r5layout[], pers[], modes[], faultylayout[];
extern char *map_dev(int major, int minor);
+#ifdef UCLIBC
+ struct FTW {};
+# define FTW_PHYS 1
+#else
+# define __USE_XOPEN_EXTENDED
+# include <ftw.h>
+# ifdef __dietlibc__
+# define FTW_PHYS 1
+# endif
+#endif
+
+extern int add_dev(const char *name, const struct stat *stb, int flag, struct FTW *s);
+
extern int Manage_ro(char *devname, int fd, int readonly);
extern int Manage_runstop(char *devname, int fd, int runstop, int quiet);