Commits

Armin Rigo committed b7673c1

Restore the comments copy-pasted from the man page.

Comments (0)

Files changed (2)

     typedef long off_t;
 
     struct dirent {
-        ino_t          d_ino;       
-        off_t          d_off;       
-        unsigned short d_reclen;    
-        unsigned char  d_type;      
-        char           d_name[256]; 
+        ino_t          d_ino;       /* inode number */
+        off_t          d_off;       /* offset to the next dirent */
+        unsigned short d_reclen;    /* length of this record */
+        unsigned char  d_type;      /* type of file; not supported
+                                       by all file system types */
+        char           d_name[256]; /* filename */
     };
 
     int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
     typedef ... DIR;
 
     struct dirent {
-        unsigned char  d_type;
-        char           d_name[];
+        unsigned char  d_type;      /* type of file; not supported
+                                       by all file system types */
+        char           d_name[256]; /* filename */
         ...;
     };