diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-10 21:40:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-10 21:40:18 +0000 |
commit | 0d875352b73d4e50c4a578a706378b3e51885126 (patch) | |
tree | 4681287a082d0b009ceb77a851e9171cb7e651d3 /libio/iovdprintf.c | |
parent | c31c27256e4735e9d05676aecd9d5be73bbabde1 (diff) | |
download | glibc-0d875352b73d4e50c4a578a706378b3e51885126.tar.gz glibc-0d875352b73d4e50c4a578a706378b3e51885126.tar.xz glibc-0d875352b73d4e50c4a578a706378b3e51885126.zip |
Call __fsetlocking for temporary stream.
Diffstat (limited to 'libio/iovdprintf.c')
-rw-r--r-- | libio/iovdprintf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libio/iovdprintf.c b/libio/iovdprintf.c index a0dda97d14..d7c656a459 100644 --- a/libio/iovdprintf.c +++ b/libio/iovdprintf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1997-2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,6 +27,7 @@ #include "libioP.h" #include "libio.h" +#include <stdio_ext.h> int _IO_vdprintf (d, format, arg) @@ -59,6 +60,9 @@ _IO_vdprintf (d, format, arg) (_IO_mask_flags (&tmpfil.file, _IO_NO_READS, _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING) | _IO_DELETE_DONT_CLOSE); +#ifdef _IO_MTSAFE_IO + __fsetlocking ((FILE *) &tmpfil, FSETLOCKING_BYCALLER); +#endif done = _IO_vfprintf ((_IO_FILE *) &tmpfil, format, arg); |