Update.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
2
3         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
4         handling of overly long words.
5
6 2002-06-25  Andreas Jaeger  <aj@suse.de>
7
8         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
9         to not use 32-bit pc relative relocations.
10         (elf_machine_dynamic): Likewise.
11
12 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
13
14         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
15         (__GETDENTS): Check for failed getdents64 syscall.
16         * dirent/Makefile (tests): Add bug-readdir1.
17         * dirent/bug-readdir1.c: New file.
18
19 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
20
21         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
22         lookups.
23         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
24         code.  Print TLS modid and offset for modules containing PT_TLS
25         segments.
26
27 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
28
29         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
30         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
31         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
32         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
33
34 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
35
36         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
37         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
38         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
39         * nss/getXXent_r.c (NEW, NEW1): Define.
40         (NEW (REENTRANT_GETNAME)): Strong alias to
41         INTERNAL (REENTRANT_GETNAME).
42         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
43
44 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
45
46         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
47         (_IO_file_jumps_mmap): Use it.
48         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
49         * libio/libioP.h: Remove _IO_wdefault_setbuf and
50         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
51         prototype.
52         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
53         (_IO_wfile_jumps_mmap): Don't use it anymore.
54         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
55         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
56         _IO_wdefault_setbuf.
57         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
58         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
59         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
60
61 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
62
63         * libio/Makefile (tests): Add tst-mmap-setvbuf.
64         * libio/tst-mmap-setvbuf.c: New test.
65
66 2002-06-21  Andreas Jaeger  <aj@suse.de>
67
68         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
69
70 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
71
72         * include/unistd.h (__fork_internal): Remove.
73         (__fork): Don't define to __fork_internal.
74         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
75         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
76         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
77         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
78         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
79
80 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
81
82         * po/hr.po: New file.
83
84 2002-06-11  Wolfram Gloger  <wg@malloc.de>
85
86         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
87         Reported by Michael Meissner <meissner@redhat.com>.
88
89 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
90
91         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
92         Patch by Hans Boehm <hans_boehm@hp.com>.
93
94 2002-06-20  Andreas Jaeger  <aj@suse.de>
95
96         * math/libm-test.inc: Use exact values as input parameters,
97         compute output parameters with 36 digits for 128-bit long doubles.
98         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
99         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
100         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
101
102 2002-06-13  Stephen L Moshier  <steve@moshier.net>
103
104         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
105         argument or result is subnormal.
106
107 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
108
109         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
110         quotient.
111         * sysdeps/i386/fpu/s_remquof.S: Likewise.
112         * sysdeps/i386/fpu/s_remquol.S: Likewise.
113
114         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
115
116 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
117
118         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
119         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
120         Reported by Peter A. Buhr.
121
122 2002-06-15  Roland McGrath  <roland@frob.com>
123
124         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
125         warning.
126
127         * sysdeps/mach/hurd/getcwd.c
128         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
129
130         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
131         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
132
133         * sysdeps/alpha/divrem.h: Use local label instead of global one for
134         jump to local subroutine.
135
136 2002-06-14  Roland McGrath  <roland@frob.com>
137
138         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
139         * sysdeps/mach/hurd/Makeconfig: ... here.
140
141 2002-06-13  Andreas Schwab  <schwab@suse.de>
142
143         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
144         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
145         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
146
147 2002-06-13  Roland McGrath  <roland@frob.com>
148
149         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
150         * hurd/hurdstartup.c (_hurd_startup): Likewise.
151         Use intptr_t instead of int for argc in stack layout.
152         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
153         (_dl_init_first): Likewise.
154         (_hurd_stack_setup): Likewise.
155         (init1): Add a cast.
156         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
157
158         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
159         argument to pfinet_siocgifconf RPC.
160
161 2002-06-13  Andreas Schwab  <schwab@suse.de>
162
163         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
164         expansion order.
165
166 2002-06-12  Roland McGrath  <roland@frob.com>
167
168         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
169         if already defined.
170         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
171         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
172
173 2002-06-11  Roland McGrath  <roland@frob.com>
174
175         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
176         file on [!RTLD_STAT64].
177         * sysdeps/mach/hurd/fxstat64.c: Likewise.
178
179         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
180         (__fdopen): Use INTUSE.
181         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
182
183         * stdio-common/tmpfile64.c: File removed.
184         * sysdeps/generic/tmpfile64.c: New file.
185         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
186         if not already defined.
187         (tmpfile): Use it in place of __GT_FILE.
188
189         * include/unistd.h: Declare __chown_internal.
190
191         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
192         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
193
194 2002-06-09  Roland McGrath  <roland@frob.com>
195
196         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
197         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
198         value of HURD_INTERFACE_VERSION >= 20020609.
199         * sysdeps/mach/hurd/configure: Regenerated.
200         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
201         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
202         convert a struct stat64 into a struct stat and return 0 or -1
203         with errno set to EOVERFLOW.
204         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
205         for struct statfs64 to struct statfs.
206         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
207         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
208         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
209         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
210         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
211         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
212         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
213         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
214         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
215         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
216         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
217         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
218         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
219         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
220         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
221         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
222         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
223         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
224         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
225         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
226         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
227         Use struct stat64 for io_stat argument.
228         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
229         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
230         to io_seek.
231         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
232         * hurd/fd-write.c (_hurd_fd_write): Likewise.
233         * hurd/hurd/fd.h: Update decls.
234         * sysdeps/mach/hurd/getcwd.c
235         (_hurd_canonicalize_directory_name_internal): Use ino64_t
236         and struct dirent64.
237         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
238         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
239         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
240         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
241
242 2002-06-08  Roland McGrath  <roland@frob.com>
243
244         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
245         instead of unsigned long int for __allocation and __size members.
246
247 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
248
249         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
250         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
251         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
252         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
253
254 2002-06-07  Roland McGrath  <roland@frob.com>
255
256         * sysdeps/mach/hurd/bits/environments.h: File removed.
257
258 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
259
260         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
261         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
262         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
263         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
264         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
265         (sendfile64): Likewise.
266         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
267         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
268         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
269         Likewise.
270         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
271
272         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
273         already defined.
274
275 2002-06-04  Bruno Haible  <bruno@clisp.org>
276
277         * sysdeps/cris/stackinfo.h: New file.
278
279         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
280         to an integer type before performing bit operations on it.
281
282 2002-06-05  Roland McGrath  <roland@frob.com>
283
284         * sysdeps/generic/sendfile.c: Include <errno.h>.
285         * sysdeps/generic/sendfile64.c: Likewise.
286
287         * io/Makefile (routines): Add sendfile and sendfile64.
288         (headers): Add sys/sendfile.h to the list.
289         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
290         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
291         * io/sys/sendfile.h: ... here.
292         * sysdeps/generic/sendfile.c: New file.
293         * sysdeps/generic/sendfile64.c: New file.
294
295         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
296         Move sendfile, sendfile64 to ...
297         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
298         * sysdeps/mach/hurd/sendfile.c: New file.
299         * sysdeps/mach/hurd/sendfile64.c: New file.
300
301         * sysdeps/mach/nanosleep.c: New file.
302
303 2002-06-04  Roland McGrath  <roland@frob.com>
304
305         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
306         * sysdeps/alpha/elf/configure: New file (generated).
307
308 2002-06-02  Roland McGrath  <roland@frob.com>
309
310         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
311
312 2002-06-01  Roland McGrath  <roland@frob.com>
313
314         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
315         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
316
317 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
318
319         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
320         Add nsmap.
321         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
322         Remove nstimes setting.
323         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
324         * resolv/res_send.c (res_nsend): Don't close unconditionally if
325         there is mix of IPv6 and IPv4 nameservers.
326         Use nsmap array to find free slots and preserve nameserver ordering.
327         Fix RES_ROTATE.
328
329 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
330
331         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
332         use this header with LFS.
333
334         * po/sk.po: Update from translation team.
335
336 2002-05-28  Andreas Schwab  <schwab@suse.de>
337
338         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
339         message when finding object of wrong class.
340
341 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
342
343         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
344         Patch by <radu@netsoft.ro>.
345
346 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
347
348         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
349         Add readahead.
350         * sysdeps/unix/sysv/linux/readahead.c: New file.
351         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
352         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
353         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
354         Add sendfile64 alias to sendfile syscall.
355         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
356         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
357         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
358         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
359         syscall.
360
361         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
362         special section for PIC register loading.
363         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
364
365         * config.h.in: Define HAVE_HIDDEN.
366         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
367
368         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
369
370 2002-05-28  Roland McGrath  <roland@frob.com>
371
372         * sysdeps/mach/alpha/setfpucw.c: New file.
373
374 2002-05-26  Roland McGrath  <roland@frob.com>
375
376         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
377         Use integer_t instead of int for IOC_VOID case.
378
379 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
380
381         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
382
383 2002-05-26  Bruno Haible  <bruno@clisp.org>
384
385         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
386         end of the ISO-8859-7 from idx table.
387
388 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
389
390         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
391
392 2002-05-24  David S. Miller  <davem@redhat.com>
393
394         * string/bits/string2.h (memset): Do not try to optimize when
395         not _STRING_ARCH_unaligned if GCC will do the right thing.
396
397 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
398
399         * posix/regex.c: Define `inline' as a macro into nothing for the
400         compilers which lack the keyword.
401         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
402         for the compatibility of gawk.
403         * posix/regcomp.c: Add fake implementation of isblank() for the
404         environments which lack the function.
405         Don't use free_charset() in case of non-i18n envs.
406         (build_range_exp): Don't use i18n related code in case of non-i18n
407         envs.
408         (build_collating_symbol): Likewise.
409         (build_equiv_class): Likewise.
410         (build_charclass): Likewise.
411         (re_compile_fastmap_iter): Likewise.
412         (parse_bracket_exp): Likewise.
413         (build_word_op): Likewise.
414         (regfree): Don't use free_charset() in case of non-i18n envs.
415         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
416         re_token_type_t in case of non-i18n envs.
417         Don't define re_charset_t in case of non-i18n envs.
418         Change the type of wcs of re_string_t from wchar_t to wint_t,
419         since we store also WEOF.
420         * posix/regex_internal.c: (re_string_realloc_buffers): Change
421         the type of wcs of re_string_t from wchar_t to wint_t.
422         (re_string_reconstruct): Likewise.
423         (create_ci_newstate): Don't use i18n related code in case of
424         non-i18n envs.
425         (create_cd_newstate): Likewise.
426
427 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
428
429         * iconv/loop.c: Fix typo.
430
431 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
432
433         * inet/ether_line.c (ether_line): Fix a typo causing only
434         lower 4 bits of each ethernet address byte being assigned.
435         Don't modify what line points to.
436         * inet/tst-ether_aton.c (main): Add ether_line tests.
437
438 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
439
440         * manual/filesys.texi: Don't make readlink example leak memory
441         when readlink fails.
442
443 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
444
445         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
446         some more security checks.
447
448 2002-05-17  David S. Miller  <davem@redhat.com>
449
450         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
451
452 2002-05-16  David S. Miller  <davem@redhat.com>
453
454         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
455         (elf_machine_dynamic): Use it to force PIC register to be loaded.
456         (elf_machine_load_address): Likewise.
457         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
458
459         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
460         is unaligned, do not forget to fully initialize %g1 magic value.
461
462         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
463         register definitions and provide 32-bit variants of structures
464         during 64-bit builds.
465
466         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
467         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
468         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
469         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
470         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
471         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
472         Do not clear implicit one bit here, it must be done post-rounding.
473         Only pad to the left using left shift if value uses less than the
474         available fractional bits.
475
476 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
477
478         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
479         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
480         (shared-only-routines): Likewise.
481         * sysdeps/powerpc/libgcc-compat.c: New file.
482         * sysdeps/wordsize-32/cmpdi2.c: Removed.
483         * sysdeps/wordsize-32/fixdfdi.c: Removed.
484         * sysdeps/wordsize-32/fixsfdi.c: Removed.
485         * sysdeps/wordsize-32/shdi3.c: Removed.
486
487 2002-05-16  Bruno Haible  <bruno@clisp.org>
488
489         * MakeTAGS (libc.pot): Don't sort the output.
490         * po/header.pot: Update to match xgettext 0.11 output.
491
492 2002-05-16  Bruno Haible  <bruno@clisp.org>
493
494         * MakeTAGS (subdirs): Remove duplicates.
495
496 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
497
498         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
499         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
500         alias.
501
502 2002-05-19  Andreas Jaeger  <aj@suse.de>
503
504         * sysdeps/unix/sysv/linux/configure.in: Warn against an
505         installation in /usr/local.
506
507 2002-05-16  Bruno Haible  <bruno@clisp.org>
508
509         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
510         string as argument of #error.
511
512 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
513
514         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
515         don't define static.  Remove old __realpath function.  TC1 of
516         POSIX 2001 will allow the second parameter to be NULL.
517         * stdlib/test-canon.c: Comment out test for NULL as second
518         parameter of realpath.
519
520         * time/offtime.c (__offtime): Set errno if overflow is detected.
521
522         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
523         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
524         dl-brk and dl-sbrk.
525
526         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
527         (fdimf): Likewise.
528
529 2002-05-15  Roland McGrath  <roland@frob.com>
530
531         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
532
533 2002-05-12  Bruno Haible  <bruno@clisp.org>
534
535         * iconvdata/testdata/EUC-JISX0213: New file.
536         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
537         * iconvdata/testdata/SHIFT_JISX0213: New file.
538         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
539         * iconvdata/testdata/ISO-2022-JP-3: New file.
540         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
541         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
542         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
543         contains comments indicating precomposed characters.
544
545 2002-04-21  Bruno Haible  <bruno@clisp.org>
546
547         * iconvdata/iso-2022-jp-3.c: New file.
548         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
549         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
550         (LDFLAGS-ISO-2022-JP-3.so): New variable.
551         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
552         (distribute): Add iso-2022-jp-3.c.
553
554 2002-05-12  Bruno Haible  <bruno@clisp.org>
555
556         * iconvdata/tst-table-to.c (main): Restore handling of
557         transliterations, broken by last patch.
558
559 2002-05-12  Bruno Haible  <bruno@clisp.org>
560
561         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
562
563 2002-05-12  Bruno Haible  <bruno@clisp.org>
564
565         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
566         when there is not enough room in the output buffer.
567         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
568
569 2002-04-20  Bruno Haible  <bruno@clisp.org>
570
571         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
572         macros.
573         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
574         Also make this macro work if FROM_DIRECTION evaluates to 0.
575         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
576         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
577         of consume_incomplete.
578         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
579         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
580         4, not 8.
581         * iconvdata/cp1258.c: Likewise.
582         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
583         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
584         not 2.
585         * iconvdata/ibm933.c: Likewise.
586         * iconvdata/ibm935.c: Likewise.
587         * iconvdata/ibm937.c: Likewise.
588         * iconvdata/ibm939.c: Likewise.
589         * iconvdata/iso-2022-cn.c: Define
590         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
591         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
592         * iconvdata/iso-2022-cn-ext.c: Likewise.
593         * iconvdata/iso-2022-jp.c: Define
594         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
595         {MIN,MAX}_NEEDED_{FROM,TO}.
596         * iconvdata/tcvn5712-1.c: Define
597         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
598         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
599         * iconvdata/euc-jisx0213.c: Define
600         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
601         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
602         * iconvdata/shift_jisx0213.c: Likewise.
603
604 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
605
606         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
607         shdi3, fixdfdi, fixsfdi in csu dir.
608         (shared-only-routines): Likewise.
609         * sysdeps/wordsize-32/cmpdi2.c: New file.
610         * sysdeps/wordsize-32/shdi3.c: New file.
611         * sysdeps/wordsize-32/fixdfdi.c: New file.
612         * sysdeps/wordsize-32/fixsfdi.c: New file.
613         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
614         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
615         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
616
617         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
618         Only use va_arg if the argument will be used [PR libc/3259].
619
620 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
621
622         * catgets/catgets.c (catopen): Free buffer if internal catalog
623         open fails.
624
625 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
626
627         * debug/xtrace.sh: Make more robust.  For realtime tracking use
628         non-buffering methods.
629         * debug/pcprofiledump.c: Implement -u option.
630         Patch by Roger Luethi <rl@hellgate.ch>.
631
632 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
633
634         * include/netinet/in.h (bindresvport_internal): Add prototype.
635         * include/rpc/auth.h  (authunix_create_internal,
636         authunix_create_default_internal, authnone_create_internal,
637         authdes_pk_create_internal): Add prototypes.
638         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
639         clntudp_create_internal, clntudp_bufcreate_internal,
640         clntunix_create_internal): Add prototypes.
641         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
642         svc_getreq_internal, svc_getreq_common_internal,
643         svc_getreqset_internal, svc_getreq_poll_internal,
644         svc_register_internal, svc_unregister_internal,
645         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
646         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
647         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
648         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
649         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
650         * inet/rcmd.c (rcmd_af): Use __listen.
651         (rresvport_af): Use __bind.
652         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
653         authunix_create, authunix_create_default, authnone_create,
654         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
655         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
656         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
657         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
658         _authenticate, add INTDEF after such function definitions.
659         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
660         __setsockopt, __getsockname instead of non-__ variants.
661         * sunrpc/pmap_rmt.c: Likewise.
662         * sunrpc/rtime.c: Likewise.
663         * sunrpc/svc_udp.c: Likewise.
664         * sunrpc/clnt_unix.c: Likewise.
665         * sunrpc/svc_unix.c: Likewise.
666         * sunrpc/bindrsvprt.c: Likewise.
667         * sunrpc/svc_tcp.c: Likewise.
668         * sunrpc/auth_none.c: Likewise.
669         * sunrpc/clnt_raw.c: Likewise.
670         * sunrpc/clnt_tcp.c: Likewise.
671         * sunrpc/auth_unix.c: Likewise.
672         * sunrpc/key_call.c: Likewise.
673         * sunrpc/clnt_gen.c: Likewise.
674         * sunrpc/pm_getmaps.c: Likewise.
675         * sunrpc/clnt_simp.c: Likewise.
676         * sunrpc/pmap_clnt.c: Likewise.
677         * sunrpc/svc_run.c: Likewise.
678         * sunrpc/svc.c: Likewise.
679         * sunrpc/svc_simple.c: Likewise.
680         * sunrpc/pm_getport.c: Likewise.
681         * sunrpc/auth_des.c: Likewise.
682         * sunrpc/svc_auth.c: Likewise.
683         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
684         __register_frame_info_table_bases, __deregister_frame_info_bases):
685         Add INTDEF.
686         (__register_frame_info_bases_internal,
687         __register_frame_info_table_bases_internal,
688         __deregister_frame_info_bases_internal): Add prototypes.
689         (__register_frame_info, __register_frame): Use INTUSE in call to
690         __register_frame_info_bases.
691         (__register_frame_info_table): Similarly.
692         (__deregister_frame_info, __deregister_frame): Similarly.
693         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
694         sendto as weak alias.
695         * sysdeps/mach/hurd/sendto.c: Likewise.
696         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
697         recvfrom as weak alias.
698         * sysdeps/mach/hurd/recvfrom.c: Likewise.
699         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
700         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
701         recvmsg as weak alias.
702         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
703         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
704         sendmsg as weak alias.
705         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
706         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
707         setsockopt, add setsockopt as weak alias.
708         * sysdeps/mach/hurd/setsockopt.c: Likewise.
709         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
710         weak alias.
711         * sysdeps/mach/hurd/bind.c: Likewise.
712         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
713         as weak alias.
714         * sysdeps/mach/hurd/listen.c: Likewise.
715         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
716         getsockname, add getsockname as weak alias.
717         * sysdeps/mach/hurd/getsockname.c: Likewise.
718         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
719         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
720         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
721         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
722         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
723         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
724         Add aliases.
725         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
726         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
727         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
728         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
729         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
730         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
731         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
732         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
733         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
734         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
735         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
736         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
737
738 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
739
740         * locale/programs/localedef.h (show_archive_content): Add verbose
741         argument.
742         * locale/programs/localedef.c (main): Adjust caller.
743         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
744         (nameentcmp, dataentcmp): New functions.
745         (xstrcmp): Remove.
746         (show_archive_content): Print verbose listing with --list-archive -v.
747
748 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
749
750         * locale/programs/locarchive.c (open_archive): Take extra argument
751         readonly.  If true open file with O_RDONLY and don't create the
752         archive if it doesn't exist.
753         Adapt all callers.
754         (close_archive): Don't do anything if fd element is -1.
755         * locale/programs/localedef.h (open_archive): Adjust prototype.
756         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
757         call.
758
759         * malloc/malloc.c (__posix_memalign): Correct check for size of
760         alignment value [PR libc/3444].
761
762         * include/stdio.h: Remove references to old stdio implementation.
763
764         * libio/Makefile (bug-ungetwc2-ENV): Define.
765
766 2002-05-13  Roland McGrath  <roland@frob.com>
767
768         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
769
770         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
771
772 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
773
774         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
775         Allocate three, not two, more than LEN when appending '/.'.
776         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
777         if NAME ends with '/.' if it is shorter than 2 chars.
778
779 2002-05-12  Roland McGrath  <roland@frob.com>
780
781         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
782         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
783
784         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
785         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
786
787 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
788
789         * sysdeps/ia64/Makefile: Remove extra endif.
790         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
791
792 2002-05-10  Andreas Schwab  <schwab@suse.de>
793
794         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
795
796 2002-05-09  Andreas Jaeger  <aj@suse.de>
797
798         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
799         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
800         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
801
802         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
803         * sysdeps/wordsize-64/glob.c: ...here.
804         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
805         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
806         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
807
808 2002-05-08  Roland McGrath  <roland@frob.com>
809
810         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
811         O_NOTRANS flag in "." lookup.
812
813 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
814
815         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
816
817 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
818
819         * locale/duplocale.c (__duplocale): Update special members only
820         when allocation succeeded.
821
822 2002-05-03  Roland McGrath  <roland@frob.com>
823
824         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
825         we can only build libc.so.0.3(GLIBC_2.2.6) now.
826
827 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
828
829         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
830         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
831         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
832         * sysdeps/ia64/ia64libgcc.S: New file.
833
834 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
835
836         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
837
838         * malloc/memusage.c: Distinguish anonymous mmap.
839
840 2002-05-01  Roland McGrath  <roland@frob.com>
841
842         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
843         and use INTDEF on it.
844         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
845
846         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
847
848         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
849
850 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
851
852         * malloc/memusage.c: Add support for tracking mmap & friends.
853         * malloc/memusage.sh: Implement -m/--mmap option.
854
855 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
856
857         * locale/programs/locarchive.c (create_archive): Add archivefname
858         argument, create fname from it.
859         (enlarge_archive): Honour output_prefix.
860         (open_archive): Likewise.
861
862 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
863
864         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
865         too many stpcpy macros.
866
867 2002-04-26  Bruno Haible  <bruno@clisp.org>
868
869         * locale/programs/ld-collate.c (collate_read): Cast first argument
870         for "%.*s" to int.
871
872 2002-04-26  Bruno Haible  <bruno@clisp.org>
873
874         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
875         __dcngettext_internal): New declarations.
876         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
877         attribute declarations.
878
879 2002-04-30  Roland McGrath  <roland@frob.com>
880
881         Removed old GNU stdio implementation; GNU libio is now the only option.
882         * configure.in: Removed --enable-libio option and @stdio@ subst var.
883         Define USE_IN_LIBIO unconditionally.
884         * configure: Regenerated.
885         * Makeconfig (stdio): Set to libio by default.
886         * config.make.in (stdio): Variable removed.
887         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
888         * sysdeps/unix/sysv/linux/configure: Regenerated.
889         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
890         * sysdeps/mach/hurd/configure: Regenerated.
891         * stdio/.cvsignore: File removed.
892         * stdio/Makefile: File removed.
893         * stdio/Versions: File removed.
894         * stdio/__fbufsize.c: File removed.
895         * stdio/__flbf.c: File removed.
896         * stdio/__fpending.c: File removed.
897         * stdio/__fpurge.c: File removed.
898         * stdio/__freadable.c: File removed.
899         * stdio/__freading.c: File removed.
900         * stdio/__fsetlocking.c: File removed.
901         * stdio/__fwritable.c: File removed.
902         * stdio/__fwriting.c: File removed.
903         * stdio/clearerr.c: File removed.
904         * stdio/fclose.c: File removed.
905         * stdio/fcloseall.c: File removed.
906         * stdio/feof.c: File removed.
907         * stdio/ferror.c: File removed.
908         * stdio/fflush.c: File removed.
909         * stdio/fgetc.c: File removed.
910         * stdio/fgetpos.c: File removed.
911         * stdio/fgets.c: File removed.
912         * stdio/fileno.c: File removed.
913         * stdio/fmemopen.c: File removed.
914         * stdio/fopen.c: File removed.
915         * stdio/fopncook.c: File removed.
916         * stdio/fputc.c: File removed.
917         * stdio/fputs.c: File removed.
918         * stdio/fread.c: File removed.
919         * stdio/freopen.c: File removed.
920         * stdio/fseek.c: File removed.
921         * stdio/fsetpos.c: File removed.
922         * stdio/ftell.c: File removed.
923         * stdio/fwrite.c: File removed.
924         * stdio/getc.c: File removed.
925         * stdio/getchar.c: File removed.
926         * stdio/getdelim.c: File removed.
927         * stdio/gets.c: File removed.
928         * stdio/glue.c: File removed.
929         * stdio/internals.c: File removed.
930         * stdio/linewrap.c: File removed.
931         * stdio/linewrap.h: File removed.
932         * stdio/memstream.c: File removed.
933         * stdio/newstream.c: File removed.
934         * stdio/obstream.c: File removed.
935         * stdio/putc.c: File removed.
936         * stdio/putchar.c: File removed.
937         * stdio/puts.c: File removed.
938         * stdio/rewind.c: File removed.
939         * stdio/setbuf.c: File removed.
940         * stdio/setbuffer.c: File removed.
941         * stdio/setlinebuf.c: File removed.
942         * stdio/setvbuf.c: File removed.
943         * stdio/stdio.h: File removed.
944         * stdio/ungetc.c: File removed.
945         * stdio/vasprintf.c: File removed.
946         * stdio/vscanf.c: File removed.
947         * stdio/vsnprintf.c: File removed.
948         * stdio/vsprintf.c: File removed.
949         * stdio/vsscanf.c: File removed.
950         * sysdeps/generic/defs.c: File removed.
951         * sysdeps/generic/fdopen.c: File removed.
952         * sysdeps/generic/pipestream.c: File removed.
953         * sysdeps/generic/stdio_init.c: File removed.
954         * sysdeps/generic/sysd-stdio.c: File removed.
955         * sysdeps/generic/vdprintf.c: File removed.
956         * sysdeps/mach/hurd/defs.c: File removed.
957         * sysdeps/mach/hurd/fdopen.c: File removed.
958         * sysdeps/mach/hurd/pipestream.c: File removed.
959         * sysdeps/mach/hurd/stdio_init.c: File removed.
960         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
961         * sysdeps/mach/hurd/vdprintf.c: File removed.
962         * sysdeps/posix/defs.c: File removed.
963         * sysdeps/posix/fdopen.c: File removed.
964         * sysdeps/posix/pipestream.c: File removed.
965         * sysdeps/posix/stdio_init.c: File removed.
966         * sysdeps/posix/vdprintf.c: File removed.
967         * sysdeps/unix/pipestream.c: File removed.
968         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
969         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
970         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
971
972 2002-04-29  Roland McGrath  <roland@frob.com>
973
974         * include/libc-symbols.h (link_warning): Use `unused' attribute.
975
976 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
977
978         * sysdeps/generic/tls.h: Describe what must be defined.
979
980         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
981         glob_in_dir [PR libc/3385].
982         * posix/globtest.sh: Add test case.
983
984         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
985         //TRANSLIT twice.
986
987 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
988
989         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
990         _internal symbol handling.
991         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
992
993 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
994
995         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
996         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
997
998 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
999
1000         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1001         not _LIBC and RE_ENABLE_I18N.
1002         (build_range_exp): Implement for not _LIBC.
1003         (build_collating_symbol): Likewise.
1004         (parse_bracket_exp): Unify redundant error handlings.
1005         Don't erase mbcset for non matching list in multibyte envs.
1006         (build_word_op): Add '_' to matching list for \w operator.
1007         * posix/regex_internal.c (re_string_construct): Invoke
1008         build_upper_buffer in case of not RE_ENABLE_I18N.
1009         (re_string_reconstruct): Don't touch cur_state in case of not
1010         RE_ENABLE_I18N.
1011         * posix/regex_internal.h (attribute_hidden): New macro in case of
1012         not _LIBC.
1013         (re_charset_t): Define range_starts/ends in case of not _LIBC.
1014         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1015         RE_ENABLE_I18N.
1016         (transit_state_mb): Likewise.
1017         (check_node_accept_bytes): Implement the code evaluating range
1018         expression in case of not _LIBC.
1019         (find_collation_sequence_value): Hide in case of not _LIBC.
1020
1021 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
1022
1023         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1024         i386/semctl.c.
1025         (__old_semctl, __new_semctl): Only use va_arg if the argument will
1026         be used.
1027
1028 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1029
1030         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1031
1032         * sysdeps/ia64/strncpy.S: Fix recovery code.
1033         Patch by David Mosberger <davidm@hpl.hp.com>.
1034
1035 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1036
1037         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1038         GLIBC_2.2.6.
1039
1040 2002-04-14  Bruno Haible  <bruno@clisp.org>
1041
1042         * posix/regex.c (re_max_failures): Add back symbol for binary
1043         compatibility.
1044
1045 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
1046
1047         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1048         of buffer building functions.
1049         * posix/regex_internal.c (re_string_allocate): New function.
1050         (re_string_realloc_buffers): New function.
1051         (re_string_skip_chars): New function.
1052         (re_string_reconstruct): New function.
1053         (re_string_construct): Adapt it to new interface of buffer building
1054         functions.
1055         (re_string_construct_common): Likewise.
1056         (build_wcs_buffer): Likewise.
1057         (build_wcs_upper_buffer): Likewise.
1058         (build_upper_buffer): Likewise.
1059         (re_string_translate_buffer): Likewise.
1060         (re_string_context_at): Adapt it to variable length buffers.
1061         * posix/regex_internal.h (re_string_t): Add new fields to handle
1062         variable length buffers.
1063         (re_match_context_t): Likewise.
1064         * posix/regexec.c (re_search_internal): Adapt it to new interface
1065         of re_string_t and re_match_context_t.
1066         (acquire_init_state_context): Likewise.
1067         (check_matching): Likewise.
1068         (check_halt_state_context): Likewise.
1069         (proceed_next_node): Likewise.
1070         (set_regs): Likewise.
1071         (sift_states_backward): Likewise.
1072         (clean_state_log_if_need): Likewise.
1073         (sift_states_iter_mb): Likewise.
1074         (sift_states_iter_bkref): Likewise.
1075         (add_epsilon_backreference): Likewise.
1076         (transit_state): Likewise.
1077         (transit_state_sb): Likewise.
1078         (transit_state_mb): Likewise.
1079         (transit_state_bkref): Likewise.
1080         (transit_state_bkref_loop): Likewise.
1081         (check_node_accept): Likewise.
1082         (match_ctx_init): Likewise.
1083         (extend_buffers): New function.
1084
1085 2002-04-21  Bruno Haible  <bruno@clisp.org>
1086
1087         * iconvdata/tst-table.sh: For the second check, use the truncated
1088         GB18030 charmap table, like for the first check.
1089
1090 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1091
1092         * elf/dl-load.c (open_verify): Correct __lseek parameters.
1093         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1094
1095 2002-04-23  H.J. Lu  <hjl@gnu.org>
1096
1097         * include/math.h (isfinite): Fix a typo.
1098
1099 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1100
1101         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1102         which is created by the test suite.
1103
1104 2002-04-20  Bruno Haible  <bruno@clisp.org>
1105
1106         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1107         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1108
1109 2002-04-20  Bruno Haible  <bruno@clisp.org>
1110
1111         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1112         to avoid gcc warning.
1113
1114 2002-04-20  Bruno Haible  <bruno@clisp.org>
1115
1116         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1117         of data->__statep->__count.
1118
1119 2002-04-20  Bruno Haible  <bruno@clisp.org>
1120
1121         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1122         tag characters.
1123         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1124
1125 2002-04-24  Roland McGrath  <roland@frob.com>
1126
1127         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1128         use END macro instead of our own .end directive.
1129         Use `callsys' insn mnemonic instead of `call_pal'.
1130
1131         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1132
1133         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1134         macro; we need this for Hurd.
1135
1136         Log entry was missing for 2002/03/24 commit of rev 1.8,
1137         goes with 2002-03-17 changes.
1138         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1139         (sysdep_routines): Append ioperm here.
1140         (sysdep_headers): Append sys/io.h here.
1141
1142 2002-04-23  Roland McGrath  <roland@frob.com>
1143
1144         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1145         * sysdeps/mach/hurd/sendto.c: Likewise.
1146         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1147         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1148         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1149
1150 2002-04-22  Roland McGrath  <roland@frob.com>
1151
1152         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1153         failure from i386_io_perm_* RPCs to ENOSYS.
1154
1155 2002-04-22  Andreas Jaeger  <aj@suse.de>
1156
1157         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1158
1159         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1160
1161         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1162         register instead of destroying %rbx.
1163
1164 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
1165
1166         * string/string.h: Declare strerror_r also for XPG6.
1167
1168 2002-04-19  Roland McGrath  <roland@frob.com>
1169
1170         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1171
1172 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
1173
1174         * Makefile: Add handling of xtests and xcheck targets.
1175         * MakeTAGS: Likewise.
1176         * Makeconfig: Likewise.
1177         * Makerules: Likewise.
1178         * Rules: Likewise.
1179         * manual/Makefile: Likewise.
1180         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1181         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
1182
1183 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
1184
1185         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1186         authnone_private_s.
1187         * sunrpc/auth_none.c: Include bits/libc-lock.h.
1188         Delete #ifdef _RPC_THREAD_SAFE_ block.
1189         (authnone_private): Make a struct, not a pointer to struct.
1190         (authnone_private_guard): New once-control variable.
1191         (authnone_create_once): New function, split out of
1192         authnone_create.  No need to allocate memory.
1193         (authnone_create): Just call authnone_create_once via
1194         __libc_once, then return &authnone_private->no_client.
1195         (authnone_marshal): Access private data via CLIENT argument,
1196         not authnone_private pointer.
1197         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1198         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1199         authnone_private_s.
1200
1201 2002-04-12  H.J. Lu  <hjl@gnu.org>
1202
1203         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1204
1205 2002-04-18  Bruno Haible  <bruno@clisp.org>
1206
1207         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1208         FROM_DIRECTION): Make the FROM direction stateless.
1209         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1210         FROM_DIRECTION): Likewise.
1211
1212 2002-04-15  Bruno Haible  <bruno@clisp.org>
1213
1214         * iconvdata/JISX0213.TXT: New file.
1215         * iconvdata/jisx0213.h: New file.
1216         * iconvdata/jisx0213.c: New file.
1217         * iconvdata/euc-jisx0213.c: New file.
1218         * iconvdata/shift_jisx0213.c: New file.
1219         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1220         * iconvdata/EUC-JISX0213.precomposed: New file.
1221         * iconvdata/SHIFT_JISX0213.precomposed: New file.
1222         * iconvdata/SHIFT_JISX0213.irreversible: New file.
1223         * iconvdata/tst-table-to.c (main): Make it work for encodings for
1224         which the "to" direction is stateful.
1225         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1226         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1227         SHIFT_JISX0213.
1228         (libJISX0213-routines): New variable.
1229         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1230         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1231         (LDFLAGS-libJISX0213.so): New variable.
1232         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1233         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1234         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1235
1236 2002-04-15  Bruno Haible  <bruno@clisp.org>
1237
1238         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1239         uint32_t.  Update to Unicode 3.2.
1240         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1241         (BODY for TO_LOOP): Handle the ASCII range specially.
1242         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1243         * iconvdata/testdata/BIG5HKSCS: Remove a character.
1244         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1245
1246 2002-04-15  Bruno Haible  <bruno@clisp.org>
1247
1248         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1249         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1250
1251 2002-04-15  Bruno Haible  <bruno@clisp.org>
1252
1253         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1254         (ucs4_to_cns11643): Update.
1255         * iconvdata/cns11643.c: Update to Unicode 3.2.
1256         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1257         __cns11643_from_ucs4p2_tab): Regenerated.
1258         (__cns11643_from_ucs4p2c_tab): New array.
1259         * iconvdata/cvs11643l1.c: Update comments.
1260         * iconvdata/EUC-TW.irreversible: Remove two entries.
1261
1262 2002-04-15  Bruno Haible  <bruno@clisp.org>
1263
1264         * locale/C-translit.h.in: Update to Unicode 3.2.
1265         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1266         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1267
1268 2002-04-15  Bruno Haible  <bruno@clisp.org>
1269
1270         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1271         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1272
1273 2002-04-15  Bruno Haible  <bruno@clisp.org>
1274
1275         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1276         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1277         always one byte, not 0 bytes in some cases and 2 bytes in others.
1278
1279         * iconvdata/tst-table-from.c (main): Correct the usage message.
1280
1281 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
1282
1283         * posix/regcomp.c (parse_expression): Fix incorrect error code.
1284         (parse_dup_op): Fix error handling like "a{}".
1285         (parse_bracket_exp): Add error handling.
1286         (fetch_number): Add error handling for "a{<very_large_number>}".
1287
1288 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
1289
1290         * posix/regcomp.c (parse_bracket_symbol): Add error handling
1291         in case that the symbol name is too long.
1292         (build_charclass): Handle [:lower:]/[:uppper:] correctly
1293         in case of REG_ICASE.
1294
1295 2002-04-19  Andreas Jaeger  <aj@suse.de>
1296
1297         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1298         <hartvige@mips.com>.
1299
1300 2002-04-15  H.J. Lu  <hjl@gnu.org>
1301
1302         * include/math.h (__finitel_internal): Declare only if
1303         __NO_LONG_DOUBLE_MATH is not defined.
1304         (__isinfl_internal): Likewise.
1305         (__isnanl_internal): Likewise.
1306
1307         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1308         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1309         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1310         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1311         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1312         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1313         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1314
1315         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1316         __fcntl_internal.
1317
1318         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1319         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1320
1321 2002-04-15  Bruno Haible  <bruno@clisp.org>
1322
1323         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1324         (BODY for TO_LOOP): Likewise.
1325         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1326         * iconvdata/tst-table.sh: Add support for encodings which contain
1327         precomposed Unicode characters, known to the iconv converter in both
1328         directions but not listed in the charmap.
1329         * iconvdata/IBM856.irreversible: New file.
1330         * iconvdata/IBM922.irreversible: New file.
1331         * iconvdata/IBM1132.irreversible: New file.
1332         * iconvdata/IBM1133.irreversible: New file.
1333         * iconvdata/IBM1160.irreversible: New file.
1334         * iconvdata/IBM1161.irreversible: New file.
1335         * iconvdata/IBM1163.irreversible: New file.
1336         * iconvdata/IBM1164.irreversible: New file.
1337         * iconvdata/ARMSCII-8.irreversible: New file.
1338         * iconvdata/TCVN5712-1.precomposed: New file.
1339         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1340         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1341         ARMSCII-8, TCVN5712-1.
1342         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1343         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1344         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1345         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1346
1347 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1348
1349         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
1350         for EVENING69.  Include offsets in TZ environment variable.
1351
1352 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
1353
1354         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1355         avoid compiler warnings.
1356
1357         * locale/programs/localedef.c (main): Always call
1358         construct_output_path.
1359
1360         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1361
1362         * locale/programs/locfile.c (to_archive): New variable.  To collect
1363         data which has to be added to the locale archive.
1364         (write_all_categories): Take new third parameter with locale name.
1365         Unless no_archive flag set add new locale data to the archive
1366         (write_locale_data): Unless no-archive flag set store generated data
1367         in to_archive data structure instead of generation output file.
1368         Add new parameter with locale category index.
1369         * locale/programs/locfile.h: Add new parameters in declaractions of
1370         write_all_categories and write_locale_data.
1371         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
1372         --add-to-archive, and --delete-from-archive options.  Pass extra
1373         parameter to write_all_categories.
1374         * locale/programs/localedef.h: Add prototypes for functions in
1375         locarchive.c.
1376         * locale/locarchive.h: New file.
1377         * locale/programs/locarchive.c: New file.
1378         * locale/Makefile (distribute): Add programs/locarchive.c and
1379         locarchive.h.
1380         (localedef-modules): Add md5 and locarchive.
1381         Add vpath to crypt subdir for md5.c.
1382
1383         * locale/programs/ld-address.c: Pass locale category ID as new second
1384         parameter to write_locale_data.
1385         * locale/programs/ld-collate.c: Likewise.
1386         * locale/programs/ld-ctype.c: Likewise.
1387         * locale/programs/ld-identification.c: Likewise.
1388         * locale/programs/ld-measurement.c: Likewise.
1389         * locale/programs/ld-messages.c: Likewise.
1390         * locale/programs/ld-monetary.c: Likewise.
1391         * locale/programs/ld-name.c: Likewise.
1392         * locale/programs/ld-numeric.c: Likewise.
1393         * locale/programs/ld-paper.c: Likewise.
1394         * locale/programs/ld-telephone.c: Likewise.
1395         * locale/programs/ld-time.c: Likewise.
1396
1397         * locale/simple-hash.c: Move compute_hashval function from here...
1398         * locale/hashval.h: ...to here.  New file.
1399         * locale/simple-hash.h: Add prototype for compute_hashval.
1400
1401         * include/libintl.h: Minor cleanups.
1402
1403 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
1404
1405         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
1406
1407 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
1408
1409         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
1410
1411 2002-04-14  Bruno Haible  <bruno@clisp.org>
1412
1413         * locale/programs/charmap.c (charmap_read): Don't access result if
1414         result == NULL.
1415
1416 2002-02-17  Andreas Schwab  <schwab@suse.de>
1417
1418         * elf/reldep7.c: New file.
1419         * elf/reldep7mod1.c: New file.
1420         * elf/reldep7mod2.c: New file.
1421         * elf/Makefile: Add rules to build and run reldep7.
1422
1423 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
1426         the end of the function.  Pass original flags to recursive call if
1427         add_dependency failed.
1428         (_dl_lookup_versioned_symbol): Likewise.
1429
1430 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
1431
1432         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
1433         early, but check whether it overflowed afterwards.
1434         * time/tst-mktime.c (main): Add new tests.
1435
1436 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
1437
1438         * debug/xtrace.sh: Fix program name in help message.
1439         Patch by Roger Luethi <rl@hellgate.ch>.
1440
1441         * include/sys/stat.h: Add prototypes for __lxstat_internal and
1442         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
1443         NOT_IN_libc.
1444         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
1445         * sysdeps/mach/hurd/lxstat.c: Likewise.
1446         * sysdeps/unix/common/lxstat.c: Likewise.
1447         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
1448         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1449         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1450         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1451         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1452         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
1453         * sysdeps/mach/hurd/lxstat64.c: Likewise.
1454         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
1455         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1456
1457         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
1458         prototypes.  Add __mbrlen and __mbrtowc macros.
1459         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
1460         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
1461
1462         * include/unistd.h: Add prototype for __write_internal and add
1463         __libc_write macro is SHARED.
1464         * sysdeps/generic/write.c: Use INTDEF for __write.
1465         * sysdeps/mach/hurd/write.c: Likewise.
1466         * sysdeps/unix/sysv/aix/write.c: Likewise.
1467         * sysdeps/unix/syscalls.list: Add __libc_write alias.
1468
1469         * assert/assert.c: Replace STR_N_SIZE with something usable in
1470         macro arguments.
1471         * assert/assert-perr.c: Likewise.
1472
1473         * include/sys/socket.h: Declare __libc_sa_len_internal and define
1474         SA_LEN macro to use it if not NOT_IN_libc.
1475         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
1476
1477         * include/fcntl.h: Declare __open_internal and define __open and
1478         __libc_open macros if not NOT_IN_libc.
1479         * sysdeps/generic/open.c: Use INTDEF for __open.
1480         * sysdeps/mach/hurd/open.c: Likewise.
1481         * sysdeps/unix/sysv/aix/open.c: Likewise.
1482         * sysdeps/unix/syscalls.list: Add __open_internal alias.
1483
1484         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
1485         has correct number.
1486
1487         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
1488         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
1489         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1490         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1491
1492         * include/wctype.h: Declare __iswalpha_l_internal,
1493         __iswdigit_l_internal, __iswspace_l_internal,
1494         __iswxdigit_l_internal, and __iswctype_internal.  Define
1495         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
1496         __iswxdigit_l macros if not NOT_IN_libc.
1497         * wctype/iswctype.c: Use INTDEF for __iswctype.
1498         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
1499
1500         * include/math.h: Declare __isinf_internal, __isinfl_internal,
1501         __isnan_internal, and __isnanl_internal.
1502         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
1503         __isnan, and __isnanl.
1504         * stdio-common/printf_size.c: Likewise.
1505         * sysdeps/generic/printf_fphex.c: Likewise.
1506         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
1507         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1508         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
1509         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
1510         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1511         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1512         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1513         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1514         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
1515         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1516         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
1517         * sysdeps/m68k/s_isinfl.c: Likewise.
1518         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1519         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
1520
1521         * include/sys/time.h: Declare __gettimeofday_internal and define
1522         __gettimeofday macro if not NOT_IN_libc.
1523         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
1524         * sysdeps/mach/gettimeofday.c: Likewise.
1525         * sysdeps/posix/gettimeofday.c: Likewise.
1526         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1527         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
1528         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1529         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
1530
1531         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
1532         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
1533         Remove __lstat and __fstat inline functions.
1534         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
1535         * sysdeps/mach/hurd/fxstat.c: Likewise.
1536         * sysdeps/unix/fxstat.c: Likewise.
1537         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
1538         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1539         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1540         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1541         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1542         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
1543         * sysdeps/mach/hurd/fxstat64.c: Likewise.
1544         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
1545         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1546
1547         * include/unistd.h: Declare __getpid_internal and define
1548         __getpid macro if not NOT_IN_libc.
1549         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
1550         * sysdeps/generic/getpid.c: Likewise.
1551         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
1552         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
1553
1554         * include/unistd.h: Declare __getpgid_internal and define
1555         __getpgid macro if not NOT_IN_libc.
1556         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
1557         * sysdeps/mach/hurd/getpgid.c: Likewise.
1558         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
1559         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1560         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1561         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
1562
1563         * include/unistd.h: Declare __getpagesize_internal and define
1564         __getpagesize macro if not NOT_IN_libc.
1565         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
1566         __getpagesize.
1567         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
1568         * sysdeps/mach/getpagesize.c: Likewise.
1569         * sysdeps/posix/getpagesize.c: Likewise.
1570         * sysdeps/unix/getpagesize.c: Likewise.
1571         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1572         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
1573         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
1574         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1575
1576 2002-04-13  Andreas Jaeger  <aj@suse.de>
1577
1578         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
1579         as clobber to reduce register pressure.
1580         (__strpbrk_cg): Likewise.
1581         (__mempcpy_by4): Likewise.
1582         (__strstr_cg): Likewise.
1583         Add prototype for __memrchr.
1584
1585 2002-04-13  Andreas Schwab  <schwab@suse.de>
1586
1587         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
1588         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1589         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1590
1591 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
1592
1593         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
1594         check whether the caller prefers getting the most recent version of
1595         a symbol of the earliest version.
1596         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
1597         _dl_do_lookup to also take the new parameter and pass it on.
1598         Change 'explicit' parameter of _dl_lookup_symbol and
1599         _dl_lookup_versioned_symbol to flags.  Adjust tests.
1600         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1601         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
1602         _dl_lookup_versioned_symbol.
1603         * elf/dl-reloc.c: Likewise.
1604         * elf/dl-runtime.c: Likewise.
1605         * elf/dl-sym.c: Likewise.
1606         * sysdeps/mips/dl-machine.h: Likewise.
1607
1608 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1609
1610         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
1611         in a token.
1612         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
1613
1614 2002-04-10  Andreas Jaeger  <aj@suse.de>
1615
1616         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
1617
1618         * include/argz.h: Remove extra char from last patch.
1619
1620 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
1621
1622         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
1623         * sysdeps/unix/sysv/aix/chown.c: Likewise.
1624         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
1625         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1626         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1627         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
1628         __chown_internal.
1629         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1630
1631         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
1632         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
1633         * intl/ngettext.c: Likewise.
1634
1635         * include/sys/socket.h: Declare __connect_internal and define
1636         __connect macro if not NOT_IN_libc.
1637         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
1638         * sysdeps/unix/sysv/aix/connect.c: Likewise.
1639         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
1640
1641         * include/unistd.h: Declare __close_internal and define __close macro
1642         if not NOT_IN_libc.
1643         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
1644         WJUMP3): Add extra parenthesis to avoid expanding element names with
1645         macors like __close.
1646         * sysdeps/unix/syscalls.list: Add __close_internal alias.
1647
1648         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
1649         if not NOT_IN_libc.
1650         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
1651         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
1652         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
1653
1654         * include/unistd.h: Declare __fork_internal and define __fork macro
1655         if not NOT_IN_libc.
1656         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
1657         * sysdeps/unix/sysv/aix/fork.c: Likewise.
1658         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
1659
1660         * include/stdio_ext.h: Declare __fsetlocking_internal and define
1661         __fsetlocking macro to use it if not NOT_IN_libc.
1662         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
1663
1664         * libio/__fbufsize.c: Correct copyright.
1665         * libio/__flbf.c: Likewise.
1666         * libio/__fpending.c: Likewise.
1667         * libio/__fpurge.c: Likewise.
1668         * libio/__freadable.c: Likewise.
1669         * libio/__freading.c: Likewise.
1670         * libio/__fsetlocking.c: Likewise.
1671         * libio/__fwritable.c: Likewise.
1672         * libio/__fwriting.c: Likewise.
1673
1674         * include/stdio.h: Declare __asprintf_internal and define __asprintf
1675         macro to use it if not NOT_IN_libc.
1676         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
1677
1678         * include/mntent.h: Declare __setmntent_internal,
1679         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
1680         __getmntent_r, and __endmntent macros to use these functions if not
1681         NOT_IN_libc.
1682         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
1683         __endmntent.
1684
1685         * include/math.h: Declare __finite_internal, __finitef_internal, and
1686         __finitel_internal.  Redefine isfinite macro if in libc or libm using
1687         these functions.
1688         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
1689         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
1690         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
1691         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
1692         * sysdeps/i386/fpu/s_finitef.S: Likewise.
1693         * sysdeps/i386/fpu/s_finitel.S: Likewise.
1694         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1695         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1696         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1697         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1698
1699         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
1700         to use this function if not NOT_IN_libc.
1701         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
1702         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
1703         * sysdeps/mach/hurd/fcntl.c: Likewise.
1704         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
1705         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1706
1707         * include/argz.h: Declare __argz_count_internal and
1708         __argz_stringify_internal.
1709         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
1710         __argz_stringify.
1711         * string/argz-count.c: Use INTDEF for __argz_count.
1712         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
1713
1714         * include/stdlib.h: Declare __cxa_atexit_internal and define
1715         __cxa_atexit macro if not NOT_IN_libc.
1716         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
1717         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
1718
1719         * assert/assert.c: Use INTDEF for __assert_fail.
1720         * assert/__assert.c: Use INTUSE for call to __assert_fail.
1721         * include/assert.h: Declare __assert_fail_internal.
1722
1723         * extra-lib.mk: Mark assignment to lib with override.
1724
1725 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
1726
1727         * Makerules: Use cppflags-iterator.mk to add defines for all test
1728         source files.
1729
1730 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1731
1732         * elf/elf.h: Define R_SH_TLS_xxx macros.
1733         * elf/rtld.c: Remove an extra parenthesis.
1734         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
1735         TLS_GD macros.
1736         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
1737         * sysdeps/sh/dl-lookupcfg.h: New file.
1738         * sysdeps/sh/dl-tls.h: New file.
1739         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
1740         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
1741         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
1742         R_SH_TLS_TPOFF32 relocations.
1743
1744 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
1745
1746         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
1747         of NOT_IN_LIBC.
1748         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
1749         * include/stdlib.h: Likewise.
1750
1751 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
1752
1753         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
1754         instead of _RTLD_LOCAL.
1755         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
1756         * include/unistd.h: Likewise.
1757         * sysdeps/generic/ldsodefs.h: Likewise.
1758
1759         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
1760         if in libc or ld.so.
1761
1762 2002-04-08  Andreas Jaeger  <aj@suse.de>
1763
1764         * elf/cache.c (print_entry): Support x86-64.
1765
1766 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
1767
1768         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
1769         with one accessing the locale data structures directly.
1770         * stdio-common/printf-prs.c: Include localeinfo.h for new
1771         MB_CUR_MAX definition.
1772
1773         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
1774         is the name of the source file without extension.
1775         * Makefile (distribute): Add cppflags-iterator.mk.
1776         * cppflags-iterator.mk: New file.
1777         * extra-lib.mk: For the sources of the library run
1778         cppflags-iterator.mk.
1779
1780         * include/libintl.h: Declare __dcgettext_internal and
1781         _libc_intl_domainname_internal.  Define __dcgettext using these
1782         two symbols if used in libc itself.
1783         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
1784         _libc_intl_domainname_internal.
1785         * argp/argp-parse.c: Likewise.
1786         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
1787         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
1788         * intl/gettext.c: Likewise.
1789         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
1790         alias.
1791         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
1792         __dcgettext.
1793         * posix/regex_internal.c (gettext): Likewise.
1794
1795 2002-04-08  Andreas Jaeger  <aj@suse.de>
1796
1797         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
1798
1799         * sysdeps/x86_64/fpu/s_llrint.S: New.
1800         * sysdeps/x86_64/fpu/s_llrintf.S: New.
1801         * sysdeps/x86_64/fpu/s_llrintl.S: New.
1802         * sysdeps/x86_64/fpu/s_lrint.S: New.
1803         * sysdeps/x86_64/fpu/s_lrintf.S: New
1804         * sysdeps/x86_64/fpu/s_lrintl.S: New.
1805
1806 2002-04-08  Roland McGrath  <roland@frob.com>
1807
1808         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
1809         widening __hurd_fail value.
1810
1811 2002-04-07  Roland McGrath  <roland@frob.com>
1812
1813         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
1814         <mach/machine/alpha_instruction.h>.
1815         (_hurd_setup_sighandler): Take proper arguments for current decls.
1816         Update code to use _hurdsig_catch_fault.
1817         Use `callsys' instruction instead of `call_pal'.
1818         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
1819
1820         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
1821         (ALIGN, at, AT, fp): New macros.
1822
1823 2002-04-06  Roland McGrath  <roland@frob.com>
1824
1825         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
1826
1827         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
1828         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
1829
1830         * sysdeps/mach/hurd/bind.c: Use prototype definition.
1831         * sysdeps/mach/hurd/connect.c: Likewise.
1832         * sysdeps/mach/hurd/getsockopt.c: Likewise.
1833         * sysdeps/mach/hurd/setsockopt.c: Likewise.
1834
1835         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
1836         __msg_sig_post RPC.
1837
1838         * hurd/catch-exc.c: Use integer_t instead of int.
1839         * hurd/hurdfault.c: Likewise.
1840
1841         * sysdeps/mach/hurd/alpha/exc2signal.c
1842         (_hurd_exception2signal): Rewritten.
1843         * sysdeps/mach/hurd/alpha/longjmp-ts.c
1844         (_hurd_longjmp_thread_state): Rewritten.
1845
1846 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
1847
1848         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
1849         DB_LOOKUP_FCT prototype.
1850         * nss/getXXent_r.c: Likewise.
1851         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
1852         * inet/getaliasname_r.c: Likewise.
1853         * inet/getnetbyad_r.c: Likewise.
1854         * inet/getnetbynm_r.c: Likewise.
1855         * inet/getnetent_r.c: Likewise.
1856         * inet/getproto_r.c: Likewise.
1857         * inet/getprtent_r.c: Likewise.
1858         * inet/getprtname_r.c: Likewise.
1859         * inet/getrpcbyname_r.c: Likewise.
1860         * inet/getrpcbynumber_r.c: Likewise.
1861         * inet/getrpcent_r.c: Likewise.
1862         * inet/getservent_r.c: Likewise.
1863         * inet/getsrvbynm_r.c: Likewise.
1864         * inet/getsrvbypt_r.c: Likewise.
1865         * shadow/getspent_r.c: Likewise.
1866         * shadow/getspnam_r.c: Likewise.
1867
1868         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
1869
1870         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
1871         Use i686-friendly PIC code.
1872         * sysdeps/i386/elf/setjmp.S: Likewise.
1873
1874         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
1875
1876         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
1877         list.
1878         * elf/Versions: Remove it here.
1879
1880 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
1881
1882         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
1883         direction.  Reported by H . J . Lu <hjl@lucon.org>.
1884
1885 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
1886
1887         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
1888         test just before the test runs.
1889         * intl/tst-translit.sh: Likewise.
1890         * intl/tst-codeset.sh: Likewise.
1891
1892         * timezone/zic.c: Update from tzcode2002c.
1893         * timezone/asia: Update from tzdata2002c.
1894         * timezone/backward: Likewise.
1895         * timezone/europe: Likewise.
1896         * timezone/northamerica: Likewise.
1897         * timezone/northamerica: Likewise.
1898         * timezone/northamerica: Likewise.
1899         * timezone/southamerica: Likewise.
1900         * timezone/zone.tab: Likewise.
1901
1902 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
1903
1904         * sysdeps/generic/brk.c (__curbrk): Declare.
1905         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
1906         * sysdeps/generic/dl-sbrk.c: Likewise.
1907         * sysdeps/unix/arm/dl-brk.S: New file.
1908         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
1909         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
1910         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
1911         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
1912         * sysdeps/unix/i386/dl-brk.S: New file.
1913         * sysdeps/unix/mips/dl-brk.S: New file.
1914         * sysdeps/unix/sparc/dl-brk.S: New file.
1915         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
1916         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
1917         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
1918         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
1919
1920 2002-04-03  Andreas Schwab  <schwab@suse.de>
1921
1922         * Makefile (headers): Add gnu/lib-names.h here instead of
1923         install-others.
1924         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
1925         installation rule.
1926         (install-headers): Add dependency on install-headers-nosubdir.
1927         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
1928         instead of install-others.
1929         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
1930         installation rule.
1931
1932 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
1933
1934         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
1935         Reported by Sam Roberts <sroberts@uniserve.com>.
1936
1937 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1938
1939         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
1940         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
1941         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1942         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
1943
1944 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
1945
1946         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
1947         (RTLD_START): Ditto.
1948         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
1949         dependency violation.
1950
1951 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1952
1953         * time/mktime.c (__mktime_internal): Move check for year < 70 below
1954         all variable declarations.
1955
1956 2002-04-04  Andreas Schwab  <schwab@suse.de>
1957
1958         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
1959
1960 2002-04-04  Andreas Jaeger  <aj@suse.de>
1961
1962         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
1963         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
1964
1965         * sysdeps/x86_64/fpu/s_fabs.c: New file.
1966         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
1967         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
1968
1969         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
1970
1971         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
1972
1973         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
1974         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
1975
1976         * configure.in: Handle all mips entries the same.
1977
1978         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
1979         * sysdeps/mips/mips3/*: Likewise.
1980         * sysdeps/mips/p40/bits/endian.h: Likewise.
1981
1982 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
1983
1984         * misc/dirname.c (dirname): Ignore trailing slashes at end of
1985         non-null result [PR libc/2600].
1986
1987         * misc/tst-dirname.c: Add more tests.
1988
1989 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
1990
1991         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
1992         define a code_set_name provide one based on the filename.
1993
1994         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
1995
1996 2001-12-28  Andreas Jaeger  <aj@suse.de>
1997
1998         * time/mktime.c (__mktime_internal): Check for year < 70
1999         [PR libc/2738].
2000
2001 2002-04-03  Andreas Jaeger  <aj@suse.de>
2002
2003         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2004         shmat.
2005         Reported by Andi Kleen <ak@suse.de>.
2006
2007 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2008
2009         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2010         * sysdeps/generic/w_lgammaf.c: Likewise.
2011         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2012
2013         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2014         Adjust for new output format of the backtrace functions.
2015
2016         * misc/syslog.c (vsyslog): Only use cleanup handler if
2017         _LIBC_REENTRANT is defined [PR libc/2924].
2018
2019         * libio/Makefile (tests): Add bug-ungetwc2.
2020         * libio/bug-ungetwc2.c: New file.
2021
2022         * manual/install.texi: Typographical and grammatical cleanup.
2023         Patch by Dennis Grace <dgrace@us.ibm.com>.
2024
2025         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2026         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
2027
2028         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
2029         always "&".  Adjust callers.
2030         Add "_" prefix to several generated definitions.
2031         Patch by paul@serice.net [PR libc/3158].
2032
2033 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2036         size of _dl_arm_cap_flags.
2037         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2038
2039         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2040         Define as 8.
2041
2042 2002-03-22  H.J. Lu  <hjl@gnu.org>
2043
2044         * scripts/firstversions.awk: Check the first version.
2045
2046 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2047
2048         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2049         dependencies must be stable to work correctly.
2050         Reported by martin.lubich@datacon.at.
2051
2052         * libio/bug-ungetwc1.c: New file.
2053         * libio/Makefile (tests): Add bug-ungetwc1.
2054
2055         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2056         if stream was last used for writing.
2057
2058         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
2059         number [PR libc/3111].
2060
2061         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2062         to ...
2063         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2064
2065 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
2066
2067         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2068         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2069         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2070         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2071         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2072
2073 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2074
2075         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2076         dynamic tags.
2077
2078 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2079
2080         * sysdeps/i386/fpu/s_fabs.S: New file.
2081         * sysdeps/i386/fpu/s_fabsf.S: New file.
2082         * sysdeps/i386/fpu/s_fabsl.S: New file.
2083         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2084         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2085         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2086
2087 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2088
2089         * rt/tst-shm.c (do_test): Add one more test for size of shared
2090         memory object.
2091
2092 2002-03-29  Wolfram Gloger  <wg@malloc.de>
2093
2094         * malloc/malloc.c: Add short description and prototypes for
2095         malloc_get_state, malloc_set_state and posix_memalign, for
2096         consistency and to avoid warnings with -Wstrict-prototypes.
2097         Reported by Andreas Jaeger <aj@suse.de>.
2098
2099 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2100
2101         * po/gl.po: Update from translation team.
2102
2103 2002-03-31  Roland McGrath  <roland@frob.com>
2104
2105         * hurd/hurdselect.c (_hurd_select): Fix
2106         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2107         Use a union rather than casts to compare mach_msg_type_t as int.
2108
2109 2002-03-25  Roland McGrath  <roland@frob.com>
2110
2111         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2112         check off the end of NAME when it's shorter than 2 chars.
2113         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2114
2115 2002-03-17  Roland McGrath  <roland@frob.com>
2116
2117         * sysdeps/mach/hurd/i386/sys/io.h: New file.
2118         * sysdeps/mach/hurd/i386/ioperm.c: New file.
2119         * sysdeps/mach/hurd/i386/Dist: Add them.
2120         * sysdeps/mach/hurd/i386/Versions
2121         (libc: GLIBC_2.2.6): New set, add ioperm.
2122         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2123         (mach_interface_list): Check for mach_i386.defs.
2124         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2125         * sysdeps/mach/configure: Regenerated.
2126
2127 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
2128
2129         * po/fr.po: Update from translation team.
2130
2131 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2132
2133         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2134         getpriority from syscalls list.
2135
2136 2002-03-28  Andreas Jaeger  <aj@suse.de>
2137
2138         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2139         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2140         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2141         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2142
2143 2002-03-27  Andreas Jaeger  <aj@suse.de>
2144
2145         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2146         sigcontext): Follow further kernel change.
2147
2148         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2149         kernel change.
2150
2151         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2152         Change for struct sigcontext change.
2153
2154         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2155         Follow changes in struct sigcontext.
2156
2157         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2158         sysycall, use wrapper instead.
2159
2160 2002-03-26  Andreas Jaeger  <aj@suse.de>
2161
2162         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2163         read and write accesses as detailed as possible.
2164         (__memcpy_by2): Likewise.
2165         (__memcpy_g): Likewise.
2166         (memmove): Likewise.
2167         (memcmp): Likewise.
2168         (__memset_ccn_by4): Likewise.
2169         (__memset_ccn_by2): Likewise.
2170         (__memset_gcn_by4): Likewise.
2171         (__memset_gcn_by2): Likewise.
2172         (memchr): Likewise.
2173         (__memrchr): Likewise.
2174         (rawmemchr): Likewise.
2175         (__strlen_g): Likewise.
2176         (__strcpy_g): Likewise.
2177         (__mempcpy_by4): Likewise.
2178         (__mempcpy_by2): Likewise.
2179         (__mempcpy_byn): Likewise.
2180         (__stpcpy_g): Likewise.
2181         (__strncpy_by4): Likewise.
2182         (__strncpy_by2): Likewise.
2183         (__strncpy_byn): Likewise.
2184         (__strncpy_gg): Likewise.
2185         (__strcat_c): Likewise.
2186         (__strcat_g): Likewise.
2187         (__strncat_g): Likewise.
2188         (__strcmp_gg): Likewise.
2189         (__strncmp_g): Likewise.
2190         (__strchr_c): Likewise.
2191         (__strchr_g): Likewise.
2192         (__strchrnul_c): Likewise.
2193         (__strchrnul_g): Likewise.
2194         (__strrchr_c): Likewise.
2195         (__strrchr_g): Likewise.
2196         (__strrchr_c): Likewise.
2197         (__strrchr_g): Likewise.
2198         (__strcspn_c1): Likewise.
2199         (__strcspn_cg): Likewise.
2200         (__strcspn_g): Likewise.
2201         (__strcspn_g): Likewise.
2202         (__strspn_c1): Likewise.
2203         (__strspn_cg): Likewise.
2204         (__strspn_g): Likewise.
2205         (__strspn_g): Likewise.
2206         (__strpbrk_cg): Likewise.
2207         (__strpbrk_g): Likewise.
2208         (__strstr_cg): Likewise.
2209         (__strstr_g): Likewise.
2210
2211         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
2212         Michal Ludvig <mludvig@suse.cz>.
2213
2214         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2215         compatibilty, adjust for kernel changes.
2216
2217         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2218         sigcontext): Adjust for kernel changes.
2219
2220 2002-03-25  Andreas Jaeger  <aj@suse.de>
2221
2222         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2223         little endian.
2224         Reported by Artur Zaprzala <zybi@talex.com.pl>.
2225
2226 2002-03-24  Andreas Jaeger  <aj@suse.de>
2227
2228         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2229
2230         * stdio-common/tst-fdopen.c (main): Remove unused variable.
2231
2232         * iconv/tst-iconv3.c (main): Use correct printf strings.
2233
2234 2002-03-18  Roland McGrath  <roland@frob.com>
2235
2236         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2237         (CMGROUP_MAX): New macro.
2238
2239 2002-03-23  Roland McGrath  <roland@frob.com>
2240
2241         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2242         * sysdeps/posix/shm_unlink.c: Likewise.
2243
2244 2002-03-22  Roland McGrath  <roland@frob.com>
2245
2246         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2247         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2248         under --enable-libio.
2249         * sysdeps/mach/hurd/configure: Regenerated.
2250
2251 2002-03-23  Roland McGrath  <roland@frob.com>
2252
2253         * sysdeps/mach/hurd/i386/Makefile
2254         (sysdep_routines, shared-only-routines): Don't add framestate,
2255         reverting 2001-10-02 change.
2256         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2257         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2258         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2259         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2260         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2261         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2262         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2263         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2264         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2265         Do it here instead, only if [$(unwind-find-fde) = yes].
2266
2267 2002-03-23  Andreas Jaeger  <aj@suse.de>
2268
2269         * signal/signal.h: Fix typo. Patch by Steve Kemp
2270         <skx@tardis.ed.ac.uk>.
2271
2272 2002-03-22  Andreas Jaeger  <aj@suse.de>
2273
2274         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2275         getresuid.
2276
2277         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2278         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2279         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2280         user_fpregs_struct): Rename fwd.
2281
2282         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2283         Follow sigcontext changes.
2284
2285 2002-03-22  Andreas Jaeger  <aj@suse.de>
2286
2287         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
2288         changes for NaNs on MIPS.
2289         Patch by Hartvig Ekner <hartvige@mips.com>.
2290
2291 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
2292
2293         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2294         Use realloc if too large.
2295         (addgrbyid): Likewise.
2296         * nscd/hstcache.c (addhstbyname): Likewise.
2297         (addhstbyaddr): Likewise.
2298         (addhstbynamev6): Likewise.
2299         (addhstbyaddrv6): Likewise.
2300         * nscd/pwdcache.c (addpwbyname): Likewise.
2301         (addpwbyuid): Likewise.
2302
2303 2002-03-21  Andreas Jaeger  <aj@suse.de>
2304
2305         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2306         _fpstate): Add separate struct for x86-64.
2307
2308         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2309         user_fpregs_struct): Change member names to follow kernel.
2310
2311 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
2312
2313         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2314         Correctly close the UDP connection right away [PR libc/3120].
2315
2316 2002-03-20  Andreas Jaeger  <aj@suse.de>
2317
2318         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2319         user_fpregs_struct): Fix for changed kernel struct.
2320         (struct user_regs_struct): Likewise.
2321         (struct user): Likewise.
2322         Add 32-bit x86 compatibility.
2323
2324         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2325
2326 2002-03-19  Andreas Jaeger  <aj@suse.de>
2327
2328         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2329
2330 2002-03-18  Andreas Jaeger  <aj@suse.de>
2331
2332         * iconvdata/Makefile: Only run tests when shared libs are
2333         available.
2334
2335 2002-03-17  Andreas Jaeger  <aj@suse.de>
2336
2337         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2338
2339         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2340
2341         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2342         bits.
2343
2344         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2345         (CAUSE_SHIFT): New.
2346         Patch by Hartvig Ekner <hartvige@mips.com>.
2347
2348         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2349         * sysdeps/generic/unwind-pe.h: Likewise.
2350
2351         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2352         type to _IO_setb.
2353
2354         * libio/stdio.c (AL2): Define variant when visibility attribute is
2355         not supported.
2356
2357         * include/libc-symbols.h (_INTVARDEF): Define variant when
2358         visibility attribute is not supported.
2359
2360 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
2361
2362         * po/fr.po: Update from translation team.
2363
2364 2002-02-25  Bruno Haible  <bruno@clisp.org>
2365
2366         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2367
2368 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
2369
2370         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
2371         buffers if _IO_file_attach failed.
2372
2373         * libio/fileops.c (_IO_file_open): Close file descriptor if
2374         _IO_SEEKOFF call failed.
2375
2376 2002-03-15  H.J. Lu  <hjl@gnu.org>
2377             Ulrich Drepper  <drepper@redhat.com>
2378
2379         * configure.in: Check for availability of
2380         init_array/fini_array/preinit_array handling in binutils.
2381         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
2382         * config.make.in (have-initfini-array): New variable.
2383
2384 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
2385
2386         * stdio-common/tst-printf.c (main): Comment out one test which
2387         checked the compiler's ability to fold floating-point constants
2388         but not really printf.
2389         (rfg3): Make s const.
2390         * stdio-common/tst-printf.sh: Adjust for removed test.
2391
2392         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
2393         internal function.  Adjust for internal_function calling convention.
2394         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
2395         as internal_function.
2396
2397         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
2398         hidden.
2399
2400         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
2401         declaration and definition.
2402         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
2403         declaration.
2404         * nss/getXXent_r.c: Likewise.
2405         * nss/nsswitch.h (db_lookup_function): Add internal_function to
2406         definition.
2407
2408         * include/time.h: Declare __localtime_r as hidden.
2409
2410         * include/aliases.h: Declare __getaliasent_r as hidden.
2411         * include/grp.h: Declare __getgrent_r as hidden.
2412         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
2413         __getservent_r, and __getprotoent_r as hidden.
2414         * include/pwd.h: Declare __getpwent_r as hidden.
2415         * include/shadow.h: Declare __getspent_r as hidden.
2416         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
2417
2418         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
2419         and __gconv_transliterate as hidden.
2420         Add internal_function to __gconv_get_path declaration.
2421         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
2422         definition.  Add attribute_hidden to __gconv_read_conf definition.
2423
2424 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
2425
2426         * elf/rtld.c: Declare _environ as hidden.
2427         * sysdeps/generic/dl-environ.c: Likewise.
2428         * sysdeps/generic/dl-sysdep.c: Likewise.
2429
2430         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
2431         _dl_mcount_internal as hidden.
2432
2433         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
2434         * sysdeps/generic/dl-brk.c: New file.
2435         * sysdeps/generic/dl-sbrk.c: New file.
2436         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
2437         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
2438
2439         * elf/dl-minimal.c (malloc): Declare _end as hidden.
2440         (__errno_location): New function.  Declare errno as hidden.
2441         * elf/rtld.c (_dl_argc): Define as hidden.
2442         (_dl_skip_args): Define as hidden.
2443         (_begin, _end): Declare as hidden.
2444         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
2445         * sysdeps/generic/entry.h (_start): Declare as hidden.
2446         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
2447         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
2448         _dl_runtime_resolve and _dl_runtime_profile as hidden.
2449         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
2450
2451 2002-03-14  Roland McGrath  <roland@frob.com>
2452
2453         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
2454
2455         * Makeconfig (%.v.i, %.v): New implicit rules.
2456         (preprocess-versions): Variable removed.
2457         ($(common-objpfx)shlib-versions.v.i): New target giving just the
2458         shlib-versions input files as dependencies.
2459         ($(common-objpfx)soversions.i): Depend on that instead of the input
2460         files.  Use it as input instead of using a pipeline.
2461         (postclean-generated): Append soversions.i, shlib-versions.v, and
2462         shlib-versions.v.i here.
2463         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
2464         the Versions.def input files as dependencies.
2465         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
2466         ($(common-objpfx)Versions.all): Depend on that instead of the input
2467         files.  Use it as input instead of using a pipeline.
2468         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
2469         (postclean-generated): Append those .v and .v.i files here.
2470
2471 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
2472
2473         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
2474         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
2475         Remove.
2476
2477 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
2478
2479         * sysdeps/generic/mp_clz_tab.c: New file.
2480         * sysdeps/i386/mp_clz_tab.c: New file.
2481         * sysdeps/hppa/mp_clz_tab.c: New file.
2482         * sysdeps/powerpc/mp_clz_tab.c: New file.
2483         * stdlib/Makefile (aux): Revert last patch.
2484         * math/Makefile (gmp-objs): Likewise.
2485
2486 2002-03-13  Paul Eggert  <eggert@twinsun.com>
2487
2488         * time/strftime.c: Comment fixes for references to obsolescent
2489         standards, In most cases the simplest fix is to remove the
2490         confusing comments.  Cross-referencing all the standards properly
2491         is a bit of a pain, and it should be enough to put that info in
2492         the documentation as I did in my recent time.texi patch.
2493
2494 2002-03-13  Paul Eggert  <eggert@twinsun.com>
2495
2496         * manual/time.texi (Formatting Calendar Time):
2497         ISO C99 also specifies the E and O modifiers.
2498         %P is a GNU extension, and is not in ISO C99.
2499         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
2500         %T is also in ISO C99.
2501         The RFC 822 example is not valid in arbitrary locales.
2502         Reword the POSIX.2 wording slightly, to make it a bit clearer
2503         that POSIX.2 formats are also supported by later POSIX versions.
2504         If a format was introduced in ISO C99 it is also required by
2505         POSIX.1-2001.
2506
2507 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
2508
2509         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
2510         _sys_nerr_internal with INTVARDEF2.
2511         * include/libc-symbols.h (INTVARDEF2): New macro.
2512         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
2513         (_sys_nerr_internal): Library.
2514
2515         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
2516         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
2517
2518         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
2519
2520 2002-03-13  Wolfram Gloger  <wg@malloc.de>
2521
2522         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
2523
2524 2002-03-02  Andreas Schwab  <schwab@suse.de>
2525
2526         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
2527         'h' flag and positional arg.
2528         * stdio-common/tst-printf.c (rfg3): New function to test
2529         positional arguments.
2530         (main): Fix some warnings.
2531
2532 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
2533
2534         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
2535         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2536
2537 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
2538
2539         * grp/initgroups.c (__nss_group_data): Declare as hidden.
2540
2541         * include/locale.h (_nl_C_locobj): Declare as hidden.
2542
2543         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
2544         * time/strptime.c (_nl_C_LC_TIME): Likewise.
2545
2546         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
2547
2548         * include/sys/gmon.h: Declare _gmonparam as hidden.
2549
2550         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
2551         (__ctype32_wctrans): Likewise.
2552         (__ctype32_width): Likewise.
2553
2554         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
2555         use of __ttyname.
2556
2557         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
2558         Define as hidden.
2559         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
2560         hidden.  Change all users of these variables.
2561
2562         * posix/regex_internal.h (__re_error_msgid): Renamed from
2563         re_error_msgid.  Declare as hidden.
2564         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
2565         hidden.
2566
2567         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
2568         (__printf_function_table): Likewise.
2569         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
2570         hidden.
2571         (__printf_function_table): Likewise.
2572
2573         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
2574         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
2575
2576         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
2577         * nss/nsswitch.c: Declare _nss_*_database as hidden.
2578
2579         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
2580         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
2581
2582 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
2583
2584         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
2585         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2586         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2587         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2588         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2589         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2590         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2591         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2592         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
2593         _nl_C_LC_CTYPE_width: Declare as hidden.
2594         * include/locale.h: Declare _nl_locale_file_list.
2595         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
2596         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
2597         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
2598         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
2599         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
2600         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
2601         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
2602         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
2603         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
2604         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
2605         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
2606         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
2607         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
2608         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
2609         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
2610         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
2611         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
2612         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
2613         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
2614         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
2615         _nl_C_LC_CTYPE_width, and as hidden.
2616         * locale/findlocale.c: Declare _nl_C as hidden.
2617         * locale/newlocale.c: Likewise.
2618         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
2619         _nl_locale_file_list.
2620         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
2621         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
2622         Define _nl_C_locobj as hidden.
2623
2624         * malloc/mtrace.c (_mtrace_file): Define as hidden.
2625         (_mtrace_line): Likewise.
2626
2627         * include/time.h: Declare __mon_yday as hidden.
2628         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
2629
2630         * libio/libioP.h: Declare __libio_codecvt as hidden.
2631         * libio/fileops.c: Declare __libio_translit as hidden.
2632         * libio/iofwide.c: Define __libio_translit as hidden.
2633
2634         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
2635         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
2636         * login/getutline_r.c: Likewise.
2637         * login/utmpname.c: Likewise.
2638
2639         * login/utmp-private.h: Declare __libc_utmp_file_functions,
2640         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
2641         __libc_utmp_file_name as hidden.
2642
2643         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
2644         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
2645         * locale/freelocale.c: Likewise.
2646         * locale/lc-time.c: Likewise.
2647
2648         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
2649         (__libc_ptyname2): Likewise.
2650         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
2651         hidden.
2652         (__libc_ptyname2): Likewise.
2653
2654         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
2655         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
2656         * sysdeps/generic/init-first.c: Likewise.
2657         * sysdeps/i386/init-first.c: Likewise.
2658         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2659         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2660         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2661         * sysdeps/sh/init-first.c: Likewise.
2662         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2663         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2664
2665         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
2666         (_itowa_upper_digits): Likewise.
2667
2668         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
2669         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
2670         as hidden.
2671
2672         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
2673         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
2674         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
2675         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
2676
2677         * gmon/gmon.c (__bb_head): Define as hidden.
2678         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
2679
2680         * argp/argp-parse.c (_argp_hang): Define as static.
2681
2682         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
2683         handling in latest compilers.
2684
2685         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
2686         define alias.
2687         * libio/fileops.c (_IO_file_jumps): Likewise.
2688         * libio/stdfiles.c (_IO_list_all): Likewise.
2689         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
2690
2691         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
2692         include/malloc.h.
2693         * include/malloc.h: Add __libc_malloc_initialized declaration
2694         here.  Mark variable hidden.
2695         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
2696
2697         * elf/dl-open.c (__libc_argc): Declare as hidden.
2698         (__libc_argv): Likewise.
2699         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
2700         (__libc_argv): Likewise.
2701         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
2702         __libc_argv as hidden.
2703         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2704         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2705         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
2706         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2707
2708         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
2709         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
2710         * stdlib/erand48.c: Likewise.
2711         * stdlib/jrand48.c: Likewise.
2712         * stdlib/lcong48.c: Likewise.
2713         * stdlib/lrand48.c: Likewise.
2714         * stdlib/mrand48.c: Likewise.
2715         * stdlib/nrand48.c: Likewise.
2716         * stdlib/seed48.c: Likewise.
2717         * stdlib/srand48.c: Likewise.
2718
2719         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
2720         (_itoa_lower_digits_internal): New declaration.
2721         (_itoa_upper_digits_internal): New declaration.
2722         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
2723         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
2724         (_itoa_upper_digits_internal): New declaration.
2725         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
2726         _itoa_lower_digits.
2727         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
2728         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
2729
2730         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
2731         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
2732
2733         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
2734         (_itowa_lower_digits): Likewise.
2735         (_itowa_upper_digits): Likewise.
2736         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
2737         (_itowa_upper_digits): Likewise.
2738
2739         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
2740         not already defined.
2741         (GERMANIC_PLURAL): Declare as hidden.
2742
2743         * posix/getopt.c (__getopt_initialized): Declare as hidden.
2744         (attribute_hidden): Define as empty macro if not already defined.
2745
2746         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
2747         (__gconv_max_path_elem_len): Likewise.
2748         (__gconv_path_envvar): Likewise.
2749
2750         * math/Makefile (gmp-objs): Remove mp_clz_tab.
2751         * stdlib/Makefile (aux): Remove mp_clz_tab.
2752         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
2753
2754         * stdlib/exit.h (__exit_funcs): Declare as hidden.
2755
2756         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
2757
2758         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
2759         _nl_category_names, _nl_category_name_sizes, _nl_current,
2760         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
2761
2762         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
2763         (_nl_current_default_domain): Likewise
2764         (_nl_state_lock): Likewise.
2765         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
2766         (_nl_current_default_domain): Likewise
2767         (_nl_state_lock): Likewise.
2768         * intl/bindtextdom.c (_nl_state_lock): Likewise.
2769
2770         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
2771         (_fpioconst_pow10): Likewise.
2772
2773         * include/time.h (_tmbuf): Add attribute_hidden.
2774
2775         * time/tzset.c (tzstring_list): Define as static.
2776
2777         * include/time.h: Add attribute_hidden to __tzname_cur_max and
2778         __use_tzfile declaration.
2779
2780         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
2781         and __wcsmbs_last_locale declaration.
2782
2783 2002-02-25  Paul Eggert  <eggert@twinsun.com>
2784
2785         * timezone/Makefile (tzbases): Move systemv from here...
2786         (tzlinks): to here, since the entries in systemv were all changed
2787         from Zone to Link lines in tz-2001a.  Bug reported (and patch
2788         tested) by Peter Breitenlohner.
2789
2790 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
2791
2792         * time/tst-posixtz.c (tests): Add new tests.
2793         (main): Test whether tzset() sets daylight properly.
2794
2795 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
2796
2797         * time/tzset.c (tz_compute): Move __daylight, __tzname and
2798         __tzname_cur_max setting...
2799         (tzset_internal): ...here.
2800
2801 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
2802
2803         * time/tzset.c (compute_change): Don't return any value.
2804         (tz_compute): Likewise.  Don't handle southern hemisphere here.
2805         (__tz_convert): But here.
2806
2807 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2808
2809         * manual/examples/mkfsock.c: Include <string.h> as well.
2810         Patch by Alain De Carolis <alaind@wseurope.com>.
2811
2812 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
2813
2814         * posix/regexec.c (re_match): Fix incorrect register sizes.
2815         (re_search): Likewise.
2816
2817 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2818
2819         * posix/regcomp.c (regfree): Remove a disused condition.
2820         * posix/regex_internal.c (re_acquire_state): Likewise.
2821         (re_acquire_state_context): Likewise.
2822         (register_state): Remove a redundant malloc invocation.
2823         * posix/regex_internal.h: (re_state_table_entry): Simplify
2824         the structure.
2825
2826 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2827
2828         * posix/regcomp.c (regcomp): Add __builtin_expect to error
2829         handling conditions.
2830         (regerror): Likewise.
2831         (regfree): Likewise.
2832         (re_compile_internal): Likewise.
2833         (init_dfa): Likewise.
2834         (init_word_char): Likewise.
2835         (create_initial_state): Likewise.
2836         (analyze): Likewise.
2837         (analyze_tree): Likewise.
2838         (duplicate_node): Likewise.
2839         (calc_eclosure): Likewise.
2840         (calc_eclosure_iter): Likewise.
2841         (parse): Likewise.
2842         (parse_reg_exp): Likewise.
2843         (parse_branch): Likewise.
2844         (parse_expression): Likewise.
2845         (parse_subexp): Likewise.
2846         (parse_dup_op): Likewise.
2847         (parse_bracket_exp): Likewise.
2848         (build_equiv_class): Likewise.
2849         (build_charclass): Likewise.
2850         (build_word_op): Likewise.
2851         (fetch_number): Likewise.
2852         (create_tree): Likewise.
2853         (duplicate_tree): Likewise.
2854         * posix/regex.c (BE): New macro.
2855         * posix/regexec.c (re_match): Add __builtin_expect to error
2856         handling conditions.
2857         (re_match_2): Likewise.
2858         (re_search): Likewise.
2859         (re_search_internal): Likewise.
2860         (check_matching): Likewise.
2861         (proceed_next_node): Likewise.
2862         (set_regs): Likewise.
2863         (sift_states_backward): Likewise.
2864         (add_epsilon_backreference): Likewise.
2865         (transit_state): Likewise.
2866         (transit_state_sb): Likewise.
2867         (transit_state_mb): Likewise.
2868         (transit_state_bkref): Likewise.
2869         (transit_state_bkref_loop): Likewise.
2870         (build_trtable): Likewise.
2871         (group_nodes_into_DFAstates): Likewise.
2872         (match_ctx_init): Likewise.
2873         (match_ctx_add_entry): Likewise.
2874         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
2875         to error handling conditions.
2876         (re_string_construct_toupper): Likewise.
2877         (build_wcs_buffer): Likewise.
2878         (build_wcs_upper_buffer): Likewise.
2879         (build_upper_buffer): Likewise.
2880         (re_string_translate_buffer): Likewise.
2881         (re_node_set_alloc): Likewise.
2882         (re_node_set_init_1): Likewise.
2883         (re_node_set_init_2): Likewise.
2884         (re_node_set_init_copy): Likewise.
2885         (re_node_set_intersect): Likewise.
2886         (re_node_set_init_union): Likewise.
2887         (re_node_set_merge): Likewise.
2888         (re_node_set_insert): Likewise.
2889         (re_dfa_add_node): Likewise.
2890         (re_acquire_state): Likewise.
2891         (re_acquire_state_context): Likewise.
2892         (create_new_state_common): Likewise.
2893         (register_state): Likewise.
2894         (create_ci_new_state): Likewise.
2895         (create_cd_new_state): Likewise.
2896         (re_string_context_at): Remove redundant condition.
2897
2898 2002-01-16  Roger Sayle  <roger@eyesopen.com>
2899
2900         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
2901
2902         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
2903
2904 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
2905
2906         * sysdeps/i386/elf/configure.in: Fix comment.
2907
2908         * sysdeps/sparc/sparc64/configure.in: New.
2909         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
2910         if .dynamic comes before .got.
2911         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
2912
2913         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
2914         HP_TIMING_ACCUM): Fix typos.
2915
2916 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2917
2918         * string/strfry.c: Add some more randomness to the seed.
2919         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2920
2921         * po/es.po: Update from translation team.
2922         * po/fr.po: Likewise.
2923
2924         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
2925
2926         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
2927         when determining type of format.
2928         Patch by James Antill <james@anqd.org> [PR libc/2787].
2929
2930 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
2931
2932         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
2933
2934 2002-03-11  Roland McGrath  <roland@frob.com>
2935
2936         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
2937
2938         * Versions.def (libc): Add GLIBC_2.2.6.
2939         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
2940         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
2941         __errno_location instead of __hurd_errno_location, and don't inline it.
2942         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2943         * hurd/errno.c: New file.
2944         * hurd/Makefile (routines): Add errno.
2945
2946 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2947
2948         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
2949         ridiculously large widths and precisions [PR libc/3026].
2950
2951 2002-03-11  Andreas Jaeger  <aj@suse.de>
2952
2953         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
2954         support.
2955         Patch by Susanne Oberhauser <froh@SuSE.de>.
2956
2957 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
2958
2959         * inet/rexec.c (ahostbuf): Define as static.
2960
2961         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
2962         (__ctype32_wctrans): Likewise.
2963         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
2964         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
2965         (__ctype32_wctrans): Likewise.
2966         (__ctype32_width): Likewise.
2967
2968         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
2969         They were never exported anyway.
2970
2971         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
2972         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
2973         exported.
2974         * include/sys/gmon.h: Declare _gmonparam.
2975
2976         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
2977         symbols for getdents64.  They were never exported.
2978
2979 2002-03-09  Roland McGrath  <roland@frob.com>
2980
2981         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
2982         Reported by Jon Arney <jarney1@cox.net>.
2983
2984 2002-02-23  Roland McGrath  <roland@frob.com>
2985
2986         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
2987         declaration.
2988         (__hurd_errno_location): Function removed.
2989
2990 2002-03-06  Andreas Jaeger  <aj@suse.de>
2991
2992         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
2993         32-bit.
2994
2995 2002-03-04  Andreas Jaeger  <aj@suse.de>
2996
2997         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
2998
2999         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3000         x86-64.
3001
3002         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3003
3004         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3005
3006         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3007
3008         * sysdeps/x86_64/bits/setjmp.h: New.
3009
3010         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3011
3012         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3013
3014         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3015         for x86.
3016         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3017         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3018
3019 2002-02-28  Bo Thorsen  <bo@suse.de>
3020
3021         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3022         version.
3023
3024 2002-03-03  Andreas Jaeger  <aj@suse.de>
3025
3026         * sysdeps/x86_64/bits/wordsize.h: New file.
3027
3028         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3029         * elf/tst-tlsmod1.c: Likewise.
3030
3031         * posix/regcomp.c: Get regex.h from include dir for internal
3032         prototypes.
3033
3034         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3035         to libc-internal.h and include it.
3036         * include/libc-internal.h: Add __init_misc.
3037
3038         * misc/init-misc.c: Include libc-internal.h for prototypes.
3039
3040         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3041
3042         * misc/error.c [_LIBC]: Include libioP.h for prototype of
3043         _IO_putc_internal.
3044
3045 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * posix/regcomp.c: Compatibility changes to allow using the code
3048         outside glibc.
3049
3050 2002-02-28  Hartvig Ekner <hartvige@mips.com>
3051
3052         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3053         compiled non-PIC.
3054
3055 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
3056
3057         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3058         of .str elements in the returned data structure.
3059
3060         * elf/elf.h: Add Alpha TLS bits.
3061
3062 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3063
3064         * sysdeps/unix/sysv/linux/nice.c: New file.
3065
3066 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
3067
3068         * elf/Makefile (dl-routines): Add dl-origin.
3069         (elide-routines.os): Add dl-origin.
3070         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3071         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3072         _dl_debug_state.
3073         * include/libc-symbols.c: Define attribute_hidden depending on
3074         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
3075
3076         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3077         * elf/dl-load.c: Likewise.
3078         * elf/rtld.c: Likewise.
3079         * include/unistd.h: Declare __libc_enable_secure_internal.
3080         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3081         Use INTUSE with __libc_enable_secure.
3082         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3083
3084         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3085         * elf/dl-error.c: Likewise,
3086         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3087
3088         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3089         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3090         function definition.  Use INTDEF with _dl_get_origin.
3091         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3092
3093         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3094         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
3095
3096         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3097         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3098         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3099
3100         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3101         * elf/dl-deps.c: Likewise.
3102         * elf/dl-error.c: Likewise.
3103         * elf/dl-fini.c: Likewise.
3104         * elf/dl-init.c: Likewise.
3105         * elf/dl-load.c: Likewise.
3106         * elf/dl-lookup.c: Likewise.
3107         * elf/dl-reloc.c: Likewise.
3108         * elf/dl-version.c: Likewise.
3109         * elf/do-lookup.h: Likewise.
3110         * sysdeps/arm/dl-machine.h: Likewise.
3111         * sysdeps/cris/dl-machine.h: Likewise.
3112         * sysdeps/hppa/dl-machine.h: Likewise.
3113         * sysdeps/i386/dl-machine.h: Likewise.
3114         * sysdeps/m68k/dl-machine.h: Likewise.
3115         * sysdeps/powerpc/dl-machine.h: Likewise.
3116         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3117         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3118         * sysdeps/sh/dl-machine.h: Likewise.
3119         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3120         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3121         * sysdeps/x86_64/dl-machine.h: Likewise.
3122         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
3123         _dl_argv[0].  Use INTUSE with _dl_argv.
3124         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3125         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3126
3127 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3128
3129         * elf/rtld.c (_rtld_global): Remove .protected.
3130         (_rtld_local): Strong alias to _rtld_global.
3131         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3132         only .os object.
3133         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3134         _rtld_local instead of _rtld_global.
3135         (_rtld_local): Add hidden extern, possibly in .sdata section.
3136         * configure.in: Add tests for visibility attribute and .sdata.
3137         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3138         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3139         * sysdeps/arm/dl-machine.h: Likewise.
3140         * sysdeps/generic/ldsodefs.h: Likewise.
3141         * sysdeps/hppa/dl-machine.h: Likewise.
3142         * sysdeps/cris/dl-machine.h: Likewise.
3143         * sysdeps/i386/dl-machine.h: Likewise.
3144         * sysdeps/ia64/dl-machine.h: Likewise.
3145         * sysdeps/m68k/dl-machine.h: Likewise.
3146         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3147         * sysdeps/mips/dl-machine.h: Likewise.
3148         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3149         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3150         * sysdeps/sh/dl-machine.h: Likewise.
3151         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3152         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3153         * sysdeps/x86_64/dl-machine.h: Likewise.
3154
3155 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3156
3157         * login/login.c (login): Always initialize ut_line field
3158         [PR libc/2991].
3159
3160 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3161
3162         * sysdeps/i386/Makefile (sysdep_routines): Add
3163         divdi3 in csu dir.
3164         (shared-only-routines): Likewise.
3165         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3166         (shared-only-routines): Likewise.
3167         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3168         (shared-only-routines): Likewise.
3169         * sysdeps/wordsize-32/divdi3.c: New file.
3170
3171 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3172
3173         * locale/iso-4217.def: Remove obsolete currencies for countries
3174         with Euro.
3175
3176 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
3177
3178         * posix/regcomp.c (regcomp): Remove a redundant condition.
3179         (init_word_char): Add a check on malloc failure.
3180         (create_initial_state): Likewise.
3181         (duplicate_node): Likewise.
3182         (calc_eclosure): Likewise.
3183         (calc_eclosure_iter): Likewise.
3184         (parse_expression): Likewise.
3185         (parse_bracket_exp): Remove unnecessary malloc invocations.
3186         (build_equiv_class): Likewise.
3187         (build_charclass): Likewise.
3188         * posix/regex_internal.c (re_node_set_intersect): Add a check
3189         on malloc failure.
3190         (re_node_set_add_intersect): Likewise.
3191         (re_node_set_merge): Likewise.
3192         (re_acquire_state): Likewise.
3193         (re_acquire_state_context): Likewise.
3194         (create_newstate_common): Likewise.
3195         (register_state): Likewise.
3196         (create_ci_newstate): Likewise.
3197         (create_cd_newstate): Likewise.
3198         * posix/regex_internal.h: Fix prototypes of re_acquire_state
3199         and re_acquire_state_context.
3200         * posix/regexec.c (regexec): Suit it to the error handling of
3201         re_search_internal.
3202         (re_match): Likewise.
3203         (re_search): Likewise.
3204         (re_search_internal): Add a check on malloc failure.
3205         (acquire_init_state_context): Likewise.
3206         (check_matching): Likewise.
3207         (proceed_next_node): Likewise.
3208         (set_regs): Likewise.
3209         (sift_states_backward): Likewise.
3210         (sift_states_iter_bkref): Likewise.
3211         (add_epsilon_backreference): Likewise.
3212         (transit_state): Likewise.
3213         (transit_state_sb): Likewise.
3214         (transit_state_mb): Likewise.
3215         (transit_state_bkref_loop): Likewise.
3216         (build_trtable): Likewise.
3217         (group_nodes_into_DFAstates): Likewise.
3218         (match_ctx_init): Likewise.
3219         (match_ctx_add_entry): Likewise.
3220
3221 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3222
3223         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3224         l_libname if profiling is enabled [PR libc/2916].
3225
3226         * sysdeps/ia64/dl-tls.h: New file.
3227
3228 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
3229
3230         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3231         Work around an Alpha gas bug.
3232
3233 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3234
3235         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3236         uses read to load the catalog.
3237         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3238
3239 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
3240
3241         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3242         regex_internal.c, and regex_internal.h.
3243         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3244         * posix/regex.c: Complete rewrite.
3245         * posix/regexec.c: New file.
3246         * posix/regcomp.c: New file.
3247         * posix/regex_internal.c: New file.
3248         * posix/regex_internal.h: New file.
3249         * posix/regex.h (RE_ICASE): New macro.
3250         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3251
3252         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3253         ungetwc.  It's a macro.
3254         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3255         implementation.
3256         Reported by Jason Merrill <jason@redhat.com>.
3257
3258 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3259
3260         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3261         position to fp->_offset if it is set.
3262         * stdio-common/Makefile (tests): Add tst-fdopen.
3263         * stdio-common/tst-fdopen.c: New test.
3264
3265 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3266
3267         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3268         * stdio-common/tst-ungetc.c (main): Add another test.
3269
3270 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
3271
3272         * assert/assert-perr.c: Use INTUSE to reference functions and variables
3273         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
3274         aliases.  Add prototypes for the new aliases.
3275         * assert/assert.c: Likewise.
3276         * include/libc-symbols.h: Likewise.
3277         * include/stdio.h: Likewise.
3278         * include/netinet/in.h: Likewise.
3279         * include/rpc/auth.h: Likewise.
3280         * include/rpc/auth_unix.h: Likewise.
3281         * include/rpc/key_prot.h: Likewise.
3282         * include/rpc/pmap_prot.h: Likewise.
3283         * include/rpc/pmap_rmt.h: Likewise.
3284         * include/rpc/rpc_msg.h: Likewise.
3285         * include/rpc/xdr.h: Likewise.
3286         * inet/gethstbyad_r.c: Likewise.
3287         * inet/gethstbynm2_r.c: Likewise.
3288         * inet/gethstbynm_r.c: Likewise.
3289         * inet/gethstent_r.c: Likewise.
3290         * inet/in6_addr.c: Likewise.
3291         * libio/__fpurge.c: Likewise.
3292         * libio/filedoalloc.c: Likewise.
3293         * libio/fileops.c: Likewise.
3294         * libio/ftello.c: Likewise.
3295         * libio/ftello64.c: Likewise.
3296         * libio/genops.c: Likewise.
3297         * libio/iofclose.c: Likewise.
3298         * libio/iofdopen.c: Likewise.
3299         * libio/iofflush.c: Likewise.
3300         * libio/iofflush_u.c: Likewise.
3301         * libio/iofgetpos.c: Likewise.
3302         * libio/iofgetpos64.c: Likewise.
3303         * libio/iofgets.c: Likewise.
3304         * libio/iofgets_u.c: Likewise.
3305         * libio/iofopen.c: Likewise.
3306         * libio/iofopncook.c: Likewise.
3307         * libio/iofputs.c: Likewise.
3308         * libio/iofread.c: Likewise.
3309         * libio/iofread_u.c: Likewise.
3310         * libio/iofsetpos.c: Likewise.
3311         * libio/iofsetpos64.c: Likewise.
3312         * libio/ioftell.c: Likewise.
3313         * libio/iofwrite.c: Likewise.
3314         * libio/iogetline.c: Likewise.
3315         * libio/iogets.c: Likewise.
3316         * libio/iogetwline.c: Likewise.
3317         * libio/iolibio.h: Likewise.
3318         * libio/iopadn.c: Likewise.
3319         * libio/iopopen.c: Likewise.
3320         * libio/ioseekoff.c: Likewise.
3321         * libio/ioseekpos.c: Likewise.
3322         * libio/iosetbuffer.c: Likewise.
3323         * libio/iosetvbuf.c: Likewise.
3324         * libio/ioungetc.c: Likewise.
3325         * libio/ioungetwc.c: Likewise.
3326         * libio/iovdprintf.c: Likewise.
3327         * libio/iovsprintf.c: Likewise.
3328         * libio/iovsscanf.c: Likewise.
3329         * libio/libioP.h: Likewise.
3330         * libio/memstream.c: Likewise.
3331         * libio/obprintf.c: Likewise.
3332         * libio/oldfileops.c: Likewise.
3333         * libio/oldiofclose.c: Likewise.
3334         * libio/oldiofdopen.c: Likewise.
3335         * libio/oldiofgetpos.c: Likewise.
3336         * libio/oldiofgetpos64.c: Likewise.
3337         * libio/oldiofopen.c: Likewise.
3338         * libio/oldiofsetpos.c: Likewise.
3339         * libio/oldiofsetpos64.c: Likewise.
3340         * libio/oldiopopen.c: Likewise.
3341         * libio/oldstdfiles.c: Likewise.
3342         * libio/putc.c: Likewise.
3343         * libio/setbuf.c: Likewise.
3344         * libio/setlinebuf.c: Likewise.
3345         * libio/stdfiles.c: Likewise.
3346         * libio/stdio.c: Likewise.
3347         * libio/strops.c: Likewise.
3348         * libio/vasprintf.c: Likewise.
3349         * libio/vscanf.c: Likewise.
3350         * libio/vsnprintf.c: Likewise.
3351         * libio/vswprintf.c: Likewise.
3352         * libio/wfiledoalloc.c: Likewise.
3353         * libio/wfileops.c: Likewise.
3354         * libio/wgenops.c: Likewise.
3355         * libio/wstrops.c: Likewise.
3356         * malloc/mtrace.c: Likewise.
3357         * misc/error.c: Likewise.
3358         * misc/syslog.c: Likewise.
3359         * nss/getXXbyYY_r.c: Likewise.
3360         * nss/getXXent_r.c: Likewise.
3361         * nss/hosts-lookup.c: Likewise.
3362         * stdio-common/getw.c
3363         * stdio-common/printf-prs.c: Likewise.
3364         * stdio-common/printf_fp.c: Likewise.
3365         * stdio-common/printf_size.c: Likewise.
3366         * stdio-common/putw.c: Likewise.
3367         * stdio-common/scanf.c: Likewise.
3368         * stdio-common/sprintf.c: Likewise.
3369         * stdio-common/tmpfile64.c: Likewise.
3370         * stdio-common/vfprintf.c: Likewise.
3371         * stdio-common/vfscanf.c: Likewise.
3372         * stdlib/strfmon.c: Likewise.
3373         * sunrpc/auth_des.c: Likewise.
3374         * sunrpc/auth_none.c: Likewise.
3375         * sunrpc/auth_unix.c: Likewise.
3376         * sunrpc/authdes_prot.c: Likewise.
3377         * sunrpc/authuxprot.c: Likewise.
3378         * sunrpc/clnt_perr.c: Likewise.
3379         * sunrpc/clnt_raw.c: Likewise.
3380         * sunrpc/clnt_tcp.c: Likewise.
3381         * sunrpc/clnt_udp.c: Likewise.
3382         * sunrpc/clnt_unix.c: Likewise.
3383         * sunrpc/key_call.c: Likewise.
3384         * sunrpc/key_prot.c: Likewise.
3385         * sunrpc/openchild.c: Likewise.
3386         * sunrpc/pm_getmaps.c: Likewise.
3387         * sunrpc/pm_getport.c: Likewise.
3388         * sunrpc/pmap_clnt.c: Likewise.
3389         * sunrpc/pmap_prot.c: Likewise.
3390         * sunrpc/pmap_prot2.c: Likewise.
3391         * sunrpc/pmap_rmt.c: Likewise.
3392         * sunrpc/rpc_cmsg.c: Likewise.
3393         * sunrpc/rpc_prot.c: Likewise.
3394         * sunrpc/svc_authux.c: Likewise.
3395         * sunrpc/svc_raw.c: Likewise.
3396         * sunrpc/svc_simple.c: Likewise.
3397         * sunrpc/svc_tcp.c: Likewise.
3398         * sunrpc/svc_udp.c: Likewise.
3399         * sunrpc/svc_unix.c: Likewise.
3400         * sunrpc/xdr.c: Likewise.
3401         * sunrpc/xdr_array.c: Likewise.
3402         * sunrpc/xdr_mem.c: Likewise.
3403         * sunrpc/xdr_rec.c: Likewise.
3404         * sunrpc/xdr_ref.c: Likewise.
3405         * sunrpc/xdr_stdio.c: Likewise.
3406         * sysdeps/generic/_strerror.c: Likewise.
3407         * sysdeps/generic/printf_fphex.c: Likewise.
3408         * sysdeps/generic/tmpfile.c: Likewise.
3409         * sysdeps/gnu/errlist.awk: Likewise.
3410         * sysdeps/gnu/errlist.c: Likewise.
3411
3412         * libio/Makefile (routines): Remove iosprint.
3413         * libio/iosprintf.c: Removed
3414
3415
3416 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
3417
3418         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
3419         non_dynamic_init and exported now.
3420         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
3421         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
3422         !SHARED.
3423         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3424         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3425         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3426
3427 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
3428
3429         * elf/dl-close.c (free_slotinfo): Check for end of list and return
3430         true in this case.
3431
3432         * locale/iso-639.def: Add language codes for Walloon.
3433
3434         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
3435         total number of relocations performed.
3436
3437         * elf/sprof.c (load_profdata): If do_test provide information as
3438         to why loading failed.
3439         * elf/dl-profile.c (_dl_start_profile): Initialize all of
3440         hist_hdr.dimen.
3441
3442         * csu/set-init.c: Moved to...
3443         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
3444         * csu/Makefile: Don't compile set-init.
3445         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
3446         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
3447         to __libc_init.
3448         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3449         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3450         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
3451         __libc_init.
3452         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
3453         __libc_subinit.
3454
3455 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
3456
3457         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
3458         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
3459         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
3460         (_dl_deallocate_tls): New function.
3461         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
3462         _dl_deallocate_tls.
3463
3464 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
3465
3466         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
3467         * stdio-common/tst-fseek.c (main): Add test for this.
3468
3469 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
3470
3471         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
3472
3473 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
3474
3475         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
3476         pointer before dereferencing.
3477
3478 2002-02-18  Roland McGrath  <roland@frob.com>
3479
3480         * sysdeps/mach/hurd/times.c: Fix typo in last change.
3481
3482         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
3483         Use task_policy in place of task_priority.
3484
3485         * sysdeps/generic/bits/mman.h
3486         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
3487         * sysdeps/mach/msync.c: New file.
3488
3489         * sysdeps/mach/powerpc/syscall.S: New file.
3490
3491         * mach/msg.c [MACH_MSG_OVERWRITE]
3492         (__mach_msg_trap, __mach_msg_overwrite): New functions.
3493         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
3494
3495         * sysdeps/mach/configure.in: Check for clock.defs to put into
3496         mach_interface_list.
3497         * sysdeps/mach/configure: Regenerated.
3498
3499         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
3500         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
3501         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
3502         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
3503         (mach-shortcuts): Add device_read_overwrite_request,
3504         device_read_overwrite, vm_read_overwrite, thread_switch.
3505
3506         * configure.in (base_machine): Set to $machine by default.
3507         * configure: Regenerated.
3508
3509         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
3510         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
3511         * sysdeps/mach/configure: Regenerated.
3512         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
3513
3514         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
3515
3516         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
3517
3518         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
3519         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
3520
3521 2002-02-17  Roland McGrath  <roland@frob.com>
3522
3523         * sysdeps/mach/hurd/times.c
3524         [NO_CREATION_TIME] (startup_time): New static variable.
3525         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
3526         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
3527         creation_time from task_basic_info.
3528         (__times): Use __gettimeofday instead of __host_get_time.
3529
3530         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
3531         Use untyped Mach IPC message format.
3532
3533         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
3534
3535         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
3536         _S_catch_exception_raise_state_identity,
3537         _hurdsig_fault_catch_exception_raise_state,
3538         _hurdsig_fault_catch_exception_raise_state_identity.
3539
3540         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
3541
3542         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
3543         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
3544
3545         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
3546         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
3547
3548         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
3549         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
3550         them as no-op macros.
3551         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
3552         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
3553
3554         * sysdeps/powerpc/dl-machine.h
3555         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
3556
3557         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
3558         Use untyped Mach IPC message format.
3559
3560         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
3561         Handle untyped Mach IPC message formats.
3562
3563         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
3564         Expect different argument conventions when this is defined.
3565         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
3566         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
3567         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
3568         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
3569         for OSF Mach variant.
3570         (faulted): Use mig_reply_error_t for REPLY.
3571         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
3572         in __thread_set_exception_ports call.
3573         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
3574         __mach_port_set_attributes in place of __mach_port_set_qlimit.
3575
3576         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
3577         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
3578         on Darwin, which includes bogons.
3579
3580         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
3581         variable LOADBASE so it's not declared when it's not used.
3582
3583 2002-02-16  Roland McGrath  <roland@frob.com>
3584
3585         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
3586         to use BI.creation_time.
3587
3588         * mach/Machrules (MIG): Add -x c to CPP value passed down.
3589
3590         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
3591         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
3592         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
3593         host_page_size instead of vm_statistics.
3594
3595         * sysdeps/mach/Makefile (mach-before-compile): Don't include
3596         mach_interface.h here, since not all variants use that name.
3597
3598         * sysdeps/mach/configure.in: Add some checks for Mach headers
3599         to ensure a sane installation.
3600         (mach_interface_list): Define this variable by checking for .defs
3601         files found in various variants.
3602         * configure.in (mach_interface_list): AC_SUBST this.
3603         * config.make.in (mach-interface-list): New substituted variable.
3604         * mach/Makefile (user-interfaces): Define this using the value
3605         of $(mach-interface-list) instead of mach, mach4.
3606         Updated other references to mach_interface to use it as well.
3607
3608         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
3609
3610         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
3611         mig_reply_error_t for OSF Mach variant.
3612
3613         * mach/Makefile (routines): Remove bootprivport.
3614         * mach/bootprivport.c: File removed.  It has never been used.
3615
3616         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
3617         Grok the OSF flavor of message format.
3618         (mach_msg_destroy_port): For MAKE_SEND and
3619         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
3620         no-senders notification.
3621
3622 2002-02-06  Roland McGrath  <roland@frob.com>
3623
3624         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
3625         to here if 2.0 compatibility enabled ...
3626         (libc: GLIBC_2.1.3): ... from here.
3627
3628 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
3629
3630         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
3631         generation counter.
3632         * elf/dl-close.c (_dl_close): Likewise.
3633
3634 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
3635
3636         * elf/Makefile: Add rules to build and run tst-tls8.
3637         * elf/tst-tls8.c: New file.
3638         * elf/tst-tlsmod4.c: New file.
3639
3640         * stdlib/test-a64l.c (tests): Add more test cases.
3641
3642         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
3643         Reported by Walter Harms <WHarms@bfs.de>.
3644
3645 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
3646
3647         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
3648         definitions for struct sigcontext.
3649         Suggested by David Mosberger-Tang.
3650
3651 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
3652
3653         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
3654         for removing reference of module in slotinfo list.
3655         (_dl_close): Use remove_slotinfo.
3656         * sysdeps/generic/dl-tls.c: General pretty printing.
3657         (oom): Define only if SHARED.
3658         (_dl_next_tls_modid): Correct starting point for the case we assume
3659         there is a gap.  Add missing instruction grouping (doh!).  Correct
3660         tests for reaching maximum index.
3661         * elf/Makefile: Add rules to build and run tst-tls7.
3662         * elf/tst-tls7.c: New file.
3663         * elf/tst-tlsmod3.c: New file.
3664
3665         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
3666         USE_TLS.
3667         * elf/tst-tlsmod2.c: Likewise.
3668
3669         * elf/dl-close.c (_dl_close): When closing an object using TLS
3670         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
3671         true.  Increment dl_tls_generation only if we closed any TLS-using
3672         object.
3673         * elf/tst-tls6.c: New file.
3674         * elf/Makefile: Add rules to build and run tst-tls6.
3675
3676         * po/da.po: Update from translation team.
3677
3678         * locale/categories.def: Fix typo [PR libc/2948].
3679         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
3680         [PR libc/2949].
3681         * locale/iso-4217.def: Update from official version [PR libc/2950].
3682         * glibcbug.in: Honor TMPDIR [PR libc/2951].
3683         * locale/programs/ld-collate.c (collate_finish): Bail out with a
3684         message if input is too confusion instead of using assert.
3685         (collate_read): Don't crash on unknown symbol [PR libc/2952].
3686         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
3687
3688         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
3689         * elf/tst-tls2.c: Likewise.
3690         * elf/tst-tls3.c: Likewise.
3691
3692 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
3693
3694         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
3695
3696 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
3699         if this is really necessary.
3700
3701         * elf/dl-close.c (_dl_close): Implement freeing entries in the
3702         slotinfo array.
3703         (free_mem): Free memory for the slotinfo array if possible.
3704
3705 2002-02-12  Andreas Schwab  <schwab@suse.de>
3706
3707         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
3708
3709 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
3710
3711         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
3712         TLS_DTV_UNALLOCATE.
3713         (oom): New function.
3714         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
3715         (_dl_determine_tlsoffset): Likewise.
3716         (_dl_allocate_tls): Likewise.
3717         (__TLS_GET_ADDR): Define if not already defined.
3718         (_dl_tls_symaddr): New function.
3719         (allocate_and_init): New function.
3720         (__tls_get_addr): Actually implement handling of generation counter
3721         and deferred allocation.
3722         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
3723         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3724         _dl_tls_generation.
3725         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
3726         Declare _dl_tls_symaddr.
3727         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
3728         SHARED.
3729         * include/link.h (struct link_map):  Remove l_tls_nextimage and
3730         l_tls_previmage.
3731         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
3732         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
3733         (_dl_vsym): Likewise.
3734         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
3735         layout.
3736         (dl_main): Allow PT_TLS be present for empty segment.  Remove
3737         nextimage list handling.  Instead add all modules using TLS to
3738         dl_tls_dtv_slotinfo_list.
3739         * elf/dl-open.c (dl_open_worker): After successfully loading all
3740         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
3741         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
3742         empty segment don't do anything.  Remove handling of initimage list.
3743         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
3744         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
3745         * elf/dl-minimal.c: Define __libc_memalign.
3746         * elf/dl-support.c: Remove _dl_initimage_list.  Add
3747         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
3748         _dl_tls_generation.
3749         * include/stdlib.h: Declare __libc_memalign.
3750
3751         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
3752         * elf/tst-tls4.c: New file.
3753         * elf/tst-tls5.c: New file.
3754         * elf/tst-tlsmod2.c: New file.
3755
3756         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
3757
3758         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
3759
3760         * elf/tst-tls1.c: Use test-skeleton.c.
3761         * elf/tst-tls2.c: Likewise.
3762         * elf/tst-tls3.c: Likewise.
3763
3764         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
3765
3766 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
3767
3768         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
3769
3770 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
3771
3772         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
3773
3774         * elf/tst-tls3.c: New file.
3775         * elf/tst-tlsmod1.c: New file.
3776         * elf/Makefile: Add rules to build and run tst-tls3.
3777
3778         * sysdeps/i386/dl-machine.h: Include <tls.h>.
3779         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
3780         TLS relocations.
3781
3782         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
3783
3784         * po/fr.po: Update from translation team.
3785
3786         * elf/tls-macros.h: Add alternative macros for use in PIC.
3787
3788         * elf/dl-lookup.c: Include <tls.h>.
3789         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
3790
3791         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
3792         required by passing pointer to last element of the list.
3793
3794         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
3795         l_tls_initimage to a place where it actually is performed.
3796
3797         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
3798         after globfree() calls.
3799
3800         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
3801         (openaux): Pass open_mode as new last argument to _dl_map_object.
3802         (_dl_map_object_deps): Add new argument open_mode.  Initialize
3803         open_mode element of args variable with it.
3804         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
3805         _dl_map_object_deps.
3806         * elf/rtld.c (dl_main): Add zero as last parameter to
3807         _dl_map_object_deps call.
3808         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
3809         * elf/nodlopen2.c: New file.
3810         * elf/nodlopenmod2.c: New file.
3811         * elf/Makefile: Add rules to build and run nodlopen2.
3812
3813         * elf/tst-tls1.c: Move TLS helper macros to...
3814         * elf/tls-macros.h: ...here.  New file.
3815         * elf/tst-tls2.c: New file.
3816         * elf/Makefile (tests): Add tst-tls2.
3817         (distribute): Add tls-macros.h.
3818
3819         * po/sv.po: Update from translation team.
3820
3821         * elf/tst-tls1.c (main): Add complete set of tests.  Split
3822         architecture specific definitions from the actual test code.
3823
3824         * po/tr.po: Update from translation team.
3825
3826 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
3827
3828         * elf/Makefile (tests): Add tst-tls1.
3829         * elf/tst-tls1.c: New file.
3830
3831         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
3832         alignment of TCB for now.
3833
3834         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
3835         initialization image for the application itself.
3836
3837         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
3838         loop to initialize TLS block.
3839
3840 2002-02-08  Richard Henderson  <rth@redhat.com>
3841
3842         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
3843         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
3844
3845         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
3846
3847 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
3848
3849         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
3850
3851 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
3852
3853         * po/ca.po: Update from translation team.
3854         * po/sk.po: Likewise.
3855
3856         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
3857         (dl_main): Move dtv/static TLS handling before relocation.
3858         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
3859         TLS_INIT_TP to allocate and install the dtv/static TLS block.
3860         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
3861         so far uses TLS initialize GL(dl_tls_static_size) and
3862         GL(dl_tls_static_align) to account for the TCB.
3863         (_dl_allocate_tls): New function.
3864         * sysdeps/generic/ldsodefs.h (rtld_global): Add
3865         _dl_initial_dtv_malloced.
3866
3867         * configure.in: Test for __builtin_memset more realistically.
3868
3869         * csu/version.c (banner): If TLS support is available say so.
3870
3871 2002-02-04  H.J. Lu  <hjl@gnu.org>
3872
3873         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
3874         __attribute_used__.
3875         (__dl_runtime_resolve): Likewise.
3876
3877         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
3878         declaration.
3879
3880 2001-11-15  H.J. Lu  <hjl@gnu.org>
3881
3882         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
3883         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
3884
3885         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
3886
3887 2002-02-07  H.J. Lu  <hjl@gnu.org>
3888
3889         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
3890         ".set noreorder".
3891         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
3892         Likewise.
3893
3894 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
3895
3896         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
3897
3898         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
3899         ___tls_get_addr_internal.
3900         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
3901
3902         * po/ko.po: Update from translation team.
3903
3904 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
3905
3906         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
3907         attribute, change __pad{1,2} type to unsigned int.
3908         (struct stat64): Remove packed attribute.
3909
3910 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
3913
3914 2002-02-07  Andreas Schwab  <schwab@suse.de>
3915
3916         * configure.in: Fix check for -zcombreloc.
3917
3918 2002-02-06  H.J. Lu  <hjl@gnu.org>
3919
3920         * config.h.in (HAVE_BUILTIN_MEMSET): New.
3921         * configure.in: Check if __builtin_memset really works.
3922         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
3923         __GNUC_PREREQ (2, 96) before using __builtin_memset.
3924
3925 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
3926
3927         * io/bug-ftw3.c (main): Don't try the test if root.
3928
3929 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3930
3931         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
3932         constraints.
3933         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
3934         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
3935         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
3936         Likewise.
3937         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
3938         a weak alias for __clone.
3939         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
3940         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
3941         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
3942         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
3943         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
3944         a weak alias for __mmap64.
3945
3946 2002-02-05  H.J. Lu  <hjl@gnu.org>
3947
3948         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
3949         (atomic_add): Likewise.
3950         (compare_and_swap): Likewise.
3951         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
3952
3953 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
3954
3955         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
3956
3957         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
3958         alignment of the TCB and store total size and alignment of static
3959         TLS block in _dl_tls_static_size and _dl_tls_static_align.
3960         tls_index is a typedef.
3961         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
3962         _dl_tls_static_align.
3963         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
3964         * elf/dl-support.c: Define _dl_tls_static_size and
3965         _dl_tls_static_align.
3966
3967 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
3968
3969         * configure.in: Add --without-tls option.
3970         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
3971         --without-tls is given.
3972
3973         * sysdeps/generic/dl-tls.c: Include <tls.h>.
3974
3975         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
3976
3977 2002-02-06  Roland McGrath  <roland@frob.com>
3978
3979         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
3980         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
3981
3982         * scripts/versions.awk: Improve error message for missing version.
3983         Each version inherits from the last one only if they have the same
3984         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
3985         but not GLIBC_x and FOO_y.
3986
3987         * scripts/firstversions.awk: Handle libraries that don't have each
3988         particular version named in the third column of shlib-versions.
3989
3990         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
3991
3992 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
3993
3994         * Versions.def [ld]: Add GLIBC_2.3.
3995         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
3996         * elf/Makefile (dl-routines): Add dl-tls.
3997         (distribute): Add dl-tls.h.
3998         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3999         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4000         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
4001         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
4002         along with the other info in the link map.  Change queueing of init
4003         images for double linked list.  Use _dl_next_tls_modid to compute
4004         l_tls_modid.
4005         * elf/rtld.c (_dl_start_final): Store alignment requirement
4006         along with the other info in rtld map and executable map.
4007         (dl_main): Add ld.so to the init image list if necessary.  Compute
4008         final module ID with _dl_next_tls_modid.
4009         * include/link.h (struct link_map): Add l_tls_previmage and
4010         l_tls_align.
4011         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4012         * sysdeps/i386/elf/Versions: New file.
4013         * sysdeps/generic/dl-tls.c: New file.
4014         * sysdeps/generic/dl-tls.h: New file.
4015         * sysdeps/i386/dl-tls.h: New file.
4016
4017 2002-02-06  Roland McGrath  <roland@frob.com>
4018
4019         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4020         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
4021
4022 2002-01-05  Roland McGrath  <roland@frob.com>
4023
4024         * sysdeps/mach/configure.in: New file.
4025         * sysdeps/mach/configure: New generated file.
4026
4027         * mach/Makefile (user-interfaces): Remove default_pager_helper.
4028         It has never been used by anything.
4029
4030 2002-02-06  H.J. Lu  <hjl@gnu.org>
4031
4032         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
4033         is included.
4034
4035 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4036
4037         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
4038         attribute((packed)) to counter stupid people misusing gcc options.
4039         (struct stat64): Likewise.
4040
4041 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4042
4043         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
4044         the variables which are used as booleans.
4045
4046 2002-02-06  Andreas Jaeger  <aj@suse.de>
4047
4048         * include/libc-symbols.h (INTUSE): Renamed from INT.
4049         * elf/dl-deps.c: Change users.
4050         * sysdeps/generic/dl-sysdep.c: Likewise.
4051         * sysdeps/generic/dl-cache.c: Likewise.
4052         * elf/dl-reloc.c: Likewise.
4053         * elf/rtld.c: Likewise.
4054         * elf/dl-version.c: Likewise.
4055         * elf/dl-load.c: Likewise.
4056         * elf/dl-dst.h: Likewise.
4057         * elf/dl-init.c: Likewise.
4058         * elf/dl-error.c: Likewise.
4059         * elf/dl-fini.c: Likewise.
4060         * elf/dl-runtime.c: Likewise.
4061         * elf/do-lookup.h: Likewise.
4062
4063         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
4064         definition.
4065         * stdio-common/_itowa.h: Likewise.
4066
4067 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4068
4069         * elf/dl-minimal.c: Define _itoa_lower_digits.
4070
4071         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
4072         DT_FLAGS set.
4073
4074         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
4075         loading modules with the DF_STATIC_TLS flag set.
4076         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
4077         element.
4078         * include/link.h (struct link_map): Add l_flags field.
4079         * elf/elf.h (DF_STATIC_TLS): New definition.
4080
4081         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
4082         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
4083
4084         * elf/rtld.c (process_dl_debug): Correct printing help message.
4085         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
4086         for %s.
4087
4088         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
4089         definition and pass &errno in use of this variable.
4090         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
4091
4092 2002-02-04  Andreas Schwab  <schwab@suse.de>
4093
4094         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
4095         * locale/programs/charmap-dir.c: Wrap calls that output messages
4096         with WITH_CUR_LOCALE.  Include "localedef.h" first.
4097         * locale/programs/charmap.c: Likewise.
4098         * locale/programs/ld-address.c: Likewise.
4099         * locale/programs/ld-collate.c: Likewise.
4100         * locale/programs/ld-ctype.c: Likewise.
4101         * locale/programs/ld-identification.c: Likewise.
4102         * locale/programs/ld-measurement.c: Likewise.
4103         * locale/programs/ld-messages.c: Likewise.
4104         * locale/programs/ld-monetary.c: Likewise.
4105         * locale/programs/ld-name.c: Likewise.
4106         * locale/programs/ld-numeric.c: Likewise.
4107         * locale/programs/ld-paper.c: Likewise.
4108         * locale/programs/ld-telephone.c: Likewise.
4109         * locale/programs/ld-time.c: Likewise.
4110         * locale/programs/linereader.c: Likewise.
4111         * locale/programs/linereader.h: Likewise.
4112         * locale/programs/localedef.c: Likewise.
4113         * locale/programs/locfile.c: Likewise.
4114         * locale/programs/repertoire.c: Likewise.
4115
4116 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4117
4118         * elf/rtld.c (_dl_start_final): Determine load address to locate
4119         ehdr with GL(dl_rtld_map).l_map_start.
4120
4121         * po/ca.po: Update from translation team.
4122
4123         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4124         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4125         header entry.
4126         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4127         _dl_tls_module_cnt.
4128         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
4129
4130 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4133         * include/link.h (struct link_map): Add various members for TLS
4134         information.
4135         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4136         _rtld_tlsoffset, add _dl_initimage_list.
4137         * sysdeps/i386/dl-lookupcfg.h: New file.
4138         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4139         TLS relocation.  When using TLS we now use RESOLVE_MAP.
4140         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4141         is used.
4142
4143         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4144         unused.
4145
4146         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4147         thread-pointer as soon as possible.
4148         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
4149         elements in rtld_global.
4150         * sysdeps/generic/tls.h: New file.
4151         * elf/Makefile (distribute): Add tls.h.
4152         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4153         relocations.  Not complete yet.
4154
4155         * resolv/resolv.h: Allow user to define __need_res_state and only
4156         define __res_start structure then.
4157         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4158
4159         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4160         dl_cpuclock_offset initialization to _dl_start_final.
4161         (_dl_show_auxv): Avoid unnecessary sign extension.
4162         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4163
4164 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
4165
4166         * config.h.in: Add HAVE_TLS_SUPPORT.
4167         * sysdeps/i386/elf/configure.in: New file.
4168
4169 2002-02-03  Andreas Schwab  <schwab@suse.de>
4170
4171         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4172         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
4173
4174 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
4175
4176         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4177         alloca if the memory reqirements are too high.
4178
4179 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
4180
4181         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4182         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4183         the former is available anyway and speed isn't important here.
4184         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4185         * elf/dl-version.c (match_symbol): Likewise.
4186         (_dl_check_map_versions): Likewise.
4187         * elf/rtld.c (process_envvars): Likewise.
4188         (print_statistics): Likewise.
4189         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4190         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
4191         bases.  Add assert to catch uses of unimplemented features.
4192         (__strsep): Add assert to catch uses of unimplemented features.
4193         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
4194         and avoid inline optimization.
4195         * elf/rtld.c (process_envvars): Likewise.
4196         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4197         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4198         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4199
4200 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4201
4202         * stdio-common/_itoa.h: Minor simplifications of the code.
4203         * stdio-common/_itoa.c: Likewise.
4204
4205         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4206         instead of _dl_printf for debugging info output.
4207
4208         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4209         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4210
4211 2002-02-01  H.J. Lu  <hjl@gnu.org>
4212
4213         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4214         (atomic_add): Likewise.
4215         (compare_and_swap): Return 0 only when failed to compare. Use
4216         branch likely.
4217
4218         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4219         branch likely.
4220
4221 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4222
4223         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4224
4225 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4226
4227         * elf/dl-minimal.c (__strsep): New minimal implementation.
4228
4229 2002-02-02  Paul Eggert  <eggert@twinsun.com>
4230
4231         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4232         (__mktime_internal): If no tm_isdst is requested, prefer solutions
4233         with tm_isdst > 0 when the requested time falls within a
4234         spring-forward gap [PR libc/2894].
4235
4236 2002-02-03  Andreas Schwab  <schwab@suse.de>
4237
4238         * stdio-common/tst-rndseek.c: Increase timeout.
4239
4240 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4241
4242         Change ld.so to not use functions which are exported.  One cannot
4243         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
4244         definitions.
4245         * include/libc-symbols.h: Define INT and INTDEF.
4246         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4247         _dl_signal_error_internal, _dl_map_object_internal,
4248         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4249         _dl_lookup_versioned_symbol_internal,
4250         _dl_relocate_object_internal, _dl_debug_state_internal,
4251         _dl_start_profile_internal, and _dl_unload_cache_internal.
4252         * include/dlfcn.h: Declare _dl_catch_error_internal.
4253         * elf/rtld.c: Use INT for calls to any of the *_internal functions
4254         above.  Add INTDEF to function definitions.
4255         * elf/dl-debug.c: Likewise.
4256         * elf/dl-deps.c: Likewise.
4257         * elf/dl-dst.h: Likewise.
4258         * elf/dl-error.c: Likewise.
4259         * elf/dl-fini.c: Likewise.
4260         * elf/dl-init.c: Likewise.
4261         * elf/dl-load.c: Likewise.
4262         * elf/dl-lookup.c: Likewise.
4263         * elf/dl-misc.c: Likewise.
4264         * elf/dl-open.c: Likewise.
4265         * elf/dl-profile.c: Likewise.
4266         * elf/dl-reloc.c: Likewise.
4267         * elf/dl-runtime.c: Likewise.
4268         * elf/dl-version.c: Likewise.
4269         * elf/do-lookup.h: Likewise.
4270         * sysdeps/generic/dl-cache.c: Likewise.
4271         * sysdeps/generic/dl-sysdep.c: Likewise.
4272         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4273         instead of _dl_init.
4274         * sysdeps/arm/dl-machine.h: Likewise.
4275         * sysdeps/cris/dl-machine.h: Likewise.
4276         * sysdeps/hppa/dl-machine.h: Likewise.
4277         * sysdeps/i386/dl-machine.h: Likewise.
4278         * sysdeps/ia64/dl-machine.h: Likewise.
4279         * sysdeps/m68k/dl-machine.h: Likewise.
4280         * sysdeps/mips/dl-machine.h: Likewise.
4281         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4282         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4283         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4284         * sysdeps/sh/dl-machine.h: Likewise.
4285         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4286         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4287         * sysdeps/x86_64/dl-machine.h: Likewise.
4288         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4289
4290         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4291         and _dl_debug_initialize.
4292
4293         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
4294         more information.
4295         * elf/rtld.c (dl_main): Avoid strrchr.
4296         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4297         result of readlink.  Search from the back for '/'.
4298
4299         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4300         strncpy if possible.
4301
4302         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
4303         strncmp.
4304         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
4305         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4306         strspn, and strcspn.
4307         (process_envvars): Don't use strcspn.
4308
4309         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4310         (_dl_dst_substitute): Likewise.
4311
4312 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
4313
4314         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4315         code which is never used when relocating ld.so itself.
4316
4317         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4318         starting ld.so itself.  Move l_addr variable initialization closer
4319         to use.
4320         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4321
4322 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
4323
4324         * Versions.def (libc): Add GLIBC_PRIVATE.
4325         (libdb, libnss_db, libdb1): Remove.
4326         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4327         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4328         (libpthread): Add GLIBC_PRIVATE.
4329         (libresolv): Likewise, remove GLIBC_2.1.
4330         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4331         GLIBC_2.2.3, GLIBC_2.3.
4332         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4333         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4334         _dl_sym, _dl_vsym): Likewise.
4335         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4336         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4337         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4338         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4339         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4340         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4341         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4342         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4343         Likewise.
4344         (_dl_object_relocation_scope): Remove.
4345         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4346         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4347         __gconv_cache): Move to GLIBC_PRIVATE.
4348         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4349         __internal_setnetgrent): Likewise.
4350         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4351         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4352         * locale/Versions (__collate_element_hash, __collate_element_strings,
4353         __collate_symbol_classes, __collate_symbol_hash,
4354         __collate_symbol_strings, _nl_current_LC_COLLATE,
4355         _nl_current_LC_CTYPE): Likewise.
4356         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4357         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4358         (libnss_nis, libnss_nisplus): Likewise.
4359         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4360         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4361         (libnss_files): Move all symbols to GLIBC_PRIVATE.
4362         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4363         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4364         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4365         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4366         __ns_get16, __ns_samename): Likewise.
4367         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4368         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
4369         GLIBC_PRIVATE.
4370         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
4371         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
4372         __libc_connect): Likewise.
4373         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
4374         Likewise.
4375         * stdlib/Versions (__libc_system): Likewise.
4376         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
4377         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
4378         * sysdeps/ia64/fpu/Versions: Likewise.
4379         * sysdeps/ia64/Versions: Likewise.
4380         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4381         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
4382         to GLIBC_PRIVATE.
4383         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
4384         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
4385         __libc_sigaction): Likewise.
4386         * termios/Versions (__libc_tcdrain): Likewise.
4387
4388         * misc/sys/cdefs (__attribute_noinline__): Define.
4389         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
4390         __attribute_noinline__.
4391
4392         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
4393         * elf/dl-xstat64.c: New file.
4394         * elf/dl-fxstat64.c: New file.
4395         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
4396         don't export __fxstat64 at multiple versions.
4397         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
4398         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
4399
4400 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
4401
4402         * locale/program/ld-collate.c (collate_finish): Assign a wide
4403         char collation sequence value to multi character collating
4404         elements, and avoid over writing by non-character elements.
4405
4406 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
4407
4408         * elf/Makefile (distribute): Add dl-procinfo.c.
4409         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
4410         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
4411
4412 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
4413
4414         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
4415         definition.
4416         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
4417         _rtld_global struct.
4418         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4419         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4420         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4421         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
4422         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
4423         _dl_fpu_control_set): Remove unused externs.
4424         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
4425         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
4426         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
4427         related variables in _rtld_global struct.
4428         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
4429         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
4430         unused extern.
4431
4432 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * sysdeps/generic/dl-procinfo.c: New file.
4435
4436 2002-02-01  Andreas Schwab  <schwab@suse.de>
4437
4438         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
4439
4440 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
4441
4442         * elf/rtld.c (_dl_start): Mark as internal_function.
4443         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
4444         in register.
4445         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
4446         General pretty printing.
4447
4448 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
4449
4450         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
4451         * elf/dl-reloc.c: Pretty printing.
4452         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
4453         procinfo-related variables in rtld_global struct.
4454         * elf/dl-support.c: Likewise.
4455         * elf/rtld.c: Likewise.
4456         * sysdeps/i386/i686/Makefile: Likewise.
4457         * sysdeps/i386/i686/hp-timing.c: Likewise.
4458         * sysdeps/i386/i686/hp-timing.h: Likewise.
4459         * sysdeps/ia64/Makefile: Likewise.
4460         * sysdeps/ia64/hp-timing.c: Likewise.
4461         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4462         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4463         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
4464         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
4465         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4466         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
4467         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
4468         * sysdeps/x86_64/Makefile: Likewise.
4469
4470         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4471         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
4472         _dl_debug_fd to rtld_global.
4473         * elf/Versions: Likewise.
4474         * elf/dl-close.c: Likewise.
4475         * elf/dl-iteratephdr.c: Likewise.
4476         * elf/dl-lookup.c: Likewise.
4477         * elf/dl-misc.c: Likewise.
4478         * elf/dl-open.c: Likewise.
4479         * elf/dl-support.c: Likewise.
4480         * elf/do-lookup.h: Likewise.
4481         * elf/rtld.c: Likewise.
4482         * sysdeps/generic/dl-cache.c: Likewise.
4483         * sysdeps/generic/dl-sysdep.c: Likewise.
4484         * sysdeps/ia64/Versions: Likewise.
4485         * sysdeps/unix/clock_gettime.c: Likewise.
4486         * sysdeps/unix/clock_settime.c: Likewise.
4487         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4488         * sysdeps/sparc/Versions: Removed.
4489         * sysdeps/i386/i686/Versions : Removed.
4490         * sysdeps/x86_64/Versions: Removed.
4491         * configure.in: Define HAVE_PROTECTED if .protected is available.
4492         * config.h.in: Add entry for HAVE_PROTECTED.
4493
4494 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
4495
4496         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
4497         code in struct _rtld_global.  Export this struct, remove all
4498         exports for the signal variables.
4499         * sysdeps/arm/dl-machine: Likewise.
4500         * sysdeps/generic/dl-origin: Likewise.
4501         * sysdeps/generic/dl-sysdep: Likewise.
4502         * sysdeps/generic/dl-cache: Likewise.
4503         * sysdeps/hppa/dl-fptr: Likewise.
4504         * sysdeps/hppa/dl-machine: Likewise.
4505         * sysdeps/cris/dl-machine: Likewise.
4506         * sysdeps/i386/dl-machine: Likewise.
4507         * sysdeps/ia64/dl-machine: Likewise.
4508         * sysdeps/m68k/dl-machine: Likewise.
4509         * sysdeps/mach/hurd/dl-sysdep: Likewise.
4510         * sysdeps/mips/mips64/dl-machine: Likewise.
4511         * sysdeps/mips/dl-machine: Likewise.
4512         * sysdeps/powerpc/elf/libc-start: Likewise.
4513         * sysdeps/powerpc/dl-machine: Likewise.
4514         * sysdeps/powerpc/dl-start: Likewise.
4515         * sysdeps/sparc/sparc32/dl-machine: Likewise.
4516         * sysdeps/sparc/sparc64/dl-machine: Likewise.
4517         * sysdeps/sh/dl-machine: Likewise.
4518         * sysdeps/s390/s390-32/dl-machine: Likewise.
4519         * sysdeps/s390/s390-64/dl-machine: Likewise.
4520         * sysdeps/unix/sysv/aix/libc-start: Likewise.
4521         * sysdeps/unix/sysv/aix/start-libc: Likewise.
4522         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
4523         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
4524         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
4525         * sysdeps/x86_64/dl-machine: Likewise.
4526
4527 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
4528
4529         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
4530         are too high.
4531
4532 2002-01-31  Andreas Schwab  <schwab@suse.de>
4533
4534         * sysdeps/posix/readv.c: Check for ssize_t overflow.
4535
4536 2002-01-31  Andreas Schwab  <schwab@suse.de>
4537
4538         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
4539         reference to _dl_pagesize.
4540
4541 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
4542
4543         * Versions.def [ld]: Add GLIBC_2.3.
4544         * elf/dl-addr.c: Move global variables for SHARED code in struct
4545         _rtld_global.  Export this struct, remove all exports for the
4546         signal variables.
4547         * elf/dl-close.c: Likewise.
4548         * elf/dl-conflict.c: Likewise.
4549         * elf/dl-debug.c: Likewise.
4550         * elf/dl-deps.c: Likewise.
4551         * elf/dl-dst.h: Likewise.
4552         * elf/dl-error.c: Likewise.
4553         * elf/dl-fini.c: Likewise.
4554         * elf/dl-init.c: Likewise.
4555         * elf/dl-iteratephdr.c: Likewise.
4556         * elf/dl-libc.c: Likewise.
4557         * elf/dl-load.c: Likewise.
4558         * elf/dl-lookup.c: Likewise.
4559         * elf/dl-minimal.c: Likewise.
4560         * elf/dl-object.c: Likewise.
4561         * elf/dl-open.c: Likewise.
4562         * elf/dl-profile.c: Likewise.
4563         * elf/dl-profstub.c: Likewise.
4564         * elf/dl-reloc.c: Likewise.
4565         * elf/dl-runtime.c: Likewise.
4566         * elf/dl-support.c: Likewise.
4567         * elf/dl-sym.c: Likewise.
4568         * elf/dl-version.c: Likewise.
4569         * elf/do-lookup.h: Likewise.
4570         * elf/do-rel.h: Likewise.
4571         * elf/dynamic-link.h: Likewise.
4572         * elf/rtld.c: Likewise.
4573         * sysdeps/generic/dl-cache.c: Likewise.
4574         * sysdeps/generic/dl-sysdep.c: Likewise.
4575         * sysdeps/generic/ldsodefs.h: Likewise.
4576         * sysdeps/generic/libc-start.c: Likewise.
4577         * sysdeps/i386/dl-machine.h: Likewise.
4578         * sysdeps/ia64/dl-fptr.c: Likewise.
4579         * sysdeps/ia64/dl-machine.h: Likewise.
4580         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
4581         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4582         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4583         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
4584         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4585         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4586         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
4587         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4588
4589 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
4590
4591         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
4592         to avoid warning
4593         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
4594
4595         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
4596         SHARED version.
4597         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
4598
4599         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
4600
4601 2002-01-29  Ben Collins  <bcollins@debian.org>
4602
4603         * string/bits/string2.h (__mempcpy): Protect size arg for
4604         addition when using __builtin_memcpy.
4605
4606 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
4607
4608         * stdlib/Makefile (tests): Add tst-qsort.
4609         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
4610
4611         * manual/signal.texi (Process Signal Mask): Document that
4612         pthread_sigmask, not sigprocmask, must be used in MT programs.
4613         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
4614
4615         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
4616         found.
4617         * misc/Makefile (tests): Add tst-hsearch.
4618         * misc/tst-hsearch.c: New file.
4619
4620 2002-01-18  Wolfram Gloger  <wg@malloc.de>
4621
4622         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
4623         * malloc/malloc.h: Likewise.
4624         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
4625         * malloc/arena.c: New file.
4626         * malloc/hooks.c: New file.
4627         * malloc/tst-mallocstate.c: New file.
4628         * malloc/Makefile: Add new testcase tst-mallocstate.
4629         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
4630
4631 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
4632
4633         * stdlib/msort.c: Remove last patch.  The optimization violates the
4634         same rule which qsort.c had problems with.
4635
4636 2002-01-27  Paul Eggert  <eggert@twinsun.com>
4637
4638         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
4639         to a pivot element that lies outside the array to be sorted, as
4640         ISO C99 requires that the comparison function be called only with
4641         addresses of array elements [PR libc/2880].
4642
4643 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
4644
4645         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
4646         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
4647
4648         * timezone/asia: Update from tzdata2002b.
4649         * timezone/australasia: Likewise.
4650         * timezone/backward: Likewise.
4651         * timezone/europe: Likewise.
4652         * timezone/leapseconds: Likewise.
4653         * timezone/iso3166.tab: Likewise.
4654         * timezone/zone.tab: Likewise.
4655
4656 2002-01-23  Richard Henderson  <rth@redhat.com>
4657
4658         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
4659
4660 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
4661
4662         * string/strxfrm.c: Allocate one more byte for rulearr and clear
4663         this element [PR libc/2855].
4664
4665         * string/strcoll.c: Handle zero-length arguments specially
4666         [PR libc/2856].
4667
4668 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
4669
4670         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
4671         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
4672         short lengths and constant src.
4673         (strcpy): Don't optimize for gcc 3.0+.
4674         (__stpcpy): For gcc 3.0+, don't use
4675         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
4676         for short string literal src.
4677
4678 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4679
4680         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4681         Set for arm, too.
4682
4683 2001-01-22  Paul Eggert  <eggert@twinsun.com>
4684
4685         * manual/llio.texi (Linked Channels, Cleaning Streams):
4686         Make it clearer that a just-opened input stream might need cleaning.
4687
4688 2002-01-21  H.J. Lu  <hjl@gnu.org>
4689
4690         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4691         Don't use label at end of compound statement.
4692
4693 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
4694
4695         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
4696         Remove test for negative integer arg; sin_pi does it correctly.
4697
4698 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
4699
4700         * nscd/Makefile (distribute): Filter out xmalloc.c.
4701
4702 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
4703
4704         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
4705         Set offset if read end wasn't the buffer end.
4706         (_IO_file_seekoff_mmap): New function.
4707         (_IO_file_xsgetn_mmap): New function.
4708         (_IO_file_jumps_mmap): Use the two new functions.
4709         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
4710         != end buffer.
4711         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
4712         _IO_file_underflow_mmap.
4713         * libio/iofopen.c: Don't position file descriptor at end of file.
4714         * libio/tst-widetext.c: Improve error messages.
4715         * stdio-common/tst-rndseek.c: Likewise.
4716
4717 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
4718
4719         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
4720         end of enum for !_GNU_SOURCE.
4721         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
4722         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
4723         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
4724         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
4725         values unless _GNU_SOURCE.
4726
4727         * iconvdata/tcvn5712-1.c: Minor cleanups.
4728
4729 2002-01-18  Andreas Schwab  <schwab@suse.de>
4730
4731         * sysdeps/unix/sysv/linux/configure.in
4732         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
4733
4734 2002-01-16  Roger Sayle  <roger@eyesopen.com>
4735
4736         * stdlib/msort.c (msort_with_tmp): Replace implementation with
4737         more efficient "Towers of Hanoi" mergesort.
4738         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
4739         for generic, sizeof(int) and sizeof(long) variants respectively.
4740
4741 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
4742
4743         * manual/syslog.texi (openlog): Describe possible problems with
4744         first parameter.
4745         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4746
4747         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
4748         * nscd/connections.c (begin_drop_privileges): New function.
4749         (finish_drop_privileges): New function.
4750         (nscd_init): Call the new functions which also install all groups
4751         for the server user.
4752         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
4753         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
4754
4755 2002-01-17  H.J. Lu  <hjl@gnu.org>
4756
4757         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
4758         `const' from `got'.
4759
4760 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4761
4762         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
4763         instructions for pointer operations.
4764         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4765
4766 2002-01-17  Andreas Jaeger  <aj@suse.de>
4767
4768         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
4769         __uint128_t build-in.
4770
4771         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
4772         PowerPC, sync with 2.2 branch.
4773
4774 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
4775
4776         * posix/getconf.c: Update copyright year.
4777         * nss/getent.c: Likewise.
4778         * nscd/nscd_nischeck.c: Likewise.
4779         * iconv/iconvconfig.c: Likewise.
4780         * iconv/iconv_prog.c: Likewise.
4781         * elf/ldconfig.c: Likewise.
4782         * catgets/gencat.c: Likewise.
4783         * csu/version.c: Likewise.
4784         * elf/ldd.bash.in: Likewise.
4785         * elf/sprof.c (print_version): Likewise.
4786         * locale/programs/locale.c: Likewise.
4787         * locale/programs/localedef.c: Likewise.
4788         * nscd/nscd.c (print_version): Likewise.
4789         * debug/xtrace.sh: Likewise.
4790         * malloc/memusage.sh: Likewise.
4791         * malloc/mtrace.pl: Likewise.
4792
4793 2002-01-16  Andreas Schwab  <schwab@suse.de>
4794
4795         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
4796         reliably remove "-ia64" from rtld name.
4797
4798 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
4799
4800         * iconvdata/gb18030.c: Bug fixes and support for more characters.
4801         Patch by Yu Shao <yshao@redhat.com>.
4802
4803 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4804
4805         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
4806         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
4807         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
4808
4809 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4810
4811         * sysdeps/s390/fpu/libm-test-ulps: Update.
4812
4813 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
4814
4815         * elf/elf.h: Update x86 relocations.
4816
4817 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
4818
4819         * locale/programs/charmap.c (new_width): Check whether byte
4820         sequences for both ends of range have the same length.
4821
4822 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
4823
4824         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
4825
4826 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
4827
4828         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
4829         string literals.
4830         (__full_ieee754_sqrt): Add __attribute_used__.
4831
4832 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
4833
4834         * sysdeps/generic/group_member.c (__group_member): Also check
4835         groups[0] [PR libc/2781].
4836
4837 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
4838
4839         * Makefile (distribute): Add scripts/cpp.
4840         * elf/Makefile (distribute): Add reldep6mod[01234].c,
4841         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
4842         unwind-dw2-fde.h, and dwarf2.h.
4843         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
4844         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
4845         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
4846         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
4847
4848 2002-01-07  Roland McGrath  <roland@frob.com>
4849
4850         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
4851         volatile on type of ARGC so the compiler doesn't get clever.
4852
4853 2002-01-07  Andreas Jaeger  <aj@suse.de>
4854
4855         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
4856         * sysdeps/i386/bits/byteswap.h: Likewise.
4857         * sysdeps/ia64/bits/byteswap.h: Likewise.
4858         * sysdeps/m68k/bits/byteswap.h: Likewise.
4859         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
4860         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
4861
4862 2002-01-02  Bruno Haible  <bruno@clisp.org>
4863
4864         * intl/plural.y: Fix %expect count.
4865
4866 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
4867
4868         * elf/Makefile (routines, shared-only-routines): Add
4869         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
4870         * elf/elf.h (PT_GNU_EH_FRAME): Define.
4871         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
4872         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
4873         Optimize if .eh_frame section contains no FDEs.
4874         (__register_frame, __deregister_frame_info_bases,
4875         __deregister_frame): Likewise.
4876         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
4877         DW_CFA_restore handling.
4878
4879 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
4880
4881         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
4882
4883         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
4884         for x < 0.25 and restore original range reduction method.
4885         (__ieee754_lgammal_r): Make sure signgam is set before returning.
4886
4887 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
4888
4889         * libio/fileops.c (_IO_file_underflow_mmap): New function.
4890         (_IO_file_close_mmap): New function.
4891         (_IO_file_jumps_mmap): New variable.
4892         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
4893         trying to convert rest of byte buffer.
4894         (_IO_wfile_underflow_mmap): New function.
4895         (_IO_wfile_jumps_mmap): New variable.
4896         * libio/iofopen.c (__fopen_maybe_mmap): New function.
4897         (__fopen_internal): New function.  Split out from _IO_new_fopen.
4898         (_IO_new_fopen): Call __fopen_internal.
4899         * libio/iofopen64.c: Just call __fopen_internal.
4900         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
4901         successfully.
4902         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
4903         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
4904         _IO_file_close_mmap.
4905
4906         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
4907         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
4908
4909         * stdio-common/Makefile (tests): Add tst-rndseek.
4910         * stdio-common/tst-rndseek.c: New file.
4911
4912 2002-01-05  Roland McGrath  <roland@frob.com>
4913
4914         * config.h.in (HAVE_MIG_RETCODE): New #undef.
4915         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
4916         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
4917         * sysdeps/mach/hurd/configure: Regenerated.
4918
4919 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
4920
4921         * elf/elf.h: Add more TLS definitions.
4922
4923 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
4924
4925         * include/features.h (__GLIBC_MINOR__): Bump to 3.
4926
4927 2002-01-02  Roland McGrath  <roland@frob.com>
4928
4929         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
4930         __sigisemptyset.  Don't use MASK uninitialized.
4931
4932         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
4933         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
4934         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
4935         __sigdelset, __sigaddset, __sigorset.
4936
4937         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
4938         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
4939
4940         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
4941         _hurd_ports is null.
4942
4943         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
4944         for old CMU and new OSF Mach interface flavors.
4945         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
4946         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4947
4948         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
4949
4950         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
4951         Pass extra arguments to task_create for OSF variant.
4952         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4953
4954         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
4955         conditional on [HAVE_AUX_VECTOR].
4956
4957         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
4958         mach_msg_timeout_t as type of final argument.
4959
4960         * hurd/privports.c (__get_privileged_ports):
4961         Change host_priv_t to mach_port_t in argument type.
4962         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
4963         Update decls.
4964
4965         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
4966         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
4967         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
4968         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
4969         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
4970         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
4971
4972 2002-01-01  Roland McGrath  <roland@frob.com>
4973
4974         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
4975
4976 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
4977
4978         * include/stdlib.h: Define inlines for the _l variants of the strto*
4979         functions.
4980
4981 2002-01-01  Roland McGrath  <roland@frob.com>
4982
4983         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
4984
4985         * mach/Machrules (MIG): Set CPP as well as CC.
4986
4987 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
4988
4989         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
4990         locale to parse /proc/loadavg [PR libc/2760].
4991
4992 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
4993
4994         * elf/dl-conflict.c: Include sys/param.h.
4995         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
4996         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
4997         warning.
4998         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
4999         literals to avoid warnings.
5000
5001 2001-12-31  Andreas Jaeger  <aj@suse.de>
5002
5003         * configure.in: Don't check for gsed since we do not use it anywhere.
5004
5005 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
5006
5007         * io/fts.c: Update from BSD to fix memory leaks.
5008
5009 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
5010
5011         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
5012         * elf/chroot_canon.c: Likewise.
5013         * elf/dl-object.c: Likewise.
5014         * iconv/iconv_charmap.c: Likewise.
5015         * iconv/iconv_prog.c: Likewise.
5016         * libio/iogetdelim.c: Likewise.
5017         * locale/lc-time.c: Likewise.
5018         * stdlib/canonicalize.c: Likewise.
5019         * sunrpc/svc.c: Likewise.
5020         * sysdeps/generic/glob.c: Likewise.
5021
5022 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5023
5024         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
5025         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5026         remove high order bit from the program counter.
5027         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
5028
5029 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5030
5031         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
5032         unnecessary code and add missing reloc types.
5033         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
5034         case for reloc type R_390_NONE.
5035
5036 2001-12-28  Andreas Jaeger  <aj@suse.de>
5037
5038         * io/bug-ftw3.c: Include string.h for prototypes.
5039
5040         * crypt/md5test.c (main): Remove unused variable.
5041
5042         * dlfcn/modstatic.c: Add prototype to avoid warning.
5043
5044 2001-12-26  Roland McGrath  <roland@frob.com>
5045
5046         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
5047         check only (SS->pending & MASK) for the signal to return.
5048         From Jeroen Dekkers <jeroen@dekkers.cx>.
5049
5050 2001-12-22  Roland McGrath  <roland@frob.com>
5051
5052         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
5053         Use preprocessor #if conditionals instead of `if' to avoid
5054         warnings about divide by zero in dead code.
5055
5056         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
5057         _hurd_port_init, and __hurd_self_sigstate.
5058
5059         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
5060
5061 2001-12-21  Andreas Jaeger  <aj@suse.de>
5062
5063         * elf/dblloadmod1.c: Add prototype to avoid warning.
5064         * elf/dblloadmod2.c: Likewise.
5065         * elf/dblloadmod3.c: Likewise.
5066         * elf/reldepmod5.c: Likewise.
5067         * elf/reldepmod6.c: Likewise.
5068
5069         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
5070         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
5071         used on all architectures.
5072
5073         * sunrpc/svc_tcp.c: Add noreturn attribute for
5074         svctcp_rendezvous_abort.
5075         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
5076
5077         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
5078         to avoid warning.
5079
5080 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
5081
5082         * manual/llio.texi (aio_fsync): Fix a typo.
5083         Patch by Tammy Fox <tfox@redhat.com>.
5084
5085 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
5086
5087         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
5088         stack bias from child stack pointer before passing it to clone syscall.
5089
5090 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
5091
5092         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
5093         _SC_TZNAME_MAX.
5094         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
5095         Reported by Thorsten Kukuk <kukuk@suse.de>.
5096
5097         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
5098         add some casts.
5099
5100         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
5101
5102 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
5103
5104         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
5105         conforming: return EBADF if file descriptor is invalid and EINVAL
5106         if file descriptor is no valid tty.
5107         * login/tst-grantpt.c: New file.
5108         * login/Makefile (tests): Add tst-grantpt.
5109
5110 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
5111
5112         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
5113         different than implemented in last patch.
5114         * io/bug-ftw3.c: Adjust test for changed handling of
5115         inaccessibility of toplevel dir.
5116
5117 2001-12-16  Roland McGrath  <roland@frob.com>
5118
5119         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
5120         * grp/initgroups.c (internal_getgrouplist): Likewise.
5121
5122         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5123         `default:' to silence new GCC warning.
5124         Rewrite cast of lvalue to silence new GCC warning.
5125
5126         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5127
5128         * sysdeps/mach/hurd/spawni.c: New file, by me with a
5129         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5130
5131 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
5132
5133         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
5134         Patch by Stephen R. van den Berg.
5135
5136         * crypt/md5.h: Define md5_uintptr.
5137
5138 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
5139
5140         * libio/tst_swprintf.c (main): Add test for string argument with
5141         zero precision.
5142         * stdio-common/Makefile (tests): Add tst-sprintf.
5143         * stdio-common/tst-sprintf.c: New file.
5144
5145 2001-12-13  Andreas Schwab  <schwab@suse.de>
5146
5147         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5148         zero precision with wide character string format.
5149
5150 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
5151
5152         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5153         but have a user supplied buffer, return the empty buffer, not NULL.
5154
5155 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
5156
5157         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5158         Patch by Eric Sharkey <sharkey@netrics.com>.
5159
5160         * crypt/md5test.c (main): Add test for multiple calls to
5161         __md5_process_bytes to itererate over input string.
5162
5163 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
5164
5165         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5166         from __nis_findfastest.  Take timeout value from parameter.
5167         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5168         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5169         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
5170
5171 2001-12-12  Andreas Jaeger  <aj@suse.de>
5172
5173         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5174         combreloc test so that it works in this case.
5175
5176         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5177
5178 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
5179
5180         * sysdeps/sh/Makefile: New file.
5181         * sysdeps/sh/_mcount.S: New file.
5182         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5183         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5184
5185 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
5186
5187         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5188         limitation [PR libc/2564].
5189
5190 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
5191
5192         * elf/Makefile (dl-routines): Add conflict.
5193         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5194         (ld.so): Add _begin local symbol.
5195         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5196         Define.
5197         * elf/dl-deps.c (_dl_build_local_scope): New.
5198         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5199         of all libraries.
5200         * elf/do-rel.h (VALIDX): Define.
5201         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5202         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5203         can be skipped.
5204         * elf/dl-conflict.c: New file.
5205         * elf/dl-lookup.c (_dl_debug_bindings): New.
5206         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
5207         non-NULL.
5208         (_dl_lookup_symbol_skip): Likewise.
5209         (_dl_lookup_versioned_symbol): Likewise.
5210         (_dl_lookup_versioned_symbol_skip): Likewise.
5211         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5212         define to ElfW(Rel).
5213         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5214         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5215         ranges.
5216         Don't adjust address dynamic tags if l_addr is 0.
5217         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5218         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5219         (VALIDX, ADDRIDX): Define.
5220         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5221         (dl_main): Print library list for LD_TRACE_PRELINKING.
5222         If prelinking information can be used, skip relocating libraries and
5223         call _dl_resolve_conflicts instead.
5224         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5225         * elf/dl-load.c (_dl_map_object): Don't create fake libs
5226         if LD_TRACE_PRELINKING.
5227         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5228         + DT_ADDRNUM.
5229         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5230         (DL_DEBUG_PRELINK): Define.
5231         (_dl_resolve_conflicts): Add prototype.
5232
5233         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5234         .plt for prelinked libraries where prelinking info cannot be used.
5235         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5236         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5237         * sysdeps/arm/bits/link.h: New file.
5238         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5239         content of .got[1].
5240         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5241         (ELF_MACHINE_PLT_REL): Define.
5242         (elf_machine_rela, elf_machine_rela_relative): New.
5243         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5244         of adjusting it if prelinked and prelinking cannot be used.
5245         * sysdeps/i386/bits/link.h: New file.
5246         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5247         content of .got[1].
5248         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5249         (ELF_MACHINE_PLT_REL): Define.
5250         (elf_machine_rela, elf_machine_rela_relative): New.
5251         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5252         of adjusting it if prelinked and prelinking cannot be used.
5253         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5254         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
5255         to find out map for R_PPC_JMP_SLOT relocs.
5256         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5257         (OPCODE_BA): Define.
5258         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5259         libraries where prelinking info cannot be used.
5260         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5261         (elf_machine_fixup_plt): Call sparc_fixup_plt.
5262         (elf_machine_rela): Set value to 0 if relocating conflicts.
5263         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5264         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5265         (sparc64_fixup_plt): Fix a typo.
5266         (elf_machine_rela): Set value to 0 if relocating conflicts.
5267         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5268         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5269         libraries where prelinking info cannot be used.
5270         * sysdeps/sh/bits/link.h: New file.
5271         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5272         content of .got[1].
5273         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5274         of adjusting it if prelinked and prelinking cannot be used.
5275         * sysdeps/s390/s390-32/bits/link.h: New file.
5276         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5277         Save original content of .got[1].
5278         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5279         of adjusting it if prelinked and prelinking cannot be used.
5280         * sysdeps/s390/s390-64/bits/link.h: New file.
5281         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5282         Save original content of .got[1].
5283         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5284         of adjusting it if prelinked and prelinking cannot be used.
5285         * sysdeps/x86_64/bits/link.h: New file.
5286         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5287         Save original content of .got[1].
5288         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5289         of adjusting it if prelinked and prelinking cannot be used.
5290
5291 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
5292
5293         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5294         where appropriate instead of numbers.  Little optimizations.
5295
5296 2001-12-10  Roland McGrath  <roland@frob.com>
5297
5298         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5299         set it.
5300
5301         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5302         set to GLIBC_2.2.5, not GLIBC_2.2.4.
5303
5304         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5305         Fix conditionals so this is set by default for stdio and not for libio.
5306         * sysdeps/mach/hurd/configure: Regenerated.
5307
5308 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
5309
5310         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5311
5312 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
5313
5314         * io/Makefile (tests): Add bug-ftw3.
5315         * io/bug-ftw3.c: New file.
5316
5317         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5318         matches and GLOB_NOCHECK is set.
5319         * posix/globtest.sh: Correct expected result for NOCHECK test.
5320
5321         * po/ca.po: Update from translation team.
5322
5323 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
5324
5325         Implement transliteration of characters in strings of the locale
5326         definitions.
5327         * locale/programs/linereader.c: Adjust for additional parameter to
5328         lr_token.
5329         (get_string): If character <Uxxxx> is not found try to transliterate
5330         it.
5331         * locale/programs/ld-ctype.c: Adjust for additional parameter to
5332         lr_token.  Add const to charmap parameter of all functions.
5333         (find_translit, find_translit2): New functions.
5334         * locale/programs/charmap.c: Adjust for additional parameter to
5335         lr_token.
5336         * locale/programs/repertoire.c: Likewise.
5337         * locale/programs/linereader.h: Likewise.
5338         * locale/programs/ld-address.c: Likewise.  Add const to charmap
5339         parameter of all functions.
5340         * locale/programs/ld-collate.c: Likewise.
5341         * locale/programs/ld-identification.c: Likewise.
5342         * locale/programs/ld-measurement.c: Likewise.
5343         * locale/programs/ld-messages.c: Likewise.
5344         * locale/programs/ld-monetary.c: Likewise.
5345         * locale/programs/ld-name.c: Likewise.
5346         * locale/programs/ld-numeric.c: Likewise.
5347         * locale/programs/ld-paper.c: Likewise.
5348         * locale/programs/ld-paper.c: Likewise.
5349         * locale/programs/ld-telephone.c: Likewise.
5350         * locale/programs/ld-time.c: Likewise.
5351         * locale/programs/locfile.c: Likewise.
5352         * locale/programs/localedef.c: Likewise.
5353         * locale/programs/localedef.h: Likewise.
5354         * locale/programs/locfile.h: Likewise.  Add declaration for
5355         find_translit.
5356         * locale/programs/simple-hash.c: Add const to first parameter of
5357         find_entry, iterate_table, and lookup.
5358         * locale/programs/simple-hash.h: Likewise.
5359         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
5360         instead.
5361         * include/locale.h: Define __LC_LAST.
5362         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5363
5364 2001-12-07  Geoff Keating  <geoffk@redhat.com>
5365
5366         * sysdeps/powerpc/Dist: Update for recent FP changes.
5367         * sysdeps/powerpc/fpu/Dist: Likewise.
5368
5369 2001-12-07  Andreas Schwab  <schwab@suse.de>
5370
5371         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5372
5373 2001-12-06  Geoff Keating  <geoffk@redhat.com>
5374
5375         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
5376         save/restore functions here.
5377         (libm-support): Don't define these functions here.
5378         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
5379         functions here.
5380         * sysdeps/powerpc/fe_nomask.c: Move to...
5381         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
5382         * sysdeps/powerpc/fprrest.S: Move to...
5383         * sysdeps/powerpc/fpu/fprrest.S: ... here.
5384         * sysdeps/powerpc/fprsave.S: Move to...
5385         * sysdeps/powerpc/fpu/fprsave.S: ... here.
5386
5387 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
5388
5389         * sysdeps/unix/sysv/linux/opensock.c: New file.
5390
5391 2001-12-06  Geoff Keating  <geoffk@redhat.com>
5392
5393         * config.make.in (with-fp): Define from configure.
5394         * configure.in: Substitute with_fp.
5395         * configure: Regenerate.
5396         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
5397         specified, and don't change FPU environment.
5398
5399 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
5400
5401         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
5402         * assert/assert.c: Check result of __asprintf call and don't use
5403         string if it failed.
5404         * assert/assert-perr.c: Likewise.
5405         * inet/rcmd.c: Likewise.
5406         * locale/programs/localedef.c (main): Check result of
5407         construct_output_path and exit if it failed.
5408         (construct_output_path): Check result of asprintf and mkdir calls and
5409         fail if they failed.
5410         * posix/getopt.c: Check result of __asprintf calls and fail if
5411         they failed.
5412         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
5413
5414 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
5415
5416         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
5417         patch.
5418         * sysdeps/generic/strncase.c: Likewise.
5419         * string/tester.c: Add tests for strcasecmp and strncasecmp.
5420
5421 2001-12-05  Geoff Keating  <geoffk@redhat.com>
5422
5423         * scripts/cpp: Test the exit status from 'type', not 'awk'.
5424
5425         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
5426         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
5427         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
5428         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
5429         * sysdeps/powerpc/fclrexcpt.c: Move to...
5430         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
5431         * sysdeps/powerpc/fpu_control.h: Move to...
5432         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
5433
5434 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
5435
5436         * iconvdata/ibm1129.h: Remove duplicate mappings.
5437         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
5438         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
5439         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5440
5441         * timezone/zic.c: Fix handling of turnaround times.
5442         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
5443
5444 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
5445
5446         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
5447         overflow problem.
5448
5449 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
5450
5451         * posix/regex.c: For use outside glibc defined bounded pointer
5452         macros here.  Patch by Jim Meyering <jim@meyering.net>.
5453
5454         * iconvdata/Makefile (modules): Add TCVN5712-1.
5455         * iconvdata/TESTS: Add TCVN5712-1.
5456         * iconvdata/gconv-modules: Likewise.
5457         * iconvdata/tcvn5712-1.c: New file.
5458         * iconvdata/testdata/TCVN-5712: New file.
5459         * iconvdata/testdata/TCVN-5712..UTF8: New file.
5460
5461 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
5462
5463         * iconvdata/cp1258.c: Optimize conversion from UCS4.
5464
5465 2001-12-02  Roland McGrath  <roland@frob.com>
5466
5467         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
5468
5469         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
5470         Reported by Jeff Bailey <jbailey@nisa.net>.
5471
5472         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
5473         Reported by Jeff Bailey <jbailey@nisa.net>.
5474
5475         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
5476         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
5477         Reported by Jeff Bailey <jbailey@nisa.net>.
5478
5479 2001-12-01  Roland McGrath  <roland@frob.com>
5480
5481         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
5482         missing backslash in test arguments.
5483         * sysdeps/mach/hurd/configure: Regenerated.
5484
5485 2001-11-26  Roland McGrath  <roland@frob.com>
5486
5487         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
5488         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
5489
5490 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
5491
5492         * iconvdata/Makefile (modules): Add ARMSCII-8.
5493         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
5494         * iconvdata/armscii-8.c: New file.
5495
5496 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
5497
5498         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
5499         don't match, fix {{a,b},c} globbing, clean up.
5500         Patch by Flavio Veloso <flaviovs@magnux.com>.
5501         * posix/globtest.sh: Add new tests.
5502
5503 2001-11-29  Andreas Jaeger  <aj@suse.de>
5504
5505         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
5506         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
5507
5508         * sysdeps/generic/abort.c: Include libioP.h for
5509         _IO_flush_all_lockp prototype.
5510
5511 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
5512
5513         * posix/regex.h: Define __restrict_arr correctly.
5514
5515 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
5516
5517         * iconvdata/ibm1163.c: New file.
5518         * iconvdata/ibm1163.h: New file.
5519         * iconvdata/ibm1164.c: New file.
5520         * iconvdata/ibm1164.h: New file.
5521         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
5522         * iconvdata/Makefile: Likewise.
5523         * iconvdata/testdata/IBM1163: New file.
5524         * iconvdata/testdata/IBM1163..UTF8: New file.
5525         * iconvdata/testdata/IBM1164: New file.
5526         * iconvdata/testdata/IBM1164..UTF8: New file.
5527         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5528
5529         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
5530         * iconvdata/ibm1124.h: Likewise.
5531         * iconvdata/ibm1132.h: Likewise.
5532         * iconvdata/ibm1133.h: Likewise.
5533         * iconvdata/ibm1160.h: Likewise.
5534         * iconvdata/ibm1161.h: Likewise.
5535         * iconvdata/ibm1162.h: Likewise.
5536         * iconvdata/ibm856.h: Likewise.
5537         * iconvdata/ibm922.h: Likewise.
5538         * iconvdata/ibm930.h: Likewise.
5539         * iconvdata/ibm932.h: Likewise.
5540         * iconvdata/ibm933.h: Likewise.
5541         * iconvdata/ibm935.h: Likewise.
5542         * iconvdata/ibm937.h: Likewise.
5543         * iconvdata/ibm939.h: Likewise.
5544         * iconvdata/ibm943.h: Likewise.
5545         * iconvdata/ibm930.c: Pretty printing.
5546         * iconvdata/ibm937.c: Avoid access accross array boundary.
5547
5548         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
5549         the current locale's codeset.
5550         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
5551         empty input string.
5552         * iconv/iconv_prog.c: Pass empty strings as default value for to-
5553         and from-charset.  Don't determine locale's charset here.
5554
5555         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
5556         as the old _IO_flush_all but lock only if parameter is nonzero.
5557         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
5558         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
5559         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
5560         if libio is used [PR libc/2575].
5561
5562 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
5563
5564         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
5565         __signbitl): Only define for ISO C99.
5566
5567 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
5568
5569         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
5570         herrnop to NETDB_INTERNAL if we run out of buffer space.
5571
5572 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
5573
5574         * nss/nss_files/files-XXX.c (internal_getent): Correct input
5575         overflow test for platforms with signed char.
5576         Reported by Andrew Haley <aph@cambridge.redhat.com>.
5577
5578 2001-11-28  Bruno Haible  <bruno@clisp.org>
5579
5580         * locale/programs/simple-hash.c (lookup_2): Remove function.
5581         (insert_entry_2): Call lookup instead of lookup_2.
5582
5583 2001-03-04  Bruno Haible  <bruno@clisp.org>
5584
5585         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
5586
5587 2001-10-31  Bruno Haible  <bruno@clisp.org>
5588
5589         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
5590
5591 2001-03-21  Bruno Haible  <bruno@clisp.org>
5592
5593         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
5594         chokes on empty macro arguments.
5595         * intl/plural.y: Add #pragma for alloca on AIX 3.
5596
5597 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
5598
5599         * intl/dcigettext.c (guess_category_value): Only implement for
5600         glibc.  Otherwise rely on function _nl_locale_name which isn't
5601         present in the glibc sources.
5602
5603 2001-09-24  Bruno Haible  <bruno@clisp.org>
5604
5605         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
5606         transliteration when building on a glibc system but outside glibc.
5607
5608 2001-09-22  Bruno Haible  <bruno@clisp.org>
5609
5610         * intl/plural-eval.c: New file, extracted from dcigettext.c.
5611         * intl/dcigettext.c (plural_eval): Remove function, moved to
5612         intl/plural-eval.c.
5613         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
5614         Include plural-eval.c.
5615
5616 2001-09-22  Bruno Haible  <bruno@clisp.org>
5617
5618         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
5619         don't start with a digit; nplurals must be positive.
5620
5621 2001-09-02  Bruno Haible  <bruno@clisp.org>
5622
5623         * intl/plural-exp.h: New file, extracted from gettextP.h.
5624         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
5625         * intl/gettextP.h (struct expression, struct parse_args,
5626         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
5627         * intl/loadmsgcat.c: Include plural-exp.h.
5628         (PLURAL_PARSE): Move macro to plural-exp.h.
5629         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
5630         plural-exp.c.
5631         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
5632         EXTRACT_PLURAL_EXPRESSION.
5633         (_nl_unload_domain): Update.
5634         * intl/dcigettext.c: Include plural-exp.h.
5635         * intl/plural.y: Include plural-exp.h, not gettextP.h.
5636         (FREE_EXPRESSION): Move macro to plural-exp.h.
5637         * intl/Makefile (routines): Add plural-exp.
5638         (distribute): Add plural-exp.h.
5639
5640 2001-07-28  Bruno Haible  <bruno@clisp.org>
5641
5642         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
5643         isdigit, tolower argument to 'unsigned char'.
5644         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
5645         'unsigned char'.
5646         * intl/localealias.c (read_alias_file): Cast isspace argument to
5647         'unsigned char'.
5648
5649 2001-10-20  Bruno Haible  <bruno@clisp.org>
5650
5651         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
5652         anyway.)
5653         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
5654         with the variable 'index' in plural_lookup.
5655         * intl/l10nflist.c (strchr): Likewise.
5656         * intl/localealias.c (strchr): Likewise.
5657
5658         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
5659         * intl/bindtextdom.c: Likewise.
5660         * intl/dcigettext.c: Likewise.
5661         * intl/dgettext.c: Likewise.
5662         * intl/dngettext.c: Likewise.
5663         * intl/explodename.c: Likewise.
5664         * intl/finddomain.c: Likewise.
5665         * intl/gettext.c: Likewise.
5666         * intl/l10nflist.c: Likewise.
5667         * intl/loadmsgcat.c: Likewise.
5668         * intl/localealias.c: Likewise.
5669         * intl/ngettext.c: Likewise.
5670         * intl/textdomain.c: Likewise.
5671         * intl/gettext.h: Assume <limits.h> exists.
5672
5673 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
5674
5675         * stdio-common/Makefile (tests): Add scanf11.
5676         * stdio-common/scanf11.c: New file.
5677
5678 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
5679
5680         * version.h (RELEASE): Define as development.
5681         (VERSION): Set to 2.2.90.
5682
5683 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
5684
5685         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
5686         * nis/nss_nis/nis-grp.c: Likewise.
5687         * nis/nss_nisplus/nisplus-grp.c: Likewise.
5688
5689         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
5690         * nis/nss_nis/nis-pwd.c: Likewise.
5691         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
5692
5693         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
5694         * nis/nss_nisplus/nisplus-parser.c: Likewise.
5695         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5696
5697         * nscd/grpcache.c: Use strtoul instead of atol.
5698         * nscd/pwdcache.c: Likewise.
5699         * nss/getent.c: Likewise.
5700
5701 2001-11-27  Paul Eggert  <eggert@twinsun.com>
5702
5703         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5704         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5705
5706 2001-11-19  Bruno Haible  <bruno@clisp.org>
5707
5708         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
5709         90%.
5710         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
5711         improves the quality of the hash function, especially for short
5712         strings.
5713
5714 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
5715
5716         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
5717         are found call conv_error and not input_error [PR libc/2669].
5718
5719         * math/bits/mathcalls.h: Mark ceil and floor as const.
5720         Reported by David Mosberger.
5721
5722 2001-11-21  Jim Meyering  <meyering@lucent.com>
5723
5724         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
5725         Define to be __-prefixed.
5726         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
5727
5728 2001-11-26  Andreas Jaeger  <aj@suse.de>
5729
5730         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
5731         avoid warning.
5732
5733 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
5734
5735         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
5736         initialization.
5737
5738         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
5739         unused variables.  Fix threshold for returning 1.0.
5740
5741         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
5742         argument.
5743
5744         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
5745         remove unused variables.
5746
5747         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
5748
5749         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
5750         include local math header files.
5751
5752 2001-11-22  Andreas Jaeger  <aj@suse.de>
5753
5754         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
5755         avoid warning.
5756
5757 2001-11-21  Andreas Jaeger  <aj@suse.de>
5758
5759         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
5760
5761         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
5762         sys/debugreg.h
5763
5764 2001-11-15  Andreas Jaeger  <aj@suse.de>
5765
5766         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
5767         compilers that support it.
5768
5769         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
5770         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5771         * stdlib/stdlib.h: Likewise.
5772
5773 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
5774
5775         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
5776         statement with gotos.
5777         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
5778
5779 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
5780
5781         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
5782
5783 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
5784
5785         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
5786
5787 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
5788             H.J. Lu  <hjl@gnu.org>
5789
5790         * Versions.def (libc): Add GCC_3.0.
5791         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
5792         if gcc supports this flag.
5793         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
5794         (gcc3): Allow glibc to be compiled with gcc 3.x.
5795         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
5796         * config.make.in (static-libgcc, unwind-find-fde): Add.
5797         * Makerules (build-shlib-helper, build-module-helper): Use it.
5798         * scripts/versions.awk: Make sure GLIBC_ versions come first.
5799         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
5800         necessary.
5801         (_fini): Call __deregister_frame_info_bases if
5802         __register_frame_info_bases was used to register.
5803         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
5804         for GLIBC_2.0.
5805         (__register_frame_info_bases, __register_frame_info_table_bases,
5806         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
5807         * elf/Makefile (routines): Add unwind-dw2-fde.
5808         (shared-only-routines): Add unwind-dw2-fde.
5809         * sysdeps/alpha/gccframe.h: New file.
5810         * sysdeps/arm/gccframe.h: New file.
5811         * sysdeps/generic/framestate.c: New file.
5812         * sysdeps/generic/dwarf2.h: New file.
5813         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
5814         * sysdeps/generic/unwind-dw2-fde.c: New file.
5815         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
5816         * sysdeps/generic/unwind-dw2-fde.h: New file.
5817         * sysdeps/generic/unwind-dw2.c: New file.
5818         * sysdeps/generic/unwind-pe.h: New file.
5819         * sysdeps/generic/unwind.h: New file.
5820         * sysdeps/hppa/gccframe.h: New file.
5821         * sysdeps/i386/gccframe.h: New file.
5822         * sysdeps/m68k/gccframe.h: New file.
5823         * sysdeps/mips/gccframe.h: New file.
5824         * sysdeps/powerpc/gccframe.h: New file.
5825         * sysdeps/s390/gccframe.h: New file.
5826         * sysdeps/sh/gccframe.h: New file.
5827         * sysdeps/sparc/gccframe.h: New file.
5828         * sysdeps/vax/gccframe.h: New file.
5829         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5830         Set on all architectures except ia64.
5831         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
5832         for i386.
5833         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
5834         __deregister_frame_info): Move to elf/Versions.
5835         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
5836         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
5837         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
5838         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
5839         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
5840         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
5841         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5842         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5843         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
5844         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
5845         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5846         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5847         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5848         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5849         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5850         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5851         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5852         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5853
5854 2001-11-15  Jeff Law  <law@redhat.com>
5855
5856         * posix/regex.c (uintptr_t): Do not provide a definition if the
5857         system provided one.
5858
5859 2001-11-13  Roland McGrath  <roland@frob.com>
5860
5861         * stdio-common/tmpfile.c: Moved to ...
5862         * sysdeps/generic/tmpfile.c: ... here.
5863         * sysdeps/mach/hurd/tmpfile.c: New file.
5864
5865         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
5866         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
5867         (fopenport): Define as weak alias.
5868
5869         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
5870         * libio/libioP.h: ... to here.
5871
5872 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
5873
5874         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
5875         program header twice.  Construct list with the needed information.
5876
5877 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
5878
5879         * po/ca.po: Update from translation team.
5880
5881         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
5882         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
5883         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
5884         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5885
5886 2001-11-10  Andreas Jaeger  <aj@suse.de>
5887
5888         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
5889         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5890         Contributed by Stephen L Moshier <moshier@mediaone.net>.
5891
5892 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
5893
5894         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
5895         correctly.
5896         * elf/dl-load.c (is_dst): New function.
5897         (_dl_dst_count): Use is_dst to check for DST variable.
5898         (_dl_dst_substitute): Likewise.
5899
5900 2001-11-09  Roland McGrath  <roland@frob.com>
5901
5902         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
5903         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
5904         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
5905         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
5906         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
5907         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
5908         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
5909         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
5910         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
5911         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
5912         * sysdeps/mach/hurd/powerpc/Dist: New file.
5913
5914         * hurd/privports.c (__get_privileged_ports):
5915         Only contact the proc server if necessary for this call.
5916         Suggested by Neal H Walfield <neal@cs.uml.edu>.
5917         Check error return for mach_port_mod_refs.
5918
5919 2001-11-09  Andreas Schwab  <schwab@suse.de>
5920
5921         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
5922
5923 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
5924
5925         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
5926         object is always the last in the list.
5927         (_dl_map_object_from_fd): Delete code to remove from object list
5928         when DF_1_NOOPEN is seen.  This is done in lose.
5929
5930 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
5931
5932         * elf/dl-object.c (_dl_new_object): Various small optimizations.
5933
5934 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
5935
5936         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
5937         HWCAP_CHECK macro code.
5938
5939         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
5940         Now returns MAP_FAILED on error.
5941         * elf/rtld.c: Adjust caller.
5942         * sysdeps/generic/dl-cache.c: Likewise.
5943         * sysdeps/generic/ldsodefs.h: Adjust description.
5944
5945         * elf/dl-version.c (match_symbol): Optimize error handling for size.
5946         (_dl_check_map_versions): Likewise.
5947
5948 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
5949
5950         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
5951         _dl_signal_error directly, always use lose.  Set fd to -1 after
5952         file is closed.
5953         (lose): Don't call close if fd == -1.
5954
5955 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
5956
5957         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
5958          Also fix typo @code {mbsinit} to @code{mbsinit}.
5959
5960 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * elf/dl-profile.c: Replace state variable with simple flag named
5963         running.  Remove commented-out code.
5964
5965         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
5966         (_dl_init_paths): Likewise.
5967         (_dl_map_object_from_fd): Likewise.
5968         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
5969
5970 2001-11-06  Roland McGrath  <roland@frob.com>
5971
5972         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
5973         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
5974
5975         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
5976         sysdeps/powerpc/elf/sysdep.h.
5977         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
5978
5979 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
5980
5981         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
5982         speed.
5983         (process_envvars): Some more optimizations.
5984         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
5985
5986         * elf/elf.h: Add dynamic tag definitions for prelinking.
5987
5988         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
5989         Rewrite code to remove environment varables for SUID binaries.
5990         Small optimization in LD_PROFILE handling.
5991         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
5992         changes.
5993         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5994
5995         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
5996
5997         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
5998         strings.  Change type of second parameter.
5999         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
6000         for last change.
6001
6002         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
6003
6004 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6005
6006         * manual/string.texi: Fix typos.
6007         * manual/examples/argp-ex2.c: Likewise.
6008
6009 2001-11-05  Roland McGrath  <roland@frob.com>
6010
6011         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
6012         the more-specific unix/sysv/linux/powerpc file and breaks everything.
6013         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
6014         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
6015         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
6016         here, put under [__ELF__].
6017
6018 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * manual/charset.texi: Extensive editing work.
6021         * manual/nss.texi: Likewise.
6022         Changes by Dennis Grace <dgrace@us.ibm.com>.
6023
6024 2001-11-04  Roland McGrath  <roland@frob.com>
6025
6026         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
6027         parameter to dir_mkfile.
6028
6029 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
6030
6031         * string/bits/string2.h (__strndup): If n is smaller than len, set
6032         len to n + 1.
6033         * string/tester.c (test_strndup): New function.
6034         (main): Call it.
6035
6036 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
6037
6038         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
6039
6040         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
6041         * scripts/cpp: New file.
6042
6043         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
6044         for rtld_search_dirs content.  Minor optimizations.
6045
6046 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
6047
6048         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
6049         avoiding unnecessary duplication.
6050
6051 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
6052
6053         * elf/dl-load.c (_dl_map_object): If library was found using
6054         LD_LIBRARY_PATH, don't try RUNPATH list.
6055
6056 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6057
6058         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
6059         Correct second argument of register_dump call.
6060         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
6061         Likewise.
6062
6063 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
6064
6065         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
6066         modules.
6067         * iconvdata/TESTS: Likewise.
6068         * iconvdata/gconv-modules: Likewise.
6069         * iconvdata/ibm1132.c: New file.
6070         * iconvdata/ibm1132.h: New file.
6071         * iconvdata/ibm1133.c: New file.
6072         * iconvdata/ibm1133.h: New file.
6073         * iconvdata/ibm1162.c: New file.
6074         * iconvdata/ibm1162.h: New file.
6075         * iconvdata/testdata/IBM1132: New file.
6076         * iconvdata/testdata/IBM1132..UTF8: New file.
6077         * iconvdata/testdata/IBM1133: New file.
6078         * iconvdata/testdata/IBM1133..UTF8: New file.
6079         * iconvdata/testdata/IBM1162: New file.
6080         * iconvdata/testdata/IBM1162..UTF8: New file.
6081         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
6082
6083         * string/string.h: Fix typo in comment.
6084         * wcsmbs/wchar.h: Likewise.
6085
6086 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
6087
6088         * manual/getopt.texi (getopt_long, getopt_long_only): Include
6089         const in type of longopts parameter.
6090
6091 2001-10-29  Andreas Jaeger  <aj@suse.de>
6092
6093         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
6094
6095 2001-10-29  Kevin Ryde  <user42@zip.com.au>
6096
6097         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
6098         output, clarify `#' behaviour on 0.
6099         (Floating-Point Conversions): Clarify that %g only uses %e when
6100         the exponent would be greater than 1.
6101
6102 2001-10-28  Roland McGrath  <roland@frob.com>
6103
6104         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
6105         * sysdeps/mach/powerpc/machine-sp.h: New file.
6106         * sysdeps/mach/powerpc/sysdep.h: New file.
6107         * sysdeps/mach/powerpc/thread_state.h: New file.
6108
6109         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
6110         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
6111         expect to need the same thing on every platform.
6112
6113         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
6114         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
6115
6116         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
6117         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
6118         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
6119         Move all these assembly-related definitions to ...
6120         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6121
6122         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6123         by Peter Bruin <pjbruin@dds.nl>.
6124
6125         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6126         packing results for a `poll' call.
6127
6128 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
6129
6130         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6131         correctly.
6132         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6133         bracket expression.
6134
6135         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6136         nrules value.
6137         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
6138
6139 2001-10-24  H.J. Lu  <hjl@gnu.org>
6140
6141         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6142         Use __BEGIN_DECLS/__END_DECLS around prototypes.
6143         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6144
6145 2001-10-21  Jim Meyering  <meyering@lucent.com>
6146
6147         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
6148         this code would end up calling gettext even in packages built
6149         with --disable-nls.
6150         * posix/getopt.c (_): Likewise.
6151         * posix/regex.c (_): Likewise.
6152
6153 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
6154
6155         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6156         lookup not ip6.int.
6157         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6158         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6159
6160 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
6161
6162         * misc/sys/cdefs.h (__attribute_used__): Define.
6163         * elf/rtld.c (_dl_start): Add __attribute_used__.
6164         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6165
6166 2001-10-25  Andreas Schwab  <schwab@suse.de>
6167
6168         * stdlib/a64l.c: Expect least significant digit first.
6169         * stdlib/l64a.c: Produce least significant digit first.
6170         * stdlib/Makefile (tests): Add test-a64l.
6171         * stdlib/test-a64l.c: New file.
6172         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6173
6174 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
6175
6176         * po/sk.po: Update from translation team.
6177
6178 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
6179
6180         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6181
6182 2001-10-18  Andreas Schwab  <schwab@suse.de>
6183
6184         * math/libm-test.inc (print_ulps): Print ulp values rounded to
6185         next whole number.
6186         (print_function_ulps): Likewise.
6187         (print_complex_function_ulps): Likewise.
6188         (print_max_error): Likewise.
6189         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
6190
6191 2001-10-16  Andreas Schwab  <schwab@suse.de>
6192
6193         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6194         implementation.
6195
6196         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6197         BSD_SETJMP or BSD__SETJMP is defined, resp.
6198         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6199         a tail call to __sigsetjmp that would require extending the
6200         caller's frame.
6201         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6202         * sysdeps/m68k/bsd-setjmp.S: Deleted.
6203         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6204         Reported by Jes Sorensen <jes@trained-monkey.org>.
6205
6206 2001-10-16  Andreas Jaeger  <aj@suse.de>
6207
6208         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6209         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
6210         close PR libc/2589.
6211
6212 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
6213
6214         * po/ca.po: New file.  Contributed by the translation team.
6215
6216 2001-10-15  Ralf Baechle  <ralf@gnu.org>
6217
6218         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6219         a varargs prototype.  Remove dependency from kernel header files.
6220
6221         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6222         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6223
6224 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
6225
6226         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6227         to generate hexadecimal identifier.
6228         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6229
6230 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
6231
6232         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6233
6234 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
6235
6236         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6237         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6238         Contributed by Stephen L Moshier <moshier@mediaone.net>.
6239
6240         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6241         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6242         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6243         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6244         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6245         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6246
6247         * timezone/africa: Update from tzdata2001d.
6248         * timezone/asia: Likewise.
6249         * timezone/australasia: Likewise.
6250         * timezone/backward: Likewise.
6251         * timezone/europe: Likewise.
6252         * timezone/leapseconds: Likewise.
6253         * timezone/northamerica: Likewise.
6254         * timezone/southamerica: Likewise.
6255         * timezone/zone.tab: Likewise.
6256
6257 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6258
6259         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6260         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6261
6262 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
6263
6264         * elf/elf.h (PT_TLS): New definition.
6265
6266 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
6267
6268         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6269         bits/errno.h
6270
6271 2001-10-07  Roland McGrath  <roland@frob.com>
6272
6273         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6274
6275 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
6276
6277         * elf/elf.h: Add more ELFOSABI_* constants.
6278
6279 2001-10-04  Ben Collins  <bcollins@debian.org>
6280
6281         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6282         decleration of __need_wchar_t.
6283
6284 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
6285
6286         * string/bits/string2.h (__strsep_g): Add prototype.
6287         (__strsep): Use it.
6288         * string/Versions (__strsep): Remove.
6289         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6290
6291 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
6292
6293         * manua/llio.texi: Clarify file references added by mmap.
6294         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6295
6296 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
6297
6298         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6299         Add sc_loadrs and sc_rbs_bas to match current kernel.
6300
6301 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
6302
6303         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6304
6305         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6306
6307 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
6308
6309         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6310         object has been bumped because of relocation dependency, avoid
6311         duplicates in l_scope.
6312         (show_scope): Fix typos.
6313         * elf/Makefile: Add rules to build and run reldep6.
6314         * elf/reldep6.c: New file.
6315         * elf/reldep6mod0.c: New file.
6316         * elf/reldep6mod1.c: New file.
6317         * elf/reldep6mod2.c: New file.
6318         * elf/reldep6mod3.c: New file.
6319         * elf/reldep6mod4.c: New file.
6320
6321 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
6322
6323         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6324         sparc64_fixup_plt.
6325         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
6326         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6327         for non-lazy binding. Fix .plt[32768+] handling.
6328         (elf_machine_plt_value): Don't add addend.
6329         (elf_machine_rela): Call sparc64_fixup_plt instead of
6330         elf_machine_fixup_plt.
6331         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6332         dynamic linker at 0xfffff800XXXXXXXX.
6333
6334         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6335
6336 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
6337
6338         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6339
6340 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
6341
6342         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6343         declare __cmsg_data field if its size would be bigger than 0.
6344         (CMSG_DATA): Adjust accordingly.
6345         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6346         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6347         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6348         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6349         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6350         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6351         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6352
6353 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
6354
6355         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6356         * iconvdata/testdata/IBM1160: New file.
6357         * iconvdata/testdata/IBM1160..UTF8: New file.
6358         * iconvdata/testdata/IBM1161: New file.
6359         * iconvdata/testdata/IBM1161..UTF8: New file.
6360         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6361
6362 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
6363
6364         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6365         UL_SETFSIZE computations better.
6366
6367         * rt/Makefile: Remove use of filter for librt again.
6368
6369         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
6370         UL_SETFSIZE computations better.
6371
6372         * string/Versions: Export __strsep for GLIBC_2.2.5.
6373         * string/bits/string2.h: Define all __STRING_INLINE functions if
6374         _FORCE_INLINES is defined.
6375         Use int instead of char of parameter types.
6376         (__strsep): Don't use __strsep_g.  Don't define it.
6377         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
6378         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
6379         __strcpy_small.
6380         (__stpcpy_a_small): Renamed from __stpcpy_small.
6381         (__strcspn_c1): Don't define if _FORCE_INLINES.
6382         (__strspn_c1): Likewise.
6383
6384 2001-09-22  Ben Collins  <bcollins@debian.org>
6385
6386         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
6387         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
6388         * sysdeps/ia64/bits/sigaction.h: Likewise.
6389         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
6390
6391 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
6392
6393         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
6394
6395 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
6396
6397         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
6398
6399 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
6400
6401         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
6402
6403 2001-09-20  H.J. Lu  <hjl@gnu.org>
6404
6405         * include/dlfcn.h (__RTLD_SPROF): New definiton.
6406         * elf/dl-open.c (dl_open_worker): Return immediately after loading
6407         for __RTLD_SPROF.
6408         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
6409         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
6410
6411 2001-09-20  H.J. Lu  <hjl@gnu.org>
6412
6413         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
6414         don't add 1.
6415
6416 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
6417
6418         * nss/getent.c: Accept -s parameter to overwrite rules in
6419         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
6420
6421         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
6422         with as many ".0" as necessary to form a complete address
6423         inet_network understands.
6424
6425         * nss/getent.c: Various cleanups.  Use simpler and fewer function
6426         calls.
6427
6428 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6429
6430         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
6431         _JMPBUF_UNWINDS.
6432         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
6433
6434 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
6435
6436         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
6437         IBM1161.
6438         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
6439         * iconvdata/ibm1160.c: New file.
6440         * iconvdata/ibm1160.h: New file.
6441         * iconvdata/ibm1161.c: New file.
6442         * iconvdata/ibm1161.h: New file.
6443         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6444
6445 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
6446
6447         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
6448         difference between base address and first PT_LOAD's virtual address,
6449         not the base address.
6450
6451 2001-09-11  Tom Rix  <trix@redhat.com>
6452
6453         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
6454         ifdef for __getopt_clean_environment.
6455         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
6456
6457 2001-09-22  Andreas Jaeger  <aj@suse.de>
6458
6459         * elf/reldep4.c (main): Add proper prototype to fix warning.
6460
6461         * elf/reldep5.c (main): Remove unused variable.
6462
6463         * math/math_private.h: Add prototypes.
6464
6465 2001-09-21  Andreas Jaeger  <aj@suse.de>
6466
6467         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
6468         * sysdeps/x86_64/Dist: New file.
6469         * sysdeps/x86_64/soft-fp/Dist: New file.
6470
6471         * sysdeps/gnu/Dist: Remove eval.c.
6472
6473 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
6474
6475         * malloc/memusage.c (realloc): Don't count already allocated
6476         memory in the sums.
6477         (me): Always use dlsym() to find the real implementations.
6478
6479         * malloc/memusage.sh: Make -n option actually do something.
6480
6481 2001-09-20  Andreas Jaeger  <aj@suse.de>
6482
6483         * elf/elf.h (R_390_NUM): Correct value.
6484
6485         * Versions.def: Add missing versions 2.2.3 for libthread_db and
6486         libpthread.
6487
6488         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
6489         for x86-64, install x86-64 into */lib64.
6490
6491         * shlib-versions: Add x86-64.
6492
6493         * elf/elf.h: Add x86-64 relocations.
6494
6495 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
6496
6497         * po/fr.po: Update from translation team.
6498
6499 2001-09-19  Andreas Jaeger  <aj@suse.de>
6500
6501         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6502         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
6503         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
6504         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
6505         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
6506         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
6507         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
6508         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
6509         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
6510         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6511         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
6512         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
6513         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
6514         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
6515         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
6516         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
6517         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
6518         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
6519         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
6520         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
6521         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
6522         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
6523         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
6524         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
6525         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
6526         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
6527         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
6528         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
6529         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
6530         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
6531         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
6532         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
6533         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
6534         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
6535         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
6536         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
6537         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
6538         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
6539         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
6540         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
6541         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
6542         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
6543         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
6544         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
6545         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
6546         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
6547         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
6548         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
6549         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
6550         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
6551         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
6552         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6553         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
6554         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
6555         * sysdeps/unix/x86_64/sysdep.S: New file.
6556         * sysdeps/unix/x86_64/sysdep.h: New file.
6557         * sysdeps/x86_64/Implies: New file.
6558         * sysdeps/x86_64/Makefile: New file.
6559         * sysdeps/x86_64/Versions: New file.
6560         * sysdeps/x86_64/__longjmp.S: New file.
6561         * sysdeps/x86_64/abort-instr.h: New file.
6562         * sysdeps/x86_64/atomicity.h: New file.
6563         * sysdeps/x86_64/bits/endian.h: New file.
6564         * sysdeps/x86_64/bits/setjmp.h: New file.
6565         * sysdeps/x86_64/bits/string.h: New file.
6566         * sysdeps/x86_64/bp-asm.h: New file.
6567         * sysdeps/x86_64/bsd-_setjmp.S: New file.
6568         * sysdeps/x86_64/bsd-setjmp.S: New file.
6569         * sysdeps/x86_64/dl-machine.h: New file.
6570         * sysdeps/x86_64/elf/initfini.c: New file.
6571         * sysdeps/x86_64/elf/start.S: New file.
6572         * sysdeps/x86_64/ffs.c: New file.
6573         * sysdeps/x86_64/ffsll.c: New file.
6574         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
6575         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
6576         * sysdeps/x86_64/fpu/e_acosl.c: New file.
6577         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
6578         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
6579         * sysdeps/x86_64/fpu/e_expl.c: New file.
6580         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
6581         * sysdeps/x86_64/fpu/e_log10l.S: New file.
6582         * sysdeps/x86_64/fpu/e_log2l.S: New file.
6583         * sysdeps/x86_64/fpu/e_logl.S: New file.
6584         * sysdeps/x86_64/fpu/e_powl.S: New file.
6585         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
6586         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
6587         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
6588         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
6589         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
6590         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
6591         * sysdeps/x86_64/fpu/fegetenv.c: New file.
6592         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
6593         * sysdeps/x86_64/fpu/fegetround.c: New file.
6594         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
6595         * sysdeps/x86_64/fpu/fesetenv.c: New file.
6596         * sysdeps/x86_64/fpu/fesetround.c: New file.
6597         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
6598         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
6599         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
6600         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
6601         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
6602         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
6603         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
6604         * sysdeps/x86_64/fpu/s_atanl.c: New file.
6605         * sysdeps/x86_64/fpu/s_cosl.S: New file.
6606         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
6607         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
6608         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
6609         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
6610         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
6611         * sysdeps/x86_64/fpu/s_logbl.c: New file.
6612         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
6613         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
6614         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
6615         * sysdeps/x86_64/fpu/s_rintl.c: New file.
6616         * sysdeps/x86_64/fpu/s_significandl.c: New file.
6617         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
6618         * sysdeps/x86_64/fpu/s_sinl.S: New file.
6619         * sysdeps/x86_64/fpu/s_tanl.S: New file.
6620         * sysdeps/x86_64/gmp-mparam.h: New file.
6621         * sysdeps/x86_64/hp-timing.c: New file.
6622         * sysdeps/x86_64/hp-timing.h: New file.
6623         * sysdeps/x86_64/htonl.S: New file.
6624         * sysdeps/x86_64/memusage.h: New file.
6625         * sysdeps/x86_64/setjmp.S: New file.
6626         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
6627         * sysdeps/x86_64/stackinfo.h: New file.
6628         * sysdeps/x86_64/sysdep.h: New file.
6629         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
6630
6631         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
6632         L Moshier.
6633
6634 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
6635
6636         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
6637         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
6638
6639 2001-09-18  Andreas Schwab  <schwab@suse.de>
6640
6641         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
6642         list, now that l_scope is a pointer.
6643
6644         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
6645         scope list.
6646
6647 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6648
6649         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
6650         (elf_machine_rela_relative): Add a missing declaration.
6651
6652 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
6653
6654         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
6655         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
6656         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
6657         ldd-rewrite scripts.
6658
6659 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
6660
6661         * elf/ldd.bash.in: Update copyright message.
6662
6663 2001-09-17  H.J. Lu  <hjl@gnu.org>
6664
6665         * hurd/hurdmalloc.c (bcopy): Removed.
6666         (realloc): Replace bcopy with memcpy.
6667         * hurd/path-lookup.c (file_name_path_scan): Likewise.
6668         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
6669         * sunrpc/rpcinfo.c (pmapdump): Likewise.
6670
6671         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
6672         (gethostbyaddr): Likewise.
6673         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
6674
6675 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
6676
6677         * sysdeps/gnu/eval.c: Removed.
6678
6679 2001-09-18  Andreas Jaeger  <aj@suse.de>
6680
6681         * sysdeps/i386/fpu/s_logbl.S: Move to ...
6682         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
6683
6684         * sysdeps/i386/fpu/s_rintl.S: Move to ...
6685         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
6686
6687         * sysdeps/i386/fpu/s_significandl.S: Move to ...
6688         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
6689
6690 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
6691
6692         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6693         nrules value.
6694
6695 2001-09-14  H.J. Lu  <hjl@gnu.org>
6696
6697         * sysdeps/mips/fpu/libm-test-ulps: Updated.
6698
6699 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
6700
6701         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
6702         Patch by Florian La Roche <laroche@redhat.com>.
6703
6704         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
6705
6706         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
6707         ETHER_CRC_LEN.
6708
6709 2001-09-14  Andreas Schwab  <schwab@suse.de>
6710
6711         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
6712         Sumner <bls@sgi.com>.
6713         * posix/execlp.c: Likewise.
6714
6715 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
6716
6717         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
6718         is already found earlier in the search scope.
6719
6720 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
6721
6722         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
6723         filter.
6724
6725 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
6726
6727         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
6728
6729 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
6730
6731         * config.h.in: Enforce optimization to be used.
6732         * Makeconfig (preprocess-versions): Define ASSEMBLER.
6733         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6734         * posix/Makefile (annexc-CFLAGS): Define to -O.
6735         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
6736
6737 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
6738
6739         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
6740         Patch by Stephan Kulow.
6741
6742 2001-09-08  Ben Collins  <bcollins@debian.org>
6743
6744         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
6745         usage of RESOLVE() (r_type, not reloc->r_type).
6746
6747 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
6748
6749         * elf/dl-object.c: Avoid allocating extra memory block for name.
6750         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
6751         allocated separately.
6752         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6753
6754 2001-09-08  H.J. Lu  <hjl@gnu.org>
6755
6756         * po/zh_TW.po: Fix a typo.
6757
6758 2001-09-07  Tom Rix  <trix@redhat.com>
6759
6760         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
6761
6762 2001-08-26  Tom Rix  <trix@redhat.com>
6763
6764         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
6765         command line options.
6766         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
6767         * sysdeps/unix/sysv/aix/start.c: Removed.
6768         * sysdeps/unix/sysv/aix/start-libc.c: New file.
6769         * sysdeps/unix/sysv/aix/init-first.c: New file.
6770         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
6771
6772 2001-09-08  Ben Collins  <bcollins@debian.org>
6773
6774         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
6775         * sysdeps/generic/dl-machine.h: Likewise.
6776         * sysdeps/hppa/dl-fptr.c: Likewise.
6777         * sysdeps/ia64/dl-fptr.c: Likewise.
6778         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6779         * sysdeps/mips/dl-machine.h: Likewise.
6780         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6781         * sysdeps/powerpc/dl-machine.c: Likewise.
6782
6783 2001-09-07  Ben Collins  <bcollins@debian.org>
6784
6785         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
6786
6787         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
6788
6789 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
6790
6791         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
6792         dependencies if necessary.
6793
6794         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
6795         loaded directly) determine length if l_initfini list by iterating
6796         over its elements.  Minor optimizations.
6797         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
6798         for dependency objects.
6799         If object was already loaded check whether any of the dependencies
6800         is already on the relocation dependency list.  If yes, remove the
6801         latter.  Minor optimizations.
6802         * elf/dl-lookup.c (add_dependency): Add check for self reference of
6803         maps here.  Search l_initfini list only if the object was loaded
6804         directly and not only as a dependency.
6805         (_dl_lookup_symbol): Add relocation dependency also if object
6806         is not in global scope.  Remove test for self-reference here.
6807         (_dl_lookup_versioned_symbol): Likewise.
6808         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
6809         element of first name record.
6810         * elf/loadtest.c: Add some more test to recognize early if an object
6811         wasn't unloaded.
6812         * elf/Makefile: Add rules to build and run reldep5.
6813         * elf/reldep5.c: New file.
6814         * elf/reldepmod5.c: New file.
6815         * elf/reldepmod6.c: New file.
6816
6817         * elf/reldep2.c: Fix typo.
6818
6819 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
6820
6821         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
6822         elements.  Change l_scope to be a pointer only.
6823         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
6824         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
6825         here add searchlist of newly open file to the dependency's scope.
6826         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
6827         only searchlist from its scope.  Free own scope array if necessary.
6828         * elf/Makefile (tests): Add dblload and dblunload now.
6829
6830 2001-09-06  Andreas Jaeger  <aj@suse.de>
6831
6832         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
6833         Stephen L Moshier.
6834
6835 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
6836
6837         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
6838         they both fail.
6839         * elf/dblload.c: New file.
6840         * elf/dblloadmod1.c: New file.
6841         * elf/dblloadmod2.c: New file.
6842         * elf/dblloadmod3.c: New file.
6843         * elf/dblunload.c: New file.
6844
6845 2001-09-04  Richard Henderson  <rth@redhat.com>
6846
6847         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
6848         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
6849
6850 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
6851
6852         Correct very misleading message for error in failed runtime relocation.
6853         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
6854         place of the error.
6855         (_dl_signal_cerror): Likewise.
6856         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6857         * elf/dl-close.c: Likewise.
6858         * elf/dl-deps.c: Likewise.
6859         * elf/dl-load.c: Likewise.
6860         * elf/dl-lookup.c: Likewise.
6861         * elf/dl-open.c: Likewise.
6862         * elf/dl-reloc.c: Likewise.
6863         * elf/dl-sym.c: Likewise.
6864         * elf/dl-version.c: Likewise.
6865         * sysdeps/generic/dl-sysdep.c: Likewise.
6866
6867 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
6868
6869         * iconv/strtab.c (strtabinit): Initialize null Strent.
6870         (newstring): Move len == 0 handling...
6871         (strtabadd): ...here.
6872         If len == 1, return null Strent.
6873         When inserting a suffix of an existing string, check if
6874         it is not equal to some suffix already recorded.
6875         Copy left and right members over if adding longer string.
6876
6877 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
6878
6879         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
6880
6881         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
6882         (__syscall_gethostname): Add prototype.
6883
6884 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
6885
6886         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
6887
6888 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
6889
6890         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
6891
6892 2001-08-27  Roland McGrath  <roland@frob.com>
6893
6894         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
6895         short, copy that much into NAME anyway before returning error.
6896
6897 2001-09-01  Richard Henderson  <rth@redhat.com>
6898
6899         * sysdeps/alpha/elf/Dist: Remove file.
6900         * sysdeps/alpha/elf/Makefile: Remove file.
6901         * sysdeps/alpha/elf/crtbegin.S: Remove file.
6902         * sysdeps/alpha/elf/crtend.S: Remove file.
6903         * sysdeps/alpha/elf/initfini.c: New file.
6904
6905 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
6906
6907         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
6908         * iconv/tst-iconv3.c: Likewise.
6909
6910 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
6911
6912         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
6913
6914 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
6915
6916         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
6917         export it.
6918         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
6919         * iconv/iconv_prog.c (insert_cache): New function.
6920         (print_known_names): If cache is used call insert_cache to use the
6921         information from the cache [PR libc/2509].
6922
6923 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
6924
6925         * time/strptime.c (strptime_internal): Recognize 'l' format and
6926         handle it like 'I' for symmetry with strftime.
6927
6928 2001-08-31  Richard Henderson  <rth@redhat.com>
6929
6930         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
6931         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
6932         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
6933         (print_statistics): Make scalar unsigned long long.
6934         * sysdeps/alpha/hp-timing.h: New file.
6935
6936 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
6937
6938         * stdio-common/perror.c (perror): Save errno early, pass it
6939         down to perror_internal.
6940         (perror_internal): Add errnum argument.
6941
6942 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
6943
6944         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
6945         Don't add old memory content for R_ALPHA_REFQUAD.
6946
6947 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
6948
6949         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
6950         memory correctly.
6951
6952         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
6953         instead of open, __close instead of close, __getpagesize instead
6954         of getpagesize.
6955
6956         * string/argz-stringify.c (__argz_stringify): Use __strnlen
6957         instead of strnlen.
6958         * include/string.h (strndupa): Redefine here to use __strnlen
6959         instead of strnlen.
6960         * string/strndup.c (__strndup): Use __strnlen not strnlen.
6961
6962         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
6963         connected).
6964
6965 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
6966
6967         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
6968         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
6969         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
6970         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
6971         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
6972         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
6973         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
6974
6975 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
6976
6977         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
6978
6979 2001-08-30  Andreas Jaeger  <aj@suse.de>
6980
6981         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
6982         contributed Stephen L Moshier.
6983
6984 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
6985
6986         * sunrpc/etc.rpc (sgi_fam): Add.
6987
6988 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
6989
6990         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
6991
6992 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
6993
6994         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
6995         first is from a previous call.
6996         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
6997
6998 2001-08-29  Andreas Schwab  <schwab@suse.de>
6999
7000         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7001
7002 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7003
7004         * config.make.in (INSTALL_SCRIPT): Define.
7005         * Makeconfig (INSTALL_SCRIPT): Define.
7006         * Makerules (do-install-script): New macro to install scripts using
7007         INSTALL_SCRIPT.
7008         (install-bin-script): New rule to install scripts with
7009         do-install-script.
7010         (install-bin-script-nosubdir): New rule.
7011         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
7012         (distinfo-vars): Add $(install-bin-script).
7013         * Rules (others): Likewise.
7014         * Makefile (glibcbug): Install with install-bin-script.
7015         * debug/Makefile (xtrace): Likewise.
7016         (catchsegv): Likewise.
7017         * elf/Makefile (ldd): Likewise.
7018         * malloc/Makefile (mtrace): Likewise.
7019         * timezone/Makefile (tzselect): Likewise.
7020
7021 2001-08-29  H.J. Lu  <hjl@gnu.org>
7022
7023         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
7024         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
7025         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
7026
7027 2001-08-29  Andreas Schwab  <schwab@suse.de>
7028
7029         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
7030
7031 2001-08-28  H.J. Lu  <hjl@gnu.org>
7032
7033         * Makeconfig (combreloc-LDFLAGS): New variable.
7034         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
7035         * config.make.in (have-z-combreloc): New variable.
7036         * configure.in: Substitute libc_cv_z_combreloc.
7037
7038 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
7039
7040         * po/sv.po: Update from translation team.
7041         * po/fr.po: Likewise.
7042         * po/da.po: Likewise.
7043
7044 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7045
7046         * Makerules: Fix a typo: MD% -> MD5.
7047
7048 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
7049
7050         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
7051         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
7052
7053 2001-08-28  Andreas Jaeger  <aj@suse.de>
7054
7055         * manual/libc-texinfo.sh: Add entry about free manuals.
7056
7057         * manual/contrib.texi (Contributors): Fix cross reference.
7058
7059         * manual/libc.texinfo (Copying): Include freemanuals.
7060
7061         * manual/Makefile (appendices): Add freemanuals.
7062
7063         * manual/freemanuals.texi: New file.
7064         Patch by Brian Youmans <3diff@gnu.org>.
7065
7066         * manual/libm-err-tab.pl: Pretty print more platforms, print a
7067         smaller table.
7068
7069         * manual/math.texi (Errors in Math Functions): Fix grammar, start
7070         table on separate page.
7071         Patch by Brian Youmans <3diff@gnu.org>.
7072
7073 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
7074
7075         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
7076         the connection went down after we first used it try to connect
7077         again and resend the message before printing to the console.
7078         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
7079
7080 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
7081
7082         * string/tst-strlen.c (main): Test strnlen (, -1) too.
7083         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
7084         bit set.
7085
7086 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
7087
7088         * iconv/strtab.c (searchstring): Use correct length for comparison.
7089         (strtabadd): Account total size correct if new string has old string as
7090         substring.
7091
7092 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
7093
7094         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
7095
7096 2001-08-27  Andreas Jaeger  <aj@suse.de>
7097
7098         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
7099
7100         * math/libm-test.inc (j0_test): Add extra tests.
7101         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
7102         not x, in Hankel approximation.
7103         Patches by Stephen L Moshier.
7104
7105 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7106
7107         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
7108         link_map.
7109
7110         * configure.in: Fix test for .rela.dyn section.
7111
7112         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7113
7114 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
7115
7116         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
7117         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
7118         Pass type_class to _dl_lookup_*.
7119         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
7120         Pass around just type_class instead of noexec, noplt pair.
7121         (_dl_lookup_versioned_symbol): Likewise.
7122         (_dl_lookup_symbol_skip): Pass around just type_class instead of
7123         noexec, noplt pair.
7124         (_dl_lookup_versioned_symbol_skip): Likewise.
7125         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7126         * elf/do-lookup.h (do_lookup): Likewise.
7127         * include/link.h (struct link_map): Replace noexec and noplt fields
7128         in l_lookup_cache with type_class field.
7129         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7130         ELF_RTYPE_CLASS_COPY): Define.
7131         Adjust prototypes for _dl_lookup_symbol and
7132         _dl_lookup_versioned_symbol.
7133         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7134         elf_machine_lookup_noexec_p): Remove.
7135         (elf_machine_type_class): Define.
7136         * sysdeps/arm/dl-machine.h: Likewise.
7137         * sysdeps/hppa/dl-machine.h: Likewise.
7138         * sysdeps/cris/dl-machine.h: Likewise.
7139         * sysdeps/i386/dl-machine.h: Likewise.
7140         * sysdeps/ia64/dl-machine.h: Likewise.
7141         * sysdeps/m68k/dl-machine.h: Likewise.
7142         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7143         * sysdeps/mips/dl-machine.h: Likewise.
7144         * sysdeps/powerpc/dl-machine.h: Likewise.
7145         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7146         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7147         * sysdeps/sh/dl-machine.h: Likewise.
7148         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7149         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7150
7151 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7152
7153         * manual/message.texi (Advanced gettext functions): Change
7154         description of plural forms for Slovak.
7155         Reported by Marcel Telka <marcel@telka.sk>.
7156
7157         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7158         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7159
7160 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
7161
7162         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7163         typo.  Patch by Florian La Roche <laroche@redhat.com>.
7164
7165 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7166
7167         * include/link.h (struct link_map): Add l_lookup_cache element.
7168         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7169         (RESOLVE_MAP): Likewise.
7170         (_dl_relocate_object): Remove cache initialization.
7171         * elf/dl-lookup.c: Rip out cache handling code.
7172         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7173         declarations.
7174
7175         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7176         remove some __builtin_expect.
7177         (_dl_lookup_versioned_symbol): Likewise.
7178
7179         * config.h.in: Add HAVE_Z_COMBRELOC.
7180         * configure.in: Add test for -z combreloc.
7181
7182         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7183         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
7184         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
7185         case to almost no code.
7186
7187 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
7188
7189         * po/tr.po: Update from translation team.
7190
7191 2001-08-24  Andreas Jaeger  <aj@suse.de>
7192
7193         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7194         make clean works.
7195
7196 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7197
7198         * elf/rtld.c (print_statistics): Printf % after percent values.
7199         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7200
7201         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7202         don't have to compute the hash value and initialize current_value.
7203         Move reference_name variable to where it is needed.
7204         (_dl_lookup_versioned_symbol): Likewise.
7205
7206 2001-08-24  Roland McGrath  <roland@frob.com>
7207
7208         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7209         Just test that strerror returns non-null for a few errno codes.
7210
7211 2001-08-23  Roland McGrath  <roland@frob.com>
7212
7213         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7214         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7215
7216         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7217
7218         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7219         __mach_reply_port.
7220
7221 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7222
7223         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7224         returns NULL.
7225
7226         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7227         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7228         doesn't do it.
7229         * elf/rtld.c: Include <sys/param.h>.
7230         * elf/dl-reloc.c: Likewise.
7231
7232 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7233
7234         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7235         empty to prevent junk from being generated.
7236         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7237
7238 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
7239
7240         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7241         records.  Rename endrel to relative, initialize it to r, and use it
7242         in elf_machine_rel_relative calls.  Point r after relative relocs.
7243
7244 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7245
7246         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7247         of R_386_NONE.
7248
7249 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
7250
7251         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7252         necessary.  Undefine newly defined macros at the end.
7253         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7254         Rename from elf_machine_rel_relative.
7255         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7256         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7257         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7258         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7259         Likewise.
7260         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7261         Likewise.
7262         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7263         Fix argument types.
7264         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7265         Fix argument types.
7266         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7267         Likewise.  Fix argument types.
7268         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7269         Likewise.  Fix argument types.
7270         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7271         Fix argument types.
7272         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7273         ElfW(Rel) in argument.
7274         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7275         function.
7276
7277 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
7278
7279         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7280
7281 2001-08-24  Andreas Jaeger  <aj@suse.de>
7282
7283         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7284         Stephen L Moshier <moshier@mediaone.net>.
7285
7286 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7287
7288         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7289         first if RELCOUNT is set.
7290
7291         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7292         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7293         elf_machine_rel_relative.
7294         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7295         Minor optimizations.
7296         * sysdeps/arm/dl-machine.h: Likewise.
7297         * sysdeps/cris/dl-machine.h: Likewise.
7298         * sysdeps/hppa/dl-machine.h: Likewise.
7299         * sysdeps/i386/dl-machine.h: Likewise.
7300         * sysdeps/ia64/dl-machine.h: Likewise.
7301         * sysdeps/m68k/dl-machine.h: Likewise.
7302         * sysdeps/mips/dl-machine.h: Likewise.
7303         * sysdeps/powerpc/dl-machine.h: Likewise.
7304         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7305         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7306         * sysdeps/sh/dl-machine.h: Likewise.
7307         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7308         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7309
7310 2001-08-23  Roland McGrath  <roland@frob.com>
7311
7312         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7313
7314         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7315         sysdeps/mach version.  Implement counting ("recursive") mutexes
7316         on top of cthreads mutexes.
7317         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7318
7319         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7320         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7321         (__libc_cleanup_region_start, __libc_cleanup_region_end,
7322         __libc_clean_end): Define these to call the cleanup function after
7323         normal exit when they're supposed to.
7324
7325         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7326         Take new first arg DOIT, a boolean saying whether to really install
7327         any cleanup handler.
7328         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7329         (__libc_cleanup_end): Likewise.
7330         * sysdeps/generic/bits/libc-lock.h: Same changes.
7331         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7332         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7333         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7334         Likewise.
7335         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7336         * sysdeps/generic/bits/stdio-lock.h
7337         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7338
7339 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
7340
7341         * elf/ldconfig.c (search_dir): Remove stale symlinks.
7342
7343 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
7344
7345         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7346         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7347         lookups in cache.
7348         (_dl_lookup_versioned_symbol): Likewise.
7349         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7350         relocation lookup.
7351         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7352         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7353         (lookup_cache, lookup_cache_versioned): Add declarations.
7354
7355 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
7356
7357         * stdlib/tst-random.c (main): Swap parameters in fail call.
7358         Patch by Pete Bevin <pete@petebevin.com>.
7359
7360 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
7361
7362         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7363
7364 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
7365
7366         * malloc/obstack.c: Indent preprocessor directives.
7367         Patch by Jim Meyering <meyering@ascend.com>.
7368
7369         * po/ja.po: Update from translation team.
7370
7371 2001-08-23  Roland McGrath  <roland@frob.com>
7372
7373         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
7374
7375         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
7376         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
7377
7378 2001-08-22  Roland McGrath  <roland@frob.com>
7379
7380         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
7381         __libc_lock_define_recursive.
7382         * elf/dl-open.c: Don't declare it here any more.
7383         * elf/dl-close.c: Likewise.
7384         * elf/dl-lookup.c: Likewise.
7385         * elf/dl-iteratephdr.c: Likewise.
7386         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
7387         __libc_lock_unlock_recursive.
7388         * elf/dl-close.c (_dl_close): Likewise
7389         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
7390         * elf/dl-open.c (_dl_open): Likewise
7391
7392         * sysdeps/generic/bits/libc-lock.h
7393         (__libc_lock_define_recursive): New macro.
7394         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
7395         (_IO_lock_lock): Use __libc_lock_lock_recursive.
7396         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
7397
7398         * conform/conformtest.pl (checknamespace): Sort the output list.
7399
7400         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
7401         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
7402         definitions conditional on [__USE_XOPEN].
7403
7404         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
7405         these unconditionally, not only use [__USE_BSD], so as to match
7406         the sysdeps/unix/sysv/linux files.
7407
7408 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
7409
7410         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
7411         avoid warnings.
7412
7413         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
7414         DL_LOOKUP_ADDRESS.
7415
7416 2001-08-22  Roland McGrath  <roland@frob.com>
7417
7418         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
7419         conditionalization of sa_handler/sa_sigaction member types to
7420         match the sysdeps/unix/sysv/linux file.
7421
7422 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
7423
7424         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
7425         symbol sizes a bit better.
7426
7427         * sysdeps/ia64/strncpy.S: Complete rewrite.
7428         Contributed by Jakub Jelinek <jakub@redhat.com>.
7429
7430         * string/stratcliff.c (main): Add strncpy test.
7431
7432 2001-08-22  Roland McGrath  <roland@frob.com>
7433
7434         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
7435         and don't declare unsetenv or _environ directly.
7436         (unsetenv): Return int, not void.  Use __environ instead of _environ.
7437
7438 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
7439
7440         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
7441         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
7442         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
7443         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7444         test for cmsg struct size.
7445
7446 2001-04-23  Paul Eggert  <eggert@twinsun.com>
7447
7448         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
7449         Rename __argc to ___argc in prototypes to avoid compatibility
7450         problems with systems that reserve the identifier "__argc".
7451         Similarly for __argv.
7452
7453 2001-08-21  Roland McGrath  <roland@frob.com>
7454
7455         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
7456
7457         * mach/Makefile (tests): Removed.
7458         * mach/hello.c: File removed.
7459
7460 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
7461
7462         * po/sv.po: Update from translation team.
7463
7464         * stdio-common/vfscanf.c: Fix handling of %l[].
7465         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
7466
7467         * libio/Makefile (tests): Add tst-sscanf.
7468         * libio/tst-sscanf.c: New file.
7469
7470         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
7471         * malloc/mtrace.c (tr_where): dli_sname always points to a
7472         non-empty string if != NULL.
7473         Reported by Tim Janik <timj@gtk.org>.
7474
7475 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
7476
7477         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
7478         buf.  Free resources on failure.
7479         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
7480         (makefd_xprt): Likewise.
7481         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7482         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
7483         * sunrpc/auth_unix.c (authunix_create): Likewise.
7484
7485 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
7486
7487         * string/strnlen.c: Remove.
7488         * sysdeps/generic/strnlen.c: New file.
7489         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
7490
7491 2001-08-21  Roland McGrath  <roland@frob.com>
7492
7493         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
7494         as a macro, not an extern inline function.
7495
7496         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
7497         * Versions.def (libc): Add GLIBC_2.2.5 set.
7498         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
7499         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
7500
7501 2001-08-20  Roland McGrath  <roland@frob.com>
7502
7503         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
7504         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
7505
7506 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
7507
7508         * string/bits/string2.h: Remove strnlen optimization here.
7509         * sysdeps/i386/i486/bits/string.h: Add it here.
7510
7511 2001-08-21  Wolfram Gloger  <wg@malloc.de>
7512
7513         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
7514
7515 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
7516
7517         * po/gl.po: Update from translation team.
7518
7519 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
7520
7521         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
7522         * misc/err.c (convert_and_print): Likewise.
7523
7524         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
7525         function calls.
7526
7527 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7528
7529         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
7530         change of the gregset_t type.
7531         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7532
7533 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7534
7535         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
7536
7537 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
7538
7539         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
7540
7541         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
7542
7543 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
7544
7545         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
7546         before calling the cthreads initialization code.
7547
7548 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
7549
7550         * argp/argp-help.c: Fix two problems introduced in last change.
7551
7552         * include/dirent.h: Include <dirstream.h> first.
7553
7554 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
7555
7556         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
7557
7558         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
7559         * sunrpc/xdr_rec.c: Likewise.
7560         * sunrpc/xdr_mem.c: Likewise.
7561         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
7562         * sunrpc/rpc_cmsg.c: Likewise.
7563         * sunrpc/getrpcport.c (getrpcport): Likewise.
7564         * sunrpc/clnt_simp.c (callrpc): Likewise.
7565         * sunrpc/clnt_gen.c (clnt_create): Likewise.
7566         * string/envz.c: Likewise.
7567
7568         * po/ko.po: Update from translation team.
7569
7570         * argp/argp-help.c: Handle wide oriented stderr stream.
7571
7572 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
7573
7574         * sysdeps/generic/strtol.c: Little optimizations.  Add some
7575         __builtin_expect.
7576
7577         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
7578
7579         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
7580         * wcsmbs/wcwidth.c (wcwdith): Likewise.
7581         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
7582
7583         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
7584
7585         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
7586
7587         * time/time.h (struct timespec): Use __time_t for tv_sec element.
7588
7589         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
7590         wchar_t for function declarations and defintions.
7591
7592         * misc/sys/select.h: Define __need_time_t before including <time.h>.
7593         Define suseconds_t if it hasn't happened yet.
7594
7595         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
7596
7597         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
7598
7599         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
7600         <stddef.h>.
7601
7602         * conform/data/stddef.h-data: Remove wint_t.
7603
7604         * conform/conformtest.pl: Change namespace test to take #undef
7605         lines into account.
7606
7607         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
7608
7609         * conform/data/sys/socket.h-data: Add sockatmark.
7610
7611 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
7612
7613         * io/fts.c: Update from recent BSD source.
7614
7615 2001-08-17  Roland McGrath  <roland@frob.com>
7616
7617         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
7618         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
7619         Likewise.
7620
7621 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
7622
7623         * locale/duplocale.c (__duplocale): Also initialize the special
7624         __ctype_* elements.
7625
7626         * conform/data/netdb.h-data: Adjust gai_strerror return type.
7627
7628 2001-08-17  Andreas Jaeger  <aj@suse.de>
7629
7630         * misc/getpass.c: Include wchar.h for prototypes.
7631         * malloc/obstack.c: Likewise.
7632
7633 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
7634
7635         * sunrpc/svc_simple.c (universal): Use __write instead of write.
7636
7637         * wcsmbs/wcscoll.c: Also define __wcscoll.
7638         * include/wchar.h: Declare __wcscoll.
7639
7640         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
7641         * libio/vwprintf.c: Likewise.
7642         * libio/wprintf.c: Likewise.
7643
7644         * iconv/gconv_cache.c: Use __munmap instead of munmap.
7645
7646 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
7647
7648         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7649         instead of mbrtowc.
7650         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7651         wcslen, and __wcscoll instead of wcscoll.
7652
7653         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
7654
7655         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
7656         __getuid instead of getuid.
7657
7658         * stdio-common/perror.c (perror): Use __close instead of close.
7659         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7660         * libio/freopen.c (freopen): Likewise.
7661         * libio/freopen64.c (freopen64): Likewise.
7662
7663         * libio/tst-ungetwc2.c (main): Define str const.
7664
7665         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
7666         * libio/fwprintf.c: Also define __fwprintf.
7667         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
7668         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
7669         * assert/assert-perr.c: Likewise.
7670         * assert/assert.c: Likewise.
7671         * gmon/gmon.c: Likewise.
7672         * inet/rcmd.c: Likewise.
7673         * malloc/obstack.c: Likewise.
7674         * misc/err.c: Likewise.
7675         * misc/error.c: Likewise.
7676         * misc/getpass.c: Likewise.
7677         * posix/getopt.c: Likewise.
7678         * resolv/res_hconf.c: Likewise.
7679         * stdio-common/perror.c: Likewise.
7680         * stdio-common/psignal.c: Likewise.
7681         * stdlib/fmtmsg.c: Likewise.
7682         * sunrpc/auth_unix.c: Likewise.
7683         * sunrpc/clnt_perr.c: Likewise.
7684         * sunrpc/clnt_tcp.c: Likewise.
7685         * sunrpc/clnt_udp.c: Likewise.
7686         * sunrpc/clnt_unix.c: Likewise.
7687         * sunrpc/svc_simple.c: Likewise.
7688         * sunrpc/svc_tcp.c: Likewise.
7689         * sunrpc/svc_udp.c: Likewise.
7690         * sunrpc/svc_unix.c: Likewise.
7691         * sunrpc/xdr.c: Likewise.
7692         * sunrpc/xdr_array.c: Likewise.
7693         * sunrpc/xdr_rec.c: Likewise.
7694         * sunrpc/xdr_ref.c: Likewise.
7695         * sysdeps/generic/wordexp.c: Likewise.
7696
7697         * po/it.po: Update from translation team.
7698
7699         * misc/err.c: Handle wide oriented stderr stream.
7700
7701 2001-08-14  Tom Rix  <trix@redhat.com>
7702
7703         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
7704         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
7705
7706 2001-08-13  Tom Rix  <trix@redhat.com>
7707
7708         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
7709         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
7710         and __intptr_t.
7711
7712 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7713
7714         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
7715         Store the access registers to the ucontext structure.
7716         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
7717         Likewise.
7718
7719         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
7720         Load the access registers from the ucontext structure.
7721         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
7722         Likewise.
7723
7724         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
7725         offsets to the new ucontext layout.
7726         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
7727
7728         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
7729         of the ucontext structure.
7730         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7731
7732 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
7733
7734         * misc/error.c (error): Handle wide oriented stderr stream correctly.
7735         (error_at_line): Likewise.
7736
7737         * stdio-common/perror.c (perror): Implement according to standard.
7738         The stream orientation must not be changed if the stream was not
7739         oriented before the call.
7740         * stdio-common/Makefile (tests): Add tst-perror.
7741         * stdio-common/tst-perror.c: New file.
7742
7743
7744 See ChangeLog.12 for earlier changes.