Correct typo in ERRORS, and document that getdents(2) can return

directory entries that refer to deleted files, all per PR 10567.
This commit is contained in:
fair 2001-03-16 07:58:24 +00:00
parent 0b6f011535
commit fdd13acbc4
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: getdents.2,v 1.6 2000/11/21 23:35:10 wiz Exp $ .\" $NetBSD: getdents.2,v 1.7 2001/03/16 07:58:24 fair Exp $
.\" .\"
.\" Copyright (c) 1989, 1991, 1993 .\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -83,12 +83,18 @@ Files that are linked by hard links (see
.Xr link 2 ) .Xr link 2 )
have the same have the same
.Fa d_fileno . .Fa d_fileno .
If
.Fa d_fileno
is zero, the entry refers to a deleted file.
.Pp
The The
.Fa d_reclen .Fa d_reclen
entry is the length, in bytes, of the directory record. entry is the length, in bytes, of the directory record.
.Pp
The The
.Fa d_name .Fa d_name
entry contains a null terminated file name. entry contains a null terminated file name.
.Pp
The The
.Fa d_namlen .Fa d_namlen
entry specifies the length of the file name excluding the null byte. entry specifies the length of the file name excluding the null byte.
@ -125,7 +131,7 @@ Otherwise, -1 is returned and the global variable
.Va errno .Va errno
is set to indicate the error. is set to indicate the error.
.Sh ERRORS .Sh ERRORS
.Fn gtdents .Fn getdents
will fail if: will fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EBADF .It Bq Er EBADF