summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-14 02:16:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-14 02:16:01 +0000
commitcba23c078ac1877316cd6018ad8a38049928944c (patch)
tree9b92a6fd924325093aa2d82ba90bbe6ed49952d9 /share
parent872b7620d8b025aba2915cf3e9c8abf23f97284c (diff)
__opendir2, DTF_NODUP, and __DTF_READALL can die. struct dirent
dd_flags is renamed to the placeholder position dd_unused so that we can spot "broken software" which assumes we have Jan Simon Pendry's union mounts (we don't have them, and won't have them ever again). __opendir2 question spotted by matthew verified to not break ports by sthen
Diffstat (limited to 'share')
-rw-r--r--share/man/man5/dir.512
1 files changed, 5 insertions, 7 deletions
diff --git a/share/man/man5/dir.5 b/share/man/man5/dir.5
index d558a40b89e..838f811c923 100644
--- a/share/man/man5/dir.5
+++ b/share/man/man5/dir.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dir.5,v 1.14 2010/10/28 15:02:41 millert Exp $
+.\" $OpenBSD: dir.5,v 1.15 2011/07/14 02:16:00 deraadt Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)dir.5 8.4 (Berkeley) 5/3/95
.\"
-.Dd $Mdocdate: October 28 2010 $
+.Dd $Mdocdate: July 14 2011 $
.Dt DIR 5
.Os
.Sh NAME
@@ -125,15 +125,13 @@ typedef struct _dirdesc {
int dd_len; /* size of data buffer */
off_t dd_seek; /* magic cookie returned by getdirentries */
off_t dd_rewind; /* magic cookie for rewinding */
- int dd_flags; /* flags for readdir */
+ int dd_unused; /* was flags for readdir */
+ struct _telldir *dd_td; /* telldir position recording */
+ void *dd_lock; /* mutex to protect struct */
} DIR;
#define dirfd(dirp) ((dirp)->dd_fd)
-/* flags for opendir2 */
-#define DTF_NODUP 0x0002 /* don't return duplicate names */
-#define __DTF_READALL 0x0008 /* everything has been read */
-
#endif /* _POSIX_SOURCE */
.Ed
.Sh SEE ALSO