2004-01-13  Roland McGrath  <roland@redhat.com>

	* file.c (direnttypes): Define under [LINUX] as well.  Add DT_UNKNOWN.
	(sys_getdents64) [LINUX]: Print d_type field.
diff --git a/file.c b/file.c
index 5ab057c..d03c01b 100644
--- a/file.c
+++ b/file.c
@@ -1903,8 +1903,9 @@
 
 #endif /* LINUX */
 
-#ifdef FREEBSD
+#if defined FREEBSD || defined LINUX
 struct xlat direnttypes[] = {
+	{ DT_UNKNOWN,	"DT_UNKNOWN" 	},
 	{ DT_FIFO,	"DT_FIFO" 	},
 	{ DT_CHR,	"DT_CHR" 	},
 	{ DT_DIR,	"DT_DIR" 	},
@@ -2036,6 +2037,11 @@
 				i ? " " : "",
 				(unsigned long)d->d_ino,
 				(unsigned long)d->d_off);
+#ifdef LINUX
+			tprintf("d_type=");
+			printxval(direnttypes, d->d_type, "DT_???");
+			tprintf(", ");
+#endif
 			tprintf("d_reclen=%u, d_name=\"%s\"}",
 				d->d_reclen, d->d_name);
 		}