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