diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-11 05:19:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-11 05:19:24 +0000 |
commit | c020d48c6e91b351cefebbc7a82a9c1ec2d9d83b (patch) | |
tree | 28f297727c45d6197e23e00356713030cc9cc9fb /stdio-common | |
parent | 07ba7349279441bd084c8661a4e53c19cba12bf6 (diff) | |
download | glibc-c020d48c6e91b351cefebbc7a82a9c1ec2d9d83b.tar.gz |
Update.
* libio/iovdprintf.c (_IO_vdprintf): Set _IO_USER_LOCK flag for
temporary stream. Don't define lock.
* libio/iovsprintf.c: Likewise.
* libio/iovsnprintf.c: Likewise.
* libio/iovswprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/iovswscanf.c: Likewise.
* stdio-common/vfprintf.c [USE_IN_LIBIO] (buffered_vfprintf): Likewise.
* libio/genops.c (_IO_no_init): Don't call _IO_lock_init if _lock
is NULL.
(_IO_default_finish): Likewise.
* libio/wgenops.c (_IO_wdefault_finish): Likewise.
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/vfprintf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index f9c506241e..9973e5e5d0 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -2073,13 +2073,12 @@ buffered_vfprintf (register _IO_FILE *s, const CHAR_T *format, _IO_setp (hp, buf, buf + sizeof buf); hp->_mode = -1; #endif - hp->_IO_file_flags = _IO_MAGIC|_IO_NO_READS; + hp->_IO_file_flags = _IO_MAGIC|_IO_NO_READS|_IO_USER_LOCK; #if _IO_JUMPS_OFFSET hp->_vtable_offset = 0; #endif #ifdef _IO_MTSAFE_IO - hp->_lock = &helper.lock; - __libc_lock_init (*hp->_lock); + hp->_lock = NULL; #endif _IO_JUMPS (&helper._f) = (struct _IO_jump_t *) &_IO_helper_jumps; |