diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-07-24 07:01:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-07-24 07:01:51 +0000 |
commit | 06b5289f832efb5389778017e37a02d967ea7232 (patch) | |
tree | bb3047b619350a7b81c6e16dbd174198125fc183 /locale/programs | |
parent | 63825a6125508cb289e76f906925af4d86f56590 (diff) | |
download | glibc-06b5289f832efb5389778017e37a02d967ea7232.tar.gz glibc-06b5289f832efb5389778017e37a02d967ea7232.tar.xz glibc-06b5289f832efb5389778017e37a02d967ea7232.zip |
Update.
* locale/programs/locale.c (write_locales): Disable implicit locking for the stream. Use feof_unlocked instead of feof.
Diffstat (limited to 'locale/programs')
-rw-r--r-- | locale/programs/locale.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <locale.h> #include <search.h> #include <stdio.h> +#include <stdio_ext.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -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 |