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