OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / getdents.2
index 6b8bd27..3d97679 100644 (file)
@@ -191,8 +191,8 @@ fields employed in the
 .IR linux_dirent
 structure.
 .SH EXAMPLE
-.\" FIXME: This program uses the older getdents() system call
-.\" and the structure with smaller field widths.
+.\" FIXME The example program needs to be revised, since it uses the older
+.\" getdents() system call and the structure with smaller field widths.
 The program below demonstrates the use of
 .BR getdents ().
 The following output shows an example of what we see when running this
@@ -202,7 +202,7 @@ program on an ext2 directory:
 .nf
 .RB "$" " ./a.out /testfs/"
 --------------- nread=120 ---------------
-i-node#  file type  d_reclen  d_off   d_name
+inode#    file type  d_reclen  d_off   d_name
        2  directory    16         12  .
        2  directory    16         24  ..
       11  directory    24         44  lost+found
@@ -258,7 +258,7 @@ main(int argc, char *argv[])
             break;
 
         printf("\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- nread=%d \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\\n", nread);
-        printf("i\-node#  file type  d_reclen  d_off   d_name\\n");
+        printf("inode#    file type  d_reclen  d_off   d_name\\n");
         for (bpos = 0; bpos < nread;) {
             d = (struct linux_dirent *) (buf + bpos);
             printf("%8ld  ", d\->d_ino);
@@ -283,7 +283,7 @@ main(int argc, char *argv[])
 .BR readdir (2),
 .BR readdir (3)
 .SH COLOPHON
-This page is part of release 3.67 of the Linux
+This page is part of release 3.79 of the Linux
 .I man-pages
 project.
 A description of the project,