diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-06-04 12:36:07 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-06-04 12:36:07 +0000 |
| commit | fcd70a75653472991a640d265a5eed497426dfcd (patch) | |
| tree | 9e680b27f033ae9db1af70bf84224bc33201b1ad /lib/libc/stdio/local.h | |
| parent | aca66ea036c56b70312406c8622e0780fc20a505 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/local.h')
| -rw-r--r-- | lib/libc/stdio/local.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index 4f5242a917d1..3e498d36d4fc 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -103,3 +103,10 @@ struct __sFILEX { free((char *)(fp)->_lb._base); \ (fp)->_lb._base = NULL; \ } + +#define INITEXTRA(fp) { \ + (fp)->_extra->_up = NULL; \ + (fp)->_extra->fl_mutex = PTHREAD_MUTEX_INITIALIZER; \ + (fp)->_extra->fl_owner = NULL; \ + (fp)->_extra->fl_count = 0; \ +} |
