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