From 06b5289f832efb5389778017e37a02d967ea7232 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 24 Jul 2001 07:01:51 +0000 Subject: Update. * locale/programs/locale.c (write_locales): Disable implicit locking for the stream. Use feof_unlocked instead of feof. --- locale/programs/locale.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/programs/locale.c b/locale/programs/locale.c index 9c689d2eb6..da1c0ff7d6 100644 --- a/locale/programs/locale.c +++ b/locale/programs/locale.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -364,7 +365,10 @@ write_locales (void) /* Ignore non-existing files. */ continue; - while (! feof (fp)) + /* No threads present. */ + __fsetlocking (fp, FSETLOCKING_BYCALLER); + + while (! feof_unlocked (fp)) { /* It is a reasonable approach to use a fix buffer here because -- cgit 1.4.1