aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libq/scandirat.h')
-rw-r--r--libq/scandirat.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libq/scandirat.h b/libq/scandirat.h
new file mode 100644
index 0000000..10ff256
--- /dev/null
+++ b/libq/scandirat.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2005-2019 Gentoo Foundation
+ * Distributed under the terms of the GNU General Public License v2
+ */
+
+#ifndef _SCANDIRAT_H
+#define _SCANDIRAT_H 1
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <dirent.h>
+
+#if !defined(HAVE_SCANDIRAT)
+int scandirat(
+ int dir_fd, const char *dir, struct dirent ***dirlist,
+ int (*filter)(const struct dirent *),
+ int (*compar)(const struct dirent **, const struct dirent **));
+#endif
+
+void scandir_free(struct dirent **de, int cnt);
+
+#endif