summaryrefslogtreecommitdiff
path: root/src/user/lib/include/ftw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/include/ftw.h')
-rw-r--r--src/user/lib/include/ftw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/user/lib/include/ftw.h b/src/user/lib/include/ftw.h
new file mode 100644
index 0000000..6dc8132
--- /dev/null
+++ b/src/user/lib/include/ftw.h
@@ -0,0 +1,6 @@
+#pragma once
+#include <sys/stat.h>
+
+int ftw(const char *dirpath,
+ int (*fn)(const char *fpath, const struct stat *sb, int typeflag),
+ int nopenfd);