diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2010-10-12 13:13:20 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2010-10-12 13:13:20 +0000 |
| commit | e4f7beda4d767093c0990e58a28aab00fe7d730e (patch) | |
| tree | 0660f1c54f661a27166ec5cec9fca514f63baa6f /lib/libc/stdio/local.h | |
| parent | 79bd5dc1de54f1dff7bb11e0e696346806987458 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/local.h')
| -rw-r--r-- | lib/libc/stdio/local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index 09b3a1869afc..6380b83af20e 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -110,6 +110,14 @@ extern int __sdidinit; } /* + * Structure initializations for 'fake' FILE objects. + */ +#define FAKE_FILE { \ + ._file = -1, \ + ._fl_mutex = PTHREAD_MUTEX_INITIALIZER, \ +} + +/* * Set the orientation for a stream. If o > 0, the stream has wide- * orientation. If o < 0, the stream has byte-orientation. */ |
