summaryrefslogtreecommitdiff
path: root/include/sys/dir.h
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-14 04:16:35 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-14 04:16:35 +0000
commit64bc6412188b141c010ac3b8e813b837dd991e80 (patch)
treeffa12b79ea4b13191754f54b872eb1a4f9e3a04b /include/sys/dir.h
Initial revision
Diffstat (limited to 'include/sys/dir.h')
-rw-r--r--include/sys/dir.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sys/dir.h b/include/sys/dir.h
new file mode 100644
index 000000000..1c2cea7df
--- /dev/null
+++ b/include/sys/dir.h
@@ -0,0 +1,17 @@
+#ifdef _SYS_DIRENT_H
+#error "Can't include both sys/dir.h and sys/dirent.h"
+#define _SYS_DIR_H
+#endif
+
+#ifndef _SYS_DIR_H
+#define _SYS_DIR_H
+
+#include <dirent.h>
+
+#define direct dirent
+
+#undef DIRSIZ
+#define DIRSIZ(dp) ((sizeof (struct direct) - (MAXNAMLEN+1)) + \
+ (((dp)->d_namlen+1 + 3) &~ 3))
+
+#endif