aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-10 21:40:18 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-10 21:40:18 +0000
commit0d875352b73d4e50c4a578a706378b3e51885126 (patch)
tree4681287a082d0b009ceb77a851e9171cb7e651d3 /libio/wstrops.c
parentUpdate. (diff)
downloadglibc-0d875352b73d4e50c4a578a706378b3e51885126.tar.gz
glibc-0d875352b73d4e50c4a578a706378b3e51885126.tar.bz2
glibc-0d875352b73d4e50c4a578a706378b3e51885126.zip
Call __fsetlocking for temporary stream.
Diffstat (limited to 'libio/wstrops.c')
-rw-r--r--libio/wstrops.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libio/wstrops.c b/libio/wstrops.c
index 92d7f2fe95..bfc71c2918 100644
--- a/libio/wstrops.c
+++ b/libio/wstrops.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997, 1998, 1999, 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
@@ -29,6 +29,7 @@
#include "libioP.h"
#include <string.h>
#include <wchar.h>
+#include <stdio_ext.h>
#if 0
/* The following definitions are for exposition only.
@@ -106,6 +107,11 @@ _IO_wstr_init_static (fp, ptr, size, pstart)
}
/* A null _allocate_buffer function flags the strfile as being static. */
(((_IO_strfile *) fp)->_s._allocate_buffer) = (_IO_alloc_type)0;
+
+#ifdef _IO_MTSAFE_IO
+ /* We never have to lock this stream. */
+ __fsetlocking ((FILE *) fp, FSETLOCKING_BYCALLER);
+#endif
}
void