Update.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2
3         * po/sv.po: Update from translation team.
4         * po/fr.po: Likewise.
5         * po/da.po: Likewise.
6
7 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8
9         * Makerules: Fix a typo: MD% -> MD5.
10
11 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12
13         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
14         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
15
16 2001-08-28  Andreas Jaeger  <aj@suse.de>
17
18         * manual/libc-texinfo.sh: Add entry about free manuals.
19
20         * manual/contrib.texi (Contributors): Fix cross reference.
21
22         * manual/libc.texinfo (Copying): Include freemanuals.
23
24         * manual/Makefile (appendices): Add freemanuals.
25
26         * manual/freemanuals.texi: New file.
27         Patch by Brian Youmans <3diff@gnu.org>.
28
29         * manual/libm-err-tab.pl: Pretty print more platforms, print a
30         smaller table.
31
32         * manual/math.texi (Errors in Math Functions): Fix grammar, start
33         table on separate page.
34         Patch by Brian Youmans <3diff@gnu.org>.
35
36 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
37
38         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
39         the connection went down after we first used it try to connect
40         again and resend the message before printing to the console.
41         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
42
43 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
44
45         * string/tst-strlen.c (main): Test strnlen (, -1) too.
46         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
47         bit set.
48
49 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
50
51         * iconv/strtab.c (searchstring): Use correct length for
52         comparison.
53         (strtabadd): Account total size correct if new string has old string as
54         substring.
55
56 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
57
58         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
59
60 2001-08-27  Andreas Jaeger  <aj@suse.de>
61
62         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
63
64         * math/libm-test.inc (j0_test): Add extra tests.
65         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
66         not x, in Hankel approximation.
67         Patches by Stephen L Moshier.
68
69 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
70
71         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
72         link_map.
73
74         * configure.in: Fix test for .rela.dyn section.
75
76         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
77
78 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
79
80         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
81         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
82         Pass type_class to _dl_lookup_*.
83         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
84         Pass around just type_class instead of noexec, noplt pair.
85         (_dl_lookup_versioned_symbol): Likewise.
86         (_dl_lookup_symbol_skip): Pass around just type_class instead of
87         noexec, noplt pair.
88         (_dl_lookup_versioned_symbol_skip): Likewise.
89         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
90         * elf/do-lookup.h (do_lookup): Likewise.
91         * include/link.h (struct link_map): Replace noexec and noplt fields
92         in l_lookup_cache with type_class field.
93         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
94         ELF_RTYPE_CLASS_COPY): Define.
95         Adjust prototypes for _dl_lookup_symbol and
96         _dl_lookup_versioned_symbol.
97         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
98         elf_machine_lookup_noexec_p): Remove.
99         (elf_machine_type_class): Define.
100         * sysdeps/arm/dl-machine.h: Likewise.
101         * sysdeps/hppa/dl-machine.h: Likewise.
102         * sysdeps/cris/dl-machine.h: Likewise.
103         * sysdeps/i386/dl-machine.h: Likewise.
104         * sysdeps/ia64/dl-machine.h: Likewise.
105         * sysdeps/m68k/dl-machine.h: Likewise.
106         * sysdeps/mips/mips64/dl-machine.h: Likewise.
107         * sysdeps/mips/dl-machine.h: Likewise.
108         * sysdeps/powerpc/dl-machine.h: Likewise.
109         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
110         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
111         * sysdeps/sh/dl-machine.h: Likewise.
112         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
113         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
114
115 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
116
117         * manual/message.texi (Advanced gettext functions): Change
118         description of plural forms for Slovak.
119         Reported by Marcel Telka <marcel@telka.sk>.
120
121         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
122         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
123
124 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
125
126         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
127         typo.  Patch by Florian La Roche <laroche@redhat.com>.
128
129 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
130
131         * include/link.h (struct link_map): Add l_lookup_cache element.
132         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
133         (RESOLVE_MAP): Likewise.
134         (_dl_relocate_object): Remove cache initialization.
135         * elf/dl-lookup.c: Rip out cache handling code.
136         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
137         declarations.
138
139         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
140         remove some __builtin_expect.
141         (_dl_lookup_versioned_symbol): Likewise.
142
143         * config.h.in: Add HAVE_Z_COMBRELOC.
144         * configure.in: Add test for -z combreloc.
145
146         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
147         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
148         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
149         case to almost no code.
150
151 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
152
153         * po/tr.po: Update from translation team.
154
155 2001-08-24  Andreas Jaeger  <aj@suse.de>
156
157         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
158         make clean works.
159
160 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
161
162         * elf/rtld.c (print_statistics): Printf % after percent values.
163         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
164
165         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
166         don't have to compute the hash value and initialize current_value.
167         Move reference_name variable to where it is needed.
168         (_dl_lookup_versioned_symbol): Likewise.
169
170 2001-08-24  Roland McGrath  <roland@frob.com>
171
172         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
173         Just test that strerror returns non-null for a few errno codes.
174
175 2001-08-23  Roland McGrath  <roland@frob.com>
176
177         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
178         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
179
180         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
181
182         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
183         __mach_reply_port.
184
185 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
186
187         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
188         returns NULL.
189
190         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
191         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
192         doesn't do it.
193         * elf/rtld.c: Include <sys/param.h>.
194         * elf/dl-reloc.c: Likewise.
195
196 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
197
198         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
199         empty to prevent junk from being generated.
200         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
201
202 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
203
204         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
205         records.  Rename endrel to relative, initialize it to r, and use it
206         in elf_machine_rel_relative calls.  Point r after relative relocs.
207
208 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
209
210         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
211         of R_386_NONE.
212
213 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
214
215         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
216         necessary.  Undefine newly defined macros at the end.
217         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
218         Rename from elf_machine_rel_relative.
219         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
220         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
221         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
222         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
223         Likewise.
224         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
225         Likewise.
226         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
227         Fix argument types.
228         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
229         Fix argument types.
230         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
231         Likewise.  Fix argument types.
232         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
233         Likewise.  Fix argument types.
234         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
235         Fix argument types.
236         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
237         ElfW(Rel) in argument.
238         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
239         function.
240
241 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
242
243         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
244
245 2001-08-24  Andreas Jaeger  <aj@suse.de>
246
247         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
248         Stephen L Moshier <moshier@mediaone.net>.
249
250 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
251
252         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
253         first if RELCOUNT is set.
254
255         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
256         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
257         elf_machine_rel_relative.
258         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
259         Minor optimizations.
260         * sysdeps/arm/dl-machine.h: Likewise.
261         * sysdeps/cris/dl-machine.h: Likewise.
262         * sysdeps/hppa/dl-machine.h: Likewise.
263         * sysdeps/i386/dl-machine.h: Likewise.
264         * sysdeps/ia64/dl-machine.h: Likewise.
265         * sysdeps/m68k/dl-machine.h: Likewise.
266         * sysdeps/mips/dl-machine.h: Likewise.
267         * sysdeps/powerpc/dl-machine.h: Likewise.
268         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
269         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
270         * sysdeps/sh/dl-machine.h: Likewise.
271         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
272         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
273
274 2001-08-23  Roland McGrath  <roland@frob.com>
275
276         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
277
278         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
279         sysdeps/mach version.  Implement counting ("recursive") mutexes
280         on top of cthreads mutexes.
281         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
282
283         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
284         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
285         (__libc_cleanup_region_start, __libc_cleanup_region_end,
286         __libc_clean_end): Define these to call the cleanup function after
287         normal exit when they're supposed to.
288
289         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
290         Take new first arg DOIT, a boolean saying whether to really install
291         any cleanup handler.
292         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
293         (__libc_cleanup_end): Likewise.
294         * sysdeps/generic/bits/libc-lock.h: Same changes.
295         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
296         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
297         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
298         Likewise.
299         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
300         * sysdeps/generic/bits/stdio-lock.h
301         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
302
303 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
304
305         * elf/ldconfig.c (search_dir): Remove stale symlinks.
306
307 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
308
309         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
310         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
311         lookups in cache.
312         (_dl_lookup_versioned_symbol): Likewise.
313         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
314         relocation lookup.
315         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
316         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
317         (lookup_cache, lookup_cache_versioned): Add declarations.
318
319 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
320
321         * stdlib/tst-random.c (main): Swap parameters in fail call.
322         Patch by Pete Bevin <pete@petebevin.com>.
323
324 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
325
326         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
327
328 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
329
330         * malloc/obstack.c: Indent preprocessor directives.
331         Patch by Jim Meyering <meyering@ascend.com>.
332
333         * po/ja.po: Update from translation team.
334
335 2001-08-23  Roland McGrath  <roland@frob.com>
336
337         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
338
339         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
340         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
341
342 2001-08-22  Roland McGrath  <roland@frob.com>
343
344         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
345         __libc_lock_define_recursive.
346         * elf/dl-open.c: Don't declare it here any more.
347         * elf/dl-close.c: Likewise.
348         * elf/dl-lookup.c: Likewise.
349         * elf/dl-iteratephdr.c: Likewise.
350         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
351         __libc_lock_unlock_recursive.
352         * elf/dl-close.c (_dl_close): Likewise
353         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
354         * elf/dl-open.c (_dl_open): Likewise
355
356         * sysdeps/generic/bits/libc-lock.h
357         (__libc_lock_define_recursive): New macro.
358         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
359         (_IO_lock_lock): Use __libc_lock_lock_recursive.
360         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
361
362         * conform/conformtest.pl (checknamespace): Sort the output list.
363
364         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
365         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
366         definitions conditional on [__USE_XOPEN].
367
368         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
369         these unconditionally, not only use [__USE_BSD], so as to match
370         the sysdeps/unix/sysv/linux files.
371
372 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
373
374         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
375         avoid warnings.
376
377         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
378         DL_LOOKUP_ADDRESS.
379
380 2001-08-22  Roland McGrath  <roland@frob.com>
381
382         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
383         conditionalization of sa_handler/sa_sigaction member types to
384         match the sysdeps/unix/sysv/linux file.
385
386 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
387
388         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
389         symbol sizes a bit better.
390
391         * sysdeps/ia64/strncpy.S: Complete rewrite.
392         Contributed by Jakub Jelinek <jakub@redhat.com>.
393
394         * string/stratcliff.c (main): Add strncpy test.
395
396 2001-08-22  Roland McGrath  <roland@frob.com>
397
398         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
399         and don't declare unsetenv or _environ directly.
400         (unsetenv): Return int, not void.  Use __environ instead of _environ.
401
402 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
403
404         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
405         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
406         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
407         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
408         test for cmsg struct size.
409
410 2001-04-23  Paul Eggert  <eggert@twinsun.com>
411
412         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
413         Rename __argc to ___argc in prototypes to avoid compatibility
414         problems with systems that reserve the identifier "__argc".
415         Similarly for __argv.
416
417 2001-08-21  Roland McGrath  <roland@frob.com>
418
419         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
420
421         * mach/Makefile (tests): Removed.
422         * mach/hello.c: File removed.
423
424 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
425
426         * po/sv.po: Update from translation team.
427
428         * stdio-common/vfscanf.c: Fix handling of %l[].
429         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
430
431         * libio/Makefile (tests): Add tst-sscanf.
432         * libio/tst-sscanf.c: New file.
433
434         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
435         * malloc/mtrace.c (tr_where): dli_sname always points to a
436         non-empty string if != NULL.
437         Reported by Tim Janik <timj@gtk.org>.
438
439 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
440
441         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
442         buf.  Free resources on failure.
443         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
444         (makefd_xprt): Likewise.
445         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
446         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
447         * sunrpc/auth_unix.c (authunix_create): Likewise.
448
449 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
450
451         * string/strnlen.c: Remove.
452         * sysdeps/generic/strnlen.c: New.
453         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
454
455 2001-08-21  Roland McGrath  <roland@frob.com>
456
457         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
458         as a macro, not an extern inline function.
459
460         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
461         * Versions.def (libc): Add GLIBC_2.2.5 set.
462         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
463         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
464
465 2001-08-20  Roland McGrath  <roland@frob.com>
466
467         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
468         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
469
470 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
471
472         * string/bits/string2.h: Remove strnlen optimization here.
473         * sysdeps/i386/i486/bits/string.h: Add it here.
474
475 2001-08-21  Wolfram Gloger  <wg@malloc.de>
476
477         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
478
479 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
480
481         * po/gl.po: Update from translation team.
482
483 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
484
485         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
486         * misc/err.c (convert_and_print): Likewise.
487
488         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
489         function calls.
490
491 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
492
493         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
494         change of the gregset_t type.
495         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
496
497 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
498
499         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
500
501 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
502
503         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
504
505         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
506
507 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
508
509         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
510         before calling the cthreads initialization code.
511
512 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
513
514         * argp/argp-help.c: Fix two problems introduced in last change.
515
516         * include/dirent.h: Include <dirstream.h> first.
517
518 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
519
520         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
521
522         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
523         * sunrpc/xdr_rec.c: Likewise.
524         * sunrpc/xdr_mem.c: Likewise.
525         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
526         * sunrpc/rpc_cmsg.c: Likewise.
527         * sunrpc/getrpcport.c (getrpcport): Likewise.
528         * sunrpc/clnt_simp.c (callrpc): Likewise.
529         * sunrpc/clnt_gen.c (clnt_create): Likewise.
530         * string/envz.c: Likewise.
531
532         * po/ko.po: Update from translation team.
533
534         * argp/argp-help.c: Handle wide oriented stderr stream.
535
536 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
537
538         * sysdeps/generic/strtol.c: Little optimizations.  Add some
539         __builtin_expect.
540
541         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
542
543         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
544         * wcsmbs/wcwidth.c (wcwdith): Likewise.
545         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
546
547         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
548
549         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
550
551         * time/time.h (struct timespec): Use __time_t for tv_sec element.
552
553         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
554         wchar_t for function declarations and defintions.
555
556         * misc/sys/select.h: Define __need_time_t before including <time.h>.
557         Define suseconds_t if it hasn't happened yet.
558
559         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
560
561         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
562
563         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
564         <stddef.h>.
565
566         * conform/data/stddef.h-data: Remove wint_t.
567
568         * conform/conformtest.pl: Change namespace test to take #undef
569         lines into account.
570
571         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
572
573         * conform/data/sys/socket.h-data: Add sockatmark.
574
575 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
576
577         * io/fts.c: Update from recent BSD source.
578
579 2001-08-17  Roland McGrath  <roland@frob.com>
580
581         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
582         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
583         Likewise.
584
585 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
586
587         * locale/duplocale.c (__duplocale): Also initialize the special
588         __ctype_* elements.
589
590         * conform/data/netdb.h-data: Adjust gai_strerror return type.
591
592 2001-08-17  Andreas Jaeger  <aj@suse.de>
593
594         * misc/getpass.c: Include wchar.h for prototypes.
595         * malloc/obstack.c: Likewise.
596
597 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
598
599         * sunrpc/svc_simple.c (universal): Use __write instead of write.
600
601         * wcsmbs/wcscoll.c: Also define __wcscoll.
602         * include/wchar.h: Declare __wcscoll.
603
604         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
605         * libio/vwprintf.c: Likewise.
606         * libio/wprintf.c: Likewise.
607
608         * iconv/gconv_cache.c: Use __munmap instead of munmap.
609
610 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
611
612         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
613         instead of mbrtowc.
614         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
615         wcslen, and __wcscoll instead of wcscoll.
616
617         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
618
619         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
620         __getuid instead of getuid.
621
622         * stdio-common/perror.c (perror): Use __close instead of close.
623         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
624         * libio/freopen.c (freopen): Likewise.
625         * libio/freopen64.c (freopen64): Likewise.
626
627         * libio/tst-ungetwc2.c (main): Define str const.
628
629         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
630         * libio/fwprintf.c: Also define __fwprintf.
631         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
632         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
633         * assert/assert-perr.c: Likewise.
634         * assert/assert.c: Likewise.
635         * gmon/gmon.c: Likewise.
636         * inet/rcmd.c: Likewise.
637         * malloc/obstack.c: Likewise.
638         * misc/err.c: Likewise.
639         * misc/error.c: Likewise.
640         * misc/getpass.c: Likewise.
641         * posix/getopt.c: Likewise.
642         * resolv/res_hconf.c: Likewise.
643         * stdio-common/perror.c: Likewise.
644         * stdio-common/psignal.c: Likewise.
645         * stdlib/fmtmsg.c: Likewise.
646         * sunrpc/auth_unix.c: Likewise.
647         * sunrpc/clnt_perr.c: Likewise.
648         * sunrpc/clnt_tcp.c: Likewise.
649         * sunrpc/clnt_udp.c: Likewise.
650         * sunrpc/clnt_unix.c: Likewise.
651         * sunrpc/svc_simple.c: Likewise.
652         * sunrpc/svc_tcp.c: Likewise.
653         * sunrpc/svc_udp.c: Likewise.
654         * sunrpc/svc_unix.c: Likewise.
655         * sunrpc/xdr.c: Likewise.
656         * sunrpc/xdr_array.c: Likewise.
657         * sunrpc/xdr_rec.c: Likewise.
658         * sunrpc/xdr_ref.c: Likewise.
659         * sysdeps/generic/wordexp.c: Likewise.
660
661         * po/it.po: Update from translation team.
662
663         * misc/err.c: Handle wide oriented stderr stream.
664
665 2001-08-14  Tom Rix  <trix@redhat.com>
666
667         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
668         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
669
670 2001-08-13  Tom Rix  <trix@redhat.com>
671
672         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
673         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
674         and __intptr_t.
675
676 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
677
678         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
679         Store the access registers to the ucontext structure.
680         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
681         Likewise.
682
683         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
684         Load the access registers from the ucontext structure.
685         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
686         Likewise.
687
688         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
689         offsets to the new ucontext layout.
690         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
691
692         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
693         of the ucontext structure.
694         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
695
696 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
697
698         * misc/error.c (error): Handle wide oriented stderr stream correctly.
699         (error_at_line): Likewise.
700
701         * stdio-common/perror.c (perror): Implement according to standard.
702         The stream orientation must not be changed if the stream was not
703         oriented before the call.
704         * stdio-common/Makefile (tests): Add tst-perror.
705         * stdio-common/tst-perror.c: New file.
706
707
708 See ChangeLog.12 for earlier changes.