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