diff options
author | deischen <deischen@FreeBSD.org> | 2001-01-24 13:01:47 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-01-24 13:01:47 +0000 |
commit | 274959d59337555267567d4bde9a5a841c47d84f (patch) | |
tree | d53edbc7989d670c78624332fab78847216b859e /include/dirent.h | |
parent | 1635c221b7b2678beeeb2b5fa728edd7c8c3735b (diff) | |
download | FreeBSD-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.h | 1 |
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; |