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