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