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