summaryrefslogtreecommitdiffstats
path: root/include/dirent.h
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-01-24 13:01:47 +0000
committerdeischen <deischen@FreeBSD.org>2001-01-24 13:01:47 +0000
commit274959d59337555267567d4bde9a5a841c47d84f (patch)
treed53edbc7989d670c78624332fab78847216b859e /include/dirent.h
parent1635c221b7b2678beeeb2b5fa728edd7c8c3735b (diff)
downloadFreeBSD-src-274959d59337555267567d4bde9a5a841c47d84f.zip
FreeBSD-src-274959d59337555267567d4bde9a5a841c47d84f.tar.gz
Add a lock to DIR to make telldir and friends MT-safe.
Clean up stdio.h a bit and remove _THREAD_SAFE. Some of the usual macros getc, putc, getchar, putchar are no longer macros. Approved by: -arch
Diffstat (limited to 'include/dirent.h')
-rw-r--r--include/dirent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 2028d7b..191ed35 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -64,6 +64,7 @@ typedef struct _dirdesc {
long dd_seek; /* magic cookie returned by getdirentries */
long dd_rewind; /* magic cookie for rewinding */
int dd_flags; /* flags for readdir */
+ void *dd_lock; /* hack to avoid including <pthread.h> */
struct _telldir *dd_td; /* telldir position recording */
} DIR;
OpenPOWER on IntegriCloud