Explicitly mention that telldir values are only valid for the lifetime of
the DIR pointer. Pointed out by Klaus Klein.
This commit is contained in:
parent
68617d79ff
commit
ca130c6a90
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: directory.3,v 1.25 2006/05/17 20:36:50 christos Exp $
|
||||
.\" $NetBSD: directory.3,v 1.26 2006/05/18 15:30:36 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -29,7 +29,7 @@
|
||||
.\"
|
||||
.\" @(#)directory.3 8.1 (Berkeley) 6/4/93
|
||||
.\"
|
||||
.Dd May 16, 2006
|
||||
.Dd May 18, 2006
|
||||
.Dt DIRECTORY 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -140,13 +140,7 @@ pointer,
|
||||
from which they are derived.
|
||||
If the directory is closed and then reopened, the
|
||||
.Fn telldir
|
||||
value may be invalidated due to undetected directory compaction.
|
||||
It is safe to use a previous
|
||||
.Fn telldir
|
||||
value immediately after a call to
|
||||
.Fn opendir
|
||||
and before any calls to
|
||||
.Fn readdir .
|
||||
value cannot be re-used.
|
||||
.Pp
|
||||
The
|
||||
.Fn rewinddir
|
||||
|
Loading…
Reference in New Issue
Block a user