about summary refs log tree commit diff
path: root/sysdeps/unix/bsd/bsd4.4/direct.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/bsd4.4/direct.h')
-rw-r--r--sysdeps/unix/bsd/bsd4.4/direct.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/unix/bsd/bsd4.4/direct.h b/sysdeps/unix/bsd/bsd4.4/direct.h
new file mode 100644
index 0000000000..06641fc955
--- /dev/null
+++ b/sysdeps/unix/bsd/bsd4.4/direct.h
@@ -0,0 +1,16 @@
+#ifndef	MAXNAMLEN
+#define	MAXNAMLEN	255
+#endif
+
+struct direct
+  {
+    unsigned long int d_fileno;
+    unsigned short int d_reclen;
+    unsigned char d_type;	/* File type, possibly unknown.  */
+    unsigned char d_namlen;	/* Length of the file name.  */
+    char d_name[MAXNAMLEN + 1];
+  };
+
+#define D_NAMLEN(d) ((d)->d_namlen)
+
+#define HAVE_D_TYPE