From 7bcd43336392e42b9ecbcbb5cdd68c0ea26e5caa Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 18 Jun 2008 08:50:55 +0000 Subject: [PATCH] Document DT_LNK (symbolic link) for d_type field. Reorder DT_ entries alphabetically. --- man3/readdir.3 | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/man3/readdir.3 b/man3/readdir.3 index ca8255c76..00d3224b8 100644 --- a/man3/readdir.3 +++ b/man3/readdir.3 @@ -131,31 +131,31 @@ then glibc defines the following macro constants for the value returned in .IR d_type : .TP 12 -.B DT_UNKNOWN -The file type is unknown. -.\" The glibc manual says that on some systems this is the only -.\" value returned +.B DT_BLK +This is a block device. .TP -.B DT_REG -This is a regular file. -.TP -.B DT_LNK -This is a symbolic link. +.B DT_CHR +This is a character device. .TP .B DT_DIR This is a directory. .TP .B DT_FIFO -This is a named pipe, or FIFO. +This is a named pipe (FIFO). +.TP +.B DT_LNK +This is a symbolic link. +.TP +.B DT_REG +This is a regular file. .TP .B DT_SOCK This is a Unix domain socket. .TP -.B DT_CHR -This is a character device. -.TP -.B DT_BLK -This is a block device. +.B DT_UNKNOWN +The file type is unknown. +.\" The glibc manual says that on some systems this is the only +.\" value returned .PP If the file type could not be determined, the value .B DT_UNKNOWN