aboutsummaryrefslogtreecommitdiffstats
path: root/man2/getdents.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/getdents.2')
-rw-r--r--man2/getdents.210
1 files changed, 5 insertions, 5 deletions
diff --git a/man2/getdents.2 b/man2/getdents.2
index db8b945f30..ba41e0be8b 100644
--- a/man2/getdents.2
+++ b/man2/getdents.2
@@ -76,7 +76,7 @@ struct linux_dirent {
unsigned long d_ino; /* Inode number */
unsigned long d_off; /* Offset to next \fIlinux_dirent\fP */
unsigned short d_reclen; /* Length of this \fIlinux_dirent\fP */
- char d_name[]; /* Filename (null-terminated) */
+ char d_name[]; /* Filename (null\-terminated) */
/* length is actually (d_reclen \- 2 \-
offsetof(struct linux_dirent, d_name)) */
/*
@@ -173,11 +173,11 @@ structures of the following type:
.in +4n
.EX
struct linux_dirent64 {
- ino64_t d_ino; /* 64-bit inode number */
- off64_t d_off; /* 64-bit offset to next structure */
+ ino64_t d_ino; /* 64\-bit inode number */
+ off64_t d_off; /* 64\-bit offset to next structure */
unsigned short d_reclen; /* Size of this dirent */
unsigned char d_type; /* File type */
- char d_name[]; /* Filename (null-terminated) */
+ char d_name[]; /* Filename (null\-terminated) */
};
.EE
.in
@@ -242,7 +242,7 @@ program on an ext2 directory:
.in +4n
.EX
.RB "$" " ./a.out /testfs/"
---------------- nread=120 ---------------
+-\-\-\-\-\-\-\-\-\-\-\-\-\-\- nread=120 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
inode# file type d_reclen d_off d_name
2 directory 16 12 .
2 directory 16 24 ..