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