Update.
[glibc.git] / ChangeLog
blobfbfdd5f1fce09f67c9071015a93211646b46c827
1 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3         * configure.in: Fix test for .rela.dyn section.
5         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
9         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
11         Pass type_class to _dl_lookup_*.
12         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
13         Pass around just type_class instead of noexec, noplt pair.
14         (_dl_lookup_versioned_symbol): Likewise.
15         (_dl_lookup_symbol_skip): Pass around just type_class instead of
16         noexec, noplt pair.
17         (_dl_lookup_versioned_symbol_skip): Likewise.
18         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
19         * elf/do-lookup.h (do_lookup): Likewise.
20         * include/link.h (struct link_map): Replace noexec and noplt fields
21         in l_lookup_cache with type_class field.
22         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
23         ELF_RTYPE_CLASS_COPY): Define.
24         Adjust prototypes for _dl_lookup_symbol and
25         _dl_lookup_versioned_symbol.
26         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
27         elf_machine_lookup_noexec_p): Remove.
28         (elf_machine_type_class): Define.
29         * sysdeps/arm/dl-machine.h: Likewise.
30         * sysdeps/hppa/dl-machine.h: Likewise.
31         * sysdeps/cris/dl-machine.h: Likewise.
32         * sysdeps/i386/dl-machine.h: Likewise.
33         * sysdeps/ia64/dl-machine.h: Likewise.
34         * sysdeps/m68k/dl-machine.h: Likewise.
35         * sysdeps/mips/mips64/dl-machine.h: Likewise.
36         * sysdeps/mips/dl-machine.h: Likewise.
37         * sysdeps/powerpc/dl-machine.h: Likewise.
38         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
39         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
40         * sysdeps/sh/dl-machine.h: Likewise.
41         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
44 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
46         * manual/message.texi (Advanced gettext functions): Change
47         description of plural forms for Slovak.
48         Reported by Marcel Telka <marcel@telka.sk>.
50         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
51         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
53 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
55         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
56         typo.  Patch by Florian La Roche <laroche@redhat.com>.
58 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
60         * include/link.h (struct link_map): Add l_lookup_cache element.
61         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
62         (RESOLVE_MAP): Likewise.
63         (_dl_relocate_object): Remove cache initialization.
64         * elf/dl-lookup.c: Rip out cache handling code.
65         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
66         declarations.
68         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
69         remove some __builtin_expect.
70         (_dl_lookup_versioned_symbol): Likewise.
72         * config.h.in: Add HAVE_Z_COMBRELOC.
73         * configure.in: Add test for -z combreloc.
75         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
76         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
77         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
78         case to almost no code.
80 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
82         * po/tr.po: Update from translation team.
84 2001-08-24  Andreas Jaeger  <aj@suse.de>
86         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
87         make clean works.
89 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
91         * elf/rtld.c (print_statistics): Printf % after percent values.
92         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
94         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
95         don't have to compute the hash value and initialize current_value.
96         Move reference_name variable to where it is needed.
97         (_dl_lookup_versioned_symbol): Likewise.
99 2001-08-24  Roland McGrath  <roland@frob.com>
101         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
102         Just test that strerror returns non-null for a few errno codes.
104 2001-08-23  Roland McGrath  <roland@frob.com>
106         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
107         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
109         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
111         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
112         __mach_reply_port.
114 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
116         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
117         returns NULL.
119         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
120         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
121         doesn't do it.
122         * elf/rtld.c: Include <sys/param.h>.
123         * elf/dl-reloc.c: Likewise.
125 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
127         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
128         empty to prevent junk from being generated.
129         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
131 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
133         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
134         records.  Rename endrel to relative, initialize it to r, and use it
135         in elf_machine_rel_relative calls.  Point r after relative relocs.
137 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
139         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
140         of R_386_NONE.
142 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
144         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
145         necessary.  Undefine newly defined macros at the end.
146         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
147         Rename from elf_machine_rel_relative.
148         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
149         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
150         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
151         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
152         Likewise.
153         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
154         Likewise.
155         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
156         Fix argument types.
157         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
158         Fix argument types.
159         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
160         Likewise.  Fix argument types.
161         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
162         Likewise.  Fix argument types.
163         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
164         Fix argument types.
165         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
166         ElfW(Rel) in argument.
167         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
168         function.
170 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
172         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
174 2001-08-24  Andreas Jaeger  <aj@suse.de>
176         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
177         Stephen L Moshier <moshier@mediaone.net>.
179 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
181         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
182         first if RELCOUNT is set.
184         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
185         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
186         elf_machine_rel_relative.
187         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
188         Minor optimizations.
189         * sysdeps/arm/dl-machine.h: Likewise.
190         * sysdeps/cris/dl-machine.h: Likewise.
191         * sysdeps/hppa/dl-machine.h: Likewise.
192         * sysdeps/i386/dl-machine.h: Likewise.
193         * sysdeps/ia64/dl-machine.h: Likewise.
194         * sysdeps/m68k/dl-machine.h: Likewise.
195         * sysdeps/mips/dl-machine.h: Likewise.
196         * sysdeps/powerpc/dl-machine.h: Likewise.
197         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
198         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
199         * sysdeps/sh/dl-machine.h: Likewise.
200         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
201         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
203 2001-08-23  Roland McGrath  <roland@frob.com>
205         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
207         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
208         sysdeps/mach version.  Implement counting ("recursive") mutexes
209         on top of cthreads mutexes.
210         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
212         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
213         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
214         (__libc_cleanup_region_start, __libc_cleanup_region_end,
215         __libc_clean_end): Define these to call the cleanup function after
216         normal exit when they're supposed to.
218         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
219         Take new first arg DOIT, a boolean saying whether to really install
220         any cleanup handler.
221         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
222         (__libc_cleanup_end): Likewise.
223         * sysdeps/generic/bits/libc-lock.h: Same changes.
224         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
225         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
226         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
227         Likewise.
228         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
229         * sysdeps/generic/bits/stdio-lock.h
230         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
232 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
234         * elf/ldconfig.c (search_dir): Remove stale symlinks.
236 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
238         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
239         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
240         lookups in cache.
241         (_dl_lookup_versioned_symbol): Likewise.
242         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
243         relocation lookup.
244         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
245         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
246         (lookup_cache, lookup_cache_versioned): Add declarations.
248 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
250         * stdlib/tst-random.c (main): Swap parameters in fail call.
251         Patch by Pete Bevin <pete@petebevin.com>.
253 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
255         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
257 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
259         * malloc/obstack.c: Indent preprocessor directives.
260         Patch by Jim Meyering <meyering@ascend.com>.
262         * po/ja.po: Update from translation team.
264 2001-08-23  Roland McGrath  <roland@frob.com>
266         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
268         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
269         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
271 2001-08-22  Roland McGrath  <roland@frob.com>
273         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
274         __libc_lock_define_recursive.
275         * elf/dl-open.c: Don't declare it here any more.
276         * elf/dl-close.c: Likewise.
277         * elf/dl-lookup.c: Likewise.
278         * elf/dl-iteratephdr.c: Likewise.
279         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
280         __libc_lock_unlock_recursive.
281         * elf/dl-close.c (_dl_close): Likewise
282         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
283         * elf/dl-open.c (_dl_open): Likewise
285         * sysdeps/generic/bits/libc-lock.h
286         (__libc_lock_define_recursive): New macro.
287         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
288         (_IO_lock_lock): Use __libc_lock_lock_recursive.
289         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
291         * conform/conformtest.pl (checknamespace): Sort the output list.
293         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
294         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
295         definitions conditional on [__USE_XOPEN].
297         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
298         these unconditionally, not only use [__USE_BSD], so as to match
299         the sysdeps/unix/sysv/linux files.
301 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
303         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
304         avoid warnings.
306         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
307         DL_LOOKUP_ADDRESS.
309 2001-08-22  Roland McGrath  <roland@frob.com>
311         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
312         conditionalization of sa_handler/sa_sigaction member types to
313         match the sysdeps/unix/sysv/linux file.
315 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
317         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
318         symbol sizes a bit better.
320         * sysdeps/ia64/strncpy.S: Complete rewrite.
321         Contributed by Jakub Jelinek <jakub@redhat.com>.
323         * string/stratcliff.c (main): Add strncpy test.
325 2001-08-22  Roland McGrath  <roland@frob.com>
327         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
328         and don't declare unsetenv or _environ directly.
329         (unsetenv): Return int, not void.  Use __environ instead of _environ.
331 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
333         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
334         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
335         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
336         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
337         test for cmsg struct size.
339 2001-04-23  Paul Eggert  <eggert@twinsun.com>
341         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
342         Rename __argc to ___argc in prototypes to avoid compatibility
343         problems with systems that reserve the identifier "__argc".
344         Similarly for __argv.
346 2001-08-21  Roland McGrath  <roland@frob.com>
348         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
350         * mach/Makefile (tests): Removed.
351         * mach/hello.c: File removed.
353 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
355         * po/sv.po: Update from translation team.
357         * stdio-common/vfscanf.c: Fix handling of %l[].
358         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
360         * libio/Makefile (tests): Add tst-sscanf.
361         * libio/tst-sscanf.c: New file.
363         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
364         * malloc/mtrace.c (tr_where): dli_sname always points to a
365         non-empty string if != NULL.
366         Reported by Tim Janik <timj@gtk.org>.
368 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
370         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
371         buf.  Free resources on failure.
372         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
373         (makefd_xprt): Likewise.
374         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
375         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
376         * sunrpc/auth_unix.c (authunix_create): Likewise.
378 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
380         * string/strnlen.c: Remove.
381         * sysdeps/generic/strnlen.c: New.
382         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
384 2001-08-21  Roland McGrath  <roland@frob.com>
386         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
387         as a macro, not an extern inline function.
389         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
390         * Versions.def (libc): Add GLIBC_2.2.5 set.
391         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
392         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
394 2001-08-20  Roland McGrath  <roland@frob.com>
396         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
397         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
399 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
401         * string/bits/string2.h: Remove strnlen optimization here.
402         * sysdeps/i386/i486/bits/string.h: Add it here.
404 2001-08-21  Wolfram Gloger  <wg@malloc.de>
406         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
408 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
410         * po/gl.po: Update from translation team.
412 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
414         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
415         * misc/err.c (convert_and_print): Likewise.
417         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
418         function calls.
420 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
422         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
423         change of the gregset_t type.
424         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
426 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
428         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
430 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
432         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
434         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
436 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
438         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
439         before calling the cthreads initialization code.
441 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
443         * argp/argp-help.c: Fix two problems introduced in last change.
445         * include/dirent.h: Include <dirstream.h> first.
447 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
449         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
451         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
452         * sunrpc/xdr_rec.c: Likewise.
453         * sunrpc/xdr_mem.c: Likewise.
454         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
455         * sunrpc/rpc_cmsg.c: Likewise.
456         * sunrpc/getrpcport.c (getrpcport): Likewise.
457         * sunrpc/clnt_simp.c (callrpc): Likewise.
458         * sunrpc/clnt_gen.c (clnt_create): Likewise.
459         * string/envz.c: Likewise.
461         * po/ko.po: Update from translation team.
463         * argp/argp-help.c: Handle wide oriented stderr stream.
465 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
467         * sysdeps/generic/strtol.c: Little optimizations.  Add some
468         __builtin_expect.
470         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
472         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
473         * wcsmbs/wcwidth.c (wcwdith): Likewise.
474         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
476         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
478         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
480         * time/time.h (struct timespec): Use __time_t for tv_sec element.
482         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
483         wchar_t for function declarations and defintions.
485         * misc/sys/select.h: Define __need_time_t before including <time.h>.
486         Define suseconds_t if it hasn't happened yet.
488         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
490         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
492         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
493         <stddef.h>.
495         * conform/data/stddef.h-data: Remove wint_t.
497         * conform/conformtest.pl: Change namespace test to take #undef
498         lines into account.
500         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
502         * conform/data/sys/socket.h-data: Add sockatmark.
504 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
506         * io/fts.c: Update from recent BSD source.
508 2001-08-17  Roland McGrath  <roland@frob.com>
510         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
511         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
512         Likewise.
514 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
516         * locale/duplocale.c (__duplocale): Also initialize the special
517         __ctype_* elements.
519         * conform/data/netdb.h-data: Adjust gai_strerror return type.
521 2001-08-17  Andreas Jaeger  <aj@suse.de>
523         * misc/getpass.c: Include wchar.h for prototypes.
524         * malloc/obstack.c: Likewise.
526 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
528         * sunrpc/svc_simple.c (universal): Use __write instead of write.
530         * wcsmbs/wcscoll.c: Also define __wcscoll.
531         * include/wchar.h: Declare __wcscoll.
533         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
534         * libio/vwprintf.c: Likewise.
535         * libio/wprintf.c: Likewise.
537         * iconv/gconv_cache.c: Use __munmap instead of munmap.
539 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
541         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
542         instead of mbrtowc.
543         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
544         wcslen, and __wcscoll instead of wcscoll.
546         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
548         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
549         __getuid instead of getuid.
551         * stdio-common/perror.c (perror): Use __close instead of close.
552         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
553         * libio/freopen.c (freopen): Likewise.
554         * libio/freopen64.c (freopen64): Likewise.
556         * libio/tst-ungetwc2.c (main): Define str const.
558         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
559         * libio/fwprintf.c: Also define __fwprintf.
560         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
561         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
562         * assert/assert-perr.c: Likewise.
563         * assert/assert.c: Likewise.
564         * gmon/gmon.c: Likewise.
565         * inet/rcmd.c: Likewise.
566         * malloc/obstack.c: Likewise.
567         * misc/err.c: Likewise.
568         * misc/error.c: Likewise.
569         * misc/getpass.c: Likewise.
570         * posix/getopt.c: Likewise.
571         * resolv/res_hconf.c: Likewise.
572         * stdio-common/perror.c: Likewise.
573         * stdio-common/psignal.c: Likewise.
574         * stdlib/fmtmsg.c: Likewise.
575         * sunrpc/auth_unix.c: Likewise.
576         * sunrpc/clnt_perr.c: Likewise.
577         * sunrpc/clnt_tcp.c: Likewise.
578         * sunrpc/clnt_udp.c: Likewise.
579         * sunrpc/clnt_unix.c: Likewise.
580         * sunrpc/svc_simple.c: Likewise.
581         * sunrpc/svc_tcp.c: Likewise.
582         * sunrpc/svc_udp.c: Likewise.
583         * sunrpc/svc_unix.c: Likewise.
584         * sunrpc/xdr.c: Likewise.
585         * sunrpc/xdr_array.c: Likewise.
586         * sunrpc/xdr_rec.c: Likewise.
587         * sunrpc/xdr_ref.c: Likewise.
588         * sysdeps/generic/wordexp.c: Likewise.
590         * po/it.po: Update from translation team.
592         * misc/err.c: Handle wide oriented stderr stream.
594 2001-08-14  Tom Rix  <trix@redhat.com>
596         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
597         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
599 2001-08-13  Tom Rix  <trix@redhat.com>
601         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
602         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
603         and __intptr_t.
605 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
607         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
608         Store the access registers to the ucontext structure.
609         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
610         Likewise.
612         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
613         Load the access registers from the ucontext structure.
614         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
615         Likewise.
617         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
618         offsets to the new ucontext layout.
619         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
621         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
622         of the ucontext structure.
623         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
625 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
627         * misc/error.c (error): Handle wide oriented stderr stream correctly.
628         (error_at_line): Likewise.
630         * stdio-common/perror.c (perror): Implement according to standard.
631         The stream orientation must not be changed if the stream was not
632         oriented before the call.
633         * stdio-common/Makefile (tests): Add tst-perror.
634         * stdio-common/tst-perror.c: New file.
637 See ChangeLog.12 for earlier changes.