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