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