c17a803e9d7312df0862c4e20d45865eb1978dc1
[platform/upstream/glibc.git] / ChangeLog
1 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2
3         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4         of NOT_IN_LIBC.
5         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6         * include/stdlib.h: Likewise.
7
8 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
9
10         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
11         instead of _RTLD_LOCAL.
12         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
13         * include/unistd.h: Likewise.
14         * sysdeps/generic/ldsodefs.h: Likewise.
15
16         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
17         if in libc or ld.so.
18
19 2002-04-08  Andreas Jaeger  <aj@suse.de>
20
21         * elf/cache.c (print_entry): Support x86-64.
22
23 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
24
25         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
26         with one accessing the locale data structures directly.
27         * stdio-common/printf-prs.c: Include localeinfo.h for new
28         MB_CUR_MAX definition.
29
30         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
31         is the name of the source file without extension.
32         * Makefile (distribute): Add cppflags-iterator.mk.
33         * cppflags-iterator.mk: New file.
34         * extra-lib.mk: For the sources of the library run
35         cppflags-iterator.mk.
36
37         * include/libintl.h: Declare __dcgettext_internal and
38         _libc_intl_domainname_internal.  Define __dcgettext using these
39         two symbols if used in libc itself.
40         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
41         _libc_intl_domainname_internal.
42         * argp/argp-parse.c: Likewise.
43         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
44         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
45         * intl/gettext.c: Likewise.
46         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
47         alias.
48         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
49         __dcgettext.
50         * posix/regex_internal.c (gettext): Likewise.
51
52 2002-04-08  Andreas Jaeger  <aj@suse.de>
53
54         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
55
56         * sysdeps/x86_64/fpu/s_llrint.S: New.
57         * sysdeps/x86_64/fpu/s_llrintf.S: New.
58         * sysdeps/x86_64/fpu/s_llrintl.S: New.
59         * sysdeps/x86_64/fpu/s_lrint.S: New.
60         * sysdeps/x86_64/fpu/s_lrintf.S: New
61         * sysdeps/x86_64/fpu/s_lrintl.S: New.
62
63 2002-04-08  Roland McGrath  <roland@frob.com>
64
65         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
66         widening __hurd_fail value.
67
68 2002-04-07  Roland McGrath  <roland@frob.com>
69
70         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
71         <mach/machine/alpha_instruction.h>.
72         (_hurd_setup_sighandler): Take proper arguments for current decls.
73         Update code to use _hurdsig_catch_fault.
74         Use `callsys' instruction instead of `call_pal'.
75         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
76
77         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
78         (ALIGN, at, AT, fp): New macros.
79
80 2002-04-06  Roland McGrath  <roland@frob.com>
81
82         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
83
84         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
85         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
86
87         * sysdeps/mach/hurd/bind.c: Use prototype definition.
88         * sysdeps/mach/hurd/connect.c: Likewise.
89         * sysdeps/mach/hurd/getsockopt.c: Likewise.
90         * sysdeps/mach/hurd/setsockopt.c: Likewise.
91
92         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
93         __msg_sig_post RPC.
94
95         * hurd/catch-exc.c: Use integer_t instead of int.
96         * hurd/hurdfault.c: Likewise.
97
98         * sysdeps/mach/hurd/alpha/exc2signal.c
99         (_hurd_exception2signal): Rewritten.
100         * sysdeps/mach/hurd/alpha/longjmp-ts.c
101         (_hurd_longjmp_thread_state): Rewritten.
102
103 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
104
105         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
106         DB_LOOKUP_FCT prototype.
107         * nss/getXXent_r.c: Likewise.
108         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
109         * inet/getaliasname_r.c: Likewise.
110         * inet/getnetbyad_r.c: Likewise.
111         * inet/getnetbynm_r.c: Likewise.
112         * inet/getnetent_r.c: Likewise.
113         * inet/getproto_r.c: Likewise.
114         * inet/getprtent_r.c: Likewise.
115         * inet/getprtname_r.c: Likewise.
116         * inet/getrpcbyname_r.c: Likewise.
117         * inet/getrpcbynumber_r.c: Likewise.
118         * inet/getrpcent_r.c: Likewise.
119         * inet/getservent_r.c: Likewise.
120         * inet/getsrvbynm_r.c: Likewise.
121         * inet/getsrvbypt_r.c: Likewise.
122         * shadow/getspent_r.c: Likewise.
123         * shadow/getspnam_r.c: Likewise.
124
125         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
126
127         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
128         Use i686-friendly PIC code.
129         * sysdeps/i386/elf/setjmp.S: Likewise.
130
131         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
132
133         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
134         list.
135         * elf/Versions: Remove it here.
136
137 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
138
139         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
140         direction.  Reported by H . J . Lu <hjl@lucon.org>.
141
142 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
143
144         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
145         test just before the test runs.
146         * intl/tst-translit.sh: Likewise.
147         * intl/tst-codeset.sh: Likewise.
148
149         * timezone/zic.c: Update from tzcode2002c.
150         * timezone/asia: Update from tzdata2002c.
151         * timezone/backward: Likewise.
152         * timezone/europe: Likewise.
153         * timezone/northamerica: Likewise.
154         * timezone/northamerica: Likewise.
155         * timezone/northamerica: Likewise.
156         * timezone/southamerica: Likewise.
157         * timezone/zone.tab: Likewise.
158
159 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
160
161         * sysdeps/generic/brk.c (__curbrk): Declare.
162         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
163         * sysdeps/generic/dl-sbrk.c: Likewise.
164         * sysdeps/unix/arm/dl-brk.S: New file.
165         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
166         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
167         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
168         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
169         * sysdeps/unix/i386/dl-brk.S: New file.
170         * sysdeps/unix/mips/dl-brk.S: New file.
171         * sysdeps/unix/sparc/dl-brk.S: New file.
172         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
173         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
174         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
175         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
176
177 2002-04-03  Andreas Schwab  <schwab@suse.de>
178
179         * Makefile (headers): Add gnu/lib-names.h here instead of
180         install-others.
181         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
182         installation rule.
183         (install-headers): Add dependency on install-headers-nosubdir.
184         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
185         instead of install-others.
186         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
187         installation rule.
188
189 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
190
191         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
192         Reported by Sam Roberts <sroberts@uniserve.com>.
193
194 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
195
196         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
197         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
198         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
199         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
200
201 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
202
203         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
204         (RTLD_START): Ditto.
205         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
206         dependency violation.
207
208 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
209
210         * time/mktime.c (__mktime_internal): Move check for year < 70 below
211         all variable declarations.
212
213 2002-04-04  Andreas Schwab  <schwab@suse.de>
214
215         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
216
217 2002-04-04  Andreas Jaeger  <aj@suse.de>
218
219         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
220         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
221
222         * sysdeps/x86_64/fpu/s_fabs.c: New file.
223         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
224         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
225
226         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
227
228         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
229
230         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
231         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
232
233         * configure.in: Handle all mips entries the same.
234
235         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
236         * sysdeps/mips/mips3/*: Likewise.
237         * sysdeps/mips/p40/bits/endian.h: Likewise.
238
239 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
240
241         * misc/dirname.c (dirname): Ignore trailing slashes at end of
242         non-null result [PR libc/2600].
243
244         * misc/tst-dirname.c: Add more tests.
245
246 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
247
248         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
249         define a code_set_name provide one based on the filename.
250
251         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
252
253 2001-12-28  Andreas Jaeger  <aj@suse.de>
254
255         * time/mktime.c (__mktime_internal): Check for year < 70
256         [PR libc/2738].
257
258 2002-04-03  Andreas Jaeger  <aj@suse.de>
259
260         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
261         shmat.
262         Reported by Andi Kleen <ak@suse.de>.
263
264 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
265
266         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
267         * sysdeps/generic/w_lgammaf.c: Likewise.
268         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
269
270         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
271         Adjust for new output format of the backtrace functions.
272
273         * misc/syslog.c (vsyslog): Only use cleanup handler if
274         _LIBC_REENTRANT is defined [PR libc/2924].
275
276         * libio/Makefile (tests): Add bug-ungetwc2.
277         * libio/bug-ungetwc2.c: New file.
278
279         * manual/install.texi: Typographical and grammatical cleanup.
280         Patch by Dennis Grace <dgrace@us.ibm.com>.
281
282         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
283         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
284
285         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
286         always "&".  Adjust callers.
287         Add "_" prefix to several generated definitions.
288         Patch by paul@serice.net [PR libc/3158].
289
290 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
291
292         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
293         size of _dl_arm_cap_flags.
294         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
295
296         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
297         Define as 8.
298
299 2002-03-22  H.J. Lu  <hjl@gnu.org>
300
301         * scripts/firstversions.awk: Check the first version.
302
303 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
304
305         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
306         dependencies must be stable to work correctly.
307         Reported by martin.lubich@datacon.at.
308
309         * libio/bug-ungetwc1.c: New file.
310         * libio/Makefile (tests): Add bug-ungetwc1.
311
312         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
313         if stream was last used for writing.
314
315         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
316         number [PR libc/3111].
317
318         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
319         to ...
320         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
321
322 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
323
324         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
325         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
326         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
327         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
328         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
329
330 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
331
332         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
333         dynamic tags.
334
335 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
336
337         * sysdeps/i386/fpu/s_fabs.S: New file.
338         * sysdeps/i386/fpu/s_fabsf.S: New file.
339         * sysdeps/i386/fpu/s_fabsl.S: New file.
340         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
341         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
342         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
343
344 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
345
346         * rt/tst-shm.c (do_test): Add one more test for size of shared
347         memory object.
348
349 2002-03-29  Wolfram Gloger  <wg@malloc.de>
350
351         * malloc/malloc.c: Add short description and prototypes for
352         malloc_get_state, malloc_set_state and posix_memalign, for
353         consistency and to avoid warnings with -Wstrict-prototypes.
354         Reported by Andreas Jaeger <aj@suse.de>.
355
356 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
357
358         * po/gl.po: Update from translation team.
359
360 2002-03-31  Roland McGrath  <roland@frob.com>
361
362         * hurd/hurdselect.c (_hurd_select): Fix
363         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
364         Use a union rather than casts to compare mach_msg_type_t as int.
365
366 2002-03-25  Roland McGrath  <roland@frob.com>
367
368         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
369         check off the end of NAME when it's shorter than 2 chars.
370         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
371
372 2002-03-17  Roland McGrath  <roland@frob.com>
373
374         * sysdeps/mach/hurd/i386/sys/io.h: New file.
375         * sysdeps/mach/hurd/i386/ioperm.c: New file.
376         * sysdeps/mach/hurd/i386/Dist: Add them.
377         * sysdeps/mach/hurd/i386/Versions
378         (libc: GLIBC_2.2.6): New set, add ioperm.
379         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
380         (mach_interface_list): Check for mach_i386.defs.
381         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
382         * sysdeps/mach/configure: Regenerated.
383
384 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
385
386         * po/fr.po: Update from translation team.
387
388 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
389
390         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
391         getpriority from syscalls list.
392
393 2002-03-28  Andreas Jaeger  <aj@suse.de>
394
395         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
396         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
397         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
398         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
399
400 2002-03-27  Andreas Jaeger  <aj@suse.de>
401
402         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
403         sigcontext): Follow further kernel change.
404
405         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
406         kernel change.
407
408         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
409         Change for struct sigcontext change.
410
411         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
412         Follow changes in struct sigcontext.
413
414         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
415         sysycall, use wrapper instead.
416
417 2002-03-26  Andreas Jaeger  <aj@suse.de>
418
419         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
420         read and write accesses as detailed as possible.
421         (__memcpy_by2): Likewise.
422         (__memcpy_g): Likewise.
423         (memmove): Likewise.
424         (memcmp): Likewise.
425         (__memset_ccn_by4): Likewise.
426         (__memset_ccn_by2): Likewise.
427         (__memset_gcn_by4): Likewise.
428         (__memset_gcn_by2): Likewise.
429         (memchr): Likewise.
430         (__memrchr): Likewise.
431         (rawmemchr): Likewise.
432         (__strlen_g): Likewise.
433         (__strcpy_g): Likewise.
434         (__mempcpy_by4): Likewise.
435         (__mempcpy_by2): Likewise.
436         (__mempcpy_byn): Likewise.
437         (__stpcpy_g): Likewise.
438         (__strncpy_by4): Likewise.
439         (__strncpy_by2): Likewise.
440         (__strncpy_byn): Likewise.
441         (__strncpy_gg): Likewise.
442         (__strcat_c): Likewise.
443         (__strcat_g): Likewise.
444         (__strncat_g): Likewise.
445         (__strcmp_gg): Likewise.
446         (__strncmp_g): Likewise.
447         (__strchr_c): Likewise.
448         (__strchr_g): Likewise.
449         (__strchrnul_c): Likewise.
450         (__strchrnul_g): Likewise.
451         (__strrchr_c): Likewise.
452         (__strrchr_g): Likewise.
453         (__strrchr_c): Likewise.
454         (__strrchr_g): Likewise.
455         (__strcspn_c1): Likewise.
456         (__strcspn_cg): Likewise.
457         (__strcspn_g): Likewise.
458         (__strcspn_g): Likewise.
459         (__strspn_c1): Likewise.
460         (__strspn_cg): Likewise.
461         (__strspn_g): Likewise.
462         (__strspn_g): Likewise.
463         (__strpbrk_cg): Likewise.
464         (__strpbrk_g): Likewise.
465         (__strstr_cg): Likewise.
466         (__strstr_g): Likewise.
467
468         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
469         Michal Ludvig <mludvig@suse.cz>.
470
471         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
472         compatibilty, adjust for kernel changes.
473
474         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
475         sigcontext): Adjust for kernel changes.
476
477 2002-03-25  Andreas Jaeger  <aj@suse.de>
478
479         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
480         little endian.
481         Reported by Artur Zaprzala <zybi@talex.com.pl>.
482
483 2002-03-24  Andreas Jaeger  <aj@suse.de>
484
485         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
486
487         * stdio-common/tst-fdopen.c (main): Remove unused variable.
488
489         * iconv/tst-iconv3.c (main): Use correct printf strings.
490
491 2002-03-18  Roland McGrath  <roland@frob.com>
492
493         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
494         (CMGROUP_MAX): New macro.
495
496 2002-03-23  Roland McGrath  <roland@frob.com>
497
498         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
499         * sysdeps/posix/shm_unlink.c: Likewise.
500
501 2002-03-22  Roland McGrath  <roland@frob.com>
502
503         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
504         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
505         under --enable-libio.
506         * sysdeps/mach/hurd/configure: Regenerated.
507
508 2002-03-23  Roland McGrath  <roland@frob.com>
509
510         * sysdeps/mach/hurd/i386/Makefile
511         (sysdep_routines, shared-only-routines): Don't add framestate,
512         reverting 2001-10-02 change.
513         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
514         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
515         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
516         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
517         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
518         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
519         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
520         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
521         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
522         Do it here instead, only if [$(unwind-find-fde) = yes].
523
524 2002-03-23  Andreas Jaeger  <aj@suse.de>
525
526         * signal/signal.h: Fix typo. Patch by Steve Kemp
527         <skx@tardis.ed.ac.uk>.
528
529 2002-03-22  Andreas Jaeger  <aj@suse.de>
530
531         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
532         getresuid.
533
534         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
535         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
536         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
537         user_fpregs_struct): Rename fwd.
538
539         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
540         Follow sigcontext changes.
541
542 2002-03-22  Andreas Jaeger  <aj@suse.de>
543
544         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
545         changes for NaNs on MIPS.
546         Patch by Hartvig Ekner <hartvige@mips.com>.
547
548 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
549
550         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
551         Use realloc if too large.
552         (addgrbyid): Likewise.
553         * nscd/hstcache.c (addhstbyname): Likewise.
554         (addhstbyaddr): Likewise.
555         (addhstbynamev6): Likewise.
556         (addhstbyaddrv6): Likewise.
557         * nscd/pwdcache.c (addpwbyname): Likewise.
558         (addpwbyuid): Likewise.
559
560 2002-03-21  Andreas Jaeger  <aj@suse.de>
561
562         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
563         _fpstate): Add separate struct for x86-64.
564
565         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
566         user_fpregs_struct): Change member names to follow kernel.
567
568 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
569
570         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
571         Correctly close the UDP connection right away [PR libc/3120].
572
573 2002-03-20  Andreas Jaeger  <aj@suse.de>
574
575         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
576         user_fpregs_struct): Fix for changed kernel struct.
577         (struct user_regs_struct): Likewise.
578         (struct user): Likewise.
579         Add 32-bit x86 compatibility.
580
581         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
582
583 2002-03-19  Andreas Jaeger  <aj@suse.de>
584
585         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
586
587 2002-03-18  Andreas Jaeger  <aj@suse.de>
588
589         * iconvdata/Makefile: Only run tests when shared libs are
590         available.
591
592 2002-03-17  Andreas Jaeger  <aj@suse.de>
593
594         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
595
596         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
597
598         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
599         bits.
600
601         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
602         (CAUSE_SHIFT): New.
603         Patch by Hartvig Ekner <hartvige@mips.com>.
604
605         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
606         * sysdeps/generic/unwind-pe.h: Likewise.
607
608         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
609         type to _IO_setb.
610
611         * libio/stdio.c (AL2): Define variant when visibility attribute is
612         not supported.
613
614         * include/libc-symbols.h (_INTVARDEF): Define variant when
615         visibility attribute is not supported.
616
617 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
618
619         * po/fr.po: Update from translation team.
620
621 2002-02-25  Bruno Haible  <bruno@clisp.org>
622
623         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
624
625 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
626
627         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
628         buffers if _IO_file_attach failed.
629
630         * libio/fileops.c (_IO_file_open): Close file descriptor if
631         _IO_SEEKOFF call failed.
632
633 2002-03-15  H.J. Lu  <hjl@gnu.org>
634             Ulrich Drepper  <drepper@redhat.com>
635
636         * configure.in: Check for availability of
637         init_array/fini_array/preinit_array handling in binutils.
638         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
639         * config.make.in (have-initfini-array): New variable.
640
641 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
642
643         * stdio-common/tst-printf.c (main): Comment out one test which
644         checked the compiler's ability to fold floating-point constants
645         but not really printf.
646         (rfg3): Make s const.
647         * stdio-common/tst-printf.sh: Adjust for removed test.
648
649         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
650         internal function.  Adjust for internal_function calling convention.
651         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
652         as internal_function.
653
654         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
655         hidden.
656
657         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
658         declaration and definition.
659         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
660         declaration.
661         * nss/getXXent_r.c: Likewise.
662         * nss/nsswitch.h (db_lookup_function): Add internal_function to
663         definition.
664
665         * include/time.h: Declare __localtime_r as hidden.
666
667         * include/aliases.h: Declare __getaliasent_r as hidden.
668         * include/grp.h: Declare __getgrent_r as hidden.
669         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
670         __getservent_r, and __getprotoent_r as hidden.
671         * include/pwd.h: Declare __getpwent_r as hidden.
672         * include/shadow.h: Declare __getspent_r as hidden.
673         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
674
675         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
676         and __gconv_transliterate as hidden.
677         Add internal_function to __gconv_get_path declaration.
678         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
679         definition.  Add attribute_hidden to __gconv_read_conf definition.
680
681 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
682
683         * elf/rtld.c: Declare _environ as hidden.
684         * sysdeps/generic/dl-environ.c: Likewise.
685         * sysdeps/generic/dl-sysdep.c: Likewise.
686
687         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
688         _dl_mcount_internal as hidden.
689
690         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
691         * sysdeps/generic/dl-brk.c: New file.
692         * sysdeps/generic/dl-sbrk.c: New file.
693         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
694         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
695
696         * elf/dl-minimal.c (malloc): Declare _end as hidden.
697         (__errno_location): New function.  Declare errno as hidden.
698         * elf/rtld.c (_dl_argc): Define as hidden.
699         (_dl_skip_args): Define as hidden.
700         (_begin, _end): Declare as hidden.
701         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
702         * sysdeps/generic/entry.h (_start): Declare as hidden.
703         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
704         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
705         _dl_runtime_resolve and _dl_runtime_profile as hidden.
706         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
707
708 2002-03-14  Roland McGrath  <roland@frob.com>
709
710         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
711
712         * Makeconfig (%.v.i, %.v): New implicit rules.
713         (preprocess-versions): Variable removed.
714         ($(common-objpfx)shlib-versions.v.i): New target giving just the
715         shlib-versions input files as dependencies.
716         ($(common-objpfx)soversions.i): Depend on that instead of the input
717         files.  Use it as input instead of using a pipeline.
718         (postclean-generated): Append soversions.i, shlib-versions.v, and
719         shlib-versions.v.i here.
720         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
721         the Versions.def input files as dependencies.
722         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
723         ($(common-objpfx)Versions.all): Depend on that instead of the input
724         files.  Use it as input instead of using a pipeline.
725         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
726         (postclean-generated): Append those .v and .v.i files here.
727
728 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
729
730         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
731         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
732         Remove.
733
734 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
735
736         * sysdeps/generic/mp_clz_tab.c: New file.
737         * sysdeps/i386/mp_clz_tab.c: New file.
738         * sysdeps/hppa/mp_clz_tab.c: New file.
739         * sysdeps/powerpc/mp_clz_tab.c: New file.
740         * stdlib/Makefile (aux): Revert last patch.
741         * math/Makefile (gmp-objs): Likewise.
742
743 2002-03-13  Paul Eggert  <eggert@twinsun.com>
744
745         * time/strftime.c: Comment fixes for references to obsolescent
746         standards, In most cases the simplest fix is to remove the
747         confusing comments.  Cross-referencing all the standards properly
748         is a bit of a pain, and it should be enough to put that info in
749         the documentation as I did in my recent time.texi patch.
750
751 2002-03-13  Paul Eggert  <eggert@twinsun.com>
752
753         * manual/time.texi (Formatting Calendar Time):
754         ISO C99 also specifies the E and O modifiers.
755         %P is a GNU extension, and is not in ISO C99.
756         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
757         %T is also in ISO C99.
758         The RFC 822 example is not valid in arbitrary locales.
759         Reword the POSIX.2 wording slightly, to make it a bit clearer
760         that POSIX.2 formats are also supported by later POSIX versions.
761         If a format was introduced in ISO C99 it is also required by
762         POSIX.1-2001.
763
764 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
765
766         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
767         _sys_nerr_internal with INTVARDEF2.
768         * include/libc-symbols.h (INTVARDEF2): New macro.
769         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
770         (_sys_nerr_internal): Library.
771
772         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
773         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
774
775         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
776
777 2002-03-13  Wolfram Gloger  <wg@malloc.de>
778
779         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
780
781 2002-03-02  Andreas Schwab  <schwab@suse.de>
782
783         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
784         'h' flag and positional arg.
785         * stdio-common/tst-printf.c (rfg3): New function to test
786         positional arguments.
787         (main): Fix some warnings.
788
789 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
790
791         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
792         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
793
794 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
795
796         * grp/initgroups.c (__nss_group_data): Declare as hidden.
797
798         * include/locale.h (_nl_C_locobj): Declare as hidden.
799
800         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
801         * time/strptime.c (_nl_C_LC_TIME): Likewise.
802
803         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
804
805         * include/sys/gmon.h: Declare _gmonparam as hidden.
806
807         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
808         (__ctype32_wctrans): Likewise.
809         (__ctype32_width): Likewise.
810
811         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
812         use of __ttyname.
813
814         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
815         Define as hidden.
816         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
817         hidden.  Change all users of these variables.
818
819         * posix/regex_internal.h (__re_error_msgid): Renamed from
820         re_error_msgid.  Declare as hidden.
821         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
822         hidden.
823
824         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
825         (__printf_function_table): Likewise.
826         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
827         hidden.
828         (__printf_function_table): Likewise.
829
830         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
831         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
832
833         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
834         * nss/nsswitch.c: Declare _nss_*_database as hidden.
835
836         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
837         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
838
839 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
840
841         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
842         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
843         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
844         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
845         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
846         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
847         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
848         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
849         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
850         _nl_C_LC_CTYPE_width: Declare as hidden.
851         * include/locale.h: Declare _nl_locale_file_list.
852         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
853         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
854         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
855         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
856         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
857         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
858         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
859         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
860         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
861         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
862         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
863         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
864         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
865         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
866         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
867         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
868         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
869         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
870         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
871         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
872         _nl_C_LC_CTYPE_width, and as hidden.
873         * locale/findlocale.c: Declare _nl_C as hidden.
874         * locale/newlocale.c: Likewise.
875         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
876         _nl_locale_file_list.
877         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
878         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
879         Define _nl_C_locobj as hidden.
880
881         * malloc/mtrace.c (_mtrace_file): Define as hidden.
882         (_mtrace_line): Likewise.
883
884         * include/time.h: Declare __mon_yday as hidden.
885         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
886
887         * libio/libioP.h: Declare __libio_codecvt as hidden.
888         * libio/fileops.c: Declare __libio_translit as hidden.
889         * libio/iofwide.c: Define __libio_translit as hidden.
890
891         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
892         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
893         * login/getutline_r.c: Likewise.
894         * login/utmpname.c: Likewise.
895
896         * login/utmp-private.h: Declare __libc_utmp_file_functions,
897         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
898         __libc_utmp_file_name as hidden.
899
900         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
901         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
902         * locale/freelocale.c: Likewise.
903         * locale/lc-time.c: Likewise.
904
905         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
906         (__libc_ptyname2): Likewise.
907         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
908         hidden.
909         (__libc_ptyname2): Likewise.
910
911         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
912         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
913         * sysdeps/generic/init-first.c: Likewise.
914         * sysdeps/i386/init-first.c: Likewise.
915         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
916         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
917         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
918         * sysdeps/sh/init-first.c: Likewise.
919         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
920         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
921
922         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
923         (_itowa_upper_digits): Likewise.
924
925         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
926         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
927         as hidden.
928
929         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
930         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
931         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
932         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
933
934         * gmon/gmon.c (__bb_head): Define as hidden.
935         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
936
937         * argp/argp-parse.c (_argp_hang): Define as static.
938
939         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
940         handling in latest compilers.
941
942         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
943         define alias.
944         * libio/fileops.c (_IO_file_jumps): Likewise.
945         * libio/stdfiles.c (_IO_list_all): Likewise.
946         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
947
948         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
949         include/malloc.h.
950         * include/malloc.h: Add __libc_malloc_initialized declaration
951         here.  Mark variable hidden.
952         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
953
954         * elf/dl-open.c (__libc_argc): Declare as hidden.
955         (__libc_argv): Likewise.
956         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
957         (__libc_argv): Likewise.
958         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
959         __libc_argv as hidden.
960         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
961         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
962         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
963         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
964
965         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
966         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
967         * stdlib/erand48.c: Likewise.
968         * stdlib/jrand48.c: Likewise.
969         * stdlib/lcong48.c: Likewise.
970         * stdlib/lrand48.c: Likewise.
971         * stdlib/mrand48.c: Likewise.
972         * stdlib/nrand48.c: Likewise.
973         * stdlib/seed48.c: Likewise.
974         * stdlib/srand48.c: Likewise.
975
976         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
977         (_itoa_lower_digits_internal): New declaration.
978         (_itoa_upper_digits_internal): New declaration.
979         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
980         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
981         (_itoa_upper_digits_internal): New declaration.
982         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
983         _itoa_lower_digits.
984         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
985         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
986
987         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
988         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
989
990         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
991         (_itowa_lower_digits): Likewise.
992         (_itowa_upper_digits): Likewise.
993         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
994         (_itowa_upper_digits): Likewise.
995
996         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
997         not already defined.
998         (GERMANIC_PLURAL): Declare as hidden.
999
1000         * posix/getopt.c (__getopt_initialized): Declare as hidden.
1001         (attribute_hidden): Define as empty macro if not already defined.
1002
1003         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1004         (__gconv_max_path_elem_len): Likewise.
1005         (__gconv_path_envvar): Likewise.
1006
1007         * math/Makefile (gmp-objs): Remove mp_clz_tab.
1008         * stdlib/Makefile (aux): Remove mp_clz_tab.
1009         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
1010
1011         * stdlib/exit.h (__exit_funcs): Declare as hidden.
1012
1013         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1014
1015         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1016         _nl_category_names, _nl_category_name_sizes, _nl_current,
1017         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1018
1019         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1020         (_nl_current_default_domain): Likewise
1021         (_nl_state_lock): Likewise.
1022         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1023         (_nl_current_default_domain): Likewise
1024         (_nl_state_lock): Likewise.
1025         * intl/bindtextdom.c (_nl_state_lock): Likewise.
1026
1027         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1028         (_fpioconst_pow10): Likewise.
1029
1030         * include/time.h (_tmbuf): Add attribute_hidden.
1031
1032         * time/tzset.c (tzstring_list): Define as static.
1033
1034         * include/time.h: Add attribute_hidden to __tzname_cur_max and
1035         __use_tzfile declaration.
1036
1037         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
1038         and __wcsmbs_last_locale declaration.
1039
1040 2002-02-25  Paul Eggert  <eggert@twinsun.com>
1041
1042         * timezone/Makefile (tzbases): Move systemv from here...
1043         (tzlinks): to here, since the entries in systemv were all changed
1044         from Zone to Link lines in tz-2001a.  Bug reported (and patch
1045         tested) by Peter Breitenlohner.
1046
1047 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
1048
1049         * time/tst-posixtz.c (tests): Add new tests.
1050         (main): Test whether tzset() sets daylight properly.
1051
1052 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1053
1054         * time/tzset.c (tz_compute): Move __daylight, __tzname and
1055         __tzname_cur_max setting...
1056         (tzset_internal): ...here.
1057
1058 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1059
1060         * time/tzset.c (compute_change): Don't return any value.
1061         (tz_compute): Likewise.  Don't handle southern hemisphere here.
1062         (__tz_convert): But here.
1063
1064 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1065
1066         * manual/examples/mkfsock.c: Include <string.h> as well.
1067         Patch by Alain De Carolis <alaind@wseurope.com>.
1068
1069 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
1070
1071         * posix/regexec.c (re_match): Fix incorrect register sizes.
1072         (re_search): Likewise.
1073
1074 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1075
1076         * posix/regcomp.c (regfree): Remove a disused condition.
1077         * posix/regex_internal.c (re_acquire_state): Likewise.
1078         (re_acquire_state_context): Likewise.
1079         (register_state): Remove a redundant malloc invocation.
1080         * posix/regex_internal.h: (re_state_table_entry): Simplify
1081         the structure.
1082
1083 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1084
1085         * posix/regcomp.c (regcomp): Add __builtin_expect to error
1086         handling conditions.
1087         (regerror): Likewise.
1088         (regfree): Likewise.
1089         (re_compile_internal): Likewise.
1090         (init_dfa): Likewise.
1091         (init_word_char): Likewise.
1092         (create_initial_state): Likewise.
1093         (analyze): Likewise.
1094         (analyze_tree): Likewise.
1095         (duplicate_node): Likewise.
1096         (calc_eclosure): Likewise.
1097         (calc_eclosure_iter): Likewise.
1098         (parse): Likewise.
1099         (parse_reg_exp): Likewise.
1100         (parse_branch): Likewise.
1101         (parse_expression): Likewise.
1102         (parse_subexp): Likewise.
1103         (parse_dup_op): Likewise.
1104         (parse_bracket_exp): Likewise.
1105         (build_equiv_class): Likewise.
1106         (build_charclass): Likewise.
1107         (build_word_op): Likewise.
1108         (fetch_number): Likewise.
1109         (create_tree): Likewise.
1110         (duplicate_tree): Likewise.
1111         * posix/regex.c (BE): New macro.
1112         * posix/regexec.c (re_match): Add __builtin_expect to error
1113         handling conditions.
1114         (re_match_2): Likewise.
1115         (re_search): Likewise.
1116         (re_search_internal): Likewise.
1117         (check_matching): Likewise.
1118         (proceed_next_node): Likewise.
1119         (set_regs): Likewise.
1120         (sift_states_backward): Likewise.
1121         (add_epsilon_backreference): Likewise.
1122         (transit_state): Likewise.
1123         (transit_state_sb): Likewise.
1124         (transit_state_mb): Likewise.
1125         (transit_state_bkref): Likewise.
1126         (transit_state_bkref_loop): Likewise.
1127         (build_trtable): Likewise.
1128         (group_nodes_into_DFAstates): Likewise.
1129         (match_ctx_init): Likewise.
1130         (match_ctx_add_entry): Likewise.
1131         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
1132         to error handling conditions.
1133         (re_string_construct_toupper): Likewise.
1134         (build_wcs_buffer): Likewise.
1135         (build_wcs_upper_buffer): Likewise.
1136         (build_upper_buffer): Likewise.
1137         (re_string_translate_buffer): Likewise.
1138         (re_node_set_alloc): Likewise.
1139         (re_node_set_init_1): Likewise.
1140         (re_node_set_init_2): Likewise.
1141         (re_node_set_init_copy): Likewise.
1142         (re_node_set_intersect): Likewise.
1143         (re_node_set_init_union): Likewise.
1144         (re_node_set_merge): Likewise.
1145         (re_node_set_insert): Likewise.
1146         (re_dfa_add_node): Likewise.
1147         (re_acquire_state): Likewise.
1148         (re_acquire_state_context): Likewise.
1149         (create_new_state_common): Likewise.
1150         (register_state): Likewise.
1151         (create_ci_new_state): Likewise.
1152         (create_cd_new_state): Likewise.
1153         (re_string_context_at): Remove redundant condition.
1154
1155 2002-01-16  Roger Sayle  <roger@eyesopen.com>
1156
1157         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
1158
1159         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
1160
1161 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
1162
1163         * sysdeps/i386/elf/configure.in: Fix comment.
1164
1165         * sysdeps/sparc/sparc64/configure.in: New.
1166         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
1167         if .dynamic comes before .got.
1168         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
1169
1170         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
1171         HP_TIMING_ACCUM): Fix typos.
1172
1173 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1174
1175         * string/strfry.c: Add some more randomness to the seed.
1176         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
1177
1178         * po/es.po: Update from translation team.
1179         * po/fr.po: Likewise.
1180
1181         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
1182
1183         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
1184         when determining type of format.
1185         Patch by James Antill <james@anqd.org> [PR libc/2787].
1186
1187 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
1188
1189         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
1190
1191 2002-03-11  Roland McGrath  <roland@frob.com>
1192
1193         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
1194
1195         * Versions.def (libc): Add GLIBC_2.2.6.
1196         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
1197         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
1198         __errno_location instead of __hurd_errno_location, and don't inline it.
1199         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1200         * hurd/errno.c: New file.
1201         * hurd/Makefile (routines): Add errno.
1202
1203 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1204
1205         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
1206         ridiculously large widths and precisions [PR libc/3026].
1207
1208 2002-03-11  Andreas Jaeger  <aj@suse.de>
1209
1210         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
1211         support.
1212         Patch by Susanne Oberhauser <froh@SuSE.de>.
1213
1214 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1215
1216         * inet/rexec.c (ahostbuf): Define as static.
1217
1218         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
1219         (__ctype32_wctrans): Likewise.
1220         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
1221         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
1222         (__ctype32_wctrans): Likewise.
1223         (__ctype32_width): Likewise.
1224
1225         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
1226         They were never exported anyway.
1227
1228         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
1229         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
1230         exported.
1231         * include/sys/gmon.h: Declare _gmonparam.
1232
1233         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
1234         symbols for getdents64.  They were never exported.
1235
1236 2002-03-09  Roland McGrath  <roland@frob.com>
1237
1238         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1239         Reported by Jon Arney <jarney1@cox.net>.
1240
1241 2002-02-23  Roland McGrath  <roland@frob.com>
1242
1243         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1244         declaration.
1245         (__hurd_errno_location): Function removed.
1246
1247 2002-03-06  Andreas Jaeger  <aj@suse.de>
1248
1249         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1250         32-bit.
1251
1252 2002-03-04  Andreas Jaeger  <aj@suse.de>
1253
1254         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1255
1256         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1257         x86-64.
1258
1259         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1260
1261         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1262
1263         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1264
1265         * sysdeps/x86_64/bits/setjmp.h: New.
1266
1267         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1268
1269         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1270
1271         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1272         for x86.
1273         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1274         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1275
1276 2002-02-28  Bo Thorsen  <bo@suse.de>
1277
1278         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1279         version.
1280
1281 2002-03-03  Andreas Jaeger  <aj@suse.de>
1282
1283         * sysdeps/x86_64/bits/wordsize.h: New file.
1284
1285         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1286         * elf/tst-tlsmod1.c: Likewise.
1287
1288         * posix/regcomp.c: Get regex.h from include dir for internal
1289         prototypes.
1290
1291         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1292         to libc-internal.h and include it.
1293         * include/libc-internal.h: Add __init_misc.
1294
1295         * misc/init-misc.c: Include libc-internal.h for prototypes.
1296
1297         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
1298
1299         * misc/error.c [_LIBC]: Include libioP.h for prototype of
1300         _IO_putc_internal.
1301
1302 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
1303
1304         * posix/regcomp.c: Compatibility changes to allow using the code
1305         outside glibc.
1306
1307 2002-02-28  Hartvig Ekner <hartvige@mips.com>
1308
1309         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
1310         compiled non-PIC.
1311
1312 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
1313
1314         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
1315         of .str elements in the returned data structure.
1316
1317         * elf/elf.h: Add Alpha TLS bits.
1318
1319 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1320
1321         * sysdeps/unix/sysv/linux/nice.c: New file.
1322
1323 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
1324
1325         * elf/Makefile (dl-routines): Add dl-origin.
1326         (elide-routines.os): Add dl-origin.
1327         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
1328         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
1329         _dl_debug_state.
1330         * include/libc-symbols.c: Define attribute_hidden depending on
1331         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
1332
1333         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
1334         * elf/dl-load.c: Likewise.
1335         * elf/rtld.c: Likewise.
1336         * include/unistd.h: Declare __libc_enable_secure_internal.
1337         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
1338         Use INTUSE with __libc_enable_secure.
1339         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1340
1341         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
1342         * elf/dl-error.c: Likewise,
1343         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
1344
1345         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
1346         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
1347         function definition.  Use INTDEF with _dl_get_origin.
1348         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1349
1350         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
1351         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
1352
1353         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
1354         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
1355         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
1356
1357         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
1358         * elf/dl-deps.c: Likewise.
1359         * elf/dl-error.c: Likewise.
1360         * elf/dl-fini.c: Likewise.
1361         * elf/dl-init.c: Likewise.
1362         * elf/dl-load.c: Likewise.
1363         * elf/dl-lookup.c: Likewise.
1364         * elf/dl-reloc.c: Likewise.
1365         * elf/dl-version.c: Likewise.
1366         * elf/do-lookup.h: Likewise.
1367         * sysdeps/arm/dl-machine.h: Likewise.
1368         * sysdeps/cris/dl-machine.h: Likewise.
1369         * sysdeps/hppa/dl-machine.h: Likewise.
1370         * sysdeps/i386/dl-machine.h: Likewise.
1371         * sysdeps/m68k/dl-machine.h: Likewise.
1372         * sysdeps/powerpc/dl-machine.h: Likewise.
1373         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1374         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1375         * sysdeps/sh/dl-machine.h: Likewise.
1376         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
1377         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
1378         * sysdeps/x86_64/dl-machine.h: Likewise.
1379         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
1380         _dl_argv[0].  Use INTUSE with _dl_argv.
1381         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
1382         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
1383
1384 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1385
1386         * elf/rtld.c (_rtld_global): Remove .protected.
1387         (_rtld_local): Strong alias to _rtld_global.
1388         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
1389         only .os object.
1390         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
1391         _rtld_local instead of _rtld_global.
1392         (_rtld_local): Add hidden extern, possibly in .sdata section.
1393         * configure.in: Add tests for visibility attribute and .sdata.
1394         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
1395         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
1396         * sysdeps/arm/dl-machine.h: Likewise.
1397         * sysdeps/generic/ldsodefs.h: Likewise.
1398         * sysdeps/hppa/dl-machine.h: Likewise.
1399         * sysdeps/cris/dl-machine.h: Likewise.
1400         * sysdeps/i386/dl-machine.h: Likewise.
1401         * sysdeps/ia64/dl-machine.h: Likewise.
1402         * sysdeps/m68k/dl-machine.h: Likewise.
1403         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1404         * sysdeps/mips/dl-machine.h: Likewise.
1405         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1406         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1407         * sysdeps/sh/dl-machine.h: Likewise.
1408         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1409         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1410         * sysdeps/x86_64/dl-machine.h: Likewise.
1411
1412 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1413
1414         * login/login.c (login): Always initialize ut_line field
1415         [PR libc/2991].
1416
1417 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1418
1419         * sysdeps/i386/Makefile (sysdep_routines): Add
1420         divdi3 in csu dir.
1421         (shared-only-routines): Likewise.
1422         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1423         (shared-only-routines): Likewise.
1424         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1425         (shared-only-routines): Likewise.
1426         * sysdeps/wordsize-32/divdi3.c: New file.
1427
1428 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1429
1430         * locale/iso-4217.def: Remove obsolete currencies for countries
1431         with Euro.
1432
1433 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
1434
1435         * posix/regcomp.c (regcomp): Remove a redundant condition.
1436         (init_word_char): Add a check on malloc failure.
1437         (create_initial_state): Likewise.
1438         (duplicate_node): Likewise.
1439         (calc_eclosure): Likewise.
1440         (calc_eclosure_iter): Likewise.
1441         (parse_expression): Likewise.
1442         (parse_bracket_exp): Remove unnecessary malloc invocations.
1443         (build_equiv_class): Likewise.
1444         (build_charclass): Likewise.
1445         * posix/regex_internal.c (re_node_set_intersect): Add a check
1446         on malloc failure.
1447         (re_node_set_add_intersect): Likewise.
1448         (re_node_set_merge): Likewise.
1449         (re_acquire_state): Likewise.
1450         (re_acquire_state_context): Likewise.
1451         (create_newstate_common): Likewise.
1452         (register_state): Likewise.
1453         (create_ci_newstate): Likewise.
1454         (create_cd_newstate): Likewise.
1455         * posix/regex_internal.h: Fix prototypes of re_acquire_state
1456         and re_acquire_state_context.
1457         * posix/regexec.c (regexec): Suit it to the error handling of
1458         re_search_internal.
1459         (re_match): Likewise.
1460         (re_search): Likewise.
1461         (re_search_internal): Add a check on malloc failure.
1462         (acquire_init_state_context): Likewise.
1463         (check_matching): Likewise.
1464         (proceed_next_node): Likewise.
1465         (set_regs): Likewise.
1466         (sift_states_backward): Likewise.
1467         (sift_states_iter_bkref): Likewise.
1468         (add_epsilon_backreference): Likewise.
1469         (transit_state): Likewise.
1470         (transit_state_sb): Likewise.
1471         (transit_state_mb): Likewise.
1472         (transit_state_bkref_loop): Likewise.
1473         (build_trtable): Likewise.
1474         (group_nodes_into_DFAstates): Likewise.
1475         (match_ctx_init): Likewise.
1476         (match_ctx_add_entry): Likewise.
1477
1478 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1479
1480         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1481         l_libname if profiling is enabled [PR libc/2916].
1482
1483         * sysdeps/ia64/dl-tls.h: New file.
1484
1485 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
1486
1487         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1488         Work around an Alpha gas bug.
1489
1490 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1491
1492         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1493         uses read to load the catalog.
1494         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1495
1496 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1499         regex_internal.c, and regex_internal.h.
1500         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1501         * posix/regex.c: Complete rewrite.
1502         * posix/regexec.c: New file.
1503         * posix/regcomp.c: New file.
1504         * posix/regex_internal.c: New file.
1505         * posix/regex_internal.h: New file.
1506         * posix/regex.h (RE_ICASE): New macro.
1507         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1508
1509         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1510         ungetwc.  It's a macro.
1511         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1512         implementation.
1513         Reported by Jason Merrill <jason@redhat.com>.
1514
1515 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1516
1517         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1518         position to fp->_offset if it is set.
1519         * stdio-common/Makefile (tests): Add tst-fdopen.
1520         * stdio-common/tst-fdopen.c: New test.
1521
1522 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1523
1524         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1525         * stdio-common/tst-ungetc.c (main): Add another test.
1526
1527 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
1528
1529         * assert/assert-perr.c: Use INTUSE to reference functions and variables
1530         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
1531         aliases.  Add prototypes for the new aliases.
1532         * assert/assert.c: Likewise.
1533         * include/libc-symbols.h: Likewise.
1534         * include/stdio.h: Likewise.
1535         * include/netinet/in.h: Likewise.
1536         * include/rpc/auth.h: Likewise.
1537         * include/rpc/auth_unix.h: Likewise.
1538         * include/rpc/key_prot.h: Likewise.
1539         * include/rpc/pmap_prot.h: Likewise.
1540         * include/rpc/pmap_rmt.h: Likewise.
1541         * include/rpc/rpc_msg.h: Likewise.
1542         * include/rpc/xdr.h: Likewise.
1543         * inet/gethstbyad_r.c: Likewise.
1544         * inet/gethstbynm2_r.c: Likewise.
1545         * inet/gethstbynm_r.c: Likewise.
1546         * inet/gethstent_r.c: Likewise.
1547         * inet/in6_addr.c: Likewise.
1548         * libio/__fpurge.c: Likewise.
1549         * libio/filedoalloc.c: Likewise.
1550         * libio/fileops.c: Likewise.
1551         * libio/ftello.c: Likewise.
1552         * libio/ftello64.c: Likewise.
1553         * libio/genops.c: Likewise.
1554         * libio/iofclose.c: Likewise.
1555         * libio/iofdopen.c: Likewise.
1556         * libio/iofflush.c: Likewise.
1557         * libio/iofflush_u.c: Likewise.
1558         * libio/iofgetpos.c: Likewise.
1559         * libio/iofgetpos64.c: Likewise.
1560         * libio/iofgets.c: Likewise.
1561         * libio/iofgets_u.c: Likewise.
1562         * libio/iofopen.c: Likewise.
1563         * libio/iofopncook.c: Likewise.
1564         * libio/iofputs.c: Likewise.
1565         * libio/iofread.c: Likewise.
1566         * libio/iofread_u.c: Likewise.
1567         * libio/iofsetpos.c: Likewise.
1568         * libio/iofsetpos64.c: Likewise.
1569         * libio/ioftell.c: Likewise.
1570         * libio/iofwrite.c: Likewise.
1571         * libio/iogetline.c: Likewise.
1572         * libio/iogets.c: Likewise.
1573         * libio/iogetwline.c: Likewise.
1574         * libio/iolibio.h: Likewise.
1575         * libio/iopadn.c: Likewise.
1576         * libio/iopopen.c: Likewise.
1577         * libio/ioseekoff.c: Likewise.
1578         * libio/ioseekpos.c: Likewise.
1579         * libio/iosetbuffer.c: Likewise.
1580         * libio/iosetvbuf.c: Likewise.
1581         * libio/ioungetc.c: Likewise.
1582         * libio/ioungetwc.c: Likewise.
1583         * libio/iovdprintf.c: Likewise.
1584         * libio/iovsprintf.c: Likewise.
1585         * libio/iovsscanf.c: Likewise.
1586         * libio/libioP.h: Likewise.
1587         * libio/memstream.c: Likewise.
1588         * libio/obprintf.c: Likewise.
1589         * libio/oldfileops.c: Likewise.
1590         * libio/oldiofclose.c: Likewise.
1591         * libio/oldiofdopen.c: Likewise.
1592         * libio/oldiofgetpos.c: Likewise.
1593         * libio/oldiofgetpos64.c: Likewise.
1594         * libio/oldiofopen.c: Likewise.
1595         * libio/oldiofsetpos.c: Likewise.
1596         * libio/oldiofsetpos64.c: Likewise.
1597         * libio/oldiopopen.c: Likewise.
1598         * libio/oldstdfiles.c: Likewise.
1599         * libio/putc.c: Likewise.
1600         * libio/setbuf.c: Likewise.
1601         * libio/setlinebuf.c: Likewise.
1602         * libio/stdfiles.c: Likewise.
1603         * libio/stdio.c: Likewise.
1604         * libio/strops.c: Likewise.
1605         * libio/vasprintf.c: Likewise.
1606         * libio/vscanf.c: Likewise.
1607         * libio/vsnprintf.c: Likewise.
1608         * libio/vswprintf.c: Likewise.
1609         * libio/wfiledoalloc.c: Likewise.
1610         * libio/wfileops.c: Likewise.
1611         * libio/wgenops.c: Likewise.
1612         * libio/wstrops.c: Likewise.
1613         * malloc/mtrace.c: Likewise.
1614         * misc/error.c: Likewise.
1615         * misc/syslog.c: Likewise.
1616         * nss/getXXbyYY_r.c: Likewise.
1617         * nss/getXXent_r.c: Likewise.
1618         * nss/hosts-lookup.c: Likewise.
1619         * stdio-common/getw.c
1620         * stdio-common/printf-prs.c: Likewise.
1621         * stdio-common/printf_fp.c: Likewise.
1622         * stdio-common/printf_size.c: Likewise.
1623         * stdio-common/putw.c: Likewise.
1624         * stdio-common/scanf.c: Likewise.
1625         * stdio-common/sprintf.c: Likewise.
1626         * stdio-common/tmpfile64.c: Likewise.
1627         * stdio-common/vfprintf.c: Likewise.
1628         * stdio-common/vfscanf.c: Likewise.
1629         * stdlib/strfmon.c: Likewise.
1630         * sunrpc/auth_des.c: Likewise.
1631         * sunrpc/auth_none.c: Likewise.
1632         * sunrpc/auth_unix.c: Likewise.
1633         * sunrpc/authdes_prot.c: Likewise.
1634         * sunrpc/authuxprot.c: Likewise.
1635         * sunrpc/clnt_perr.c: Likewise.
1636         * sunrpc/clnt_raw.c: Likewise.
1637         * sunrpc/clnt_tcp.c: Likewise.
1638         * sunrpc/clnt_udp.c: Likewise.
1639         * sunrpc/clnt_unix.c: Likewise.
1640         * sunrpc/key_call.c: Likewise.
1641         * sunrpc/key_prot.c: Likewise.
1642         * sunrpc/openchild.c: Likewise.
1643         * sunrpc/pm_getmaps.c: Likewise.
1644         * sunrpc/pm_getport.c: Likewise.
1645         * sunrpc/pmap_clnt.c: Likewise.
1646         * sunrpc/pmap_prot.c: Likewise.
1647         * sunrpc/pmap_prot2.c: Likewise.
1648         * sunrpc/pmap_rmt.c: Likewise.
1649         * sunrpc/rpc_cmsg.c: Likewise.
1650         * sunrpc/rpc_prot.c: Likewise.
1651         * sunrpc/svc_authux.c: Likewise.
1652         * sunrpc/svc_raw.c: Likewise.
1653         * sunrpc/svc_simple.c: Likewise.
1654         * sunrpc/svc_tcp.c: Likewise.
1655         * sunrpc/svc_udp.c: Likewise.
1656         * sunrpc/svc_unix.c: Likewise.
1657         * sunrpc/xdr.c: Likewise.
1658         * sunrpc/xdr_array.c: Likewise.
1659         * sunrpc/xdr_mem.c: Likewise.
1660         * sunrpc/xdr_rec.c: Likewise.
1661         * sunrpc/xdr_ref.c: Likewise.
1662         * sunrpc/xdr_stdio.c: Likewise.
1663         * sysdeps/generic/_strerror.c: Likewise.
1664         * sysdeps/generic/printf_fphex.c: Likewise.
1665         * sysdeps/generic/tmpfile.c: Likewise.
1666         * sysdeps/gnu/errlist.awk: Likewise.
1667         * sysdeps/gnu/errlist.c: Likewise.
1668
1669         * libio/Makefile (routines): Remove iosprint.
1670         * libio/iosprintf.c: Removed
1671
1672
1673 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
1674
1675         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1676         non_dynamic_init and exported now.
1677         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1678         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1679         !SHARED.
1680         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1681         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1682         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1683
1684 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
1685
1686         * elf/dl-close.c (free_slotinfo): Check for end of list and return
1687         true in this case.
1688
1689         * locale/iso-639.def: Add language codes for Walloon.
1690
1691         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1692         total number of relocations performed.
1693
1694         * elf/sprof.c (load_profdata): If do_test provide information as
1695         to why loading failed.
1696         * elf/dl-profile.c (_dl_start_profile): Initialize all of
1697         hist_hdr.dimen.
1698
1699         * csu/set-init.c: Moved to...
1700         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
1701         * csu/Makefile: Don't compile set-init.
1702         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1703         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1704         to __libc_init.
1705         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1706         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1707         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1708         __libc_init.
1709         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
1710         __libc_subinit.
1711
1712 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
1713
1714         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1715         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1716         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1717         (_dl_deallocate_tls): New function.
1718         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1719         _dl_deallocate_tls.
1720
1721 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
1722
1723         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1724         * stdio-common/tst-fseek.c (main): Add test for this.
1725
1726 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
1727
1728         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1729
1730 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
1731
1732         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1733         pointer before dereferencing.
1734
1735 2002-02-18  Roland McGrath  <roland@frob.com>
1736
1737         * sysdeps/mach/hurd/times.c: Fix typo in last change.
1738
1739         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1740         Use task_policy in place of task_priority.
1741
1742         * sysdeps/generic/bits/mman.h
1743         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1744         * sysdeps/mach/msync.c: New file.
1745
1746         * sysdeps/mach/powerpc/syscall.S: New file.
1747
1748         * mach/msg.c [MACH_MSG_OVERWRITE]
1749         (__mach_msg_trap, __mach_msg_overwrite): New functions.
1750         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1751
1752         * sysdeps/mach/configure.in: Check for clock.defs to put into
1753         mach_interface_list.
1754         * sysdeps/mach/configure: Regenerated.
1755
1756         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1757         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1758         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1759         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1760         (mach-shortcuts): Add device_read_overwrite_request,
1761         device_read_overwrite, vm_read_overwrite, thread_switch.
1762
1763         * configure.in (base_machine): Set to $machine by default.
1764         * configure: Regenerated.
1765
1766         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1767         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1768         * sysdeps/mach/configure: Regenerated.
1769         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1770
1771         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1772
1773         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1774
1775         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1776         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1777
1778 2002-02-17  Roland McGrath  <roland@frob.com>
1779
1780         * sysdeps/mach/hurd/times.c
1781         [NO_CREATION_TIME] (startup_time): New static variable.
1782         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1783         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1784         creation_time from task_basic_info.
1785         (__times): Use __gettimeofday instead of __host_get_time.
1786
1787         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1788         Use untyped Mach IPC message format.
1789
1790         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1791
1792         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1793         _S_catch_exception_raise_state_identity,
1794         _hurdsig_fault_catch_exception_raise_state,
1795         _hurdsig_fault_catch_exception_raise_state_identity.
1796
1797         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1798
1799         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1800         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1801
1802         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1803         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1804
1805         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1806         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
1807         them as no-op macros.
1808         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1809         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1810
1811         * sysdeps/powerpc/dl-machine.h
1812         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1813
1814         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1815         Use untyped Mach IPC message format.
1816
1817         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1818         Handle untyped Mach IPC message formats.
1819
1820         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1821         Expect different argument conventions when this is defined.
1822         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1823         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1824         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1825         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1826         for OSF Mach variant.
1827         (faulted): Use mig_reply_error_t for REPLY.
1828         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1829         in __thread_set_exception_ports call.
1830         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1831         __mach_port_set_attributes in place of __mach_port_set_qlimit.
1832
1833         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1834         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1835         on Darwin, which includes bogons.
1836
1837         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1838         variable LOADBASE so it's not declared when it's not used.
1839
1840 2002-02-16  Roland McGrath  <roland@frob.com>
1841
1842         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1843         to use BI.creation_time.
1844
1845         * mach/Machrules (MIG): Add -x c to CPP value passed down.
1846
1847         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
1848         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
1849         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
1850         host_page_size instead of vm_statistics.
1851
1852         * sysdeps/mach/Makefile (mach-before-compile): Don't include
1853         mach_interface.h here, since not all variants use that name.
1854
1855         * sysdeps/mach/configure.in: Add some checks for Mach headers
1856         to ensure a sane installation.
1857         (mach_interface_list): Define this variable by checking for .defs
1858         files found in various variants.
1859         * configure.in (mach_interface_list): AC_SUBST this.
1860         * config.make.in (mach-interface-list): New substituted variable.
1861         * mach/Makefile (user-interfaces): Define this using the value
1862         of $(mach-interface-list) instead of mach, mach4.
1863         Updated other references to mach_interface to use it as well.
1864
1865         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
1866
1867         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
1868         mig_reply_error_t for OSF Mach variant.
1869
1870         * mach/Makefile (routines): Remove bootprivport.
1871         * mach/bootprivport.c: File removed.  It has never been used.
1872
1873         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
1874         Grok the OSF flavor of message format.
1875         (mach_msg_destroy_port): For MAKE_SEND and
1876         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
1877         no-senders notification.
1878
1879 2002-02-06  Roland McGrath  <roland@frob.com>
1880
1881         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
1882         to here if 2.0 compatibility enabled ...
1883         (libc: GLIBC_2.1.3): ... from here.
1884
1885 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
1886
1887         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
1888         generation counter.
1889         * elf/dl-close.c (_dl_close): Likewise.
1890
1891 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
1892
1893         * elf/Makefile: Add rules to build and run tst-tls8.
1894         * elf/tst-tls8.c: New file.
1895         * elf/tst-tlsmod4.c: New file.
1896
1897         * stdlib/test-a64l.c (tests): Add more test cases.
1898
1899         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
1900         Reported by Walter Harms <WHarms@bfs.de>.
1901
1902 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
1903
1904         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
1905         definitions for struct sigcontext.
1906         Suggested by David Mosberger-Tang.
1907
1908 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
1909
1910         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
1911         for removing reference of module in slotinfo list.
1912         (_dl_close): Use remove_slotinfo.
1913         * sysdeps/generic/dl-tls.c: General pretty printing.
1914         (oom): Define only if SHARED.
1915         (_dl_next_tls_modid): Correct starting point for the case we assume
1916         there is a gap.  Add missing instruction grouping (doh!).  Correct
1917         tests for reaching maximum index.
1918         * elf/Makefile: Add rules to build and run tst-tls7.
1919         * elf/tst-tls7.c: New file.
1920         * elf/tst-tlsmod3.c: New file.
1921
1922         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
1923         USE_TLS.
1924         * elf/tst-tlsmod2.c: Likewise.
1925
1926         * elf/dl-close.c (_dl_close): When closing an object using TLS
1927         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
1928         true.  Increment dl_tls_generation only if we closed any TLS-using
1929         object.
1930         * elf/tst-tls6.c: New file.
1931         * elf/Makefile: Add rules to build and run tst-tls6.
1932
1933         * po/da.po: Update from translation team.
1934
1935         * locale/categories.def: Fix typo [PR libc/2948].
1936         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
1937         [PR libc/2949].
1938         * locale/iso-4217.def: Update from official version [PR libc/2950].
1939         * glibcbug.in: Honor TMPDIR [PR libc/2951].
1940         * locale/programs/ld-collate.c (collate_finish): Bail out with a
1941         message if input is too confusion instead of using assert.
1942         (collate_read): Don't crash on unknown symbol [PR libc/2952].
1943         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
1944
1945         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
1946         * elf/tst-tls2.c: Likewise.
1947         * elf/tst-tls3.c: Likewise.
1948
1949 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1950
1951         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
1952
1953 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
1954
1955         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
1956         if this is really necessary.
1957
1958         * elf/dl-close.c (_dl_close): Implement freeing entries in the
1959         slotinfo array.
1960         (free_mem): Free memory for the slotinfo array if possible.
1961
1962 2002-02-12  Andreas Schwab  <schwab@suse.de>
1963
1964         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
1965
1966 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
1967
1968         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
1969         TLS_DTV_UNALLOCATE.
1970         (oom): New function.
1971         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
1972         (_dl_determine_tlsoffset): Likewise.
1973         (_dl_allocate_tls): Likewise.
1974         (__TLS_GET_ADDR): Define if not already defined.
1975         (_dl_tls_symaddr): New function.
1976         (allocate_and_init): New function.
1977         (__tls_get_addr): Actually implement handling of generation counter
1978         and deferred allocation.
1979         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
1980         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1981         _dl_tls_generation.
1982         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
1983         Declare _dl_tls_symaddr.
1984         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
1985         SHARED.
1986         * include/link.h (struct link_map):  Remove l_tls_nextimage and
1987         l_tls_previmage.
1988         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
1989         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
1990         (_dl_vsym): Likewise.
1991         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
1992         layout.
1993         (dl_main): Allow PT_TLS be present for empty segment.  Remove
1994         nextimage list handling.  Instead add all modules using TLS to
1995         dl_tls_dtv_slotinfo_list.
1996         * elf/dl-open.c (dl_open_worker): After successfully loading all
1997         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
1998         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
1999         empty segment don't do anything.  Remove handling of initimage list.
2000         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2001         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2002         * elf/dl-minimal.c: Define __libc_memalign.
2003         * elf/dl-support.c: Remove _dl_initimage_list.  Add
2004         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2005         _dl_tls_generation.
2006         * include/stdlib.h: Declare __libc_memalign.
2007
2008         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2009         * elf/tst-tls4.c: New file.
2010         * elf/tst-tls5.c: New file.
2011         * elf/tst-tlsmod2.c: New file.
2012
2013         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2014
2015         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2016
2017         * elf/tst-tls1.c: Use test-skeleton.c.
2018         * elf/tst-tls2.c: Likewise.
2019         * elf/tst-tls3.c: Likewise.
2020
2021         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2022
2023 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
2024
2025         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2026
2027 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
2028
2029         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2030
2031         * elf/tst-tls3.c: New file.
2032         * elf/tst-tlsmod1.c: New file.
2033         * elf/Makefile: Add rules to build and run tst-tls3.
2034
2035         * sysdeps/i386/dl-machine.h: Include <tls.h>.
2036         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2037         TLS relocations.
2038
2039         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
2040
2041         * po/fr.po: Update from translation team.
2042
2043         * elf/tls-macros.h: Add alternative macros for use in PIC.
2044
2045         * elf/dl-lookup.c: Include <tls.h>.
2046         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
2047
2048         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
2049         required by passing pointer to last element of the list.
2050
2051         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
2052         l_tls_initimage to a place where it actually is performed.
2053
2054         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
2055         after globfree() calls.
2056
2057         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
2058         (openaux): Pass open_mode as new last argument to _dl_map_object.
2059         (_dl_map_object_deps): Add new argument open_mode.  Initialize
2060         open_mode element of args variable with it.
2061         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
2062         _dl_map_object_deps.
2063         * elf/rtld.c (dl_main): Add zero as last parameter to
2064         _dl_map_object_deps call.
2065         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
2066         * elf/nodlopen2.c: New file.
2067         * elf/nodlopenmod2.c: New file.
2068         * elf/Makefile: Add rules to build and run nodlopen2.
2069
2070         * elf/tst-tls1.c: Move TLS helper macros to...
2071         * elf/tls-macros.h: ...here.  New file.
2072         * elf/tst-tls2.c: New file.
2073         * elf/Makefile (tests): Add tst-tls2.
2074         (distribute): Add tls-macros.h.
2075
2076         * po/sv.po: Update from translation team.
2077
2078         * elf/tst-tls1.c (main): Add complete set of tests.  Split
2079         architecture specific definitions from the actual test code.
2080
2081         * po/tr.po: Update from translation team.
2082
2083 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
2084
2085         * elf/Makefile (tests): Add tst-tls1.
2086         * elf/tst-tls1.c: New file.
2087
2088         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
2089         alignment of TCB for now.
2090
2091         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
2092         initialization image for the application itself.
2093
2094         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
2095         loop to initialize TLS block.
2096
2097 2002-02-08  Richard Henderson  <rth@redhat.com>
2098
2099         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
2100         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
2101
2102         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
2103
2104 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
2105
2106         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
2107
2108 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * po/ca.po: Update from translation team.
2111         * po/sk.po: Likewise.
2112
2113         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
2114         (dl_main): Move dtv/static TLS handling before relocation.
2115         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
2116         TLS_INIT_TP to allocate and install the dtv/static TLS block.
2117         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
2118         so far uses TLS initialize GL(dl_tls_static_size) and
2119         GL(dl_tls_static_align) to account for the TCB.
2120         (_dl_allocate_tls): New function.
2121         * sysdeps/generic/ldsodefs.h (rtld_global): Add
2122         _dl_initial_dtv_malloced.
2123
2124         * configure.in: Test for __builtin_memset more realistically.
2125
2126         * csu/version.c (banner): If TLS support is available say so.
2127
2128 2002-02-04  H.J. Lu  <hjl@gnu.org>
2129
2130         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
2131         __attribute_used__.
2132         (__dl_runtime_resolve): Likewise.
2133
2134         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
2135         declaration.
2136
2137 2001-11-15  H.J. Lu  <hjl@gnu.org>
2138
2139         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
2140         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
2141
2142         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
2143
2144 2002-02-07  H.J. Lu  <hjl@gnu.org>
2145
2146         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
2147         ".set noreorder".
2148         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
2149         Likewise.
2150
2151 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2152
2153         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
2154
2155         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
2156         ___tls_get_addr_internal.
2157         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
2158
2159         * po/ko.po: Update from translation team.
2160
2161 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
2162
2163         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
2164         attribute, change __pad{1,2} type to unsigned int.
2165         (struct stat64): Remove packed attribute.
2166
2167 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2168
2169         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
2170
2171 2002-02-07  Andreas Schwab  <schwab@suse.de>
2172
2173         * configure.in: Fix check for -zcombreloc.
2174
2175 2002-02-06  H.J. Lu  <hjl@gnu.org>
2176
2177         * config.h.in (HAVE_BUILTIN_MEMSET): New.
2178         * configure.in: Check if __builtin_memset really works.
2179         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
2180         __GNUC_PREREQ (2, 96) before using __builtin_memset.
2181
2182 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2183
2184         * io/bug-ftw3.c (main): Don't try the test if root.
2185
2186 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2187
2188         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
2189         constraints.
2190         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
2191         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
2192         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
2193         Likewise.
2194         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
2195         a weak alias for __clone.
2196         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
2197         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
2198         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
2199         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
2200         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
2201         a weak alias for __mmap64.
2202
2203 2002-02-05  H.J. Lu  <hjl@gnu.org>
2204
2205         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
2206         (atomic_add): Likewise.
2207         (compare_and_swap): Likewise.
2208         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
2209
2210 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2211
2212         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
2213
2214         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
2215         alignment of the TCB and store total size and alignment of static
2216         TLS block in _dl_tls_static_size and _dl_tls_static_align.
2217         tls_index is a typedef.
2218         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
2219         _dl_tls_static_align.
2220         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
2221         * elf/dl-support.c: Define _dl_tls_static_size and
2222         _dl_tls_static_align.
2223
2224 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2225
2226         * configure.in: Add --without-tls option.
2227         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
2228         --without-tls is given.
2229
2230         * sysdeps/generic/dl-tls.c: Include <tls.h>.
2231
2232         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
2233
2234 2002-02-06  Roland McGrath  <roland@frob.com>
2235
2236         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
2237         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2238
2239         * scripts/versions.awk: Improve error message for missing version.
2240         Each version inherits from the last one only if they have the same
2241         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2242         but not GLIBC_x and FOO_y.
2243
2244         * scripts/firstversions.awk: Handle libraries that don't have each
2245         particular version named in the third column of shlib-versions.
2246
2247         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2248
2249 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2250
2251         * Versions.def [ld]: Add GLIBC_2.3.
2252         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2253         * elf/Makefile (dl-routines): Add dl-tls.
2254         (distribute): Add dl-tls.h.
2255         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2256         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2257         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2258         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2259         along with the other info in the link map.  Change queueing of init
2260         images for double linked list.  Use _dl_next_tls_modid to compute
2261         l_tls_modid.
2262         * elf/rtld.c (_dl_start_final): Store alignment requirement
2263         along with the other info in rtld map and executable map.
2264         (dl_main): Add ld.so to the init image list if necessary.  Compute
2265         final module ID with _dl_next_tls_modid.
2266         * include/link.h (struct link_map): Add l_tls_previmage and
2267         l_tls_align.
2268         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2269         * sysdeps/i386/elf/Versions: New file.
2270         * sysdeps/generic/dl-tls.c: New file.
2271         * sysdeps/generic/dl-tls.h: New file.
2272         * sysdeps/i386/dl-tls.h: New file.
2273
2274 2002-02-06  Roland McGrath  <roland@frob.com>
2275
2276         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2277         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2278
2279 2002-01-05  Roland McGrath  <roland@frob.com>
2280
2281         * sysdeps/mach/configure.in: New file.
2282         * sysdeps/mach/configure: New generated file.
2283
2284         * mach/Makefile (user-interfaces): Remove default_pager_helper.
2285         It has never been used by anything.
2286
2287 2002-02-06  H.J. Lu  <hjl@gnu.org>
2288
2289         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2290         is included.
2291
2292 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2293
2294         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2295         attribute((packed)) to counter stupid people misusing gcc options.
2296         (struct stat64): Likewise.
2297
2298 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2299
2300         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
2301         the variables which are used as booleans.
2302
2303 2002-02-06  Andreas Jaeger  <aj@suse.de>
2304
2305         * include/libc-symbols.h (INTUSE): Renamed from INT.
2306         * elf/dl-deps.c: Change users.
2307         * sysdeps/generic/dl-sysdep.c: Likewise.
2308         * sysdeps/generic/dl-cache.c: Likewise.
2309         * elf/dl-reloc.c: Likewise.
2310         * elf/rtld.c: Likewise.
2311         * elf/dl-version.c: Likewise.
2312         * elf/dl-load.c: Likewise.
2313         * elf/dl-dst.h: Likewise.
2314         * elf/dl-init.c: Likewise.
2315         * elf/dl-error.c: Likewise.
2316         * elf/dl-fini.c: Likewise.
2317         * elf/dl-runtime.c: Likewise.
2318         * elf/do-lookup.h: Likewise.
2319
2320         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
2321         definition.
2322         * stdio-common/_itowa.h: Likewise.
2323
2324 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2325
2326         * elf/dl-minimal.c: Define _itoa_lower_digits.
2327
2328         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
2329         DT_FLAGS set.
2330
2331         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
2332         loading modules with the DF_STATIC_TLS flag set.
2333         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
2334         element.
2335         * include/link.h (struct link_map): Add l_flags field.
2336         * elf/elf.h (DF_STATIC_TLS): New definition.
2337
2338         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
2339         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
2340
2341         * elf/rtld.c (process_dl_debug): Correct printing help message.
2342         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
2343         for %s.
2344
2345         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
2346         definition and pass &errno in use of this variable.
2347         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
2348
2349 2002-02-04  Andreas Schwab  <schwab@suse.de>
2350
2351         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
2352         * locale/programs/charmap-dir.c: Wrap calls that output messages
2353         with WITH_CUR_LOCALE.  Include "localedef.h" first.
2354         * locale/programs/charmap.c: Likewise.
2355         * locale/programs/ld-address.c: Likewise.
2356         * locale/programs/ld-collate.c: Likewise.
2357         * locale/programs/ld-ctype.c: Likewise.
2358         * locale/programs/ld-identification.c: Likewise.
2359         * locale/programs/ld-measurement.c: Likewise.
2360         * locale/programs/ld-messages.c: Likewise.
2361         * locale/programs/ld-monetary.c: Likewise.
2362         * locale/programs/ld-name.c: Likewise.
2363         * locale/programs/ld-numeric.c: Likewise.
2364         * locale/programs/ld-paper.c: Likewise.
2365         * locale/programs/ld-telephone.c: Likewise.
2366         * locale/programs/ld-time.c: Likewise.
2367         * locale/programs/linereader.c: Likewise.
2368         * locale/programs/linereader.h: Likewise.
2369         * locale/programs/localedef.c: Likewise.
2370         * locale/programs/locfile.c: Likewise.
2371         * locale/programs/repertoire.c: Likewise.
2372
2373 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2374
2375         * elf/rtld.c (_dl_start_final): Determine load address to locate
2376         ehdr with GL(dl_rtld_map).l_map_start.
2377
2378         * po/ca.po: Update from translation team.
2379
2380         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
2381         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
2382         header entry.
2383         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2384         _dl_tls_module_cnt.
2385         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
2386
2387 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
2388
2389         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
2390         * include/link.h (struct link_map): Add various members for TLS
2391         information.
2392         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2393         _rtld_tlsoffset, add _dl_initimage_list.
2394         * sysdeps/i386/dl-lookupcfg.h: New file.
2395         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
2396         TLS relocation.  When using TLS we now use RESOLVE_MAP.
2397         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2398         is used.
2399
2400         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2401         unused.
2402
2403         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2404         thread-pointer as soon as possible.
2405         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
2406         elements in rtld_global.
2407         * sysdeps/generic/tls.h: New file.
2408         * elf/Makefile (distribute): Add tls.h.
2409         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2410         relocations.  Not complete yet.
2411
2412         * resolv/resolv.h: Allow user to define __need_res_state and only
2413         define __res_start structure then.
2414         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2415
2416         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2417         dl_cpuclock_offset initialization to _dl_start_final.
2418         (_dl_show_auxv): Avoid unnecessary sign extension.
2419         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2420
2421 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2422
2423         * config.h.in: Add HAVE_TLS_SUPPORT.
2424         * sysdeps/i386/elf/configure.in: New file.
2425
2426 2002-02-03  Andreas Schwab  <schwab@suse.de>
2427
2428         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2429         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
2430
2431 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
2432
2433         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2434         alloca if the memory reqirements are too high.
2435
2436 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2437
2438         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2439         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2440         the former is available anyway and speed isn't important here.
2441         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2442         * elf/dl-version.c (match_symbol): Likewise.
2443         (_dl_check_map_versions): Likewise.
2444         * elf/rtld.c (process_envvars): Likewise.
2445         (print_statistics): Likewise.
2446         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2447         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
2448         bases.  Add assert to catch uses of unimplemented features.
2449         (__strsep): Add assert to catch uses of unimplemented features.
2450         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
2451         and avoid inline optimization.
2452         * elf/rtld.c (process_envvars): Likewise.
2453         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2454         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2455         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2456
2457 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2458
2459         * stdio-common/_itoa.h: Minor simplifications of the code.
2460         * stdio-common/_itoa.c: Likewise.
2461
2462         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2463         instead of _dl_printf for debugging info output.
2464
2465         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2466         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2467
2468 2002-02-01  H.J. Lu  <hjl@gnu.org>
2469
2470         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2471         (atomic_add): Likewise.
2472         (compare_and_swap): Return 0 only when failed to compare. Use
2473         branch likely.
2474
2475         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2476         branch likely.
2477
2478 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2479
2480         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2481
2482 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2483
2484         * elf/dl-minimal.c (__strsep): New minimal implementation.
2485
2486 2002-02-02  Paul Eggert  <eggert@twinsun.com>
2487
2488         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2489         (__mktime_internal): If no tm_isdst is requested, prefer solutions
2490         with tm_isdst > 0 when the requested time falls within a
2491         spring-forward gap [PR libc/2894].
2492
2493 2002-02-03  Andreas Schwab  <schwab@suse.de>
2494
2495         * stdio-common/tst-rndseek.c: Increase timeout.
2496
2497 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2498
2499         Change ld.so to not use functions which are exported.  One cannot
2500         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
2501         definitions.
2502         * include/libc-symbols.h: Define INT and INTDEF.
2503         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2504         _dl_signal_error_internal, _dl_map_object_internal,
2505         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2506         _dl_lookup_versioned_symbol_internal,
2507         _dl_relocate_object_internal, _dl_debug_state_internal,
2508         _dl_start_profile_internal, and _dl_unload_cache_internal.
2509         * include/dlfcn.h: Declare _dl_catch_error_internal.
2510         * elf/rtld.c: Use INT for calls to any of the *_internal functions
2511         above.  Add INTDEF to function definitions.
2512         * elf/dl-debug.c: Likewise.
2513         * elf/dl-deps.c: Likewise.
2514         * elf/dl-dst.h: Likewise.
2515         * elf/dl-error.c: Likewise.
2516         * elf/dl-fini.c: Likewise.
2517         * elf/dl-init.c: Likewise.
2518         * elf/dl-load.c: Likewise.
2519         * elf/dl-lookup.c: Likewise.
2520         * elf/dl-misc.c: Likewise.
2521         * elf/dl-open.c: Likewise.
2522         * elf/dl-profile.c: Likewise.
2523         * elf/dl-reloc.c: Likewise.
2524         * elf/dl-runtime.c: Likewise.
2525         * elf/dl-version.c: Likewise.
2526         * elf/do-lookup.h: Likewise.
2527         * sysdeps/generic/dl-cache.c: Likewise.
2528         * sysdeps/generic/dl-sysdep.c: Likewise.
2529         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2530         instead of _dl_init.
2531         * sysdeps/arm/dl-machine.h: Likewise.
2532         * sysdeps/cris/dl-machine.h: Likewise.
2533         * sysdeps/hppa/dl-machine.h: Likewise.
2534         * sysdeps/i386/dl-machine.h: Likewise.
2535         * sysdeps/ia64/dl-machine.h: Likewise.
2536         * sysdeps/m68k/dl-machine.h: Likewise.
2537         * sysdeps/mips/dl-machine.h: Likewise.
2538         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2539         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2540         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2541         * sysdeps/sh/dl-machine.h: Likewise.
2542         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2543         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2544         * sysdeps/x86_64/dl-machine.h: Likewise.
2545         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2546
2547         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2548         and _dl_debug_initialize.
2549
2550         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
2551         more information.
2552         * elf/rtld.c (dl_main): Avoid strrchr.
2553         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2554         result of readlink.  Search from the back for '/'.
2555
2556         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2557         strncpy if possible.
2558
2559         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
2560         strncmp.
2561         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
2562         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2563         strspn, and strcspn.
2564         (process_envvars): Don't use strcspn.
2565
2566         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2567         (_dl_dst_substitute): Likewise.
2568
2569 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2570
2571         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2572         code which is never used when relocating ld.so itself.
2573
2574         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2575         starting ld.so itself.  Move l_addr variable initialization closer
2576         to use.
2577         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2578
2579 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2580
2581         * Versions.def (libc): Add GLIBC_PRIVATE.
2582         (libdb, libnss_db, libdb1): Remove.
2583         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2584         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2585         (libpthread): Add GLIBC_PRIVATE.
2586         (libresolv): Likewise, remove GLIBC_2.1.
2587         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2588         GLIBC_2.2.3, GLIBC_2.3.
2589         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2590         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2591         _dl_sym, _dl_vsym): Likewise.
2592         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2593         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2594         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2595         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2596         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2597         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2598         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2599         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2600         Likewise.
2601         (_dl_object_relocation_scope): Remove.
2602         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2603         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2604         __gconv_cache): Move to GLIBC_PRIVATE.
2605         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2606         __internal_setnetgrent): Likewise.
2607         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2608         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2609         * locale/Versions (__collate_element_hash, __collate_element_strings,
2610         __collate_symbol_classes, __collate_symbol_hash,
2611         __collate_symbol_strings, _nl_current_LC_COLLATE,
2612         _nl_current_LC_CTYPE): Likewise.
2613         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2614         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2615         (libnss_nis, libnss_nisplus): Likewise.
2616         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2617         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2618         (libnss_files): Move all symbols to GLIBC_PRIVATE.
2619         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2620         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2621         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2622         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2623         __ns_get16, __ns_samename): Likewise.
2624         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2625         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2626         GLIBC_PRIVATE.
2627         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2628         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2629         __libc_connect): Likewise.
2630         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2631         Likewise.
2632         * stdlib/Versions (__libc_system): Likewise.
2633         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2634         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2635         * sysdeps/ia64/fpu/Versions: Likewise.
2636         * sysdeps/ia64/Versions: Likewise.
2637         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2638         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2639         to GLIBC_PRIVATE.
2640         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2641         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2642         __libc_sigaction): Likewise.
2643         * termios/Versions (__libc_tcdrain): Likewise.
2644
2645         * misc/sys/cdefs (__attribute_noinline__): Define.
2646         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2647         __attribute_noinline__.
2648
2649         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2650         * elf/dl-xstat64.c: New file.
2651         * elf/dl-fxstat64.c: New file.
2652         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2653         don't export __fxstat64 at multiple versions.
2654         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2655         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2656
2657 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
2658
2659         * locale/program/ld-collate.c (collate_finish): Assign a wide
2660         char collation sequence value to multi character collating
2661         elements, and avoid over writing by non-character elements.
2662
2663 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2664
2665         * elf/Makefile (distribute): Add dl-procinfo.c.
2666         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2667         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2668
2669 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2670
2671         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2672         definition.
2673         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2674         _rtld_global struct.
2675         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2676         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2677         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2678         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2679         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2680         _dl_fpu_control_set): Remove unused externs.
2681         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2682         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2683         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2684         related variables in _rtld_global struct.
2685         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2686         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2687         unused extern.
2688
2689 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2690
2691         * sysdeps/generic/dl-procinfo.c: New file.
2692
2693 2002-02-01  Andreas Schwab  <schwab@suse.de>
2694
2695         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2696
2697 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2698
2699         * elf/rtld.c (_dl_start): Mark as internal_function.
2700         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2701         in register.
2702         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2703         General pretty printing.
2704
2705 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
2706
2707         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2708         * elf/dl-reloc.c: Pretty printing.
2709         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2710         procinfo-related variables in rtld_global struct.
2711         * elf/dl-support.c: Likewise.
2712         * elf/rtld.c: Likewise.
2713         * sysdeps/i386/i686/Makefile: Likewise.
2714         * sysdeps/i386/i686/hp-timing.c: Likewise.
2715         * sysdeps/i386/i686/hp-timing.h: Likewise.
2716         * sysdeps/ia64/Makefile: Likewise.
2717         * sysdeps/ia64/hp-timing.c: Likewise.
2718         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2719         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2720         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2721         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2722         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2723         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2724         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2725         * sysdeps/x86_64/Makefile: Likewise.
2726
2727         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2728         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2729         _dl_debug_fd to rtld_global.
2730         * elf/Versions: Likewise.
2731         * elf/dl-close.c: Likewise.
2732         * elf/dl-iteratephdr.c: Likewise.
2733         * elf/dl-lookup.c: Likewise.
2734         * elf/dl-misc.c: Likewise.
2735         * elf/dl-open.c: Likewise.
2736         * elf/dl-support.c: Likewise.
2737         * elf/do-lookup.h: Likewise.
2738         * elf/rtld.c: Likewise.
2739         * sysdeps/generic/dl-cache.c: Likewise.
2740         * sysdeps/generic/dl-sysdep.c: Likewise.
2741         * sysdeps/ia64/Versions: Likewise.
2742         * sysdeps/unix/clock_gettime.c: Likewise.
2743         * sysdeps/unix/clock_settime.c: Likewise.
2744         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2745         * sysdeps/sparc/Versions: Removed.
2746         * sysdeps/i386/i686/Versions : Removed.
2747         * sysdeps/x86_64/Versions: Removed.
2748         * configure.in: Define HAVE_PROTECTED if .protected is available.
2749         * config.h.in: Add entry for HAVE_PROTECTED.
2750
2751 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
2752
2753         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2754         code in struct _rtld_global.  Export this struct, remove all
2755         exports for the signal variables.
2756         * sysdeps/arm/dl-machine: Likewise.
2757         * sysdeps/generic/dl-origin: Likewise.
2758         * sysdeps/generic/dl-sysdep: Likewise.
2759         * sysdeps/generic/dl-cache: Likewise.
2760         * sysdeps/hppa/dl-fptr: Likewise.
2761         * sysdeps/hppa/dl-machine: Likewise.
2762         * sysdeps/cris/dl-machine: Likewise.
2763         * sysdeps/i386/dl-machine: Likewise.
2764         * sysdeps/ia64/dl-machine: Likewise.
2765         * sysdeps/m68k/dl-machine: Likewise.
2766         * sysdeps/mach/hurd/dl-sysdep: Likewise.
2767         * sysdeps/mips/mips64/dl-machine: Likewise.
2768         * sysdeps/mips/dl-machine: Likewise.
2769         * sysdeps/powerpc/elf/libc-start: Likewise.
2770         * sysdeps/powerpc/dl-machine: Likewise.
2771         * sysdeps/powerpc/dl-start: Likewise.
2772         * sysdeps/sparc/sparc32/dl-machine: Likewise.
2773         * sysdeps/sparc/sparc64/dl-machine: Likewise.
2774         * sysdeps/sh/dl-machine: Likewise.
2775         * sysdeps/s390/s390-32/dl-machine: Likewise.
2776         * sysdeps/s390/s390-64/dl-machine: Likewise.
2777         * sysdeps/unix/sysv/aix/libc-start: Likewise.
2778         * sysdeps/unix/sysv/aix/start-libc: Likewise.
2779         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2780         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2781         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2782         * sysdeps/x86_64/dl-machine: Likewise.
2783
2784 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
2785
2786         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2787         are too high.
2788
2789 2002-01-31  Andreas Schwab  <schwab@suse.de>
2790
2791         * sysdeps/posix/readv.c: Check for ssize_t overflow.
2792
2793 2002-01-31  Andreas Schwab  <schwab@suse.de>
2794
2795         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2796         reference to _dl_pagesize.
2797
2798 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
2799
2800         * Versions.def [ld]: Add GLIBC_2.3.
2801         * elf/dl-addr.c: Move global variables for SHARED code in struct
2802         _rtld_global.  Export this struct, remove all exports for the
2803         signal variables.
2804         * elf/dl-close.c: Likewise.
2805         * elf/dl-conflict.c: Likewise.
2806         * elf/dl-debug.c: Likewise.
2807         * elf/dl-deps.c: Likewise.
2808         * elf/dl-dst.h: Likewise.
2809         * elf/dl-error.c: Likewise.
2810         * elf/dl-fini.c: Likewise.
2811         * elf/dl-init.c: Likewise.
2812         * elf/dl-iteratephdr.c: Likewise.
2813         * elf/dl-libc.c: Likewise.
2814         * elf/dl-load.c: Likewise.
2815         * elf/dl-lookup.c: Likewise.
2816         * elf/dl-minimal.c: Likewise.
2817         * elf/dl-object.c: Likewise.
2818         * elf/dl-open.c: Likewise.
2819         * elf/dl-profile.c: Likewise.
2820         * elf/dl-profstub.c: Likewise.
2821         * elf/dl-reloc.c: Likewise.
2822         * elf/dl-runtime.c: Likewise.
2823         * elf/dl-support.c: Likewise.
2824         * elf/dl-sym.c: Likewise.
2825         * elf/dl-version.c: Likewise.
2826         * elf/do-lookup.h: Likewise.
2827         * elf/do-rel.h: Likewise.
2828         * elf/dynamic-link.h: Likewise.
2829         * elf/rtld.c: Likewise.
2830         * sysdeps/generic/dl-cache.c: Likewise.
2831         * sysdeps/generic/dl-sysdep.c: Likewise.
2832         * sysdeps/generic/ldsodefs.h: Likewise.
2833         * sysdeps/generic/libc-start.c: Likewise.
2834         * sysdeps/i386/dl-machine.h: Likewise.
2835         * sysdeps/ia64/dl-fptr.c: Likewise.
2836         * sysdeps/ia64/dl-machine.h: Likewise.
2837         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2838         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2839         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2840         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2841         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2842         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2843         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2844         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2845
2846 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
2847
2848         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
2849         to avoid warning
2850         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
2851
2852         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
2853         SHARED version.
2854         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
2855
2856         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
2857
2858 2002-01-29  Ben Collins  <bcollins@debian.org>
2859
2860         * string/bits/string2.h (__mempcpy): Protect size arg for
2861         addition when using __builtin_memcpy.
2862
2863 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
2864
2865         * stdlib/Makefile (tests): Add tst-qsort.
2866         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
2867
2868         * manual/signal.texi (Process Signal Mask): Document that
2869         pthread_sigmask, not sigprocmask, must be used in MT programs.
2870         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
2871
2872         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
2873         found.
2874         * misc/Makefile (tests): Add tst-hsearch.
2875         * misc/tst-hsearch.c: New file.
2876
2877 2002-01-18  Wolfram Gloger  <wg@malloc.de>
2878
2879         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
2880         * malloc/malloc.h: Likewise.
2881         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
2882         * malloc/arena.c: New file.
2883         * malloc/hooks.c: New file.
2884         * malloc/tst-mallocstate.c: New file.
2885         * malloc/Makefile: Add new testcase tst-mallocstate.
2886         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
2887
2888 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2889
2890         * stdlib/msort.c: Remove last patch.  The optimization violates the
2891         same rule which qsort.c had problems with.
2892
2893 2002-01-27  Paul Eggert  <eggert@twinsun.com>
2894
2895         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
2896         to a pivot element that lies outside the array to be sorted, as
2897         ISO C99 requires that the comparison function be called only with
2898         addresses of array elements [PR libc/2880].
2899
2900 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2901
2902         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
2903         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
2904
2905         * timezone/asia: Update from tzdata2002b.
2906         * timezone/australasia: Likewise.
2907         * timezone/backward: Likewise.
2908         * timezone/europe: Likewise.
2909         * timezone/leapseconds: Likewise.
2910         * timezone/iso3166.tab: Likewise.
2911         * timezone/zone.tab: Likewise.
2912
2913 2002-01-23  Richard Henderson  <rth@redhat.com>
2914
2915         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
2916
2917 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
2918
2919         * string/strxfrm.c: Allocate one more byte for rulearr and clear
2920         this element [PR libc/2855].
2921
2922         * string/strcoll.c: Handle zero-length arguments specially
2923         [PR libc/2856].
2924
2925 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
2926
2927         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
2928         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
2929         short lengths and constant src.
2930         (strcpy): Don't optimize for gcc 3.0+.
2931         (__stpcpy): For gcc 3.0+, don't use
2932         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
2933         for short string literal src.
2934
2935 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2936
2937         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2938         Set for arm, too.
2939
2940 2001-01-22  Paul Eggert  <eggert@twinsun.com>
2941
2942         * manual/llio.texi (Linked Channels, Cleaning Streams):
2943         Make it clearer that a just-opened input stream might need cleaning.
2944
2945 2002-01-21  H.J. Lu  <hjl@gnu.org>
2946
2947         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2948         Don't use label at end of compound statement.
2949
2950 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
2951
2952         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
2953         Remove test for negative integer arg; sin_pi does it correctly.
2954
2955 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
2956
2957         * nscd/Makefile (distribute): Filter out xmalloc.c.
2958
2959 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
2960
2961         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
2962         Set offset if read end wasn't the buffer end.
2963         (_IO_file_seekoff_mmap): New function.
2964         (_IO_file_xsgetn_mmap): New function.
2965         (_IO_file_jumps_mmap): Use the two new functions.
2966         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
2967         != end buffer.
2968         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
2969         _IO_file_underflow_mmap.
2970         * libio/iofopen.c: Don't position file descriptor at end of file.
2971         * libio/tst-widetext.c: Improve error messages.
2972         * stdio-common/tst-rndseek.c: Likewise.
2973
2974 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
2975
2976         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
2977         end of enum for !_GNU_SOURCE.
2978         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
2979         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
2980         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
2981         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
2982         values unless _GNU_SOURCE.
2983
2984         * iconvdata/tcvn5712-1.c: Minor cleanups.
2985
2986 2002-01-18  Andreas Schwab  <schwab@suse.de>
2987
2988         * sysdeps/unix/sysv/linux/configure.in
2989         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
2990
2991 2002-01-16  Roger Sayle  <roger@eyesopen.com>
2992
2993         * stdlib/msort.c (msort_with_tmp): Replace implementation with
2994         more efficient "Towers of Hanoi" mergesort.
2995         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
2996         for generic, sizeof(int) and sizeof(long) variants respectively.
2997
2998 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
2999
3000         * manual/syslog.texi (openlog): Describe possible problems with
3001         first parameter.
3002         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3003
3004         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
3005         * nscd/connections.c (begin_drop_privileges): New function.
3006         (finish_drop_privileges): New function.
3007         (nscd_init): Call the new functions which also install all groups
3008         for the server user.
3009         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3010         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3011
3012 2002-01-17  H.J. Lu  <hjl@gnu.org>
3013
3014         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3015         `const' from `got'.
3016
3017 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3018
3019         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3020         instructions for pointer operations.
3021         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3022
3023 2002-01-17  Andreas Jaeger  <aj@suse.de>
3024
3025         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3026         __uint128_t build-in.
3027
3028         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3029         PowerPC, sync with 2.2 branch.
3030
3031 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3032
3033         * posix/getconf.c: Update copyright year.
3034         * nss/getent.c: Likewise.
3035         * nscd/nscd_nischeck.c: Likewise.
3036         * iconv/iconvconfig.c: Likewise.
3037         * iconv/iconv_prog.c: Likewise.
3038         * elf/ldconfig.c: Likewise.
3039         * catgets/gencat.c: Likewise.
3040         * csu/version.c: Likewise.
3041         * elf/ldd.bash.in: Likewise.
3042         * elf/sprof.c (print_version): Likewise.
3043         * locale/programs/locale.c: Likewise.
3044         * locale/programs/localedef.c: Likewise.
3045         * nscd/nscd.c (print_version): Likewise.
3046         * debug/xtrace.sh: Likewise.
3047         * malloc/memusage.sh: Likewise.
3048         * malloc/mtrace.pl: Likewise.
3049
3050 2002-01-16  Andreas Schwab  <schwab@suse.de>
3051
3052         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
3053         reliably remove "-ia64" from rtld name.
3054
3055 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3056
3057         * iconvdata/gb18030.c: Bug fixes and support for more characters.
3058         Patch by Yu Shao <yshao@redhat.com>.
3059
3060 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3061
3062         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
3063         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
3064         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
3065
3066 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3067
3068         * sysdeps/s390/fpu/libm-test-ulps: Update.
3069
3070 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
3071
3072         * elf/elf.h: Update x86 relocations.
3073
3074 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
3075
3076         * locale/programs/charmap.c (new_width): Check whether byte
3077         sequences for both ends of range have the same length.
3078
3079 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
3080
3081         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
3082
3083 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
3084
3085         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
3086         string literals.
3087         (__full_ieee754_sqrt): Add __attribute_used__.
3088
3089 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
3090
3091         * sysdeps/generic/group_member.c (__group_member): Also check
3092         groups[0] [PR libc/2781].
3093
3094 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
3095
3096         * Makefile (distribute): Add scripts/cpp.
3097         * elf/Makefile (distribute): Add reldep6mod[01234].c,
3098         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
3099         unwind-dw2-fde.h, and dwarf2.h.
3100         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
3101         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
3102         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
3103         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
3104
3105 2002-01-07  Roland McGrath  <roland@frob.com>
3106
3107         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
3108         volatile on type of ARGC so the compiler doesn't get clever.
3109
3110 2002-01-07  Andreas Jaeger  <aj@suse.de>
3111
3112         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
3113         * sysdeps/i386/bits/byteswap.h: Likewise.
3114         * sysdeps/ia64/bits/byteswap.h: Likewise.
3115         * sysdeps/m68k/bits/byteswap.h: Likewise.
3116         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
3117         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
3118
3119 2002-01-02  Bruno Haible  <bruno@clisp.org>
3120
3121         * intl/plural.y: Fix %expect count.
3122
3123 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
3124
3125         * elf/Makefile (routines, shared-only-routines): Add
3126         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
3127         * elf/elf.h (PT_GNU_EH_FRAME): Define.
3128         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
3129         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
3130         Optimize if .eh_frame section contains no FDEs.
3131         (__register_frame, __deregister_frame_info_bases,
3132         __deregister_frame): Likewise.
3133         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
3134         DW_CFA_restore handling.
3135
3136 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
3137
3138         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
3139
3140         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
3141         for x < 0.25 and restore original range reduction method.
3142         (__ieee754_lgammal_r): Make sure signgam is set before returning.
3143
3144 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * libio/fileops.c (_IO_file_underflow_mmap): New function.
3147         (_IO_file_close_mmap): New function.
3148         (_IO_file_jumps_mmap): New variable.
3149         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
3150         trying to convert rest of byte buffer.
3151         (_IO_wfile_underflow_mmap): New function.
3152         (_IO_wfile_jumps_mmap): New variable.
3153         * libio/iofopen.c (__fopen_maybe_mmap): New function.
3154         (__fopen_internal): New function.  Split out from _IO_new_fopen.
3155         (_IO_new_fopen): Call __fopen_internal.
3156         * libio/iofopen64.c: Just call __fopen_internal.
3157         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
3158         successfully.
3159         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
3160         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
3161         _IO_file_close_mmap.
3162
3163         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
3164         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
3165
3166         * stdio-common/Makefile (tests): Add tst-rndseek.
3167         * stdio-common/tst-rndseek.c: New file.
3168
3169 2002-01-05  Roland McGrath  <roland@frob.com>
3170
3171         * config.h.in (HAVE_MIG_RETCODE): New #undef.
3172         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
3173         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
3174         * sysdeps/mach/hurd/configure: Regenerated.
3175
3176 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
3177
3178         * elf/elf.h: Add more TLS definitions.
3179
3180 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
3181
3182         * include/features.h (__GLIBC_MINOR__): Bump to 3.
3183
3184 2002-01-02  Roland McGrath  <roland@frob.com>
3185
3186         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
3187         __sigisemptyset.  Don't use MASK uninitialized.
3188
3189         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
3190         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
3191         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
3192         __sigdelset, __sigaddset, __sigorset.
3193
3194         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
3195         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
3196
3197         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
3198         _hurd_ports is null.
3199
3200         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
3201         for old CMU and new OSF Mach interface flavors.
3202         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
3203         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3204
3205         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
3206
3207         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
3208         Pass extra arguments to task_create for OSF variant.
3209         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3210
3211         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
3212         conditional on [HAVE_AUX_VECTOR].
3213
3214         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
3215         mach_msg_timeout_t as type of final argument.
3216
3217         * hurd/privports.c (__get_privileged_ports):
3218         Change host_priv_t to mach_port_t in argument type.
3219         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
3220         Update decls.
3221
3222         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
3223         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
3224         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
3225         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
3226         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
3227         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
3228
3229 2002-01-01  Roland McGrath  <roland@frob.com>
3230
3231         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
3232
3233 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
3234
3235         * include/stdlib.h: Define inlines for the _l variants of the strto*
3236         functions.
3237
3238 2002-01-01  Roland McGrath  <roland@frob.com>
3239
3240         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3241
3242         * mach/Machrules (MIG): Set CPP as well as CC.
3243
3244 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
3245
3246         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3247         locale to parse /proc/loadavg [PR libc/2760].
3248
3249 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
3250
3251         * elf/dl-conflict.c: Include sys/param.h.
3252         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3253         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3254         warning.
3255         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3256         literals to avoid warnings.
3257
3258 2001-12-31  Andreas Jaeger  <aj@suse.de>
3259
3260         * configure.in: Don't check for gsed since we do not use it anywhere.
3261
3262 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
3263
3264         * io/fts.c: Update from BSD to fix memory leaks.
3265
3266 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
3267
3268         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3269         * elf/chroot_canon.c: Likewise.
3270         * elf/dl-object.c: Likewise.
3271         * iconv/iconv_charmap.c: Likewise.
3272         * iconv/iconv_prog.c: Likewise.
3273         * libio/iogetdelim.c: Likewise.
3274         * locale/lc-time.c: Likewise.
3275         * stdlib/canonicalize.c: Likewise.
3276         * sunrpc/svc.c: Likewise.
3277         * sysdeps/generic/glob.c: Likewise.
3278
3279 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3280
3281         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3282         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3283         remove high order bit from the program counter.
3284         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3285
3286 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3287
3288         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3289         unnecessary code and add missing reloc types.
3290         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3291         case for reloc type R_390_NONE.
3292
3293 2001-12-28  Andreas Jaeger  <aj@suse.de>
3294
3295         * io/bug-ftw3.c: Include string.h for prototypes.
3296
3297         * crypt/md5test.c (main): Remove unused variable.
3298
3299         * dlfcn/modstatic.c: Add prototype to avoid warning.
3300
3301 2001-12-26  Roland McGrath  <roland@frob.com>
3302
3303         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
3304         check only (SS->pending & MASK) for the signal to return.
3305         From Jeroen Dekkers <jeroen@dekkers.cx>.
3306
3307 2001-12-22  Roland McGrath  <roland@frob.com>
3308
3309         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
3310         Use preprocessor #if conditionals instead of `if' to avoid
3311         warnings about divide by zero in dead code.
3312
3313         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
3314         _hurd_port_init, and __hurd_self_sigstate.
3315
3316         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
3317
3318 2001-12-21  Andreas Jaeger  <aj@suse.de>
3319
3320         * elf/dblloadmod1.c: Add prototype to avoid warning.
3321         * elf/dblloadmod2.c: Likewise.
3322         * elf/dblloadmod3.c: Likewise.
3323         * elf/reldepmod5.c: Likewise.
3324         * elf/reldepmod6.c: Likewise.
3325
3326         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
3327         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
3328         used on all architectures.
3329
3330         * sunrpc/svc_tcp.c: Add noreturn attribute for
3331         svctcp_rendezvous_abort.
3332         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
3333
3334         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
3335         to avoid warning.
3336
3337 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
3338
3339         * manual/llio.texi (aio_fsync): Fix a typo.
3340         Patch by Tammy Fox <tfox@redhat.com>.
3341
3342 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
3343
3344         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
3345         stack bias from child stack pointer before passing it to clone syscall.
3346
3347 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
3348
3349         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
3350         _SC_TZNAME_MAX.
3351         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
3352         Reported by Thorsten Kukuk <kukuk@suse.de>.
3353
3354         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
3355         add some casts.
3356
3357         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
3358
3359 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
3360
3361         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
3362         conforming: return EBADF if file descriptor is invalid and EINVAL
3363         if file descriptor is no valid tty.
3364         * login/tst-grantpt.c: New file.
3365         * login/Makefile (tests): Add tst-grantpt.
3366
3367 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
3368
3369         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
3370         different than implemented in last patch.
3371         * io/bug-ftw3.c: Adjust test for changed handling of
3372         inaccessibility of toplevel dir.
3373
3374 2001-12-16  Roland McGrath  <roland@frob.com>
3375
3376         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
3377         * grp/initgroups.c (internal_getgrouplist): Likewise.
3378
3379         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
3380         `default:' to silence new GCC warning.
3381         Rewrite cast of lvalue to silence new GCC warning.
3382
3383         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
3384
3385         * sysdeps/mach/hurd/spawni.c: New file, by me with a
3386         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
3387
3388 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
3389
3390         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
3391         Patch by Stephen R. van den Berg.
3392
3393         * crypt/md5.h: Define md5_uintptr.
3394
3395 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
3396
3397         * libio/tst_swprintf.c (main): Add test for string argument with
3398         zero precision.
3399         * stdio-common/Makefile (tests): Add tst-sprintf.
3400         * stdio-common/tst-sprintf.c: New file.
3401
3402 2001-12-13  Andreas Schwab  <schwab@suse.de>
3403
3404         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3405         zero precision with wide character string format.
3406
3407 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
3408
3409         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3410         but have a user supplied buffer, return the empty buffer, not NULL.
3411
3412 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
3413
3414         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3415         Patch by Eric Sharkey <sharkey@netrics.com>.
3416
3417         * crypt/md5test.c (main): Add test for multiple calls to
3418         __md5_process_bytes to itererate over input string.
3419
3420 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
3421
3422         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3423         from __nis_findfastest.  Take timeout value from parameter.
3424         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3425         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3426         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
3427
3428 2001-12-12  Andreas Jaeger  <aj@suse.de>
3429
3430         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3431         combreloc test so that it works in this case.
3432
3433         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3434
3435 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
3436
3437         * sysdeps/sh/Makefile: New file.
3438         * sysdeps/sh/_mcount.S: New file.
3439         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3440         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3441
3442 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3443
3444         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3445         limitation [PR libc/2564].
3446
3447 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
3448
3449         * elf/Makefile (dl-routines): Add conflict.
3450         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3451         (ld.so): Add _begin local symbol.
3452         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3453         Define.
3454         * elf/dl-deps.c (_dl_build_local_scope): New.
3455         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3456         of all libraries.
3457         * elf/do-rel.h (VALIDX): Define.
3458         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3459         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3460         can be skipped.
3461         * elf/dl-conflict.c: New file.
3462         * elf/dl-lookup.c (_dl_debug_bindings): New.
3463         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
3464         non-NULL.
3465         (_dl_lookup_symbol_skip): Likewise.
3466         (_dl_lookup_versioned_symbol): Likewise.
3467         (_dl_lookup_versioned_symbol_skip): Likewise.
3468         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3469         define to ElfW(Rel).
3470         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3471         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3472         ranges.
3473         Don't adjust address dynamic tags if l_addr is 0.
3474         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3475         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3476         (VALIDX, ADDRIDX): Define.
3477         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3478         (dl_main): Print library list for LD_TRACE_PRELINKING.
3479         If prelinking information can be used, skip relocating libraries and
3480         call _dl_resolve_conflicts instead.
3481         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3482         * elf/dl-load.c (_dl_map_object): Don't create fake libs
3483         if LD_TRACE_PRELINKING.
3484         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3485         + DT_ADDRNUM.
3486         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3487         (DL_DEBUG_PRELINK): Define.
3488         (_dl_resolve_conflicts): Add prototype.
3489
3490         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3491         .plt for prelinked libraries where prelinking info cannot be used.
3492         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3493         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3494         * sysdeps/arm/bits/link.h: New file.
3495         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3496         content of .got[1].
3497         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3498         (ELF_MACHINE_PLT_REL): Define.
3499         (elf_machine_rela, elf_machine_rela_relative): New.
3500         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3501         of adjusting it if prelinked and prelinking cannot be used.
3502         * sysdeps/i386/bits/link.h: New file.
3503         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3504         content of .got[1].
3505         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3506         (ELF_MACHINE_PLT_REL): Define.
3507         (elf_machine_rela, elf_machine_rela_relative): New.
3508         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3509         of adjusting it if prelinked and prelinking cannot be used.
3510         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3511         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
3512         to find out map for R_PPC_JMP_SLOT relocs.
3513         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3514         (OPCODE_BA): Define.
3515         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3516         libraries where prelinking info cannot be used.
3517         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3518         (elf_machine_fixup_plt): Call sparc_fixup_plt.
3519         (elf_machine_rela): Set value to 0 if relocating conflicts.
3520         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3521         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3522         (sparc64_fixup_plt): Fix a typo.
3523         (elf_machine_rela): Set value to 0 if relocating conflicts.
3524         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3525         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3526         libraries where prelinking info cannot be used.
3527         * sysdeps/sh/bits/link.h: New file.
3528         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3529         content of .got[1].
3530         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3531         of adjusting it if prelinked and prelinking cannot be used.
3532         * sysdeps/s390/s390-32/bits/link.h: New file.
3533         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3534         Save original content of .got[1].
3535         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3536         of adjusting it if prelinked and prelinking cannot be used.
3537         * sysdeps/s390/s390-64/bits/link.h: New file.
3538         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3539         Save original content of .got[1].
3540         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3541         of adjusting it if prelinked and prelinking cannot be used.
3542         * sysdeps/x86_64/bits/link.h: New file.
3543         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3544         Save original content of .got[1].
3545         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3546         of adjusting it if prelinked and prelinking cannot be used.
3547
3548 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3549
3550         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3551         where appropriate instead of numbers.  Little optimizations.
3552
3553 2001-12-10  Roland McGrath  <roland@frob.com>
3554
3555         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3556         set it.
3557
3558         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3559         set to GLIBC_2.2.5, not GLIBC_2.2.4.
3560
3561         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3562         Fix conditionals so this is set by default for stdio and not for libio.
3563         * sysdeps/mach/hurd/configure: Regenerated.
3564
3565 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
3566
3567         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3568
3569 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
3570
3571         * io/Makefile (tests): Add bug-ftw3.
3572         * io/bug-ftw3.c: New file.
3573
3574         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3575         matches and GLOB_NOCHECK is set.
3576         * posix/globtest.sh: Correct expected result for NOCHECK test.
3577
3578         * po/ca.po: Update from translation team.
3579
3580 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
3581
3582         Implement transliteration of characters in strings of the locale
3583         definitions.
3584         * locale/programs/linereader.c: Adjust for additional parameter to
3585         lr_token.
3586         (get_string): If character <Uxxxx> is not found try to transliterate
3587         it.
3588         * locale/programs/ld-ctype.c: Adjust for additional parameter to
3589         lr_token.  Add const to charmap parameter of all functions.
3590         (find_translit, find_translit2): New functions.
3591         * locale/programs/charmap.c: Adjust for additional parameter to
3592         lr_token.
3593         * locale/programs/repertoire.c: Likewise.
3594         * locale/programs/linereader.h: Likewise.
3595         * locale/programs/ld-address.c: Likewise.  Add const to charmap
3596         parameter of all functions.
3597         * locale/programs/ld-collate.c: Likewise.
3598         * locale/programs/ld-identification.c: Likewise.
3599         * locale/programs/ld-measurement.c: Likewise.
3600         * locale/programs/ld-messages.c: Likewise.
3601         * locale/programs/ld-monetary.c: Likewise.
3602         * locale/programs/ld-name.c: Likewise.
3603         * locale/programs/ld-numeric.c: Likewise.
3604         * locale/programs/ld-paper.c: Likewise.
3605         * locale/programs/ld-paper.c: Likewise.
3606         * locale/programs/ld-telephone.c: Likewise.
3607         * locale/programs/ld-time.c: Likewise.
3608         * locale/programs/locfile.c: Likewise.
3609         * locale/programs/localedef.c: Likewise.
3610         * locale/programs/localedef.h: Likewise.
3611         * locale/programs/locfile.h: Likewise.  Add declaration for
3612         find_translit.
3613         * locale/programs/simple-hash.c: Add const to first parameter of
3614         find_entry, iterate_table, and lookup.
3615         * locale/programs/simple-hash.h: Likewise.
3616         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
3617         instead.
3618         * include/locale.h: Define __LC_LAST.
3619         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3620
3621 2001-12-07  Geoff Keating  <geoffk@redhat.com>
3622
3623         * sysdeps/powerpc/Dist: Update for recent FP changes.
3624         * sysdeps/powerpc/fpu/Dist: Likewise.
3625
3626 2001-12-07  Andreas Schwab  <schwab@suse.de>
3627
3628         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3629
3630 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3631
3632         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3633         save/restore functions here.
3634         (libm-support): Don't define these functions here.
3635         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3636         functions here.
3637         * sysdeps/powerpc/fe_nomask.c: Move to...
3638         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3639         * sysdeps/powerpc/fprrest.S: Move to...
3640         * sysdeps/powerpc/fpu/fprrest.S: ... here.
3641         * sysdeps/powerpc/fprsave.S: Move to...
3642         * sysdeps/powerpc/fpu/fprsave.S: ... here.
3643
3644 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3645
3646         * sysdeps/unix/sysv/linux/opensock.c: New file.
3647
3648 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3649
3650         * config.make.in (with-fp): Define from configure.
3651         * configure.in: Substitute with_fp.
3652         * configure: Regenerate.
3653         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3654         specified, and don't change FPU environment.
3655
3656 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3657
3658         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3659         * assert/assert.c: Check result of __asprintf call and don't use
3660         string if it failed.
3661         * assert/assert-perr.c: Likewise.
3662         * inet/rcmd.c: Likewise.
3663         * locale/programs/localedef.c (main): Check result of
3664         construct_output_path and exit if it failed.
3665         (construct_output_path): Check result of asprintf and mkdir calls and
3666         fail if they failed.
3667         * posix/getopt.c: Check result of __asprintf calls and fail if
3668         they failed.
3669         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3670
3671 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3672
3673         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3674         patch.
3675         * sysdeps/generic/strncase.c: Likewise.
3676         * string/tester.c: Add tests for strcasecmp and strncasecmp.
3677
3678 2001-12-05  Geoff Keating  <geoffk@redhat.com>
3679
3680         * scripts/cpp: Test the exit status from 'type', not 'awk'.
3681
3682         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3683         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3684         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3685         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3686         * sysdeps/powerpc/fclrexcpt.c: Move to...
3687         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3688         * sysdeps/powerpc/fpu_control.h: Move to...
3689         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3690
3691 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3692
3693         * iconvdata/ibm1129.h: Remove duplicate mappings.
3694         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
3695         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3696         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3697
3698         * timezone/zic.c: Fix handling of turnaround times.
3699         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3700
3701 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
3702
3703         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3704         overflow problem.
3705
3706 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3707
3708         * posix/regex.c: For use outside glibc defined bounded pointer
3709         macros here.  Patch by Jim Meyering <jim@meyering.net>.
3710
3711         * iconvdata/Makefile (modules): Add TCVN5712-1.
3712         * iconvdata/TESTS: Add TCVN5712-1.
3713         * iconvdata/gconv-modules: Likewise.
3714         * iconvdata/tcvn5712-1.c: New file.
3715         * iconvdata/testdata/TCVN-5712: New file.
3716         * iconvdata/testdata/TCVN-5712..UTF8: New file.
3717
3718 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
3719
3720         * iconvdata/cp1258.c: Optimize conversion from UCS4.
3721
3722 2001-12-02  Roland McGrath  <roland@frob.com>
3723
3724         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3725
3726         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3727         Reported by Jeff Bailey <jbailey@nisa.net>.
3728
3729         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3730         Reported by Jeff Bailey <jbailey@nisa.net>.
3731
3732         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3733         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3734         Reported by Jeff Bailey <jbailey@nisa.net>.
3735
3736 2001-12-01  Roland McGrath  <roland@frob.com>
3737
3738         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3739         missing backslash in test arguments.
3740         * sysdeps/mach/hurd/configure: Regenerated.
3741
3742 2001-11-26  Roland McGrath  <roland@frob.com>
3743
3744         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3745         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3746
3747 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
3748
3749         * iconvdata/Makefile (modules): Add ARMSCII-8.
3750         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3751         * iconvdata/armscii-8.c: New file.
3752
3753 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3754
3755         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3756         don't match, fix {{a,b},c} globbing, clean up.
3757         Patch by Flavio Veloso <flaviovs@magnux.com>.
3758         * posix/globtest.sh: Add new tests.
3759
3760 2001-11-29  Andreas Jaeger  <aj@suse.de>
3761
3762         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3763         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3764
3765         * sysdeps/generic/abort.c: Include libioP.h for
3766         _IO_flush_all_lockp prototype.
3767
3768 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
3769
3770         * posix/regex.h: Define __restrict_arr correctly.
3771
3772 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
3773
3774         * iconvdata/ibm1163.c: New file.
3775         * iconvdata/ibm1163.h: New file.
3776         * iconvdata/ibm1164.c: New file.
3777         * iconvdata/ibm1164.h: New file.
3778         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3779         * iconvdata/Makefile: Likewise.
3780         * iconvdata/testdata/IBM1163: New file.
3781         * iconvdata/testdata/IBM1163..UTF8: New file.
3782         * iconvdata/testdata/IBM1164: New file.
3783         * iconvdata/testdata/IBM1164..UTF8: New file.
3784         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3785
3786         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
3787         * iconvdata/ibm1124.h: Likewise.
3788         * iconvdata/ibm1132.h: Likewise.
3789         * iconvdata/ibm1133.h: Likewise.
3790         * iconvdata/ibm1160.h: Likewise.
3791         * iconvdata/ibm1161.h: Likewise.
3792         * iconvdata/ibm1162.h: Likewise.
3793         * iconvdata/ibm856.h: Likewise.
3794         * iconvdata/ibm922.h: Likewise.
3795         * iconvdata/ibm930.h: Likewise.
3796         * iconvdata/ibm932.h: Likewise.
3797         * iconvdata/ibm933.h: Likewise.
3798         * iconvdata/ibm935.h: Likewise.
3799         * iconvdata/ibm937.h: Likewise.
3800         * iconvdata/ibm939.h: Likewise.
3801         * iconvdata/ibm943.h: Likewise.
3802         * iconvdata/ibm930.c: Pretty printing.
3803         * iconvdata/ibm937.c: Avoid access accross array boundary.
3804
3805         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3806         the current locale's codeset.
3807         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3808         empty input string.
3809         * iconv/iconv_prog.c: Pass empty strings as default value for to-
3810         and from-charset.  Don't determine locale's charset here.
3811
3812         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
3813         as the old _IO_flush_all but lock only if parameter is nonzero.
3814         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3815         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3816         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3817         if libio is used [PR libc/2575].
3818
3819 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
3820
3821         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3822         __signbitl): Only define for ISO C99.
3823
3824 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
3825
3826         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3827         herrnop to NETDB_INTERNAL if we run out of buffer space.
3828
3829 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
3830
3831         * nss/nss_files/files-XXX.c (internal_getent): Correct input
3832         overflow test for platforms with signed char.
3833         Reported by Andrew Haley <aph@cambridge.redhat.com>.
3834
3835 2001-11-28  Bruno Haible  <bruno@clisp.org>
3836
3837         * locale/programs/simple-hash.c (lookup_2): Remove function.
3838         (insert_entry_2): Call lookup instead of lookup_2.
3839
3840 2001-03-04  Bruno Haible  <bruno@clisp.org>
3841
3842         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3843
3844 2001-10-31  Bruno Haible  <bruno@clisp.org>
3845
3846         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
3847
3848 2001-03-21  Bruno Haible  <bruno@clisp.org>
3849
3850         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
3851         chokes on empty macro arguments.
3852         * intl/plural.y: Add #pragma for alloca on AIX 3.
3853
3854 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
3855
3856         * intl/dcigettext.c (guess_category_value): Only implement for
3857         glibc.  Otherwise rely on function _nl_locale_name which isn't
3858         present in the glibc sources.
3859
3860 2001-09-24  Bruno Haible  <bruno@clisp.org>
3861
3862         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
3863         transliteration when building on a glibc system but outside glibc.
3864
3865 2001-09-22  Bruno Haible  <bruno@clisp.org>
3866
3867         * intl/plural-eval.c: New file, extracted from dcigettext.c.
3868         * intl/dcigettext.c (plural_eval): Remove function, moved to
3869         intl/plural-eval.c.
3870         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
3871         Include plural-eval.c.
3872
3873 2001-09-22  Bruno Haible  <bruno@clisp.org>
3874
3875         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
3876         don't start with a digit; nplurals must be positive.
3877
3878 2001-09-02  Bruno Haible  <bruno@clisp.org>
3879
3880         * intl/plural-exp.h: New file, extracted from gettextP.h.
3881         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
3882         * intl/gettextP.h (struct expression, struct parse_args,
3883         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
3884         * intl/loadmsgcat.c: Include plural-exp.h.
3885         (PLURAL_PARSE): Move macro to plural-exp.h.
3886         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
3887         plural-exp.c.
3888         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
3889         EXTRACT_PLURAL_EXPRESSION.
3890         (_nl_unload_domain): Update.
3891         * intl/dcigettext.c: Include plural-exp.h.
3892         * intl/plural.y: Include plural-exp.h, not gettextP.h.
3893         (FREE_EXPRESSION): Move macro to plural-exp.h.
3894         * intl/Makefile (routines): Add plural-exp.
3895         (distribute): Add plural-exp.h.
3896
3897 2001-07-28  Bruno Haible  <bruno@clisp.org>
3898
3899         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
3900         isdigit, tolower argument to 'unsigned char'.
3901         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
3902         'unsigned char'.
3903         * intl/localealias.c (read_alias_file): Cast isspace argument to
3904         'unsigned char'.
3905
3906 2001-10-20  Bruno Haible  <bruno@clisp.org>
3907
3908         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
3909         anyway.)
3910         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
3911         with the variable 'index' in plural_lookup.
3912         * intl/l10nflist.c (strchr): Likewise.
3913         * intl/localealias.c (strchr): Likewise.
3914
3915         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
3916         * intl/bindtextdom.c: Likewise.
3917         * intl/dcigettext.c: Likewise.
3918         * intl/dgettext.c: Likewise.
3919         * intl/dngettext.c: Likewise.
3920         * intl/explodename.c: Likewise.
3921         * intl/finddomain.c: Likewise.
3922         * intl/gettext.c: Likewise.
3923         * intl/l10nflist.c: Likewise.
3924         * intl/loadmsgcat.c: Likewise.
3925         * intl/localealias.c: Likewise.
3926         * intl/ngettext.c: Likewise.
3927         * intl/textdomain.c: Likewise.
3928         * intl/gettext.h: Assume <limits.h> exists.
3929
3930 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
3931
3932         * stdio-common/Makefile (tests): Add scanf11.
3933         * stdio-common/scanf11.c: New file.
3934
3935 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
3936
3937         * version.h (RELEASE): Define as development.
3938         (VERSION): Set to 2.2.90.
3939
3940 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
3941
3942         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
3943         * nis/nss_nis/nis-grp.c: Likewise.
3944         * nis/nss_nisplus/nisplus-grp.c: Likewise.
3945
3946         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
3947         * nis/nss_nis/nis-pwd.c: Likewise.
3948         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3949
3950         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
3951         * nis/nss_nisplus/nisplus-parser.c: Likewise.
3952         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3953
3954         * nscd/grpcache.c: Use strtoul instead of atol.
3955         * nscd/pwdcache.c: Likewise.
3956         * nss/getent.c: Likewise.
3957
3958 2001-11-27  Paul Eggert  <eggert@twinsun.com>
3959
3960         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3961         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3962
3963 2001-11-19  Bruno Haible  <bruno@clisp.org>
3964
3965         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
3966         90%.
3967         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
3968         improves the quality of the hash function, especially for short
3969         strings.
3970
3971 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
3972
3973         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
3974         are found call conv_error and not input_error [PR libc/2669].
3975
3976         * math/bits/mathcalls.h: Mark ceil and floor as const.
3977         Reported by David Mosberger.
3978
3979 2001-11-21  Jim Meyering  <meyering@lucent.com>
3980
3981         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
3982         Define to be __-prefixed.
3983         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
3984
3985 2001-11-26  Andreas Jaeger  <aj@suse.de>
3986
3987         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
3988         avoid warning.
3989
3990 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
3991
3992         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
3993         initialization.
3994
3995         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
3996         unused variables.  Fix threshold for returning 1.0.
3997
3998         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
3999         argument.
4000
4001         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4002         remove unused variables.
4003
4004         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4005
4006         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4007         include local math header files.
4008
4009 2001-11-22  Andreas Jaeger  <aj@suse.de>
4010
4011         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4012         avoid warning.
4013
4014 2001-11-21  Andreas Jaeger  <aj@suse.de>
4015
4016         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4017
4018         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4019         sys/debugreg.h
4020
4021 2001-11-15  Andreas Jaeger  <aj@suse.de>
4022
4023         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4024         compilers that support it.
4025
4026         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4027         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4028         * stdlib/stdlib.h: Likewise.
4029
4030 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
4031
4032         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4033         statement with gotos.
4034         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4035
4036 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
4037
4038         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
4039
4040 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
4041
4042         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
4043
4044 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
4045             H.J. Lu  <hjl@gnu.org>
4046
4047         * Versions.def (libc): Add GCC_3.0.
4048         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
4049         if gcc supports this flag.
4050         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
4051         (gcc3): Allow glibc to be compiled with gcc 3.x.
4052         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
4053         * config.make.in (static-libgcc, unwind-find-fde): Add.
4054         * Makerules (build-shlib-helper, build-module-helper): Use it.
4055         * scripts/versions.awk: Make sure GLIBC_ versions come first.
4056         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
4057         necessary.
4058         (_fini): Call __deregister_frame_info_bases if
4059         __register_frame_info_bases was used to register.
4060         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
4061         for GLIBC_2.0.
4062         (__register_frame_info_bases, __register_frame_info_table_bases,
4063         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
4064         * elf/Makefile (routines): Add unwind-dw2-fde.
4065         (shared-only-routines): Add unwind-dw2-fde.
4066         * sysdeps/alpha/gccframe.h: New file.
4067         * sysdeps/arm/gccframe.h: New file.
4068         * sysdeps/generic/framestate.c: New file.
4069         * sysdeps/generic/dwarf2.h: New file.
4070         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
4071         * sysdeps/generic/unwind-dw2-fde.c: New file.
4072         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
4073         * sysdeps/generic/unwind-dw2-fde.h: New file.
4074         * sysdeps/generic/unwind-dw2.c: New file.
4075         * sysdeps/generic/unwind-pe.h: New file.
4076         * sysdeps/generic/unwind.h: New file.
4077         * sysdeps/hppa/gccframe.h: New file.
4078         * sysdeps/i386/gccframe.h: New file.
4079         * sysdeps/m68k/gccframe.h: New file.
4080         * sysdeps/mips/gccframe.h: New file.
4081         * sysdeps/powerpc/gccframe.h: New file.
4082         * sysdeps/s390/gccframe.h: New file.
4083         * sysdeps/sh/gccframe.h: New file.
4084         * sysdeps/sparc/gccframe.h: New file.
4085         * sysdeps/vax/gccframe.h: New file.
4086         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4087         Set on all architectures except ia64.
4088         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
4089         for i386.
4090         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
4091         __deregister_frame_info): Move to elf/Versions.
4092         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
4093         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4094         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
4095         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
4096         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
4097         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4098         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4099         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4100         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4101         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
4102         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4103         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4104         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4105         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4106         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4107         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4108         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4109         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4110
4111 2001-11-15  Jeff Law  <law@redhat.com>
4112
4113         * posix/regex.c (uintptr_t): Do not provide a definition if the
4114         system provided one.
4115
4116 2001-11-13  Roland McGrath  <roland@frob.com>
4117
4118         * stdio-common/tmpfile.c: Moved to ...
4119         * sysdeps/generic/tmpfile.c: ... here.
4120         * sysdeps/mach/hurd/tmpfile.c: New file.
4121
4122         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
4123         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
4124         (fopenport): Define as weak alias.
4125
4126         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
4127         * libio/libioP.h: ... to here.
4128
4129 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
4130
4131         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4132         program header twice.  Construct list with the needed information.
4133
4134 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
4135
4136         * po/ca.po: Update from translation team.
4137
4138         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
4139         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
4140         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
4141         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4142
4143 2001-11-10  Andreas Jaeger  <aj@suse.de>
4144
4145         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
4146         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4147         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4148
4149 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
4150
4151         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
4152         correctly.
4153         * elf/dl-load.c (is_dst): New function.
4154         (_dl_dst_count): Use is_dst to check for DST variable.
4155         (_dl_dst_substitute): Likewise.
4156
4157 2001-11-09  Roland McGrath  <roland@frob.com>
4158
4159         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
4160         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
4161         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
4162         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
4163         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
4164         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
4165         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
4166         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
4167         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
4168         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
4169         * sysdeps/mach/hurd/powerpc/Dist: New file.
4170
4171         * hurd/privports.c (__get_privileged_ports):
4172         Only contact the proc server if necessary for this call.
4173         Suggested by Neal H Walfield <neal@cs.uml.edu>.
4174         Check error return for mach_port_mod_refs.
4175
4176 2001-11-09  Andreas Schwab  <schwab@suse.de>
4177
4178         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
4179
4180 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
4181
4182         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
4183         object is always the last in the list.
4184         (_dl_map_object_from_fd): Delete code to remove from object list
4185         when DF_1_NOOPEN is seen.  This is done in lose.
4186
4187 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
4188
4189         * elf/dl-object.c (_dl_new_object): Various small optimizations.
4190
4191 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
4192
4193         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
4194         HWCAP_CHECK macro code.
4195
4196         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
4197         Now returns MAP_FAILED on error.
4198         * elf/rtld.c: Adjust caller.
4199         * sysdeps/generic/dl-cache.c: Likewise.
4200         * sysdeps/generic/ldsodefs.h: Adjust description.
4201
4202         * elf/dl-version.c (match_symbol): Optimize error handling for size.
4203         (_dl_check_map_versions): Likewise.
4204
4205 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
4206
4207         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4208         _dl_signal_error directly, always use lose.  Set fd to -1 after
4209         file is closed.
4210         (lose): Don't call close if fd == -1.
4211
4212 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
4213
4214         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
4215          Also fix typo @code {mbsinit} to @code{mbsinit}.
4216
4217 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
4218
4219         * elf/dl-profile.c: Replace state variable with simple flag named
4220         running.  Remove commented-out code.
4221
4222         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
4223         (_dl_init_paths): Likewise.
4224         (_dl_map_object_from_fd): Likewise.
4225         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4226
4227 2001-11-06  Roland McGrath  <roland@frob.com>
4228
4229         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
4230         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
4231
4232         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
4233         sysdeps/powerpc/elf/sysdep.h.
4234         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
4235
4236 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
4237
4238         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
4239         speed.
4240         (process_envvars): Some more optimizations.
4241         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4242
4243         * elf/elf.h: Add dynamic tag definitions for prelinking.
4244
4245         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4246         Rewrite code to remove environment varables for SUID binaries.
4247         Small optimization in LD_PROFILE handling.
4248         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4249         changes.
4250         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4251
4252         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4253
4254         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4255         strings.  Change type of second parameter.
4256         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4257         for last change.
4258
4259         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4260
4261 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4262
4263         * manual/string.texi: Fix typos.
4264         * manual/examples/argp-ex2.c: Likewise.
4265
4266 2001-11-05  Roland McGrath  <roland@frob.com>
4267
4268         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4269         the more-specific unix/sysv/linux/powerpc file and breaks everything.
4270         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4271         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4272         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4273         here, put under [__ELF__].
4274
4275 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
4276
4277         * manual/charset.texi: Extensive editing work.
4278         * manual/nss.texi: Likewise.
4279         Changes by Dennis Grace <dgrace@us.ibm.com>.
4280
4281 2001-11-04  Roland McGrath  <roland@frob.com>
4282
4283         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4284         parameter to dir_mkfile.
4285
4286 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
4287
4288         * string/bits/string2.h (__strndup): If n is smaller than len, set
4289         len to n + 1.
4290         * string/tester.c (test_strndup): New function.
4291         (main): Call it.
4292
4293 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
4294
4295         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
4296
4297         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4298         * scripts/cpp: New file.
4299
4300         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
4301         for rtld_search_dirs content.  Minor optimizations.
4302
4303 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
4304
4305         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
4306         avoiding unnecessary duplication.
4307
4308 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
4309
4310         * elf/dl-load.c (_dl_map_object): If library was found using
4311         LD_LIBRARY_PATH, don't try RUNPATH list.
4312
4313 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4314
4315         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
4316         Correct second argument of register_dump call.
4317         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
4318         Likewise.
4319
4320 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
4321
4322         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
4323         modules.
4324         * iconvdata/TESTS: Likewise.
4325         * iconvdata/gconv-modules: Likewise.
4326         * iconvdata/ibm1132.c: New file.
4327         * iconvdata/ibm1132.h: New file.
4328         * iconvdata/ibm1133.c: New file.
4329         * iconvdata/ibm1133.h: New file.
4330         * iconvdata/ibm1162.c: New file.
4331         * iconvdata/ibm1162.h: New file.
4332         * iconvdata/testdata/IBM1132: New file.
4333         * iconvdata/testdata/IBM1132..UTF8: New file.
4334         * iconvdata/testdata/IBM1133: New file.
4335         * iconvdata/testdata/IBM1133..UTF8: New file.
4336         * iconvdata/testdata/IBM1162: New file.
4337         * iconvdata/testdata/IBM1162..UTF8: New file.
4338         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
4339
4340         * string/string.h: Fix typo in comment.
4341         * wcsmbs/wchar.h: Likewise.
4342
4343 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
4344
4345         * manual/getopt.texi (getopt_long, getopt_long_only): Include
4346         const in type of longopts parameter.
4347
4348 2001-10-29  Andreas Jaeger  <aj@suse.de>
4349
4350         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
4351
4352 2001-10-29  Kevin Ryde  <user42@zip.com.au>
4353
4354         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
4355         output, clarify `#' behaviour on 0.
4356         (Floating-Point Conversions): Clarify that %g only uses %e when
4357         the exponent would be greater than 1.
4358
4359 2001-10-28  Roland McGrath  <roland@frob.com>
4360
4361         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
4362         * sysdeps/mach/powerpc/machine-sp.h: New file.
4363         * sysdeps/mach/powerpc/sysdep.h: New file.
4364         * sysdeps/mach/powerpc/thread_state.h: New file.
4365
4366         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
4367         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
4368         expect to need the same thing on every platform.
4369
4370         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
4371         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
4372
4373         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
4374         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
4375         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
4376         Move all these assembly-related definitions to ...
4377         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
4378
4379         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
4380         by Peter Bruin <pjbruin@dds.nl>.
4381
4382         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
4383         packing results for a `poll' call.
4384
4385 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
4386
4387         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
4388         correctly.
4389         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
4390         bracket expression.
4391
4392         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4393         nrules value.
4394         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
4395
4396 2001-10-24  H.J. Lu  <hjl@gnu.org>
4397
4398         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4399         Use __BEGIN_DECLS/__END_DECLS around prototypes.
4400         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4401
4402 2001-10-21  Jim Meyering  <meyering@lucent.com>
4403
4404         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
4405         this code would end up calling gettext even in packages built
4406         with --disable-nls.
4407         * posix/getopt.c (_): Likewise.
4408         * posix/regex.c (_): Likewise.
4409
4410 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
4411
4412         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4413         lookup not ip6.int.
4414         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4415         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4416
4417 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4418
4419         * misc/sys/cdefs.h (__attribute_used__): Define.
4420         * elf/rtld.c (_dl_start): Add __attribute_used__.
4421         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4422
4423 2001-10-25  Andreas Schwab  <schwab@suse.de>
4424
4425         * stdlib/a64l.c: Expect least significant digit first.
4426         * stdlib/l64a.c: Produce least significant digit first.
4427         * stdlib/Makefile (tests): Add test-a64l.
4428         * stdlib/test-a64l.c: New file.
4429         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4430
4431 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
4432
4433         * po/sk.po: Update from translation team.
4434
4435 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
4436
4437         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4438
4439 2001-10-18  Andreas Schwab  <schwab@suse.de>
4440
4441         * math/libm-test.inc (print_ulps): Print ulp values rounded to
4442         next whole number.
4443         (print_function_ulps): Likewise.
4444         (print_complex_function_ulps): Likewise.
4445         (print_max_error): Likewise.
4446         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
4447
4448 2001-10-16  Andreas Schwab  <schwab@suse.de>
4449
4450         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4451         implementation.
4452
4453         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4454         BSD_SETJMP or BSD__SETJMP is defined, resp.
4455         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4456         a tail call to __sigsetjmp that would require extending the
4457         caller's frame.
4458         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4459         * sysdeps/m68k/bsd-setjmp.S: Deleted.
4460         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4461         Reported by Jes Sorensen <jes@trained-monkey.org>.
4462
4463 2001-10-16  Andreas Jaeger  <aj@suse.de>
4464
4465         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4466         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
4467         close PR libc/2589.
4468
4469 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
4470
4471         * po/ca.po: New file.  Contributed by the translation team.
4472
4473 2001-10-15  Ralf Baechle  <ralf@gnu.org>
4474
4475         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4476         a varargs prototype.  Remove dependency from kernel header files.
4477
4478         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4479         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4480
4481 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4482
4483         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4484         to generate hexadecimal identifier.
4485         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4486
4487 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
4488
4489         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4490
4491 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4492
4493         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4494         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4495         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4496
4497         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4498         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4499         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4500         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4501         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4502         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4503
4504         * timezone/africa: Update from tzdata2001d.
4505         * timezone/asia: Likewise.
4506         * timezone/australasia: Likewise.
4507         * timezone/backward: Likewise.
4508         * timezone/europe: Likewise.
4509         * timezone/leapseconds: Likewise.
4510         * timezone/northamerica: Likewise.
4511         * timezone/southamerica: Likewise.
4512         * timezone/zone.tab: Likewise.
4513
4514 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4515
4516         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4517         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4518
4519 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
4520
4521         * elf/elf.h (PT_TLS): New definition.
4522
4523 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
4524
4525         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4526         bits/errno.h
4527
4528 2001-10-07  Roland McGrath  <roland@frob.com>
4529
4530         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4531
4532 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
4533
4534         * elf/elf.h: Add more ELFOSABI_* constants.
4535
4536 2001-10-04  Ben Collins  <bcollins@debian.org>
4537
4538         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4539         decleration of __need_wchar_t.
4540
4541 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
4542
4543         * string/bits/string2.h (__strsep_g): Add prototype.
4544         (__strsep): Use it.
4545         * string/Versions (__strsep): Remove.
4546         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4547
4548 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
4549
4550         * manua/llio.texi: Clarify file references added by mmap.
4551         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4552
4553 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
4554
4555         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4556         Add sc_loadrs and sc_rbs_bas to match current kernel.
4557
4558 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4559
4560         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4561
4562         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4563
4564 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4565
4566         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4567         object has been bumped because of relocation dependency, avoid
4568         duplicates in l_scope.
4569         (show_scope): Fix typos.
4570         * elf/Makefile: Add rules to build and run reldep6.
4571         * elf/reldep6.c: New file.
4572         * elf/reldep6mod0.c: New file.
4573         * elf/reldep6mod1.c: New file.
4574         * elf/reldep6mod2.c: New file.
4575         * elf/reldep6mod3.c: New file.
4576         * elf/reldep6mod4.c: New file.
4577
4578 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
4579
4580         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4581         sparc64_fixup_plt.
4582         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
4583         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4584         for non-lazy binding. Fix .plt[32768+] handling.
4585         (elf_machine_plt_value): Don't add addend.
4586         (elf_machine_rela): Call sparc64_fixup_plt instead of
4587         elf_machine_fixup_plt.
4588         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4589         dynamic linker at 0xfffff800XXXXXXXX.
4590
4591         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4592
4593 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
4594
4595         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4596
4597 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
4598
4599         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4600         declare __cmsg_data field if its size would be bigger than 0.
4601         (CMSG_DATA): Adjust accordingly.
4602         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4603         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4604         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4605         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4606         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4607         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4608         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4609
4610 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
4611
4612         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4613         * iconvdata/testdata/IBM1160: New file.
4614         * iconvdata/testdata/IBM1160..UTF8: New file.
4615         * iconvdata/testdata/IBM1161: New file.
4616         * iconvdata/testdata/IBM1161..UTF8: New file.
4617         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4618
4619 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4620
4621         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4622         UL_SETFSIZE computations better.
4623
4624         * rt/Makefile: Remove use of filter for librt again.
4625
4626         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4627         UL_SETFSIZE computations better.
4628
4629         * string/Versions: Export __strsep for GLIBC_2.2.5.
4630         * string/bits/string2.h: Define all __STRING_INLINE functions if
4631         _FORCE_INLINES is defined.
4632         Use int instead of char of parameter types.
4633         (__strsep): Don't use __strsep_g.  Don't define it.
4634         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4635         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4636         __strcpy_small.
4637         (__stpcpy_a_small): Renamed from __stpcpy_small.
4638         (__strcspn_c1): Don't define if _FORCE_INLINES.
4639         (__strspn_c1): Likewise.
4640
4641 2001-09-22  Ben Collins  <bcollins@debian.org>
4642
4643         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4644         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
4645         * sysdeps/ia64/bits/sigaction.h: Likewise.
4646         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4647
4648 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4649
4650         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4651
4652 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
4653
4654         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4655
4656 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4657
4658         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4659
4660 2001-09-20  H.J. Lu  <hjl@gnu.org>
4661
4662         * include/dlfcn.h (__RTLD_SPROF): New definiton.
4663         * elf/dl-open.c (dl_open_worker): Return immediately after loading
4664         for __RTLD_SPROF.
4665         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4666         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4667
4668 2001-09-20  H.J. Lu  <hjl@gnu.org>
4669
4670         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4671         don't add 1.
4672
4673 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4674
4675         * nss/getent.c: Accept -s parameter to overwrite rules in
4676         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
4677
4678         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4679         with as many ".0" as necessary to form a complete address
4680         inet_network understands.
4681
4682         * nss/getent.c: Various cleanups.  Use simpler and fewer function
4683         calls.
4684
4685 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4686
4687         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4688         _JMPBUF_UNWINDS.
4689         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4690
4691 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4692
4693         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4694         IBM1161.
4695         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4696         * iconvdata/ibm1160.c: New file.
4697         * iconvdata/ibm1160.h: New file.
4698         * iconvdata/ibm1161.c: New file.
4699         * iconvdata/ibm1161.h: New file.
4700         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4701
4702 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
4703
4704         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4705         difference between base address and first PT_LOAD's virtual address,
4706         not the base address.
4707
4708 2001-09-11  Tom Rix  <trix@redhat.com>
4709
4710         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
4711         ifdef for __getopt_clean_environment.
4712         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4713
4714 2001-09-22  Andreas Jaeger  <aj@suse.de>
4715
4716         * elf/reldep4.c (main): Add proper prototype to fix warning.
4717
4718         * elf/reldep5.c (main): Remove unused variable.
4719
4720         * math/math_private.h: Add prototypes.
4721
4722 2001-09-21  Andreas Jaeger  <aj@suse.de>
4723
4724         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4725         * sysdeps/x86_64/Dist: New file.
4726         * sysdeps/x86_64/soft-fp/Dist: New file.
4727
4728         * sysdeps/gnu/Dist: Remove eval.c.
4729
4730 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
4731
4732         * malloc/memusage.c (realloc): Don't count already allocated
4733         memory in the sums.
4734         (me): Always use dlsym() to find the real implementations.
4735
4736         * malloc/memusage.sh: Make -n option actually do something.
4737
4738 2001-09-20  Andreas Jaeger  <aj@suse.de>
4739
4740         * elf/elf.h (R_390_NUM): Correct value.
4741
4742         * Versions.def: Add missing versions 2.2.3 for libthread_db and
4743         libpthread.
4744
4745         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4746         for x86-64, install x86-64 into */lib64.
4747
4748         * shlib-versions: Add x86-64.
4749
4750         * elf/elf.h: Add x86-64 relocations.
4751
4752 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
4753
4754         * po/fr.po: Update from translation team.
4755
4756 2001-09-19  Andreas Jaeger  <aj@suse.de>
4757
4758         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4759         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4760         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4761         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4762         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4763         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4764         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4765         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4766         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4767         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4768         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4769         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4770         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4771         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4772         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4773         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4774         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4775         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4776         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4777         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4778         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4779         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4780         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4781         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4782         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4783         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4784         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4785         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4786         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4787         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4788         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4789         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4790         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4791         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4792         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4793         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4794         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4795         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4796         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4797         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4798         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4799         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4800         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4801         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4802         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4803         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4804         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4805         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4806         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4807         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4808         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4809         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4810         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4811         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4812         * sysdeps/unix/x86_64/sysdep.S: New file.
4813         * sysdeps/unix/x86_64/sysdep.h: New file.
4814         * sysdeps/x86_64/Implies: New file.
4815         * sysdeps/x86_64/Makefile: New file.
4816         * sysdeps/x86_64/Versions: New file.
4817         * sysdeps/x86_64/__longjmp.S: New file.
4818         * sysdeps/x86_64/abort-instr.h: New file.
4819         * sysdeps/x86_64/atomicity.h: New file.
4820         * sysdeps/x86_64/bits/endian.h: New file.
4821         * sysdeps/x86_64/bits/setjmp.h: New file.
4822         * sysdeps/x86_64/bits/string.h: New file.
4823         * sysdeps/x86_64/bp-asm.h: New file.
4824         * sysdeps/x86_64/bsd-_setjmp.S: New file.
4825         * sysdeps/x86_64/bsd-setjmp.S: New file.
4826         * sysdeps/x86_64/dl-machine.h: New file.
4827         * sysdeps/x86_64/elf/initfini.c: New file.
4828         * sysdeps/x86_64/elf/start.S: New file.
4829         * sysdeps/x86_64/ffs.c: New file.
4830         * sysdeps/x86_64/ffsll.c: New file.
4831         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4832         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4833         * sysdeps/x86_64/fpu/e_acosl.c: New file.
4834         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4835         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4836         * sysdeps/x86_64/fpu/e_expl.c: New file.
4837         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4838         * sysdeps/x86_64/fpu/e_log10l.S: New file.
4839         * sysdeps/x86_64/fpu/e_log2l.S: New file.
4840         * sysdeps/x86_64/fpu/e_logl.S: New file.
4841         * sysdeps/x86_64/fpu/e_powl.S: New file.
4842         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4843         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4844         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4845         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4846         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
4847         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
4848         * sysdeps/x86_64/fpu/fegetenv.c: New file.
4849         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
4850         * sysdeps/x86_64/fpu/fegetround.c: New file.
4851         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
4852         * sysdeps/x86_64/fpu/fesetenv.c: New file.
4853         * sysdeps/x86_64/fpu/fesetround.c: New file.
4854         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
4855         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
4856         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
4857         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
4858         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
4859         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
4860         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
4861         * sysdeps/x86_64/fpu/s_atanl.c: New file.
4862         * sysdeps/x86_64/fpu/s_cosl.S: New file.
4863         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
4864         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
4865         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
4866         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
4867         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
4868         * sysdeps/x86_64/fpu/s_logbl.c: New file.
4869         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
4870         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
4871         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
4872         * sysdeps/x86_64/fpu/s_rintl.c: New file.
4873         * sysdeps/x86_64/fpu/s_significandl.c: New file.
4874         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
4875         * sysdeps/x86_64/fpu/s_sinl.S: New file.
4876         * sysdeps/x86_64/fpu/s_tanl.S: New file.
4877         * sysdeps/x86_64/gmp-mparam.h: New file.
4878         * sysdeps/x86_64/hp-timing.c: New file.
4879         * sysdeps/x86_64/hp-timing.h: New file.
4880         * sysdeps/x86_64/htonl.S: New file.
4881         * sysdeps/x86_64/memusage.h: New file.
4882         * sysdeps/x86_64/setjmp.S: New file.
4883         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
4884         * sysdeps/x86_64/stackinfo.h: New file.
4885         * sysdeps/x86_64/sysdep.h: New file.
4886         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
4887
4888         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
4889         L Moshier.
4890
4891 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4892
4893         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
4894         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
4895
4896 2001-09-18  Andreas Schwab  <schwab@suse.de>
4897
4898         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
4899         list, now that l_scope is a pointer.
4900
4901         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
4902         scope list.
4903
4904 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4905
4906         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
4907         (elf_machine_rela_relative): Add a missing declaration.
4908
4909 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
4910
4911         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
4912         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
4913         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
4914         ldd-rewrite scripts.
4915
4916 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4917
4918         * elf/ldd.bash.in: Update copyright message.
4919
4920 2001-09-17  H.J. Lu  <hjl@gnu.org>
4921
4922         * hurd/hurdmalloc.c (bcopy): Removed.
4923         (realloc): Replace bcopy with memcpy.
4924         * hurd/path-lookup.c (file_name_path_scan): Likewise.
4925         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
4926         * sunrpc/rpcinfo.c (pmapdump): Likewise.
4927
4928         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
4929         (gethostbyaddr): Likewise.
4930         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
4931
4932 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
4933
4934         * sysdeps/gnu/eval.c: Removed.
4935
4936 2001-09-18  Andreas Jaeger  <aj@suse.de>
4937
4938         * sysdeps/i386/fpu/s_logbl.S: Move to ...
4939         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
4940
4941         * sysdeps/i386/fpu/s_rintl.S: Move to ...
4942         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
4943
4944         * sysdeps/i386/fpu/s_significandl.S: Move to ...
4945         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
4946
4947 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
4948
4949         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4950         nrules value.
4951
4952 2001-09-14  H.J. Lu  <hjl@gnu.org>
4953
4954         * sysdeps/mips/fpu/libm-test-ulps: Updated.
4955
4956 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
4957
4958         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
4959         Patch by Florian La Roche <laroche@redhat.com>.
4960
4961         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
4962
4963         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
4964         ETHER_CRC_LEN.
4965
4966 2001-09-14  Andreas Schwab  <schwab@suse.de>
4967
4968         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
4969         Sumner <bls@sgi.com>.
4970         * posix/execlp.c: Likewise.
4971
4972 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
4973
4974         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
4975         is already found earlier in the search scope.
4976
4977 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
4978
4979         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
4980         filter.
4981
4982 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
4983
4984         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
4985
4986 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
4987
4988         * config.h.in: Enforce optimization to be used.
4989         * Makeconfig (preprocess-versions): Define ASSEMBLER.
4990         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
4991         * posix/Makefile (annexc-CFLAGS): Define to -O.
4992         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
4993
4994 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
4995
4996         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
4997         Patch by Stephan Kulow.
4998
4999 2001-09-08  Ben Collins  <bcollins@debian.org>
5000
5001         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5002         usage of RESOLVE() (r_type, not reloc->r_type).
5003
5004 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5005
5006         * elf/dl-object.c: Avoid allocating extra memory block for name.
5007         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5008         allocated separately.
5009         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5010
5011 2001-09-08  H.J. Lu  <hjl@gnu.org>
5012
5013         * po/zh_TW.po: Fix a typo.
5014
5015 2001-09-07  Tom Rix  <trix@redhat.com>
5016
5017         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5018
5019 2001-08-26  Tom Rix  <trix@redhat.com>
5020
5021         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5022         command line options.
5023         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5024         * sysdeps/unix/sysv/aix/start.c: Removed.
5025         * sysdeps/unix/sysv/aix/start-libc.c: New file.
5026         * sysdeps/unix/sysv/aix/init-first.c: New file.
5027         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5028
5029 2001-09-08  Ben Collins  <bcollins@debian.org>
5030
5031         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5032         * sysdeps/generic/dl-machine.h: Likewise.
5033         * sysdeps/hppa/dl-fptr.c: Likewise.
5034         * sysdeps/ia64/dl-fptr.c: Likewise.
5035         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5036         * sysdeps/mips/dl-machine.h: Likewise.
5037         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5038         * sysdeps/powerpc/dl-machine.c: Likewise.
5039
5040 2001-09-07  Ben Collins  <bcollins@debian.org>
5041
5042         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
5043
5044         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
5045
5046 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5047
5048         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
5049         dependencies if necessary.
5050
5051         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
5052         loaded directly) determine length if l_initfini list by iterating
5053         over its elements.  Minor optimizations.
5054         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
5055         for dependency objects.
5056         If object was already loaded check whether any of the dependencies
5057         is already on the relocation dependency list.  If yes, remove the
5058         latter.  Minor optimizations.
5059         * elf/dl-lookup.c (add_dependency): Add check for self reference of
5060         maps here.  Search l_initfini list only if the object was loaded
5061         directly and not only as a dependency.
5062         (_dl_lookup_symbol): Add relocation dependency also if object
5063         is not in global scope.  Remove test for self-reference here.
5064         (_dl_lookup_versioned_symbol): Likewise.
5065         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
5066         element of first name record.
5067         * elf/loadtest.c: Add some more test to recognize early if an object
5068         wasn't unloaded.
5069         * elf/Makefile: Add rules to build and run reldep5.
5070         * elf/reldep5.c: New file.
5071         * elf/reldepmod5.c: New file.
5072         * elf/reldepmod6.c: New file.
5073
5074         * elf/reldep2.c: Fix typo.
5075
5076 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
5077
5078         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
5079         elements.  Change l_scope to be a pointer only.
5080         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5081         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
5082         here add searchlist of newly open file to the dependency's scope.
5083         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
5084         only searchlist from its scope.  Free own scope array if necessary.
5085         * elf/Makefile (tests): Add dblload and dblunload now.
5086
5087 2001-09-06  Andreas Jaeger  <aj@suse.de>
5088
5089         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
5090         Stephen L Moshier.
5091
5092 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
5093
5094         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
5095         they both fail.
5096         * elf/dblload.c: New file.
5097         * elf/dblloadmod1.c: New file.
5098         * elf/dblloadmod2.c: New file.
5099         * elf/dblloadmod3.c: New file.
5100         * elf/dblunload.c: New file.
5101
5102 2001-09-04  Richard Henderson  <rth@redhat.com>
5103
5104         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
5105         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
5106
5107 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
5108
5109         Correct very misleading message for error in failed runtime relocation.
5110         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
5111         place of the error.
5112         (_dl_signal_cerror): Likewise.
5113         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5114         * elf/dl-close.c: Likewise.
5115         * elf/dl-deps.c: Likewise.
5116         * elf/dl-load.c: Likewise.
5117         * elf/dl-lookup.c: Likewise.
5118         * elf/dl-open.c: Likewise.
5119         * elf/dl-reloc.c: Likewise.
5120         * elf/dl-sym.c: Likewise.
5121         * elf/dl-version.c: Likewise.
5122         * sysdeps/generic/dl-sysdep.c: Likewise.
5123
5124 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
5125
5126         * iconv/strtab.c (strtabinit): Initialize null Strent.
5127         (newstring): Move len == 0 handling...
5128         (strtabadd): ...here.
5129         If len == 1, return null Strent.
5130         When inserting a suffix of an existing string, check if
5131         it is not equal to some suffix already recorded.
5132         Copy left and right members over if adding longer string.
5133
5134 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
5135
5136         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
5137
5138         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
5139         (__syscall_gethostname): Add prototype.
5140
5141 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
5142
5143         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
5144
5145 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
5146
5147         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
5148
5149 2001-08-27  Roland McGrath  <roland@frob.com>
5150
5151         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
5152         short, copy that much into NAME anyway before returning error.
5153
5154 2001-09-01  Richard Henderson  <rth@redhat.com>
5155
5156         * sysdeps/alpha/elf/Dist: Remove file.
5157         * sysdeps/alpha/elf/Makefile: Remove file.
5158         * sysdeps/alpha/elf/crtbegin.S: Remove file.
5159         * sysdeps/alpha/elf/crtend.S: Remove file.
5160         * sysdeps/alpha/elf/initfini.c: New file.
5161
5162 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
5163
5164         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
5165         * iconv/tst-iconv3.c: Likewise.
5166
5167 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
5168
5169         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
5170
5171 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
5172
5173         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
5174         export it.
5175         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
5176         * iconv/iconv_prog.c (insert_cache): New function.
5177         (print_known_names): If cache is used call insert_cache to use the
5178         information from the cache [PR libc/2509].
5179
5180 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
5181
5182         * time/strptime.c (strptime_internal): Recognize 'l' format and
5183         handle it like 'I' for symmetry with strftime.
5184
5185 2001-08-31  Richard Henderson  <rth@redhat.com>
5186
5187         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
5188         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
5189         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
5190         (print_statistics): Make scalar unsigned long long.
5191         * sysdeps/alpha/hp-timing.h: New file.
5192
5193 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
5194
5195         * stdio-common/perror.c (perror): Save errno early, pass it
5196         down to perror_internal.
5197         (perror_internal): Add errnum argument.
5198
5199 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
5200
5201         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
5202         Don't add old memory content for R_ALPHA_REFQUAD.
5203
5204 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5205
5206         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
5207         memory correctly.
5208
5209         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
5210         instead of open, __close instead of close, __getpagesize instead
5211         of getpagesize.
5212
5213         * string/argz-stringify.c (__argz_stringify): Use __strnlen
5214         instead of strnlen.
5215         * include/string.h (strndupa): Redefine here to use __strnlen
5216         instead of strnlen.
5217         * string/strndup.c (__strndup): Use __strnlen not strnlen.
5218
5219         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
5220         connected).
5221
5222 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
5223
5224         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
5225         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5226         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5227         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
5228         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
5229         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
5230         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
5231
5232 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5233
5234         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
5235
5236 2001-08-30  Andreas Jaeger  <aj@suse.de>
5237
5238         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5239         contributed Stephen L Moshier.
5240
5241 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
5242
5243         * sunrpc/etc.rpc (sgi_fam): Add.
5244
5245 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5246
5247         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5248
5249 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5252         first is from a previous call.
5253         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5254
5255 2001-08-29  Andreas Schwab  <schwab@suse.de>
5256
5257         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5258
5259 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5260
5261         * config.make.in (INSTALL_SCRIPT): Define.
5262         * Makeconfig (INSTALL_SCRIPT): Define.
5263         * Makerules (do-install-script): New macro to install scripts using
5264         INSTALL_SCRIPT.
5265         (install-bin-script): New rule to install scripts with
5266         do-install-script.
5267         (install-bin-script-nosubdir): New rule.
5268         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5269         (distinfo-vars): Add $(install-bin-script).
5270         * Rules (others): Likewise.
5271         * Makefile (glibcbug): Install with install-bin-script.
5272         * debug/Makefile (xtrace): Likewise.
5273         (catchsegv): Likewise.
5274         * elf/Makefile (ldd): Likewise.
5275         * malloc/Makefile (mtrace): Likewise.
5276         * timezone/Makefile (tzselect): Likewise.
5277
5278 2001-08-29  H.J. Lu  <hjl@gnu.org>
5279
5280         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5281         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5282         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5283
5284 2001-08-29  Andreas Schwab  <schwab@suse.de>
5285
5286         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5287
5288 2001-08-28  H.J. Lu  <hjl@gnu.org>
5289
5290         * Makeconfig (combreloc-LDFLAGS): New variable.
5291         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5292         * config.make.in (have-z-combreloc): New variable.
5293         * configure.in: Substitute libc_cv_z_combreloc.
5294
5295 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
5296
5297         * po/sv.po: Update from translation team.
5298         * po/fr.po: Likewise.
5299         * po/da.po: Likewise.
5300
5301 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5302
5303         * Makerules: Fix a typo: MD% -> MD5.
5304
5305 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
5306
5307         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
5308         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
5309
5310 2001-08-28  Andreas Jaeger  <aj@suse.de>
5311
5312         * manual/libc-texinfo.sh: Add entry about free manuals.
5313
5314         * manual/contrib.texi (Contributors): Fix cross reference.
5315
5316         * manual/libc.texinfo (Copying): Include freemanuals.
5317
5318         * manual/Makefile (appendices): Add freemanuals.
5319
5320         * manual/freemanuals.texi: New file.
5321         Patch by Brian Youmans <3diff@gnu.org>.
5322
5323         * manual/libm-err-tab.pl: Pretty print more platforms, print a
5324         smaller table.
5325
5326         * manual/math.texi (Errors in Math Functions): Fix grammar, start
5327         table on separate page.
5328         Patch by Brian Youmans <3diff@gnu.org>.
5329
5330 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
5331
5332         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
5333         the connection went down after we first used it try to connect
5334         again and resend the message before printing to the console.
5335         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
5336
5337 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
5338
5339         * string/tst-strlen.c (main): Test strnlen (, -1) too.
5340         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
5341         bit set.
5342
5343 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
5344
5345         * iconv/strtab.c (searchstring): Use correct length for comparison.
5346         (strtabadd): Account total size correct if new string has old string as
5347         substring.
5348
5349 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
5350
5351         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
5352
5353 2001-08-27  Andreas Jaeger  <aj@suse.de>
5354
5355         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
5356
5357         * math/libm-test.inc (j0_test): Add extra tests.
5358         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
5359         not x, in Hankel approximation.
5360         Patches by Stephen L Moshier.
5361
5362 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5363
5364         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
5365         link_map.
5366
5367         * configure.in: Fix test for .rela.dyn section.
5368
5369         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
5370
5371 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5372
5373         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
5374         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
5375         Pass type_class to _dl_lookup_*.
5376         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
5377         Pass around just type_class instead of noexec, noplt pair.
5378         (_dl_lookup_versioned_symbol): Likewise.
5379         (_dl_lookup_symbol_skip): Pass around just type_class instead of
5380         noexec, noplt pair.
5381         (_dl_lookup_versioned_symbol_skip): Likewise.
5382         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
5383         * elf/do-lookup.h (do_lookup): Likewise.
5384         * include/link.h (struct link_map): Replace noexec and noplt fields
5385         in l_lookup_cache with type_class field.
5386         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
5387         ELF_RTYPE_CLASS_COPY): Define.
5388         Adjust prototypes for _dl_lookup_symbol and
5389         _dl_lookup_versioned_symbol.
5390         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
5391         elf_machine_lookup_noexec_p): Remove.
5392         (elf_machine_type_class): Define.
5393         * sysdeps/arm/dl-machine.h: Likewise.
5394         * sysdeps/hppa/dl-machine.h: Likewise.
5395         * sysdeps/cris/dl-machine.h: Likewise.
5396         * sysdeps/i386/dl-machine.h: Likewise.
5397         * sysdeps/ia64/dl-machine.h: Likewise.
5398         * sysdeps/m68k/dl-machine.h: Likewise.
5399         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5400         * sysdeps/mips/dl-machine.h: Likewise.
5401         * sysdeps/powerpc/dl-machine.h: Likewise.
5402         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5403         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5404         * sysdeps/sh/dl-machine.h: Likewise.
5405         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5406         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5407
5408 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5409
5410         * manual/message.texi (Advanced gettext functions): Change
5411         description of plural forms for Slovak.
5412         Reported by Marcel Telka <marcel@telka.sk>.
5413
5414         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5415         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5416
5417 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5418
5419         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5420         typo.  Patch by Florian La Roche <laroche@redhat.com>.
5421
5422 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5423
5424         * include/link.h (struct link_map): Add l_lookup_cache element.
5425         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5426         (RESOLVE_MAP): Likewise.
5427         (_dl_relocate_object): Remove cache initialization.
5428         * elf/dl-lookup.c: Rip out cache handling code.
5429         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5430         declarations.
5431
5432         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5433         remove some __builtin_expect.
5434         (_dl_lookup_versioned_symbol): Likewise.
5435
5436         * config.h.in: Add HAVE_Z_COMBRELOC.
5437         * configure.in: Add test for -z combreloc.
5438
5439         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5440         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
5441         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
5442         case to almost no code.
5443
5444 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
5445
5446         * po/tr.po: Update from translation team.
5447
5448 2001-08-24  Andreas Jaeger  <aj@suse.de>
5449
5450         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5451         make clean works.
5452
5453 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5454
5455         * elf/rtld.c (print_statistics): Printf % after percent values.
5456         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5457
5458         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5459         don't have to compute the hash value and initialize current_value.
5460         Move reference_name variable to where it is needed.
5461         (_dl_lookup_versioned_symbol): Likewise.
5462
5463 2001-08-24  Roland McGrath  <roland@frob.com>
5464
5465         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5466         Just test that strerror returns non-null for a few errno codes.
5467
5468 2001-08-23  Roland McGrath  <roland@frob.com>
5469
5470         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5471         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5472
5473         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5474
5475         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5476         __mach_reply_port.
5477
5478 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5479
5480         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5481         returns NULL.
5482
5483         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5484         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5485         doesn't do it.
5486         * elf/rtld.c: Include <sys/param.h>.
5487         * elf/dl-reloc.c: Likewise.
5488
5489 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5490
5491         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5492         empty to prevent junk from being generated.
5493         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5494
5495 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5496
5497         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5498         records.  Rename endrel to relative, initialize it to r, and use it
5499         in elf_machine_rel_relative calls.  Point r after relative relocs.
5500
5501 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5502
5503         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5504         of R_386_NONE.
5505
5506 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5507
5508         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5509         necessary.  Undefine newly defined macros at the end.
5510         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5511         Rename from elf_machine_rel_relative.
5512         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5513         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5514         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5515         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5516         Likewise.
5517         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5518         Likewise.
5519         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5520         Fix argument types.
5521         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5522         Fix argument types.
5523         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5524         Likewise.  Fix argument types.
5525         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5526         Likewise.  Fix argument types.
5527         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5528         Fix argument types.
5529         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5530         ElfW(Rel) in argument.
5531         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5532         function.
5533
5534 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
5535
5536         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5537
5538 2001-08-24  Andreas Jaeger  <aj@suse.de>
5539
5540         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5541         Stephen L Moshier <moshier@mediaone.net>.
5542
5543 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5544
5545         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5546         first if RELCOUNT is set.
5547
5548         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5549         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5550         elf_machine_rel_relative.
5551         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5552         Minor optimizations.
5553         * sysdeps/arm/dl-machine.h: Likewise.
5554         * sysdeps/cris/dl-machine.h: Likewise.
5555         * sysdeps/hppa/dl-machine.h: Likewise.
5556         * sysdeps/i386/dl-machine.h: Likewise.
5557         * sysdeps/ia64/dl-machine.h: Likewise.
5558         * sysdeps/m68k/dl-machine.h: Likewise.
5559         * sysdeps/mips/dl-machine.h: Likewise.
5560         * sysdeps/powerpc/dl-machine.h: Likewise.
5561         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5562         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5563         * sysdeps/sh/dl-machine.h: Likewise.
5564         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5565         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5566
5567 2001-08-23  Roland McGrath  <roland@frob.com>
5568
5569         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5570
5571         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5572         sysdeps/mach version.  Implement counting ("recursive") mutexes
5573         on top of cthreads mutexes.
5574         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5575
5576         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5577         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5578         (__libc_cleanup_region_start, __libc_cleanup_region_end,
5579         __libc_clean_end): Define these to call the cleanup function after
5580         normal exit when they're supposed to.
5581
5582         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5583         Take new first arg DOIT, a boolean saying whether to really install
5584         any cleanup handler.
5585         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5586         (__libc_cleanup_end): Likewise.
5587         * sysdeps/generic/bits/libc-lock.h: Same changes.
5588         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5589         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5590         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5591         Likewise.
5592         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5593         * sysdeps/generic/bits/stdio-lock.h
5594         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5595
5596 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5597
5598         * elf/ldconfig.c (search_dir): Remove stale symlinks.
5599
5600 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5601
5602         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5603         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5604         lookups in cache.
5605         (_dl_lookup_versioned_symbol): Likewise.
5606         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5607         relocation lookup.
5608         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5609         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5610         (lookup_cache, lookup_cache_versioned): Add declarations.
5611
5612 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5613
5614         * stdlib/tst-random.c (main): Swap parameters in fail call.
5615         Patch by Pete Bevin <pete@petebevin.com>.
5616
5617 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5618
5619         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5620
5621 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5622
5623         * malloc/obstack.c: Indent preprocessor directives.
5624         Patch by Jim Meyering <meyering@ascend.com>.
5625
5626         * po/ja.po: Update from translation team.
5627
5628 2001-08-23  Roland McGrath  <roland@frob.com>
5629
5630         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5631
5632         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5633         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5634
5635 2001-08-22  Roland McGrath  <roland@frob.com>
5636
5637         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5638         __libc_lock_define_recursive.
5639         * elf/dl-open.c: Don't declare it here any more.
5640         * elf/dl-close.c: Likewise.
5641         * elf/dl-lookup.c: Likewise.
5642         * elf/dl-iteratephdr.c: Likewise.
5643         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5644         __libc_lock_unlock_recursive.
5645         * elf/dl-close.c (_dl_close): Likewise
5646         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5647         * elf/dl-open.c (_dl_open): Likewise
5648
5649         * sysdeps/generic/bits/libc-lock.h
5650         (__libc_lock_define_recursive): New macro.
5651         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5652         (_IO_lock_lock): Use __libc_lock_lock_recursive.
5653         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5654
5655         * conform/conformtest.pl (checknamespace): Sort the output list.
5656
5657         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5658         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5659         definitions conditional on [__USE_XOPEN].
5660
5661         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5662         these unconditionally, not only use [__USE_BSD], so as to match
5663         the sysdeps/unix/sysv/linux files.
5664
5665 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5666
5667         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5668         avoid warnings.
5669
5670         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5671         DL_LOOKUP_ADDRESS.
5672
5673 2001-08-22  Roland McGrath  <roland@frob.com>
5674
5675         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5676         conditionalization of sa_handler/sa_sigaction member types to
5677         match the sysdeps/unix/sysv/linux file.
5678
5679 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5680
5681         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5682         symbol sizes a bit better.
5683
5684         * sysdeps/ia64/strncpy.S: Complete rewrite.
5685         Contributed by Jakub Jelinek <jakub@redhat.com>.
5686
5687         * string/stratcliff.c (main): Add strncpy test.
5688
5689 2001-08-22  Roland McGrath  <roland@frob.com>
5690
5691         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5692         and don't declare unsetenv or _environ directly.
5693         (unsetenv): Return int, not void.  Use __environ instead of _environ.
5694
5695 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
5696
5697         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5698         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5699         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5700         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5701         test for cmsg struct size.
5702
5703 2001-04-23  Paul Eggert  <eggert@twinsun.com>
5704
5705         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5706         Rename __argc to ___argc in prototypes to avoid compatibility
5707         problems with systems that reserve the identifier "__argc".
5708         Similarly for __argv.
5709
5710 2001-08-21  Roland McGrath  <roland@frob.com>
5711
5712         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5713
5714         * mach/Makefile (tests): Removed.
5715         * mach/hello.c: File removed.
5716
5717 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5718
5719         * po/sv.po: Update from translation team.
5720
5721         * stdio-common/vfscanf.c: Fix handling of %l[].
5722         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5723
5724         * libio/Makefile (tests): Add tst-sscanf.
5725         * libio/tst-sscanf.c: New file.
5726
5727         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5728         * malloc/mtrace.c (tr_where): dli_sname always points to a
5729         non-empty string if != NULL.
5730         Reported by Tim Janik <timj@gtk.org>.
5731
5732 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
5733
5734         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5735         buf.  Free resources on failure.
5736         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5737         (makefd_xprt): Likewise.
5738         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5739         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5740         * sunrpc/auth_unix.c (authunix_create): Likewise.
5741
5742 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
5743
5744         * string/strnlen.c: Remove.
5745         * sysdeps/generic/strnlen.c: New file.
5746         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5747
5748 2001-08-21  Roland McGrath  <roland@frob.com>
5749
5750         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5751         as a macro, not an extern inline function.
5752
5753         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5754         * Versions.def (libc): Add GLIBC_2.2.5 set.
5755         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5756         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5757
5758 2001-08-20  Roland McGrath  <roland@frob.com>
5759
5760         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5761         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5762
5763 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
5764
5765         * string/bits/string2.h: Remove strnlen optimization here.
5766         * sysdeps/i386/i486/bits/string.h: Add it here.
5767
5768 2001-08-21  Wolfram Gloger  <wg@malloc.de>
5769
5770         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5771
5772 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
5773
5774         * po/gl.po: Update from translation team.
5775
5776 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5777
5778         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5779         * misc/err.c (convert_and_print): Likewise.
5780
5781         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5782         function calls.
5783
5784 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5785
5786         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5787         change of the gregset_t type.
5788         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5789
5790 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5791
5792         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5793
5794 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5795
5796         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5797
5798         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
5799
5800 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
5801
5802         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5803         before calling the cthreads initialization code.
5804
5805 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
5806
5807         * argp/argp-help.c: Fix two problems introduced in last change.
5808
5809         * include/dirent.h: Include <dirstream.h> first.
5810
5811 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
5812
5813         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5814
5815         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5816         * sunrpc/xdr_rec.c: Likewise.
5817         * sunrpc/xdr_mem.c: Likewise.
5818         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5819         * sunrpc/rpc_cmsg.c: Likewise.
5820         * sunrpc/getrpcport.c (getrpcport): Likewise.
5821         * sunrpc/clnt_simp.c (callrpc): Likewise.
5822         * sunrpc/clnt_gen.c (clnt_create): Likewise.
5823         * string/envz.c: Likewise.
5824
5825         * po/ko.po: Update from translation team.
5826
5827         * argp/argp-help.c: Handle wide oriented stderr stream.
5828
5829 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
5830
5831         * sysdeps/generic/strtol.c: Little optimizations.  Add some
5832         __builtin_expect.
5833
5834         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5835
5836         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5837         * wcsmbs/wcwidth.c (wcwdith): Likewise.
5838         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5839
5840         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5841
5842         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5843
5844         * time/time.h (struct timespec): Use __time_t for tv_sec element.
5845
5846         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
5847         wchar_t for function declarations and defintions.
5848
5849         * misc/sys/select.h: Define __need_time_t before including <time.h>.
5850         Define suseconds_t if it hasn't happened yet.
5851
5852         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
5853
5854         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
5855
5856         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
5857         <stddef.h>.
5858
5859         * conform/data/stddef.h-data: Remove wint_t.
5860
5861         * conform/conformtest.pl: Change namespace test to take #undef
5862         lines into account.
5863
5864         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
5865
5866         * conform/data/sys/socket.h-data: Add sockatmark.
5867
5868 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5869
5870         * io/fts.c: Update from recent BSD source.
5871
5872 2001-08-17  Roland McGrath  <roland@frob.com>
5873
5874         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
5875         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
5876         Likewise.
5877
5878 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5879
5880         * locale/duplocale.c (__duplocale): Also initialize the special
5881         __ctype_* elements.
5882
5883         * conform/data/netdb.h-data: Adjust gai_strerror return type.
5884
5885 2001-08-17  Andreas Jaeger  <aj@suse.de>
5886
5887         * misc/getpass.c: Include wchar.h for prototypes.
5888         * malloc/obstack.c: Likewise.
5889
5890 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
5891
5892         * sunrpc/svc_simple.c (universal): Use __write instead of write.
5893
5894         * wcsmbs/wcscoll.c: Also define __wcscoll.
5895         * include/wchar.h: Declare __wcscoll.
5896
5897         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
5898         * libio/vwprintf.c: Likewise.
5899         * libio/wprintf.c: Likewise.
5900
5901         * iconv/gconv_cache.c: Use __munmap instead of munmap.
5902
5903 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
5904
5905         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5906         instead of mbrtowc.
5907         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5908         wcslen, and __wcscoll instead of wcscoll.
5909
5910         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
5911
5912         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
5913         __getuid instead of getuid.
5914
5915         * stdio-common/perror.c (perror): Use __close instead of close.
5916         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5917         * libio/freopen.c (freopen): Likewise.
5918         * libio/freopen64.c (freopen64): Likewise.
5919
5920         * libio/tst-ungetwc2.c (main): Define str const.
5921
5922         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
5923         * libio/fwprintf.c: Also define __fwprintf.
5924         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
5925         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
5926         * assert/assert-perr.c: Likewise.
5927         * assert/assert.c: Likewise.
5928         * gmon/gmon.c: Likewise.
5929         * inet/rcmd.c: Likewise.
5930         * malloc/obstack.c: Likewise.
5931         * misc/err.c: Likewise.
5932         * misc/error.c: Likewise.
5933         * misc/getpass.c: Likewise.
5934         * posix/getopt.c: Likewise.
5935         * resolv/res_hconf.c: Likewise.
5936         * stdio-common/perror.c: Likewise.
5937         * stdio-common/psignal.c: Likewise.
5938         * stdlib/fmtmsg.c: Likewise.
5939         * sunrpc/auth_unix.c: Likewise.
5940         * sunrpc/clnt_perr.c: Likewise.
5941         * sunrpc/clnt_tcp.c: Likewise.
5942         * sunrpc/clnt_udp.c: Likewise.
5943         * sunrpc/clnt_unix.c: Likewise.
5944         * sunrpc/svc_simple.c: Likewise.
5945         * sunrpc/svc_tcp.c: Likewise.
5946         * sunrpc/svc_udp.c: Likewise.
5947         * sunrpc/svc_unix.c: Likewise.
5948         * sunrpc/xdr.c: Likewise.
5949         * sunrpc/xdr_array.c: Likewise.
5950         * sunrpc/xdr_rec.c: Likewise.
5951         * sunrpc/xdr_ref.c: Likewise.
5952         * sysdeps/generic/wordexp.c: Likewise.
5953
5954         * po/it.po: Update from translation team.
5955
5956         * misc/err.c: Handle wide oriented stderr stream.
5957
5958 2001-08-14  Tom Rix  <trix@redhat.com>
5959
5960         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
5961         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
5962
5963 2001-08-13  Tom Rix  <trix@redhat.com>
5964
5965         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
5966         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
5967         and __intptr_t.
5968
5969 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5970
5971         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
5972         Store the access registers to the ucontext structure.
5973         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
5974         Likewise.
5975
5976         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
5977         Load the access registers from the ucontext structure.
5978         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
5979         Likewise.
5980
5981         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
5982         offsets to the new ucontext layout.
5983         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
5984
5985         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
5986         of the ucontext structure.
5987         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5988
5989 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
5990
5991         * misc/error.c (error): Handle wide oriented stderr stream correctly.
5992         (error_at_line): Likewise.
5993
5994         * stdio-common/perror.c (perror): Implement according to standard.
5995         The stream orientation must not be changed if the stream was not
5996         oriented before the call.
5997         * stdio-common/Makefile (tests): Add tst-perror.
5998         * stdio-common/tst-perror.c: New file.
5999
6000
6001 See ChangeLog.12 for earlier changes.