From 0d875352b73d4e50c4a578a706378b3e51885126 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 10 Aug 2001 21:40:18 +0000 Subject: Call __fsetlocking for temporary stream. --- libio/iovdprintf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libio/iovdprintf.c') 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 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); -- cgit v1.2.3