get rid of old style directory entries (known only in readdir.c)
authorKirk McKusick <mckusic@ucbvax.Berkeley.EDU>
Fri, 12 Feb 1982 17:42:42 +0000 (09:42 -0800)
committerKirk McKusick <mckusic@ucbvax.Berkeley.EDU>
Fri, 12 Feb 1982 17:42:42 +0000 (09:42 -0800)
SCCS-vsn: lib/libc/gen/readdir.c 1.4

usr/src/lib/libc/gen/readdir.c

index d57c90e..082bd12 100644 (file)
@@ -1,10 +1,22 @@
 /* Copyright (c) 1982 Regents of the University of California */
 
 /* Copyright (c) 1982 Regents of the University of California */
 
-static char sccsid[] = "@(#)readdir.c 1.3 %G%";
+static char sccsid[] = "@(#)readdir.c 1.4 %G%";
 
 #include <sys/types.h>
 #include <ndir.h>
 
 
 #include <sys/types.h>
 #include <ndir.h>
 
+/*
+ * read an old stlye directory entry and present it as a new one
+ */
+#ifndef        DIRSIZ
+#define        DIRSIZ  14
+#endif
+
+struct olddirect {
+       ino_t   d_ino;
+       char    d_name[DIRSIZ];
+};
+
 /*
  * get next entry in a directory.
  */
 /*
  * get next entry in a directory.
  */