1 2003-06-17 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4 takes care of enabling cancellation.
6 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
7 cancelable. It's not correct to disable cancellation. Instead of
10 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
11 and part of the incoming set, create a temporary set without this
13 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
14 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
16 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
17 returning because seconds==0. Add __builtin_expect.
19 2003-06-16 Ulrich Drepper <drepper@redhat.com>
21 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
23 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
26 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
28 * include/libc-symbols.h: Add static_link_warning macro.
29 * grp/initgroups.c: Print linker warning if this function
30 is called in a static linked binary.
31 * nss/getXXbyYY.c: Likewise.
32 * nss/getXXbyYY_r.c: Likewise.
33 * nss/getXXent.c: Likewise.
34 * nss/getXXent_r.c: Likewise.
35 * sysdeps/posix/getaddrinfo.c: Likewise.
37 2003-06-16 Bruno Haible <bruno@clisp.org>
39 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
41 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
42 (IBM1047): Add alias IBM-1047.
43 (GBK): Add aliases MS936, WINDOWS-936.
45 2003-06-16 Jakub Jelinek <jakub@redhat.com>
47 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
48 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
49 (__xstat64_conv): Change xstat_conv to __xstat_conv.
51 2003-06-16 Ulrich Drepper <drepper@redhat.com>
53 * locale/iso-639.def: Update from current official ISO 639.
55 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
57 2003-06-15 Andreas Jaeger <aj@suse.de>
59 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
61 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
62 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
63 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
65 * math/tgmath.h (carg): Handle real arguments.
71 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
72 (tests): Add test-tgmath-ret.
73 * math/test-tgmath-ret.c: New file.
75 * math/tgmath.h (ilogb): Return always an int.
77 2003-06-16 Ulrich Drepper <drepper@redhat.com>
79 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
80 computation so that prelinking works.
82 2003-06-15 Ulrich Drepper <drepper@redhat.com>
84 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
86 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
89 Fix cancellation point handling wrt exception based cleanup.
90 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
91 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
93 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
94 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
95 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
97 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
98 sigwait.c, and sigwaitinfo.c with exceptions.
99 * stdlib/Makefile: Compile system.c with exceptions.
100 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
101 * termios/Makefile: Compile tcdrain.c with exceptions.
102 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
104 * sysdeps/generic/pselect.c: Likewise.
105 * sysdeps/posix/sigpause.c: Likewise.
106 * sysdeps/posix/system.c: Likewise.
107 * sysdeps/posix/waitid.c: Likewise.
108 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
109 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
110 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
111 INTERNAL_SYSCALL to not use push inside asm statement so that
112 unwind info is correct around the syscall.
113 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
114 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
116 2003-06-15 Andreas Jaeger <aj@suse.de>
118 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
121 2003-06-15 Guido Guenther <agx@sigxcpu.org>
123 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
126 2003-06-14 Ulrich Drepper <drepper@redhat.com>
128 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
131 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
132 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
135 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
136 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
137 * inet/Makefile (routines): Add inet6_option.
138 * inet/inet6_option.c: New file.
139 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
140 inet6_option_init, inet6_option_append, inet6_option_alloc,
141 inet6_option_next, and inet6_option_find.
143 2003-06-13 Ulrich Drepper <drepper@redhat.com>
145 * inet/netinet/ip6.h (struct ip6_ext): Define.
147 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
149 Fixing gcc 3.3 warnings, part II.
150 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
151 * elf/dl-load.c (cache_rpath): Don't inline.
152 * iconvdata/cns11642l2.h: Always inline all functions.
153 * iconvdata/iso-ir-165.h: Likewise.
154 * locale/Makefile (aux): Add coll-lookup.
155 * locale/coll-lookup.c: New file.
156 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
157 (collseq_table_lookup): Likewise.
158 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
159 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
161 * posix/regcomp.c: Likewise.
162 * posix/regexec.c: Likewise.
163 * locale/programs/3level.h (*_get): Always inline.
164 * locale/programs/locfile.h: Move definition of handle_copy to...
165 * locale/programs/locfile.c: ...here.
166 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
167 (obstack_int32_grow_fast): Likewise.
168 (utf8_encode): Likewise.
169 (find_element): Avoid aliasing problems.
170 (insert_value): Likewise.
171 (collate_read): Likewise.
172 * nss/getent.c (print_hosts): Don't inline
173 (print_networks): Likewise.
174 (print_shadow): Likewise.
175 (build_doc): Likewise.
176 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
178 * posix/regcomp.c (re_set_fastmap): Always inline.
179 (seek_collating_symbol_entry): Likewise.
180 (lookup_collation_sequence_value): Likewise.
181 (build_range_exp): Likewise.
182 (build_collating_symbol): Likewise.
183 * posix/regexec.c (acquire_init_state_context): Don't inline.
184 (clean_state_log_if_need): Likewise.
185 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
187 (evConsTime): Likewise.
188 (evAddTime): Likewise.
189 (evSubTime): Likewise.
190 (evNowTime): Likewise.
191 (evTimeSpec): Removed.
192 (__libc_res_nsend): Avoid aliasing problem.
193 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
194 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
195 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
197 (_dl_string_platform): Likewise.
198 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
199 (wcwidth_table_lookup): Likewise.
200 (wctrans_table_lookup): Likewise.
202 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
204 2003-06-12 Ulrich Drepper <drepper@redhat.com>
206 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
208 2003-05-29 Jim Meyering <jim@meyering.net>
210 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
211 && HAVE_STRFTIME]: Use underlying_strftime for %r.
212 Suggested by Daniel Yacob <locales@geez.org>.
214 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
216 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
217 @got notation with @toc.
218 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
221 2003-06-12 Ulrich Drepper <drepper@redhat.com>
223 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
224 if only PF_INET address is needed.
226 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
229 * scripts/config.guess: Update from upstream version.
230 * scripts/config.sub: Likewise.
232 2003-06-12 Jakub Jelinek <jakub@redhat.com>
234 * locale/programs/ld-time.c (time_output): Also copy the era format,
237 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
239 * posix/transbug.c (run_test): Return 1 for failure.
240 (do_test): Compare only if run_test is successful.
242 2003-06-12 Simon Josefsson <jas@extundo.com>
244 * argp/argp.h [!__THROW]: Define if undefined.
246 2003-06-12 Ulrich Drepper <drepper@redhat.com>
248 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
249 more than four parameters.
250 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
252 2003-06-12 Jakub Jelinek <jakub@redhat.com>
254 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
255 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
256 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
258 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
260 2003-06-12 Roland McGrath <roland@redhat.com>
262 * Makerules ($(objpfx)stubs): Rewrite sed magic.
264 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
266 * posix/regcomp.c (parse_expression): Deliver translation to
267 build_word_op, and build_charclass.
268 (build_charclass): Apply translation for character classes too.
269 (build_word_op): Deliver translation to build_charclass.
270 * posix/transbug.c: New file.
271 * posix/Makefile (tests): Add transbug.
273 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
275 * posix/regexec.c (group_nodes_into_DFAstates): Check for
276 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
277 'continue' before the others.
279 2003-06-11 Ulrich Drepper <drepper@redhat.com>
281 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
282 function [PR libc/5045].
284 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
287 * time/tzfile.c: Add a couple of __builtin_expect.
289 Remove warnings gcc 3.3 shows.
290 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
291 * elf/dl-load.c (fillin_rpath): Likewise.
292 (add_path): Likewise.
293 * elf/dl-version.c (find_needed): Always inline.
294 * elf/do-lookup.c (FCT): Don't inline.
295 * iconv/Makefile: Extend vpath to intl subdir.
296 (iconvconfig-modules): Add hash-string.
297 * iconv/gconv_charset.h (strip): Don't inline.
298 (upstr): Always inline.
299 Move __gconv_compare_alias prototype to...
300 * iconv/gconv_int.h: ...here.
301 * iconv/gconv_db.c: Don't include gconv_charset.h.
302 * iconv/gconv_conf.c (add_alias): Don't inline.
303 (insert_module): Likewise.
304 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
305 (internal_ucs4_loop_unaligned): Likewise.
306 (internal_ucs4_loop_single): Likewise.
307 (ucs4_internal_loop): Likewise.
308 (ucs4_internal_loop_unaligned): Likewise.
309 (ucs4_internal_loop_single): Likewise.
310 (internal_ucs4le_loop): Always inline.
311 (internal_ucs4le_loop_unaligned): Likewise.
312 (internal_ucs4le_loop_single): Likewise.
313 (ucs4le_internal_loop): Likewise.
314 (ucs4le_internal_loop_unaligned): Likewise.
315 (ucs4le_internal_loop_single): Likewise.
316 * iconv/loop.c: Always inline the defined functions.
317 * iconvdata/cns11642.h: Likewise.
318 * iconvdata/cns11642l1.h: Likewise.
319 * iconvdata/euc-kr.c: Likewise.
320 * iconvdata/gb2312.h: Likewise.
321 * iconvdata/jis0201.h: Likewise.
322 * iconvdata/jis0208.h: Likewise.
323 * iconvdata/jis0212.h: Likewise.
324 * iconvdata/jisx0213.h: Likewise.
325 * iconvdata/ksc5601.h: Likewise.
326 * iconvdata/utf-7.c (base64): Don't inline.
327 * include/libc-symbols.h (symbol_set_first_element): Add cast
328 (symbol_set_end_p): Likewise.
329 * include/set-hooks (RUN_HOOK): Likewise.
330 * inet/Makefile (aux): Add ifreq.
331 * intl/Makefile (aux): Add some entries from routines. Add
333 * intl/hash-string.c: New file.
334 * intl/hash-string.h: Remove hash_string definition. Declare
336 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
337 * iconv/iconvconfig.c (new_name): Likewise.
338 * intl/dcigettext.c (_nl_find_msg): Likewise.
339 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
340 * io/ftw.c (open_dir_stream): Always inline.
341 (process_entry): Don't inline.
342 * locale/findlocale.c: Include gconv_int.h.
343 * locale/setlocale.c (new_composite_name): Don't inline.
344 * locale/weight.h (findidx): Always inline.
345 * locale/weightwc.h (findidx): Likewise.
346 * locale/programs/linereader.c (lr_ignore_rest): Define here.
347 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
349 (lr_getc): Always inline.
350 (lr_ungetc): Likewise.
351 * nss/nss_files/files-parse.c (parse_list): Likewise.
352 * stdio-common/Makefile (aux): Add printf-parsemb and
354 * stdio-common/_itoa.h (_itoa_word): Always inline.
355 (_fitoa_word, _fitoa): Don't define here, only declare.
356 * stdio-common/_itoa.c (_iftoa_word): Add here.
358 * stdio-common/_itowa.h (_itowa_word): Always inline.
359 * stdio-common/printf-parse.h (read_int): Don't inline.
360 (find_spec): Don't define.
361 Declare __find_specmb and __find_specwc.
362 (parse_one_spec): Don't define.
363 Declare __parse_one_specmb and __parse_one_specwc.
364 * stdio-common/printf-parsemb.c: New file.
365 * stdio-common/printf-parsewc.c: New file.
366 * stdio-common/vfprintf.c: Update calls to find_spec and
367 parse_one_spec for new names.
368 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
369 * stdlib/Makefile (aux): Add grouping and groupingwc.
370 * stdlib/grouping.c: New file.
371 * stdlib/groupingwc.c: New file.
372 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
374 * stdlib/rpmatch.c (try): Don't inline.
375 * stdlib/strtod.c (round_and_return): Don't line.
376 (str_to_mpn): Likewise.
377 (__mpn_lshift_1): Always inline. Optimize only for constant count.
378 Adjust for name change of correctly_grouped_prefix.
379 * sysdeps/generic/strtol.c: Adjust for name change of
380 correctly_grouped_prefix.
381 * string/strxfrm.c (utf8_encode): Don't inline.
382 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
383 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
384 * sysdeps/generic/ifreq.c: New file.
385 * sysdeps/unix/sysv/linux/ifreq.c: New file.
386 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
387 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
388 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
389 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
390 (fde_split): Likewise.
391 (fde_merge): Likewise.
392 (end_fde_sort): Likewise.
393 (init_object): Likewise.
394 (binary_search_unencoded_fdes): Likewise.
395 (binary_search_single_encoding_fdes): Likewise.
396 (binary_search_mixed_encoding_fdes): Likewise.
397 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
398 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
399 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
400 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
402 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
403 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
404 Export them. Prepend __ to name.
405 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
406 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
407 conversion functions.
408 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
409 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
410 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
411 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
412 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
413 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
414 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
415 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
416 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
417 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
418 to name. Change callers.
419 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
420 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
422 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
423 * time/tzfile.c (decode): Always inline.
424 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
425 Remove cast in tomb function call.
426 * wcsmbs/wcsrtombs.c Likewise.
427 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
430 2003-06-10 Ulrich Drepper <drepper@redhat.com>
432 * po/zh_CN.po: Update from translation team.
434 2003-06-10 Jakub Jelinek <jakub@redhat.com>
436 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
437 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
439 2003-06-10 Ulrich Drepper <drepper@redhat.com>
441 * inet/Makefile (aux): Add check_pf.
442 * include/ifaddrs.h: Add prototype for __check_pf.
443 * sysdeps/generic/check_pf.c: New file.
444 * sysdeps/unix/sysv/linux/check_pf.c: New file.
445 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
446 from no_netlink_support. Export.
447 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
450 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
452 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
453 from getifaddr calls.
455 2003-06-09 Jakub Jelinek <jakub@redhat.com>
457 * sysdeps/unix/sysv/linux/kernel-features.h
458 (__ASSUME_SETRESGID_SYSCALL): Define.
459 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
460 instead of __ASSUME_SETRESUID_SYSCALL.
461 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
463 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
464 inline syscall if __NR_setresuid32 is defined.
465 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
466 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
467 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
468 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
469 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
470 code handling non-existant setresgid32 syscall with
471 #if __ASSUME_SETRESGID_SYSCALL == 0.
473 2003-06-09 Andreas Schwab <schwab@suse.de>
475 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
476 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
477 $(objpfx)rpc-proto.d.
478 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
479 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
480 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
482 2003-06-08 Ulrich Drepper <drepper@redhat.com>
484 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
485 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
486 defined drop compatibility code.
487 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
488 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
489 defined drop compatibility code.
490 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
491 setresuid32 syscall directly if possible.
492 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
493 setresgid32 syscall directly if possible.
494 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
495 compliant. Don't change sgid.
496 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
497 compliant. Don't change suid.
499 * config.h.in: Add have-forced-unwind.
500 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
502 2003-06-07 Ulrich Drepper <drepper@redhat.com>
504 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
505 returned status from child matches.
507 * Makeconfig (gnulib): Add -lgcc_eh once again.
509 2003-06-06 Ulrich Drepper <drepper@redhat.com>
511 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
513 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
514 %edx for first parameter. This means no pushl and therefore the
515 unwind info isn't screwed up.
517 2003-06-04 Richard Henderson <rth@redhat.com>
519 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
520 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
521 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
522 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
523 entry sequence and explicit relocs. Add unwind info for sigreturn
525 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
527 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
528 Annotate some parameters.
529 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
531 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
533 * include/libc-symbols.h (symbol_set_declare): Use arrays
536 2003-06-04 Jakub Jelinek <jakub@redhat.com>
538 * config.make.in (ASFLAGS-config): New.
539 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
540 * configure.in (libc_cv_as_noexecstack): New check.
541 (ASFLAGS_config): Substitute.
543 2003-06-04 Jakub Jelinek <jakub@redhat.com>
545 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
546 hypot, logb): Protect with #ifdef __FAST_MATH__.
548 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
550 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
551 #ifdef __FAST_MATH__.
553 2003-06-03 Ulrich Drepper <drepper@redhat.com>
555 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
556 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
557 * posix/globtest.sh: Adjust for this change.
559 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
560 to get the actual PID value used in the records passed up.
561 (getifaddrs): Don't initialize nh.pid here.
563 2003-06-02 Ulrich Drepper <drepper@redhat.com>
565 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
568 * po/zh_CN.po: Update from translation team.
570 * posix/getconf.c (main): Also recognize names without the
573 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
575 2003-06-02 Bernd Schmidt <bernds@redhat.com>
577 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
578 ldexpf, ldexpl): Only define if __FAST_MATH__.
580 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
582 Replace hard-coded offsets into struct sigcontext with generated file.
583 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
584 * sysdeps/unix/sysv/linux/ia64/Makefile
585 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
586 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
587 defining SC_* macros here.
589 2003-06-02 Jakub Jelinek <jakub@redhat.com>
591 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
593 2003-06-01 Jakub Jelinek <jakub@redhat.com>
595 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
597 2003-06-01 Ulrich Drepper <drepper@redhat.com>
599 * test-skeleton.c (main): Request getopt to not reorder the
602 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
604 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
607 2003-05-31 Ulrich Drepper <drepper@redhat.com>
609 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
611 2003-05-31 Jakub Jelinek <jakub@redhat.com>
613 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
615 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
616 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
617 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
619 2003-05-31 Ulrich Drepper <drepper@redhat.com>
621 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
624 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
626 * libio/fileops.c (_IO_file_open): Don't mark as inline.
628 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
631 2003-05-30 Ulrich Drepper <drepper@redhat.com>
633 * scripts/config.guess: Update from master copy.
634 * scripts/config.sub: Likewise.
636 2003-05-30 Guido Guenther <agx@sigxcpu.org>
638 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
639 SETUP_GP64 and friends.
640 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
641 names in internal_syscall{6,7}.
642 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
643 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
644 number of syscall arguments.
645 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
646 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
647 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
649 2003-05-30 Andreas Jaeger <aj@suse.de>
651 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
654 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
657 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
659 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
662 2003-05-30 Jakub Jelinek <jakub@redhat.com>
664 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
667 2003-05-11 Andreas Schwab <schwab@suse.de>
669 * Makerules: Always use -MP together with -MD.
670 (sed-remove-dotot): Substitute $(..) also at start of line.
671 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
672 Generated defines with a single compiler call.
673 Use $(sed-remove-dotdot).
674 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
675 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
676 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
677 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
678 * sysdeps/unix/sysv/linux/mips/Makefile
679 ($(objpfx)syscall-%.h): Likewise.
681 2003-05-28 Roland McGrath <roland@redhat.com>
683 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
685 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
687 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
689 2003-05-28 Roland McGrath <roland@redhat.com>
691 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
692 rt_sigprocmask system call.
693 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
694 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
696 2003-05-28 Ulrich Drepper <drepper@redhat.com>
698 * include/libc-symbols.h: Define hidden attribute for real also if
699 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
701 * csu/Makefile: Add rules to build Scrt1.o.
702 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
703 * sysdeps/x86_64/elf/start.S: Likewise.
705 2003-05-27 Jakub Jelinek <jakub@redhat.com>
707 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
708 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
709 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
710 pa_short_int, pa_u_short_int and pa_float.
712 2003-05-26 Jakub Jelinek <jakub@redhat.com>
714 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
715 _IO_str_init_static_internal.
716 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
717 change size argument to _IO_size_t, don't limit sprintf to 64M.
718 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
719 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
720 _IO_size_t, don't limit swprintf to 256M.
721 (_IO_wstr_init_readonly): Remove.
722 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
724 (_IO_wstr_init_readonly): Remove prototype.
725 * libio/iovsprintf.c (_IO_vsprintf): Use
726 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
727 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
728 * libio/memstream.c (open_memstream): Likewise.
729 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
730 * libio/vasprintf.c (_IO_vasprintf): Likewise.
731 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
732 * stdio-common/tst-sprintf.c (main): Add new test.
734 2003-05-26 Ulrich Drepper <drepper@redhat.com>
736 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
737 other implementation in respect of multiple uses of parameter with
740 2003-05-25 Ulrich Drepper <drepper@redhat.com>
742 * sysdeps/unix/sysv/linux/kernel-features.h: Define
743 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
745 2003-05-22 Andreas Jaeger <aj@suse.de>
747 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
749 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
750 * sysdeps/x86_64/strtok.S: Likewise.
752 2003-05-20 Guido Guenther <agx@sigxcpu.org>
754 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
755 to -60 and define SI_TKILL.
757 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
759 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
760 (feexcp_mask_test): Likewise.
762 2003-05-21 Ulrich Drepper <drepper@redhat.com>
764 * locale/programs/locale.c (main): Fix typo in last patch.
766 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
767 __init_array_start, __init_array_end, __fini_array_start, and
768 __fini_array_end as hidden.
770 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
772 * locale/programs/locale.c (main): Report an error if setlocale()
773 fails [PR libc/2254].
775 2003-05-21 Jakub Jelinek <jakub@redhat.com>
777 * sysdeps/unix/sysv/linux/s390/system.c: New file.
779 2003-05-21 Jakub Jelinek <jakub@redhat.com>
781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
782 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
783 LOADARGS_6): Don't error if syscall argument is a string literal.
784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
785 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
786 LOADARGS_6): Likewise.
788 2003-05-21 Andreas Jaeger <aj@suse.de>
790 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
791 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
792 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
794 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
798 * configure.in: Test for asm cfi directives.
800 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
802 2003-05-17 Andreas Jaeger <aj@suse.de>
804 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
806 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
808 2003-05-16 Ulrich Drepper <drepper@redhat.com>
810 * rt/Makefile (tests): Add tst-clock_nanosleep.
811 * rt/tst-clock_nanosleep.c: New file.
812 * posix/Makefile (tests): Add tst-nanosleep.
813 * posix/tst-nanosleep.c: New file.
815 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
817 * include/features.h (__USE_XOPEN2K): Define also for
818 _POSIX_C_SOURCE>=200112L.
820 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
821 SI_TKILL code into SI_USER.
822 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
824 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
826 2003-05-15 Jakub Jelinek <jakub@redhat.com>
828 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
829 Remove sym argument, always use refsym.
830 (__process_machine_rela): Adjust callers.
831 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
833 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
835 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
837 2003-05-15 Ulrich Drepper <drepper@redhat.com>
839 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
840 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
841 print numeric values.
843 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
845 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
847 2003-05-14 Andreas Schwab <schwab@suse.de>
849 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
851 2003-05-14 Jakub Jelinek <jakub@redhat.com>
853 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
854 even if no DT_NEEDED is present.
856 2003-05-13 David Mosberger <davidm@hpl.hp.com>
858 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
859 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
860 __sigjmp_save) so we can't keep the saved unat value in a scratch
861 register (r16). Use loc2 instead.
863 2003-05-13 Ulrich Drepper <drepper@redhat.com>
865 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
866 binaries it has to be relocatable.
868 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
870 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
872 * sysdeps/powerpc/bits/atomic.h
873 (__arch_compare_and_exchange_bool_8_rel): Define.
874 (__arch_compare_and_exchange_bool_16_rel): Define.
875 (__ARCH_REL_INSTR): Define if not already defined.
876 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
877 (__arch_atomic_decrement_if_positive_32):
878 Add "memory" to clobber list.
879 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
880 (__arch_compare_and_exchange_val_32_rel): Define.
881 (__arch_atomic_exchange_32): Remove.
882 (__arch_atomic_exchange_32_acq): Define.
883 (__arch_atomic_exchange_32_rel): Define.
884 (atomic_compare_and_exchange_val_rel): Define.
885 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
886 (atomic_exchange_rel): Define.
887 * sysdeps/powerpc/powerpc32/bits/atomic.h
888 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
889 (__arch_compare_and_exchange_bool_32_rel): Define.
890 (__arch_compare_and_exchange_bool_64_rel): Define.
891 (__arch_compare_and_exchange_val_64_rel): Define.
892 (__arch_atomic_exchange_64): Remove.
893 (__arch_atomic_exchange_64_acq): Define.
894 (__arch_atomic_exchange_64_rel): Define.
895 * sysdeps/powerpc/powerpc64/bits/atomic.h
896 (__arch_compare_and_exchange_bool_32_rel): Define.
897 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
898 (__arch_compare_and_exchange_bool_64_rel): Define.
899 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
900 (__arch_compare_and_exchange_val_64_rel): Define.
901 (__arch_atomic_exchange_64): Remove.
902 (__arch_atomic_exchange_64_acq): Define.
903 (__arch_atomic_exchange_64_rel): Define.
904 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
905 (__arch_atomic_decrement_if_positive_64):
906 Add "memory" to clobber list.
907 [!UP](__ARCH_REL_INSTR): Define as lwsync.
909 2003-05-11 Andreas Schwab <schwab@suse.de>
911 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
913 2003-05-11 Ulrich Drepper <drepper@redhat.com>
915 * time/tst-strftime.c (do_test): Add tests for - flag.
917 2003-05-11 Jim Meyering <jim@meyering.net>
919 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
920 the space-padded-by-default conversion specifiers, %e, %k, %l.
922 2003-05-11 Andreas Schwab <schwab@suse.de>
924 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
926 2003-05-10 Ulrich Drepper <drepper@redhat.com>
928 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
929 already defined and when really needed.
930 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
932 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
934 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
935 headers, add defines from kernel header, move it from here...
936 * inet/netinet/igmp.h: ... to here.
937 * inet/Makefile (headers): Add netinet/igmp.h.
938 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
939 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
941 2003-05-10 Ulrich Drepper <drepper@redhat.com>
943 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
944 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
946 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
948 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
949 (remove __THROW from possible cancellation points).
951 2003-05-10 Ulrich Drepper <drepper@redhat.com>
953 * posix/sched.h (CPU_SETSIZE): Define.
955 2003-05-09 Ulrich Drepper <drepper@redhat.com>
957 * Makeconfig (gnulib): Remove -lgcc_eh again.
959 * posix/sched.h: Change prototypes of sched_getaffinity and
960 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
961 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
962 * sysdeps/generic/sched_setaffinity.c: Likewise.
963 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
964 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
965 __CPU_CLR, and __CPU_ISSET.
966 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
967 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
968 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
970 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
971 (atomic_exchange_rel): New #define.
972 * sysdeps/ia64/bits/atomic.h: Likewise.
973 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
975 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
976 * sysdeps/powerpc/bits/atomic.h: Likewise.
977 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
978 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
979 * sysdeps/x86_64/bits/atomic.h: Likewise.
980 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
982 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
984 2003-05-08 Ulrich Drepper <drepper@redhat.com>
986 * malloc/thread-m.h: Remove special handling of thread_atfork if
987 HAVE_register_atfork_malloc is defined.
989 2003-05-07 Andreas Jaeger <aj@suse.de>
991 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
994 2003-05-06 Ulrich Drepper <drepper@redhat.com>
996 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
997 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
998 * libio/libioP.h: Declare _IO_old_init.
999 * libio/genops.c (_IO_no_init): Split in two. New function
1002 2003-05-05 Ulrich Drepper <drepper@redhat.com>
1004 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
1006 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
1008 * include/unistd.h: Declare __libc_enable_secure_decided.
1009 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
1010 and AT_EGID. If all found, set __libc_enable_secure and
1011 __libc_enable_secure_decided.
1013 * sysdeps/generic/libc-start.c [!SHARED]: Call
1014 __libc_check_standard_fds after __libc_init_first.
1016 2003-05-05 Roland McGrath <roland@redhat.com>
1018 * Makerules (common-before-compile): New variable.
1019 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
1020 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
1021 to after all setting of before-compile.
1023 2003-05-05 Jakub Jelinek <jakub@redhat.com>
1025 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1026 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
1027 * sysdeps/powerpc/powerpc32/bits/atomic.h
1028 (__arch_compare_and_exchange_val_64_acq): Likewise.
1029 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1030 (__arch_compare_and_exchange_val_8_acq,
1031 __arch_compare_and_exchange_val_16_acq,
1032 __arch_compare_and_exchange_val_64_acq): Likewise.
1033 * sysdeps/sparc/sparc64/bits/atomic.h
1034 (__arch_compare_and_exchange_val_8_acq,
1035 __arch_compare_and_exchange_val_16_acq): Likewise.
1036 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1037 __arch_compare_and_exchange_val_16_acq,
1038 __arch_compare_and_exchange_val_64_acq): Likewise.
1039 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1040 (__arch_compare_and_exchange_val_64_acq): Likewise.
1041 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
1043 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
1045 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1046 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
1047 Return long instead of int.
1048 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
1049 0xfffff001u with -4095UL.
1051 2003-05-05 Andreas Jaeger <aj@suse.de>
1053 * sysdeps/x86_64/fpu_control.h: New from i386.
1055 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
1056 Define if not defined.
1058 * sunrpc/Makefile (generated-dirs): New variable.
1059 * resolv/Makefile (generated): New variable.
1061 2003-05-04 Roland McGrath <roland@redhat.com>
1063 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
1064 Depend on $(before-compile).
1066 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
1067 pattern rule. The implicit rule could be ruled out when $(objpfx)
1068 didn't exist at the time of its consideration (ugh!).
1070 * Makerules (+make-deps): Fix target matching.
1071 Use $(sed-remove-dotdot).
1073 2003-05-03 Ulrich Drepper <drepper@redhat.com>
1075 * nscd/nscd.c (main): Parse config file right after parsing
1076 parameters. Then, if get_stats is true, call receive_print_stats.
1077 Drop parameter from nscd_init call.
1078 (get_stats): New variable.
1079 (parse_opt): Set get_stats, don't call receive_print_stats here.
1080 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
1082 * nscd/connections.c (stat_user, stat_uid): New variables.
1084 (nscd_init): Don't read configuration file here. Drop parameter.
1085 (handle_request): Cleanup handling of non-database lookup requests.
1086 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
1087 Get UID of the specified user. Use xstrdup instead of strdup.
1088 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
1090 * nscd/Makefile (nscd-modules): Add xstrdup.
1091 * nscd/nscd.conf: Document stat-user entry.
1093 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
1095 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
1098 2003-04-22 Roland McGrath <roland@redhat.com>
1100 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
1101 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1102 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
1103 * elf/dl-support.c: Update defn.
1104 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
1105 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1106 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
1107 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
1108 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
1109 set, set up a link_map for the preloaded, prelinked object.
1111 2003-05-03 Roland McGrath <roland@redhat.com>
1113 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
1114 * stdio-common/Makefile: ... not here.
1116 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
1117 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
1119 2003-05-02 Ulrich Drepper <drepper@redhat.com>
1121 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
1123 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
1125 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
1126 comparing ftab elements.
1127 (_dl_unmap): Fix typo in test.
1128 (_dl_make_fptr): Fix typos introduced in last change.
1130 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
1131 original patch. Use non-exported symbols. Mark translatable
1132 strings. Pretty printing.
1134 2003-05-02 Roland McGrath <roland@redhat.com>
1136 * Makerules (do-stamp): Do $(make-target-directory).
1138 2003-04-07 H.J. Lu <hjl@gnu.org>
1140 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
1142 2003-04-03 H.J. Lu <hjl@gnu.org>
1144 * sysdeps/ia64/dl-fptr.c: Moved to ...
1145 * sysdeps/generic/dl-fptr.c: Here.
1147 * sysdeps/generic/dl-fptr.h: New.
1148 * sysdeps/ia64/dl-fptr.h: New.
1150 * sysdeps/ia64/dl-symaddr.c: Moved to ...
1151 * sysdeps/generic/dl-symaddr.c: here.
1153 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
1154 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
1155 (ia64_fdesc): Likewise.
1156 (ia64_fdesc_table): Likewise.
1157 (__ia64_make_fptr): Likewise.
1158 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
1159 with _dl_boot_fptr_table.
1160 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
1162 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
1164 2003-05-01 Roland McGrath <roland@redhat.com>
1166 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
1167 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1169 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1170 Use $(make-target-directory).
1171 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1173 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
1174 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
1175 (compile-command.s, compile-command.c): Likewise.
1176 ($(objpfx)%.d): All such pattern rules removed.
1177 ($(+sysdir_pfx)sysd-rules): Don't generate them.
1178 ($(common-objpfx)dummy.d): Target removed.
1179 (make-dummy-dep): Variable removed.
1180 (generate-md5): Likewise.
1181 (%.d: %.dt): New pattern rule.
1182 (+depfiles): Use $(wildcard) function to get just existing *.d files
1183 and .d files for existing *.dt files.
1184 (common-clean): Remove all *.d and *.dt files.
1185 (before-compile): Add $(objpfx). when it doesn't exist,
1186 regardless of $(no_deps).
1187 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
1188 (rtld-depfiles): Use .os.d instead of .d names.
1189 Include existing *.d files and .d files for existing *.dt files.
1191 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
1192 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
1194 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
1195 Do s-*.d includes only if we have some syscall routines in this subdir.
1197 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
1198 @nobits. The former is accepted by gas on any ELF platform.
1200 2003-05-01 Ulrich Drepper <drepper@redhat.com>
1202 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
1204 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
1206 2003-04-29 Andreas Schwab <schwab@suse.de>
1208 * string/test-strcat.c (do_one_test): Fix attribute name.
1210 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
1212 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1213 uc_flags long for all ABIs.
1215 2003-04-30 Andreas Jaeger <aj@suse.de>
1217 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1218 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1219 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1220 Add bi-arch support.
1222 2003-04-30 Ulrich Drepper <drepper@redhat.com>
1224 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1225 (__posix_memalign): Use __memalign_internal instead of memalign.
1227 2003-04-29 Roland McGrath <roland@redhat.com>
1229 * configure.in: Search for AUTOCONF unconditionally.
1230 Just don't complain about missing it under --without-cvs.
1232 * include/libc-symbols.h (__symbol_set_attribute): New macro,
1233 give hidden for [SHARED] and weak for [! SHARED].
1234 (symbol_set_declare): Use that. Never need weak_extern these days.
1235 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1236 Depend on $(..)Makerules.
1238 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1240 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1241 variants of socket, bind, recvmsg, and sendto.
1243 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1245 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1246 * signal/sigaddset.c: Add libc_hidden_def.
1247 * signal/sigdelset.c: Likewise.
1249 2003-04-29 Jakub Jelinek <jakub@redhat.com>
1251 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1252 to the end of the file.
1254 * configure.in: Change __oline__ to $LINENO.
1255 (HAVE_BUILTIN_REDIRECTION): New check.
1256 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1257 * include/libc-symbols.h (libc_hidden_builtin_proto,
1258 libc_hidden_builtin_def, libc_hidden_builtin_weak,
1259 libc_hidden_builtin_ver): Define.
1260 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1261 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1262 strspn, strstr): Add libc_hidden_builtin_proto.
1263 * intl/plural.y: Include string.h.
1264 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1265 libc_hidden_builtin_def.
1266 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1267 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1268 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1269 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1270 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1271 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1272 * sysdeps/alpha/memchr.S (memchr): Likewise.
1273 * sysdeps/alpha/memset.S (memset): Likewise.
1274 * sysdeps/alpha/strcat.S (strcat): Likewise.
1275 * sysdeps/alpha/strchr.S (strchr): Likewise.
1276 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1277 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1278 * sysdeps/alpha/strlen.S (strlen): Likewise.
1279 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1280 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1281 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1282 * sysdeps/arm/memset.S (memset): Likewise.
1283 * sysdeps/arm/strlen.S (strlen): Likewise.
1284 * sysdeps/generic/memchr.c (memchr): Likewise.
1285 * sysdeps/generic/memcpy.c (memcpy): Likewise.
1286 * sysdeps/generic/memmove.c (memmove): Likewise.
1287 * sysdeps/generic/memset.c (memset): Likewise.
1288 * sysdeps/generic/strcat.c (strcat): Likewise.
1289 * sysdeps/generic/strchr.c (strchr): Likewise.
1290 * sysdeps/generic/strcmp.c (strcmp): Likewise.
1291 * sysdeps/generic/strcpy.c (strcpy): Likewise.
1292 * sysdeps/generic/strcspn.c (strcspn): Likewise.
1293 * sysdeps/generic/strlen.c (strlen): Likewise.
1294 * sysdeps/generic/strncmp.c (strncmp): Likewise.
1295 * sysdeps/generic/strncpy.c (strncpy): Likewise.
1296 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1297 * sysdeps/generic/strrchr.c (strrchr): Likewise.
1298 * sysdeps/generic/strspn.c (strspn): Likewise.
1299 * sysdeps/generic/strstr.c (strstr): Likewise.
1300 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1301 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1302 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1303 * sysdeps/i386/i586/memset.S (memset): Likewise.
1304 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1305 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1306 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1307 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1308 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1309 * sysdeps/i386/i686/memset.S (memset): Likewise.
1310 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1311 * sysdeps/i386/memchr.S (memchr): Likewise.
1312 * sysdeps/i386/memset.c (memset): Likewise.
1313 * sysdeps/i386/strchr.S (strchr): Likewise.
1314 * sysdeps/i386/strcspn.S (strcspn): Likewise.
1315 * sysdeps/i386/strlen.c (strlen): Likewise.
1316 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1317 * sysdeps/i386/strrchr.S (strrchr): Likewise.
1318 * sysdeps/i386/strspn.S (strspn): Likewise.
1319 * sysdeps/ia64/memchr.S (memchr): Likewise.
1320 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1321 * sysdeps/ia64/memmove.S (memmove): Likewise.
1322 * sysdeps/ia64/memset.S (memset): Likewise.
1323 * sysdeps/ia64/strcat.S (strcat): Likewise.
1324 * sysdeps/ia64/strchr.S (strchr): Likewise.
1325 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1326 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1327 * sysdeps/ia64/strlen.S (strlen): Likewise.
1328 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1329 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1330 * sysdeps/m68k/memchr.S (memchr): Likewise.
1331 * sysdeps/m68k/strchr.S (strchr): Likewise.
1332 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1333 * sysdeps/mips/mips64/memset.S (memset): Likewise.
1334 * sysdeps/mips/memcpy.S (memcpy): Likewise.
1335 * sysdeps/mips/memset.S (memset): Likewise.
1336 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1337 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1338 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1339 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1340 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1341 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1342 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1343 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1344 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1345 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1346 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1347 * sysdeps/powerpc/strcat.c (strcat): Likewise.
1348 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1349 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1350 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1351 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1352 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1353 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1354 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1355 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1356 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1357 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1358 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1359 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1360 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1361 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1362 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1363 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1364 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1365 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1366 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1367 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1368 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1369 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1370 * sysdeps/sh/memcpy.S (memcpy): Likewise.
1371 * sysdeps/sh/memset.S (memset): Likewise.
1372 * sysdeps/sh/strlen.S (strlen): Likewise.
1373 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1374 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1375 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1376 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1377 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1378 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1379 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1380 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1381 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1382 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1383 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1384 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1385 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1386 * sysdeps/x86_64/memset.S (memset): Likewise.
1387 * sysdeps/x86_64/strcat.S (strcat): Likewise.
1388 * sysdeps/x86_64/strchr.S (strchr): Likewise.
1389 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1390 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1391 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1392 * sysdeps/x86_64/strlen.S (strlen): Likewise.
1393 * sysdeps/x86_64/strspn.S (strspn): Likewise.
1394 * string/string-inlines.c: Move...
1395 * sysdeps/generic/string-inlines.c: ...here.
1396 (__memcpy_g, __strchr_g): Remove.
1397 (__NO_INLINE__): Define before including <string.h>,
1398 undefine after. Include bits/string.h and bits/string2.h.
1399 * sysdeps/i386/i486/string-inlines.c: New file.
1400 * sysdeps/i386/string-inlines.c: New file.
1401 * sysdeps/i386/i486/Versions: Remove.
1402 All GLIBC_2.1.1 symbols moved...
1403 * sysdeps/i386/Versions (libc): ...here.
1405 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1407 * sysdeps/i386/fpu/Makefile: New file.
1408 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1409 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1410 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1411 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1414 2003-04-28 Ulrich Drepper <drepper@redhat.com>
1416 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
1417 * nscd/nscd_getpw_r.c: Likewise.
1418 * nscd/nscd_gethst_r.c: Likewise.
1420 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1422 * nscd/pwdcache.c: Initialize .version element in result.
1423 * nscd/grpcache.c: Likewise.
1424 * nscd/pwdcache.c: Likewise.
1426 2003-04-27 Andreas Schwab <schwab@suse.de>
1428 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1431 2003-04-27 Andreas Schwab <schwab@suse.de>
1433 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1435 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1437 * nscd/connections.c (client_queued): New variable.
1438 (nscd_run): Revamp the loop. Don't call poll except for cleanup
1439 threads. Keep track of the number of delays caused because of busy
1441 * nscd/nscd.h: Declare client_queued.
1442 * nscd/nscd_stat.c: Transmit and print client_queued information.
1444 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1446 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
1447 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
1449 2003-04-26 Ulrich Drepper <drepper@redhat.com>
1451 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
1452 tracking of freed memory in static TLS block.
1453 * elf/Makefile: Add rules to build and run tst-tls13.
1454 * elf/tst-tls13.c: New file.
1455 * elf/tst-tlsmod13.c: New file.
1456 * elf/tst-tlsmod13a.c: New file.
1458 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
1460 * elf/dl-reloc.c: Pretty printing.
1462 2003-04-26 Roland McGrath <roland@redhat.com>
1464 * Makerules ($(common-objpfx)shlib.lds): New target.
1465 (common-generated): Add it.
1466 (build-shlib, build-module): Use that instead of generating every time.
1467 ($(common-objpfx)libc.so): Depend on it.
1468 (lib%.so rule): Likewise.
1469 (build-module-helper-objlist): Remove %.lds.
1470 (LDSEDCMD-c.so): Variable removed.
1471 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
1472 Depend on $(common-objpfx)shlib.lds.
1473 * dlfcn/Makefile ($(test-modules)): Likewise.
1475 2003-04-26 Roland McGrath <roland@frob.com>
1477 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
1479 2003-04-26 Andreas Schwab <schwab@suse.de>
1481 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
1483 2003-04-25 Ulrich Drepper <drepper@redhat.com>
1485 * nscd/cache.c (cache_search): Keep track of how many chain links
1486 we searched and update table statistics.
1487 (cache_add): Keep track of how many values are in the table.
1488 (prune_cache): Likewise. Keep track of locking success.
1489 Print messages about removed entries in separate pass.
1490 * nscd/connections.c (handle_request): Don't print debug message here.
1491 The caller will do it. Keep track of locking success.
1492 (nscd_run): Print debug message. Also print PID of the client process.
1493 * nscd/nscd.c (start_time): New variable.
1494 (main): Remember start time.
1495 * nscd/nscd.h: Declare start_time.
1496 (struct database): Add more members for new statistics.
1497 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
1500 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
1502 2003-04-22 Jakub Jelinek <jakub@redhat.com>
1504 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
1505 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
1506 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
1508 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
1509 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
1510 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
1511 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
1514 2003-04-24 Ulrich Drepper <drepper@redhat.com>
1516 * nss/getent.c: Implement alternative host database lookup via
1519 * include/ifaddrs.h: New file.
1520 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
1522 * resolv/netdb.h: ...here.
1523 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
1524 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1525 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
1528 2003-04-24 Roland McGrath <roland@redhat.com>
1530 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
1532 2003-04-24 Jakub Jelinek <jakub@redhat.com>
1534 * elf/dl-reloc.c (allocate_static_tls): Rename to...
1535 (_dl_allocate_static_tls): ... this function. No longer static.
1536 (CHECK_STATIC_TLS): Adjust.
1537 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
1538 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
1539 Add SYM_MAP argument.
1540 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
1541 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
1542 TLS relocs here. #ifdef out relocs which never appear in
1543 .gnu.conflict section from dl-conflict.c processing.
1544 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1545 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
1547 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
1548 out relocs which never appear in .gnu.conflict section from
1549 dl-conflict.c processing.
1550 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1551 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1552 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1553 Use r_type in RESOLVE macro.
1555 2003-04-23 Ulrich Drepper <drepper@redhat.com>
1557 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
1558 NULL. Remove code made redundant by this assumption.
1559 (__yp_unbind): Add call to free. Adjust all callers.
1561 * nis/ypclnt.c (yp_all): Free the dom_binding object after
1564 * grp/initgroups.c (getgrouplist): Don't copy too much into the
1565 user buffer if more groups are found than fit into it.
1567 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
1570 2003-04-23 Jakub Jelinek <jakub@redhat.com>
1572 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
1573 not rc == errno. Use extend_alloca.
1575 * elf/tst-tls12.c (main): Fix declaration.
1576 * elf/tst-tls10.c (dummy): Make hidden instead of static.
1577 * elf/tst-tlsmod7.c (dummy): Likewise.
1578 * elf/tst-tlsmod8.c (dummy): Likewise.
1579 * elf/tst-tlsmod9.c (dummy): Likewise.
1581 2003-04-22 Roland McGrath <roland@redhat.com>
1583 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
1584 (open_not_cancel): Make last argument non-optional.
1585 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
1586 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1587 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1589 * include/tls.h: Protect against multiple inclusion.
1591 2003-04-22 Ulrich Drepper <drepper@redhat.com>
1593 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
1594 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
1595 open_socket. Not static anymore.
1596 (nscd_gethst_r): Use __nscd_open_socket.
1597 * nscd/nscd_getgr_r.c (open_socket): Removed.
1598 (nscd_getgr_r): Use __nscd_open_socket.
1599 * nscd/nscd_getpw_r.c (open_socket): Removed.
1600 (nscd_getpw_r): Use __nscd_open_socket.
1602 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
1603 * nscd/connections.c (handle_request): Add cast to avoid warning.
1605 2003-04-21 Ulrich Drepper <drepper@redhat.com>
1607 * signal/sigfillset.c: Moved to...
1608 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
1609 do not set the corresponding bit.
1611 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
1613 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
1614 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
1615 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
1616 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
1617 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
1619 2003-04-20 Ulrich Drepper <drepper@redhat.com>
1621 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
1622 first syscall parameter to const char*.
1624 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1626 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
1628 * configure.in: Add AC_PROG_CXX.
1629 * config.make.in (CXX): Define.
1631 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
1632 __len to size_t to avoid warnings.
1634 2003-04-18 Jes Sorensen <jes@wildopensource.com>
1636 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
1638 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1640 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1642 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
1643 UNREGISTER_ATFORK if d == NULL.
1645 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
1646 * dirent/dirent.h: Likewise.
1647 * dlfcn/dlfcn.h: Likewise.
1648 * grp/grp.h: Likewise.
1649 * iconv/iconv.h: Likewise.
1650 * io/fcntl.h: Likewise.
1651 * io/ftw.h: Likewise.
1652 * libio/stdio.h: Likewise.
1653 * misc/sys/mman.h: Likewise.
1654 * misc/sys/select.h: Likewise.
1655 * misc/sys/syslog.h: Likewise.
1656 * misc/sys/uio.h: Likewise.
1657 * posix/spawn.h: Likewise.
1658 * posix/unistd.h: Likewise.
1659 * posix/sys/wait.h: Likewise.
1660 * pwd/pwd.h: Likewise.
1661 * resolv/netdb.h: Likewise.
1662 * rt/aio.h: Likewise.
1663 * shadow/shadow.h: Likewise.
1664 * signal/signal.h: Likewise.
1665 * socket/sys/socket.h: Likewise.
1666 * stdlib/stdlib.h: Likewise.
1667 * streams/stropts.h: Likewise.
1668 * string/string.h: Likewise.
1669 * sysdeps/gnu/utmpx.h: Likewise.
1670 * sysvipc/sys/msg.h: Likewise.
1671 * termios/termios.h: Likewise.
1672 * time/time.h: Likewise.
1673 * wcsmbs/wchar.h: Likewise.
1674 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
1676 * misc/daemon.c: Likewise.
1677 * sysdeps/generic/backtracesymsfd.c: Likewise.
1678 * sysdeps/generic/check_fds.c: Likewise.
1679 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1680 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
1681 * sysdeps/generic/not-cancel.h: New file.
1682 * csu/Makefile (distribute): Add not-cancel.h.
1683 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
1684 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
1685 for assert.c and assert-perr.c to include <fatal-prepare.h>.
1686 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
1688 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
1689 errno and unlink first.
1691 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
1693 2003-04-18 Ulrich Drepper <drepper@redhat.com>
1695 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
1696 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
1698 2003-04-17 Ulrich Drepper <drepper@redhat.com>
1700 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
1702 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
1703 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
1706 * signal/Makefile (tests): Add tst-sigsimple.
1707 * signal/tst-sigsimple.c: New file.
1709 2003-04-16 Jakub Jelinek <jakub@redhat.com>
1711 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
1713 (tests): Add tst-tls1[0-2].
1714 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
1715 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
1716 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
1717 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
1718 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
1719 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
1720 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
1721 * elf/tst-tls10.c: New test.
1722 * elf/tst-tls11.c: New test.
1723 * elf/tst-tls12.c: New test.
1724 * elf/tst-tls10.h: New file.
1725 * elf/tst-tlsmod7.c: New file.
1726 * elf/tst-tlsmod8.c: New file.
1727 * elf/tst-tlsmod9.c: New file.
1728 * elf/tst-tlsmod10.c: New file.
1729 * elf/tst-tlsmod11.c: New file.
1730 * elf/tst-tlsmod12.c: New file.
1732 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1734 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
1735 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
1736 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
1738 2003-04-17 Ulrich Drepper <drepper@redhat.com>
1740 * posix/regex.h: Include <sys/types.h>.
1742 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
1743 The signal number must be checked.
1744 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
1745 The signal number must be checked [PR libc/5004].
1747 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
1748 don't do anything fancy.
1750 * sysdeps/generic/bits/libc-lock.h: Define
1751 __rtld_lock_define_initialized_recursive.
1753 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
1754 contacting nscd if NOT_USENSCD_NAME > 0.
1755 * nss/nsswitch.c (__nss_disable_nscd): New function.
1756 * nss/nsswitch.h: Declare it.
1757 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
1758 * nscd/nscd.c (main): Call __nss_disable_nscd.
1760 2003-04-16 Ulrich Drepper <drepper@redhat.com>
1762 * stdio-common/perror.c (perror): We don't need to set the offset
1763 to _IO_pos_bad, this is how streams are initialized.
1765 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
1766 (time_output): If necessary, allocate new buffer for .name string if
1767 padding is required.
1769 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
1770 before copying. This might leave holes in the list. Adjust
1771 pointers if necessary.
1772 (netlink_receive): Allocate only one block.
1773 (free_netlink_handle): Adjust appropriately.
1774 (getifaddrs): Lots of cleanups.
1776 * string/test-strncpy.c (do_one_test): Mark start and stop as
1778 * string/test-memchr.c: Likewise.
1779 * string/test-memcmp.c: Likewise.
1780 * string/test-memcpy.c: Likewise.
1781 * string/test-memmove.c: Likewise.
1782 * string/test-memset.c: Likewise.
1783 * string/test-strcat.c: Likewise.
1784 * string/test-strchr.c: Likewise.
1785 * string/test-strcmp.c: Likewise.
1786 * string/test-strcpy.c: Likewise.
1787 * string/test-strlen.c: Likewise.
1788 * string/test-strncmp.c: Likewise.
1789 * string/test-strpbrk.c: Likewise.
1790 * string/test-strrchr.c: Likewise.
1791 * string/test-strspn.c: Likewise.
1793 2003-04-15 Roland McGrath <roland@redhat.com>
1795 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
1797 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
1798 INTUSE(__register_frame_info_bases).
1800 2003-04-15 Ulrich Drepper <drepper@redhat.com>
1802 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
1803 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
1804 AT_SYSINFO_EH_FRAME. Adjust string width.
1805 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
1806 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
1807 Add _dl_sysinfo_eh_frame field.
1808 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
1809 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
1811 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
1812 if _dl_sysinfo_eh_frame is non-NULL.
1814 * Makeconfig (gnulib): Add -lgcc_eh.
1816 * config.h.in: Define HAVE_FORCED_UNWIND.
1818 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1820 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
1821 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
1823 2003-04-15 Jakub Jelinek <jakub@redhat.com>
1825 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
1826 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
1827 against local symbol in conflict processing.
1829 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1831 * sysdeps/powerpc/bits/atomic.h
1832 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
1833 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
1835 (__arch_compare_and_exchange_val_32_acq): Define.
1836 (atomic_compare_and_exchange_val_acq): Define.
1838 2003-04-15 Ulrich Drepper <drepper@redhat.com>
1840 * include/atomic.h: Pretty printing.
1842 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1844 * stdio-common/vfscanf.c: Add casts to avoid warnings.
1846 2003-04-14 Jakub Jelinek <jakub@redhat.com>
1848 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
1849 * sysdeps/x86_64/bits/atomic.h: Likewise.
1851 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1853 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
1854 POPARGS_1 to emit labels for the mov instructions.
1856 2003-04-14 Jakub Jelinek <jakub@redhat.com>
1858 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
1860 2003-04-14 Roland McGrath <roland@redhat.com>
1862 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
1865 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
1867 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1869 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
1870 position. Reported by jreiser@BitWagon.com.
1872 2003-04-13 Ulrich Drepper <drepper@redhat.com>
1874 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
1875 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1876 * sysdeps/generic/unwind-dw2.c: Likewise.
1877 * sysdeps/generic/unwind-pe.h: Likewise.
1879 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
1881 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
1882 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
1883 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
1884 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
1885 (mcontext_t): Make it match the 32-bit mips kernel in o32.
1886 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
1887 the mips and mips64 headers.
1888 (struct user): Port to n32/n64.
1890 2003-04-12 Ulrich Drepper <drepper@redhat.com>
1892 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
1895 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
1896 __ASSUME_VSYSCALL is defined don't add restorer.
1897 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1898 __ASSUME_VSYSCALL for 2.5.53.
1900 2003-04-11 Ulrich Drepper <drepper@redhat.com>
1902 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
1903 Remove HAVE_CANCELBUF code. Replace with code using the new
1904 initializers for unwind-based cleanup handling.
1905 * sysdeps/generic/unwind.h: Update from latest gcc version.
1906 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
1907 places to allow unwind data generation.
1908 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
1909 * sysdeps/x86_64/bits/setjmp.h: Likewise.
1910 * sysdeps/sh/bits/setjmp.h: Likewise.
1911 * sysdeps/powerpc/bits/setjmp.h: Likewise.
1912 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
1913 * sysdeps/alpha/bits/setjmp.h: Likewise.
1915 2003-04-11 Roland McGrath <roland@redhat.com>
1917 * csu/tst-empty.c: New file.
1918 * csu/Makefile (tests, tests-static): Add it.
1920 2003-04-11 Jakub Jelinek <jakub@redhat.com>
1922 * string/test-strcmp.c (do_random_tests): Test whether return value
1923 has been promoted to wordsize if the ABI requires caller to do so.
1924 * string/test-strncmp.c (do_random_tests): Likewise.
1925 * string/test-memcmp.c (do_random_tests): Likewise.
1927 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
1930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1931 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
1932 is not defined, but the prctl constants are.
1934 * string/tester.c (test_strcmp): Fix a typo.
1936 2003-04-09 Ulrich Drepper <drepper@redhat.com>
1938 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
1939 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1941 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
1943 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
1945 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
1947 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
1949 * sysdeps/mips/mips64/memset.S: Likewise.
1950 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
1951 Use t0 instead of t4 as temporary.
1953 2003-04-07 Ulrich Drepper <drepper@redhat.com>
1955 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
1956 feof_unlocked instead of feof.
1957 (add_dir): Ignore trailing whitespace.
1959 2003-04-07 Jakub Jelinek <jakub@redhat.com>
1961 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
1962 sum of SIZE1 and SIZE2 arguments.
1964 2003-04-06 Ulrich Drepper <drepper@redhat.com>
1966 * iconv/iconv_prog.c (process_block): Don't print message about
1967 invalid input if the -c option is used.
1968 (main): Correctly append IGNORE string for -c option.
1970 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1972 * sysdeps/sh/bits/atomic.h: Moved to ...
1973 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
1974 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
1976 (atomic_bit_set, atomic_bit_test_set): Likewise.
1977 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
1979 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1981 2003-04-06 Roland McGrath <roland@redhat.com>
1983 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
1984 restoration as done for setcontext yesterday.
1986 2003-04-06 Jakub Jelinek <jakub@redhat.com>
1988 * elf/rtld.c: Revert 2003-03-14 change.
1989 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
1990 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
1992 2003-04-05 Ulrich Drepper <drepper@redhat.com>
1994 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
1996 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1997 Always initialize *signgamp before returning an error.
1999 2003-04-05 Roland McGrath <roland@redhat.com>
2001 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
2002 below the stack pointer even if switching to the same context we are
2005 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2007 * catgets/gencat.c (read_input_file): Make sure that \n is not
2008 alone on the line before testing for continuation.
2010 * math/test-tgmath.c (compile_test): Initialize c.
2012 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
2014 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
2015 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
2016 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
2018 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
2019 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
2020 structure on n32 as well.
2021 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
2022 data types on n32 and n64.
2024 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2026 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
2029 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
2030 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
2031 instead of __register_atfork.
2033 2003-04-05 Jakub Jelinek <jakub@redhat.com>
2035 * stdio-common/reg-printf.c (__register_printf_function): Calloc
2036 instead of malloc __printf_arginfo_table and __printf_function_table.
2037 Reported by John Reiser <jreiser@BitWagon.com>.
2039 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
2041 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
2042 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
2044 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
2047 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
2049 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
2052 2003-04-03 Roland McGrath <roland@redhat.com>
2054 * configure.in: Fix up use of compilation flags to match the build:
2055 For .s files, $ASFLAGS;
2056 For .S files, $CPPFLAGS $ASFLAGS;
2057 For .c files, $CFLAGS $CPPFLAGS;
2058 when linking, add $LDFLAGS.
2059 * configure: Regenerated.
2061 2003-04-03 Jakub Jelinek <jakub@redhat.com>
2063 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
2064 for atomic_compare_and_exchange_bool_acq failure.
2066 2003-04-03 Ulrich Drepper <drepper@redhat.com>
2068 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
2069 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
2070 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
2071 Remove declaration of pthread_atfork.
2073 2003-04-02 Ulrich Drepper <drepper@redhat.com>
2075 * locale/iso-639.def: Add many more languages from the current ISO 639.
2077 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
2078 * sysdeps/generic/semtimedop.c: New file.
2079 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
2080 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
2081 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2082 * sysvipc/Makefile (routines): Add semtimedop.
2083 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
2084 * sysvipc/sys/sem.h: Declare semtimedop.
2086 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
2088 * configure.in: Check for __register_frame_info in both
2090 * configure: Regenerated.
2092 2003-04-01 Roland McGrath <roland@redhat.com>
2094 * scripts/abilist.awk: Allow dots in soname suffix.
2096 * scripts/abilist.awk (emit): Fix bailout condition.
2098 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2100 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
2103 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
2104 register as input to asm.
2106 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2108 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
2110 2003-04-01 Andreas Jaeger <aj@suse.de>
2112 * configure.in: Output as/ld as name if version is too old.
2114 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
2116 * configure.in: Don't require an installed C library in the test
2117 for ".set" assembler support.
2119 2003-03-31 Roland McGrath <roland@redhat.com>
2121 * signal/tst-sigset.c: New file.
2122 * signal/Makefile (tests): Add it.
2124 2003-03-31 Ulrich Drepper <drepper@redhat.com>
2126 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
2127 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
2128 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
2129 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
2130 (__SIGRTMAX): Adjust accordingly.
2131 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
2132 second compatibility symbol set.
2133 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
2135 2003-03-31 Andreas Schwab <schwab@suse.de>
2137 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
2139 (atomic_decrement_and_test): Fix test.
2141 2003-03-31 Jakub Jelinek <jakub@redhat.com>
2143 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
2144 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
2145 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
2146 * sysdeps/sparc/sparc32/atomicity.h: Removed.
2147 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
2148 * sysdeps/sparc/sparc64/atomicity.h: Removed.
2150 2003-03-30 Roland McGrath <roland@redhat.com>
2152 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
2154 * intl/po2test.sed: Anchor substitution regexps to fix last change.
2156 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
2158 * intl/po2test.sed: Unify the transformations for msgid and msgstr
2159 and remove a useless s/// command.
2161 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2163 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
2164 directive into empty .prologue region to ensure that call-chain
2165 is terminated even for the first instruction.
2167 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
2168 to terminate call-chain right from the get-go.
2170 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
2171 stop bit between compare & branch.
2173 2003-03-29 Ulrich Drepper <drepper@redhat.com>
2175 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
2176 point correctly [PR libc/4993].
2178 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
2179 netlink_open calls if netlink is known to not be available.
2181 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
2183 * configure.in: Add mips64* support.
2184 * sysdeps/mips/bits/endian.h: Make it bi-endian.
2185 * sysdeps/mips/mipsel/bits/endian.h: Removed.
2186 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
2187 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
2188 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
2189 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
2190 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
2191 * sysdeps/mips/Implies: Moved wordsize-32 to...
2192 * sysdeps/mips/mips32/Implies: New file.
2193 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
2195 (ret, PSEUDO_END): Moved past END.
2196 (PSEUDO): Moved to...
2197 * sysdeps/unix/mips/mips32/sysdep.h: New file.
2198 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
2199 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
2200 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
2201 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
2202 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
2204 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
2207 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
2209 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2210 * inet/test-ifaddrs.c: Allow AF_PACKET.
2211 * sysdeps/unix/sysv/linux/kernel-features.h: Add
2212 __ASSUME_NETLINK_SUPPORT.
2214 2003-03-28 Ulrich Drepper <drepper@redhat.com>
2216 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2218 2003-03-26 H.J. Lu <hjl@gnu.org>
2220 * elf/vismod.h (getvarlocal1): Return const char **.
2221 (getvarinmod1): Likewise.
2222 (getvaritcpt1): Likewise.
2223 (getvarlocal2): Likewise.
2224 (getvarinmod2): Likewise.
2225 (getvaritcpt2): Likewise.
2226 (getvaritcpt3): Likewise.
2227 * elf/vismain.c (do_test): Adjusted.
2228 * elf/vismod1.c (getvarlocal1): Return address.
2229 (getvarinmod1): Likewise.
2230 (getvaritcpt1): Likewise.
2231 * elf/vismod2.c (getvarlocal2): Likewise.
2232 (getvarinmod2): Likewise.
2233 (getvaritcpt2): Likewise.
2234 * elf/vismod3.c (getvaritcpt3): Likewise.
2236 2003-03-28 Roland McGrath <roland@redhat.com>
2238 * elf/vismain.c (do_test): Print both addresses when they don't match.
2240 * scripts/abilist.awk: If given -v filename_regexp and/or -v
2241 libname_regexp when parsing names, then produce output only
2242 for those matching the given regexps. In combine mode, save all
2243 stanzas for a final sorting by stanza header at the end.
2244 Emit a blank line between stanzas.
2246 * scripts/abilist.awk: When given -v combine=1, do parse_names and
2247 emit a single output stream with lib name in stanza header lines.
2249 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2251 2003-03-27 Roland McGrath <roland@redhat.com>
2253 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2254 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2256 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2258 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2259 Return old value. Make asm output reg constraint earlyclobber.
2261 (__arch_compare_and_exchange_8_acq): ... this.
2262 (__arch_compare_and_exchange_val_16_acq):
2263 Return old value. Make asm output reg constraint earlyclobber.
2265 (__arch_compare_and_exchange_16_acq): ... this.
2266 (__arch_compare_and_exchange_val_32_acq):
2267 Return old value. Make asm output reg constraint earlyclobber.
2269 (__arch_compare_and_exchange_32_acq): ... this.
2270 (__arch_compare_and_exchange_val_64_acq):
2272 (__arch_compare_and_exchange_64_acq): ... this.
2273 (atomic_exchange_and_add): Use local variables and
2274 __arch_compare_and_exchange_val_64_acq.
2275 (atomic_add): Likewise.
2276 (atomic_add_negative, atomic_add_zero): Use local variables.
2278 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
2280 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2282 2003-03-27 Ulrich Drepper <drepper@redhat.com>
2284 * Makefile: Remove libmd5crypt goal.
2286 2003-03-25 Jakub Jelinek <jakub@redhat.com>
2288 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2289 special handling of relocations against local symbols.
2291 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
2293 * sysdeps/powerpc/bits/atomic.h
2294 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2295 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2296 Define PPC64 specific version.
2297 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2298 Change (mem) constraint to "b".
2299 [__powerpc64__] (__arch_atomic_exchange_and add_64):
2300 Replace addi with add. Change (value) contraint to "r".
2301 Change (mem) constraint to "b".
2302 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2303 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2304 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2305 (__arch_atomic_decrement_if_positive_32): New macro.
2306 (atomic_decrement_if_positive): Use __arch* macros.
2308 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2310 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2312 2003-03-27 Roland McGrath <roland@redhat.com>
2314 * scripts/rpm2dynsym.sh: New file.
2315 * Makefile (distribute): Add it.
2317 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2319 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2320 ar.unat before returning. Add missing .mem.offset directives
2321 to ensure file gets assembled without warnings.
2322 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2324 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2326 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2327 Return -1 instead of 0 if clock_getres failed.
2329 2003-03-27 Roland McGrath <roland@redhat.com>
2331 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2332 header lines and write out foo.symlist files for each foo.so.NN listed.
2334 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2335 This symbol is exported, and we don't want to hide it.
2336 Add libc_hidden_proto instead.
2337 (_IO_file_jumps): Add libc_hidden_proto.
2338 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2340 * libio/fileops.c (_IO_file_jumps): Likewise.
2341 * libio/stdfiles.c: Don't use INTUSE on them.
2342 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2343 * libio/iofopen.c (__fopen_internal): Likewise.
2344 * libio/freopen.c (freopen): Likewise.
2345 * libio/freopen64.c (freopen64): Likewise.
2346 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2348 * Makerules (check-abi) [$(enable-check-abi) = warn]:
2349 Ignore exit status from diff.
2350 * configure.in (enable_check_abi): Document possible value "warn".
2351 Change default to no for now.
2352 * configure: Regenerated.
2354 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2355 macro calls and a #include <stub-tag.h> at the end.
2356 * Makerules ($(objpfx)stubs): Tweak sed commands.
2358 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2359 caller column for *xattr syscalls, since they are in sysdeps/generic.
2361 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2362 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2364 2003-03-26 Roland McGrath <roland@redhat.com>
2366 * Makerules (check-abi-config): Use /thread instead of /tls when
2367 use-thread and not just use-tls is set.
2369 * Makerules (update-abi): Put quotes around $(update-abi-config).
2371 * elf/Makefile (check-abi): Depend on check-abi-ld.
2372 (update-abi): Depend on update-abi-ld.
2374 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2376 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2377 do not check for errors (unless testing for 32bit variant).
2378 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2380 2003-03-27 Philip Blundell <philb@gnu.org>
2382 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2383 unconditional mov. Remove nop.
2385 * sysdeps/unix/sysv/linux/kernel-features.h
2386 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2387 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2388 when __ASSUME_VFORK_SYSCALL is defined.
2389 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2390 __ASSUME_MMAP2_SYSCALL.
2391 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2392 __ASSUME_REALTIME_SIGNALS.
2394 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2396 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2397 only if DL_NO_COPY_RELOCS is not defined.
2398 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2400 2003-03-26 Roland McGrath <roland@redhat.com>
2402 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2403 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2404 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2405 (sysdep_routines): Add stub-syscalls.
2406 ($(objpfx)stub-syscalls.c): New target.
2407 (generated): Add stub-syscalls.c.
2409 * tls.make.c: Also define use-tls according to USE_TLS macro.
2411 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2413 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2414 no-op padding element.
2415 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2416 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2417 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2418 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2420 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2422 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2423 condition check for the return value of getgroups32.
2425 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2427 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2429 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2430 PSEUDO_END_NOERRNO): Define.
2431 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2432 Define to PSEUDO_END.
2434 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2436 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2438 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
2440 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2441 * iconvdata/bug-iconv4.c: New file.
2442 * iconvdata/Makefile (tests): Add bug-iconv4.
2444 2003-03-25 H.J. Lu <hjl@gnu.org>
2446 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
2448 (_dl_lookup_versioned_symbol): Likewise.
2450 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2452 * csu/tst-atomic.c (do_test): Add some new
2453 atomic_compare_and_exchange_val_acq, atomic_add_zero,
2454 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
2455 * include/atomic.h (atomic_add_negative, atomic_add_zero):
2456 Prefix local variable so that it doesn't clash with the one
2457 in atomic_exchange_and_add.
2458 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
2460 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
2461 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
2462 value into register.
2463 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
2464 Cast newval to long.
2465 * sysdeps/x86_64/bits/atomic.h
2466 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
2468 (atomic_exchange): Cast newvalue to long if sizeof == 8.
2469 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
2470 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2471 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
2473 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
2475 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
2476 bit from backtrace addresses.
2478 2003-03-21 Andreas Schwab <schwab@suse.de>
2480 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
2483 2003-03-25 Roland McGrath <roland@redhat.com>
2485 * config.make.in (enable-check-abi): New variable from configure.
2486 * configure.in (enable_check_abi): New substituted variable,
2487 controlled by --{enable,disable}-check-abi (default yes).
2488 * configure: Regenerated.
2489 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
2490 on check-abi dependency.
2492 2003-03-26 Andreas Schwab <schwab@suse.de>
2494 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
2495 * include/atomic.h: Likewise.
2497 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
2499 2003-03-25 Roland McGrath <roland@redhat.com>
2501 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
2502 (__arch_atomic_exchange_64): New macro.
2503 (atomic_exchange): Use them.
2504 (__arch_atomic_exchange_and_add_32): New macro.
2505 (__arch_atomic_exchange_and_add_64): New macro.
2506 (atomic_exchange_and_add): Use them.
2507 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
2509 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
2511 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
2513 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
2515 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
2516 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
2517 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2518 to decide whether to add padding.
2519 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2520 to decide whether to add padding.
2521 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
2522 old_kernel_sigaction): Likewise.
2524 2003-03-25 Ulrich Drepper <drepper@redhat.com>
2526 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
2527 atomic_add_zero were supposed to do.
2528 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
2531 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
2532 This matches the new timer implementation.
2533 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
2535 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
2537 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
2538 timer info for what the kernel provides these days.
2539 (struct sigevent): Add _tid field.
2540 Define SIGEV_THREAD_ID.
2541 Remove struct __pthread_attr_s forward declaration.
2542 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2543 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2544 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2545 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2547 * Versions.def (librt): Add GLIBC_2.3.3.
2549 * abilist/libpthread.abilist: Update for nptl.
2551 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
2553 * inet/netinet/in.h: Add IPPROTO_SCTP.
2555 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2557 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
2559 2003-03-24 Philip Blundell <philb@gnu.org>
2561 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
2562 Remove a1 from clobber list.
2564 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2566 * timezone/antarctica: Update from tzdata2003a.
2567 * timezone/asia: Likewise.
2568 * timezone/australasia: Likewise.
2569 * timezone/europe: Likewise.
2570 * timezone/iso3166.tab: Likewise.
2571 * timezone/northamerica: Likewise.
2572 * timezone/southamerica: Likewise.
2573 * timezone/zone.tab: Likewise.
2575 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
2577 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
2579 2003-03-23 Ulrich Drepper <drepper@redhat.com>
2581 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
2582 unwanted expansion by definining to ret. Patch by Ian Wienand.
2584 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
2585 the parameter description to denote no error checking. Generate
2586 appropriate pseudo asm code.
2587 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
2588 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
2589 getpgrp, and getppid with 'E'.
2590 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
2591 PSEUDO_END_NOERRNO, and ret_NOERRNO.
2592 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2593 * sysdeps/unix/sysdep.h: Likewise.
2594 * sysdeps/unix/alpha/sysdep.h: Likewise.
2595 * sysdeps/unix/sparc/sysdep.h: Likewise.
2596 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2597 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
2598 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
2599 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2600 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2601 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2602 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2603 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2604 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2605 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2606 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2608 2003-03-23 Roland McGrath <roland@redhat.com>
2610 * Makeconfig (+includes): Don't use $(last-includes).
2612 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2614 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
2615 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2617 2003-03-23 Jakub Jelinek <jakub@redhat.com>
2619 * sysdeps/alpha/fpu/libm-test-ulps: Update.
2620 * sysdeps/arm/libm-test-ulps: Update.
2621 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2622 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2623 * sysdeps/mips/fpu/libm-test-ulps: Update.
2624 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2625 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2626 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2627 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2628 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
2629 * sysdeps/s390/fpu/libm-test-ulps: Update.
2630 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2632 2003-03-22 Roland McGrath <roland@redhat.com>
2634 * include/atomic.h: Put parens around all macro arguments.
2635 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
2636 (atomic_compare_and_exchange_val_acq): Use it.
2637 (atomic_compare_and_exchange_bool_acq): Likewise.
2638 (atomic_increment_and_test): Invert sense of test.
2639 (atomic_decrement_and_test): Likewise.
2640 * csu/tst-atomic.c: Update those tests to match.
2642 2003-03-22 Jakub Jelinek <jakub@redhat.com>
2644 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
2645 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
2646 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
2647 __oldval variable in the macro, since it might be macro argument.
2648 (atomic_decrement_if_positive): Initialize __memp, remove setting
2649 of non-existent variable.
2650 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
2651 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
2652 using atomic_compare_and_exchange_val_acq.
2653 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
2654 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2656 (__arch_compare_and_exchange_bool_8_acq): ... this.
2657 (__arch_compare_and_exchange_val_16_acq): Renamed from...
2658 (__arch_compare_and_exchange_bool_16_acq): ... this.
2659 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
2661 (__arch_compare_and_exchange_bool_32_acq): ... this.
2662 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
2664 (__arch_compare_and_exchange_bool_64_acq): ... this.
2665 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
2666 variables types instead of assuming int.
2667 Change prefix of local variables to __arch.
2668 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
2670 (atomic_compare_and_exchange_val_acq,
2671 atomic_compare_and_exchange_bool_acq): Define.
2673 * csu/tst-atomic.c: New test.
2674 * csu/tst-atomic-long.c: New test.
2675 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
2677 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
2679 * sysdeps/s390/Versions: Add trailing newline.
2681 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
2682 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2684 2003-03-22 Andreas Schwab <schwab@suse.de>
2686 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2688 * sysdeps/m68k/m68020/bits/atomic.h: New file.
2689 * sysdeps/m68k/m68020/atomicity.h: Removed.
2691 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2693 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
2694 data structures and macros. Protect from multiple inclusion.
2696 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
2699 2003-03-21 Andreas Jaeger <aj@suse.de>
2701 * sysdeps/i386/fpu/libm-test-ulps: Update.
2703 * math/libm-test.inc (tgamma_test): Recompute some constants with
2704 36 digits precision.
2705 (lgamma_test): Likewise.
2706 (ccos_test): Likewise.
2707 (ccosh_test): Likewise.
2708 (clog10_test): Likewise.
2709 (csin_test): Likewise.
2710 (csinh_test): Likewise.
2711 (ctan_test): Likewise.
2712 (ctanh_test): Likewise.
2714 2003-03-19 Jakub Jelinek <jakub@redhat.com>
2716 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2718 2003-03-21 Roland McGrath <roland@redhat.com>
2720 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
2721 constraint to permit non-constant BIT argument.
2722 (atomic_bit_test_set): Likewise.
2723 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
2724 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
2725 For quadword case, use "i" constraint if __builtin_constant_p and < 32
2726 or "r" constraint otherwise.
2728 * configure.in: Move AC_PROG_CC and other program-finding before all
2730 * configure: Regenerated.
2732 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
2734 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
2735 unaligned copying of 8-15 bytes. From Chris Demetriou
2736 <cgd@broadcom.com>. Fix label names.
2737 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
2738 change as to memcpy.S.
2739 * sysdeps/mips/memcpy.S: Formatting changes.
2740 * sysdeps/mips/memset.S: Likewise.
2742 2003-03-21 Roland McGrath <roland@redhat.com>
2744 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
2746 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
2748 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
2749 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2751 2003-03-21 Roland McGrath <roland@redhat.com>
2753 * sysdeps/i386/i486/bits/atomic.h
2754 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
2755 version of the macro to avoid compile-time warnings.
2756 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
2757 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
2758 (atomic_increment, atomic_decrement): Likewise.
2760 2003-03-21 Ulrich Drepper <drepper@redhat.com>
2762 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
2763 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2765 2003-03-21 Roland McGrath <roland@redhat.com>
2767 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2769 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2771 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
2772 atomic_compare_and_exchange_val_rel,
2773 atomic_compare_and_exchange_bool_acq, and
2774 atomic_compare_and_exchange_bool_rel instead of
2775 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2776 * sysdeps/i386/i486/bits/atomic.h: Define
2777 __arch_compare_and_exchange_val_*_acq instead of
2778 __arch_compare_and_exchange_*_acq.
2779 * sysdeps/x86_64/bits/atomic.h: Likewise.
2780 * sysdeps/ia64/bits/atomic.h: Define
2781 __arch_compare_and_exchange_bool_*_acq instead of
2782 __arch_compare_and_exchange_*_acq.
2783 * sysdeps/powerpc/bits/atomic.h: Likewise.
2784 * sysdeps/s390/bits/atomic.h: Likewise.
2785 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
2786 * malloc/set-freeres.c: Likewise.
2787 * nscd/cache.c: Likewise.
2788 * stdlib/cxa_finalize.c: Likewise.
2789 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2791 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2793 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
2794 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
2795 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2797 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
2798 into high and low halves on n64.
2799 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2800 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2801 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2803 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2805 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
2806 correct atomic_compare_and_exchange_acq semantics.
2808 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2810 * sysdeps/mips/ieee754.h: Remove excess #endif.
2812 2003-03-20 Roland McGrath <roland@redhat.com>
2814 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
2815 variable. Remove superfluous memory clobber.
2817 * include/atomic.h: Syntax braino fix.
2819 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
2820 in decimal. Don't bail if niced at start. Just check that nice call
2821 bumps the total at all.
2823 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2825 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
2826 including pc, gp, sp and fp, as long long.
2827 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
2828 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
2829 Add gp argument, and set gp in the jmpbuf to it.
2830 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2832 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2834 * include/atomic.h: Define atomic_exchange and
2835 atomic_decrement_if_positive if not already defined. Add some
2837 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
2838 * sysdeps/x86_64/bits/atomic.h: Likewise.
2839 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
2840 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
2841 atomic_exchange, atomic_exchange_and_add, and
2842 atomic_decrement_if_positive
2844 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2846 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
2847 with a single instruction.
2849 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
2851 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
2853 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
2854 Word before comparing with gotsym. Take reloc_addr argument as
2855 void*. Remove the code added for the compiler to drop any
2856 alignment assumptions.
2858 2003-03-19 Ulrich Drepper <drepper@redhat.com>
2860 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
2861 * include/atomic.h: New file.
2862 * sysdeps/i386/i486/bits/atomic.h: New file.
2863 * sysdeps/x86_64/bits/atomic.h: New file.
2864 * sysdeps/s390/bits/atomic.h: New file.
2865 * sysdeps/sh/bits/atomic.h: New file.
2866 * sysdeps/ia64/bits/atomic.h: New file.
2867 * sysdeps/powerpc/bits/atomic.h: New file.
2868 * sysdeps/generic/bits/atomic.h: New file.
2869 * sysdeps/i386/i486/atomicity.h: Removed.
2870 * sysdeps/x86_64/atomicity.h: Removed.
2871 * sysdeps/s390/s390-32/atomicity.h: Removed.
2872 * sysdeps/s390/s390-64/atomicity.h: Removed.
2873 * sysdeps/ia64/atomicity.h: Removed.
2874 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
2875 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
2876 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
2877 use of macros from atomicity.h to new names and semantics.
2878 * gmon_mcount.c: Likewise.
2879 * malloc/set-freeres.c: Likewise.
2880 * nscd/cache.c: Likewise.
2881 * stdlib/cxa_finalize.c: Likewise.
2882 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2884 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
2886 * sysdeps/mips/ieee754.h: New file, suitable to replace both
2887 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
2888 mips-specific for now.
2890 2003-03-19 Ulrich Drepper <drepper@redhat.com>
2892 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2893 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
2894 * stdlib/tst-strtod.c: Add test for the bug.
2896 * posix/tst-nice.c (do_test): Remove invalid of return value.
2897 Don't run test if initial level != 0.
2899 2003-03-19 Amos Waterland <apw@us.ibm.com>
2901 * posix/tst-nice.c: New file.
2902 * posix/Makefile (tests): Add tst-nice.
2904 2003-03-18 Roland McGrath <roland@redhat.com>
2906 * abilist: New directory of libfoo.abilist files maintained using
2907 scripts/merge-abilist.awk and "make update-abi" rules.
2908 * Makefile (distribute): Add abilist/*.abilist.
2909 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
2910 Depend on check-abi.
2912 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
2913 * configure: Regenerated.
2915 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2917 2003-03-18 Ulrich Drepper <drepper@redhat.com>
2919 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
2922 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
2924 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
2926 2003-03-18 Ulrich Drepper <drepper@redhat.com>
2928 * Versions.def: Add GLIBC_2.3.3 for libpthread.
2930 2003-03-17 Ulrich Drepper <drepper@redhat.com>
2932 * sysdeps/generic/libc-start.c [!SHARED &&
2933 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
2935 2003-03-17 Roland McGrath <roland@redhat.com>
2937 * include/ctype.h: Revert last change.
2939 2003-03-17 Ulrich Drepper <drepper@redhat.com>
2941 * argp/tst-argp1.c: Use test-skeleton.c.
2942 * locale/tst-C-locale.c: Likewise.
2944 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
2946 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
2947 * sysdeps/mips/mips64/n64/Implies: New file.
2948 * sysdeps/mips/mips64/n64/Makefile: New file.
2949 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
2950 * sysdeps/mips/mips64/n32/Implies: New file.
2951 * sysdeps/mips/mips64/n32/Makefile: New file.
2952 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
2953 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
2954 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
2955 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
2956 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
2957 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
2958 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
2959 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
2960 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
2961 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
2962 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
2963 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
2964 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
2965 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2967 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
2968 lib64 for mips64/n64 and lib32 for mips64/n32.
2969 (ldd_rewrite_script): Needed for all mips64 configurations.
2970 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2971 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
2972 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2974 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
2977 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
2978 asm/unistd.h into asm-unistd.h.
2979 * sysdeps/unix/sysv/linux/mips/configure: Generated.
2980 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
2982 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
2983 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
2986 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
2987 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
2988 long type for registers on n32.
2990 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
2992 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
2993 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
2994 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
2995 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
2996 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
2997 * sysdeps/unix/mips/brk.S: Likewise.
2998 * sysdeps/unix/mips/sysdep.S: Likewise.
2999 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3000 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
3001 * sysdeps/mips/sys/ucontext.h: Likewise.
3002 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
3003 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
3004 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
3005 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3006 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
3007 * sysdeps/mips/mips64/setjmp.S: Likewise.
3008 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
3009 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
3012 2003-03-16 Ulrich Drepper <drepper@redhat.com>
3014 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
3015 not at function level.
3016 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
3018 2003-03-15 Roland McGrath <roland@redhat.com>
3020 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
3021 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3022 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
3023 * nis/nis_table.c (__create_ib_request): Likewise.
3025 * posix/fnmatch_loop.c: Add casts for signedness.
3026 * nss/nss_files/files-hosts.c: Likewise.
3027 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3028 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
3029 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
3031 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
3032 get errors into the log file.
3033 (libc_cv_broken_visibility_attribute): Likewise.
3034 (libc_cv_broken_alias_attribute): Likewise.
3035 (libc_cv_asm_weak_directive): Likewise.
3036 (libc_cv_need_minus_P): Likewise.
3037 (libc_cv_dot_text): Likewise.
3038 (libc_cv_asm_global_directive): Likewise.
3039 (libc_cv_asm_type_prefix): Likewise.
3040 * configure: Regenerated.
3042 * nscd/cache.c (cache_search): Give first arg type `request_type'.
3043 * nscd/nscd.h: Update decl.
3045 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
3046 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3047 * elf/dl-close.c (_dl_close): Likewise.
3048 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
3049 * io/fts.c (fts_build): Likewise.
3050 * elf/cache.c (add_to_cache): Likewise.
3051 * locale/programs/locarchive.c (show_archive_content): Likewise.
3053 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
3055 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
3057 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
3059 2003-03-15 Ulrich Drepper <drepper@redhat.com>
3061 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
3062 code for most parts.
3064 2003-03-15 Roland McGrath <roland@redhat.com>
3066 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
3067 * sysdeps/unix/sysv/linux/system.c: ... here.
3068 (FORK): Don't #define if already #define'd.
3069 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
3070 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
3071 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
3073 * dlfcn/tst-dlinfo.c: New file.
3074 * dlfcn/Makefile (tests): Add tst-dlinfo.
3075 ($(objpfx)tst-dlinfo): New target.
3077 * dlfcn/dlinfo.c: New file.
3078 * dlfcn/Makefile (libdl-routines): Add it.
3079 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
3080 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
3081 [__USE_GNU] (RTLD_DI_*): New enum constants.
3082 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
3083 * elf/dl-load.c (cache_rpath): New inline function.
3084 (_dl_map_object): Use it.
3085 (_dl_rtld_di_serinfo): New function.
3086 * sysdeps/generic/ldsodefs.h: Declare it.
3087 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
3089 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
3090 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
3091 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
3092 (__libc_start_main): Just call the generic one for most of the work.
3094 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
3095 static function by that name instead of BP_SYM (__libc_start_main).
3096 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
3097 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
3098 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
3100 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
3101 Use this macro for extra AT_* cases.
3102 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
3103 New macro, guts from ...
3104 (__aux_init_cache): ... here, function removed.
3105 (DL_PLATFORM_INIT): Don't define this.
3107 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
3108 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
3110 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
3112 2003-03-14 Roland McGrath <roland@redhat.com>
3114 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
3116 2003-03-14 Jakub Jelinek <jakub@redhat.com>
3118 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
3120 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3121 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
3123 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3125 * sysdeps/mips/fpu/bits/mathdef.h: New.
3126 (__NO_LONG_DOUBLE_MATH): Define for o32.
3128 * sysdeps/mips/sys/asm.h: Formatting changes.
3129 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
3130 (CPADD): Define for all of them.
3131 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
3132 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
3133 NARGSAVE): Define per ABI spec.
3134 (END): Don't redefine.
3135 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
3136 LONG_SRAV): Remove duplicate definitions.
3137 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
3138 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
3139 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
3140 (PTR_LA): Define for all 3 ABIs.
3142 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
3143 (elf_machine_matches_host): Prevent linking of o32 and n32
3145 (elf_machine_dynamic): Document assumption on $gp.
3146 (STRINGXP, STRINGXV, STRINGV_): New macros.
3147 (elf_machine_load_address): Use them to stringize PTR_LA and
3149 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
3150 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
3151 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
3152 (__dl_runtime_resolve): Cast the symtab initializer to the
3154 (RTLD_START): Use it. Adjust it for all 3 ABIs.
3155 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
3156 Handle 64-bit R_MIPS_REL composite relocation and accept
3157 R_MIPS_64 relocations to shift addend size to 64 bits.
3158 Document assumption regarding local GOT entries. Document
3159 backward-compatibility departing from the ABI behavior in
3160 applying relocations that reference section symbols, no longer
3161 used. Support relocations to mis-aligned offsets.
3162 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
3164 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
3166 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
3167 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
3168 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
3169 restore_rt functions. Use them.
3171 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
3172 .set mips2 on new abis.
3174 2003-03-13 Ulrich Drepper <drepper@redhat.com>
3176 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
3177 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
3178 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
3179 * sysdeps/posix/pathconf.c: Likewise.
3180 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3181 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3182 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
3184 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
3187 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3189 * include/gmp.h: Include/gmp-mparam.h.
3190 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
3193 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
3194 ELF_MACHINE_NO_RELA is set.
3195 * elf/rtld.c (dl_main): No prelink support for REL-only.
3197 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
3198 FLAG_MIPS64_LIBN64): Define.
3199 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
3201 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
3202 * sysdeps/mips/memset.S: Likewise.
3203 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
3204 depending on the ABI.
3206 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
3207 Don't .set mips2 on new abi.
3208 (compare_and_swap): Likewise. Support 64-bit longs on n64.
3210 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
3212 2003-03-13 Roland McGrath <roland@redhat.com>
3214 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
3215 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
3217 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
3219 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
3221 * stdlib/fpioconst.c: Likewise.
3222 * stdlib/strtod.c: Likewise.
3224 * sysdeps/mips/add_n.S: Use L macro for local labels.
3225 * sysdeps/mips/addmul_1.S: Likewise.
3226 * sysdeps/mips/lshift.S: Likewise.
3227 * sysdeps/mips/memcpy.S: Likewise.
3228 * sysdeps/mips/memset.S: Likewise.
3229 * sysdeps/mips/mul_1.S: Likewise.
3230 * sysdeps/mips/rshift.S: Likewise.
3231 * sysdeps/mips/sub_n.S: Likewise.
3232 * sysdeps/mips/submul_1.S: Likewise.
3233 * sysdeps/mips/mips64/add_n.S: Likewise.
3234 * sysdeps/mips/mips64/addmul_1.S: Likewise.
3235 * sysdeps/mips/mips64/lshift.S: Likewise.
3236 * sysdeps/mips/mips64/mul_1.S: Likewise.
3237 * sysdeps/mips/mips64/rshift.S: Likewise.
3238 * sysdeps/mips/mips64/sub_n.S: Likewise.
3239 * sysdeps/mips/mips64/submul_1.S: Likewise.
3240 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
3241 conventions. Define END as in sys/asm.h.
3242 * sysdeps/unix/mips/sysdep.S: Likewise.
3243 * sysdeps/unix/mips/wait.S: Likewise.
3244 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3246 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
3247 Cast shifted values that may be too narrow to mp_limb_t.
3248 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
3250 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
3252 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
3253 (__mpn_extract_long_double): Likewise.
3254 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
3255 (__mpn_construct_long_double): Likewise.
3256 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
3257 (__mpn_extract_long_double): Likewise.
3258 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
3259 (__mpn_construct_long_double): Likewise.
3261 2003-03-13 Roland McGrath <roland@redhat.com>
3263 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
3264 entries in the map file match too.
3266 2003-03-13 Guido Guenther <agx@sigxcpu.org>
3268 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
3269 label .Lthread_start since current binutils don't allow branches
3270 to globally visible symbols.
3272 2003-03-13 Jakub Jelinek <jakub@redhat.com>
3274 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
3275 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
3276 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
3277 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
3278 clobbered by the syscall.
3279 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
3280 ASM_ARGS_6): Change constraints from r to index of corresponding
3282 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
3283 ptid and ctid to match kernel.
3284 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
3286 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
3288 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3289 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
3290 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3292 2003-03-11 Roland McGrath <roland@redhat.com>
3294 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3295 Check SYM_MAP rather than SYM as definedness check.
3296 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
3297 Don't handle R_PPC64_REL24 reloc.
3298 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3300 * sysdeps/powerpc/powerpc64/dl-machine.h
3301 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
3302 block, so we cover all the TPREL16* flavors without 6 ||s.
3303 [USE_TLS] (elf_machine_tprel): New function.
3304 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
3305 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
3306 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3308 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
3310 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
3311 instead of jalr to invoke subroutine so restoring the $gp register
3314 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
3316 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
3317 to __NR_pread if not defined.
3318 (__NR_pwrite64): Define to __NR_pwrite if not defined.
3320 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3322 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
3323 * sysdeps/unix/sysv/linux/kernel-features.h
3324 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
3327 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3329 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
3330 allocate space even for the trailing '/'.
3331 Reported by John Reiser <jreiser@BitWagon.com>.
3333 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
3334 ASM_CLOBBERS_6): Define.
3335 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
3336 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
3337 to match IA-32 order.
3338 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
3340 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
3342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
3343 Copy extra params for NPTL to registers used in clone syscall.
3345 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3347 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
3348 call names for pread and pwrite.
3350 2003-03-10 Roland McGrath <roland@redhat.com>
3352 * dlfcn/Makefile (libdl-routines): Add dladdr1.
3353 * dlfcn/dladdr1.c: New file.
3354 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
3355 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
3356 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
3357 a const ElfNN_Sym ** to fill in.
3358 * include/dlfcn.h: Update decl. Include <link.h>.
3359 * dlfcn/dladdr.c (dladdr): Update caller.
3360 * malloc/mtrace.c (tr_where): Likewise.
3361 * sysdeps/generic/elf/backtracesyms.c: Likewise.
3362 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3363 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
3364 * Versions.def (libdl): Define GLIBC_2.3.3 set.
3366 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
3368 * sysdeps/unix/Makefile (compile-syscall): New variable.
3369 Pass -g0 to compiler for assembling syscall stubs from stdin.
3371 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
3372 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
3373 Define these to do nothing.
3375 * configure.in: New check for -g on .S files.
3376 * configure: Regenerated.
3377 * config.make.in (have-cpp-asm-debuginfo): New variable.
3378 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
3379 * Makeconfig (ASFLAGS): New variable, if undefined and
3380 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
3381 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
3383 2003-03-09 Roland McGrath <roland@redhat.com>
3385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
3386 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
3388 2003-03-09 Ulrich Drepper <drepper@redhat.com>
3390 * po/fi.po: Update from translation team.
3391 * po/ca.po: Likewise.
3392 * po/da.po: Likewise.
3394 2003-03-08 Ulrich Drepper <drepper@redhat.com>
3396 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
3398 2003-03-07 Ulrich Drepper <drepper@redhat.com>
3400 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
3402 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
3404 2003-03-07 Roland McGrath <roland@redhat.com>
3406 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
3407 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
3409 2003-03-04 Guido Guenther <agx@sigxcpu.org>
3411 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
3412 stubs, we have INLINE_SYSCALL.
3413 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
3416 2003-03-06 Roland McGrath <roland@redhat.com>
3418 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
3419 permanent extent and add a comment about testing its implicit teardown.
3421 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3423 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
3425 2003-03-05 Ulrich Drepper <drepper@redhat.com>
3427 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
3428 reversed __builtin_expect expectation.
3430 2003-03-05 Roland McGrath <roland@redhat.com>
3432 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
3433 * libio/swscanf.c: Likewise.
3434 * libio/swprintf.c: Likewise.
3436 2003-03-04 Roland McGrath <roland@redhat.com>
3438 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
3439 (elf_machine_rela): Always use RESOLVE_MAP, needed for
3440 R_PPC64_JMP_SLOT as well as TLS cases.
3441 (BIT_INSERT): Move parenthesis where it ought to have been.
3442 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3444 * posix/confstr.c (confstr): Correct STRING_LEN values for
3445 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
3446 break. Reported by Alexandre Julliard <julliard@winehq.com>.
3448 2003-03-04 Jakub Jelinek <jakub@redhat.com>
3450 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3452 2003-03-04 Ulrich Drepper <drepper@redhat.com>
3454 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
3457 * po/sv.po: Update from translation team.
3459 2003-03-04 Andreas Jaeger <aj@suse.de>
3460 Ulrich Drepper <drepper@redhat.com>
3462 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
3464 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3466 * sysdeps/generic/dl-sysdep.h: Add double include protection.
3468 * po/tr.po: Update from translation team.
3470 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
3471 are holes between the segments. Only call mprotect to set
3472 proection to PROT_NONE if there are some.
3474 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
3477 * include/sched.h (__clone2): Use ... instead of adding all the
3480 2003-03-03 Roland McGrath <roland@redhat.com>
3482 * elf/dl-load.c (struct filebuf): Fix typo in last change.
3484 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
3485 PI_STATIC_AND_HIDDEN.
3487 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
3489 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
3491 * include/sched.h: Update clone2 prototype.
3493 2003-03-03 Andreas Jaeger <aj@suse.de>
3495 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
3496 (llrint): Use it to correct return type.
3499 (llround): Likewise.
3501 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3503 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
3506 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
3507 if ccs parameter isn't valid. Reported by Andreas Schwab.
3509 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3511 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
3512 for system call numbers > 255.
3513 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
3514 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3515 INTERNAL_SYSCALL): Likewise.
3516 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3517 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
3518 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3519 INTERNAL_SYSCALL): Likewise.
3521 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3523 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
3524 array if it is the initial dtv.
3526 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3528 * po/es.po: Update from translation team.
3529 * po/fr.po: Likewise.
3530 * po/gl.po: Likewise.
3531 * po/sk.po: Likewise.
3532 * po/sv.po: Likewise.
3534 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
3535 * misc/sys/mman.h: Add prototype for remap_file_pages.
3536 * sysdeps/generic/remap_file_pages.c: New file.
3537 * misc/Makefile (routines): Add remap_file_pages.
3538 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
3540 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
3542 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3543 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
3544 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3545 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3546 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3547 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
3548 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
3549 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3551 2003-03-03 Roland McGrath <roland@redhat.com>
3553 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
3554 * sysdeps/ia64/dl-machine.h: Likewise.
3555 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
3557 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
3559 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
3560 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
3561 * locale/Versions (libc: GLIBC_2.3): Move those to ...
3562 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
3563 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
3564 * Versions.def (libc): Add GLIBC_2.3.3 set.
3566 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
3567 * sysdeps/ia64/dl-machine.h: Update decl.
3569 2003-03-03 Andreas Jaeger <aj@suse.de>
3571 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
3573 2003-03-02 Roland McGrath <roland@redhat.com>
3575 * scripts/abilist.awk: Reject data items with apparent 0 size.
3577 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
3578 after foo.* as if it were a duplicate.
3580 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
3582 2003-03-02 Ulrich Drepper <drepper@redhat.com>
3584 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
3586 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
3587 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
3588 if not already defined. Use SYSDEP_GETRES to allow other files to
3589 provide alternative implementations.
3590 * sysdeps/unix/sysv/linux/clock_getres.c: New file
3591 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
3592 if not already defined. Use SYSDEP_GETTIME to allow other files to
3593 provide alternative implementations.
3594 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
3595 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
3596 if not already defined. Use SYSDEP_GETTIME to allow other files to
3597 provide alternative implementations.
3598 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
3599 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
3600 other files to provide alternative implementations. Rearrange
3601 tests for invalid parameters.
3602 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
3603 * sysdeps/unix/sysv/linux/sysconf.c: New file.
3604 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3605 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
3606 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3607 _POSIX_MONOTONIC_CLOCK.
3609 2003-03-02 Roland McGrath <roland@redhat.com>
3611 * scripts/merge-abilist.awk: More checks for bogus input.
3612 Uniquify duplicate config names.
3614 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
3616 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
3617 from dl_reloc_overflow, make global.
3618 (__process_machine_rela): Update callers.
3619 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
3620 Add attribute_hidden to __process_machine_rela decl.
3621 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
3623 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
3626 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
3627 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
3628 (elf_machine_rela): Clean up.
3630 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
3632 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
3633 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
3634 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
3635 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
3636 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
3637 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
3640 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
3641 macros out of [SHARED].
3642 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
3644 * elf/elf.h: Define R_PPC_* relocs for TLS support.
3645 Clean up R_PPC64_* macro definition comments.
3647 * configure.in: In "running configure fragment for" message,
3648 omit $srcdir from the name if we prepended it.
3649 * configure: Regenerated.
3651 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
3652 From Jakub Jelinek <jakub@redhat.com>.
3654 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
3655 which duplicated the O_DIRECT defn.
3657 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3659 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
3662 2003-03-01 Andreas Schwab <schwab@suse.de>
3664 * resolv/Makefile (tests): Don't depend on
3665 $(objpfx)mtrace-tst-leaks when cross compiling.
3667 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
3668 __libc_stack_end through GOT since it is a global symbol.
3670 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3672 * argp/argp.h: Fix a typo.
3673 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
3675 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
3677 2003-02-27 Pat Rankin <rankin@pactechdata.com>
3679 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
3681 (get_subexp): Likewise.
3683 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3685 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
3687 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
3689 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
3691 2003-02-27 Roland McGrath <roland@redhat.com>
3693 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
3694 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
3695 repeat it and avoids the test for the common case.
3696 Clean up and fix calculations for TLS relocs.
3698 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
3699 * sysdeps/powerpc/dl-tls.h: ... here.
3700 (TLS_TP_OFFSET): New macro.
3702 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
3704 2003-02-27 Ulrich Drepper <drepper@redhat.com>
3706 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
3707 code generation changes in recent gcc.
3709 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
3711 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
3712 Rename argument to avoid symbol conflict.
3714 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
3715 [__USE_GNU] (O_DIRECT): New macro.
3717 2003-02-24 David Mosberger <davidm@hpl.hp.com>
3719 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
3722 2003-02-27 Ulrich Drepper <drepper@redhat.com>
3724 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
3725 initializer anymore now that res_thread_freeres is more careful.
3727 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
3728 except the PKTINFO. Reset interface in PKTINFO.
3729 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
3731 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
3733 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
3734 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
3736 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
3737 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
3738 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
3739 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
3741 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3742 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
3744 2003-02-25 Andreas Jaeger <aj@suse.de>
3746 * manual/memory.texi (Malloc Tunable Parameters): Clarify
3747 behaviour of M_MMAP_THRESHOLD.
3749 2003-02-25 Roland McGrath <roland@redhat.com>
3751 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
3752 zero, inidicating _res was not initialized yet.
3754 2003-02-24 Ulrich Drepper <drepper@redhat.com>
3756 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
3759 2003-02-24 Roland McGrath <roland@redhat.com>
3761 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
3763 2003-02-23 Roland McGrath <roland@redhat.com>
3765 * sysdeps/posix/pause.c: New file.
3766 * sysdeps/unix/common/pause.c: File removed.
3768 2003-02-23 Ulrich Drepper <drepper@redhat.com>
3770 * sysdeps/generic/bits/confname.h: Remove #ifs.
3772 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
3773 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
3775 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
3778 2003-02-22 Ulrich Drepper <drepper@redhat.com>
3780 * sysdeps/generic/dl-sysdep.c: Avoid warning.
3782 2003-02-22 Roland McGrath <roland@redhat.com>
3784 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
3785 * resolv/Makefile (tests): Add tst-leaks.
3786 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
3787 (tst-leaks-ENV): New variable.
3788 ($(objpfx)mtrace-tst-leaks): New target.
3789 (tests): Depend on it.
3791 * include/libc-internal.h: Declare __libc_thread_freeres.
3793 * Makerules: Fix last change to use $($(subdir)-version) when set.
3795 * Makerules (install-lib-nosubdir): Depend on installed
3796 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
3797 regardless of the libfoo.so target's dependencies.
3799 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
3800 Use that in $(MAKE) calls.
3802 2003-02-22 Ulrich Drepper <drepper@redhat.com>
3804 * catgets/gencat.c (read_input_file): Collision between
3805 auto-assigned numbers and user-defined nubmers is not fatal.
3807 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
3808 * catgets/Makefile: Add rules to run test2.msg test.
3809 * catgets/test2.msg: New file.
3811 * catgets/gencat.c (main): Return 1 if messages have been printed.
3813 * iconv/iconv_prog.c (main): Unify messages.
3815 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
3816 when shifting retval.
3817 * stdlib/tst-strtod.c (main): Add strtold test case.
3818 Reported by Fred J. Tydeman <tydeman@tybor.com>.
3820 2003-02-21 Roland McGrath <roland@redhat.com>
3822 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
3823 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
3824 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
3826 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
3827 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
3828 (res_thread_freeres): New function, on __libc_thread_subfreeres and
3831 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
3832 * malloc/thread-freeres.c: New file.
3833 * malloc/Makefile (aux): Add it.
3834 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
3835 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
3836 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
3838 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
3839 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
3841 2003-02-21 Roland McGrath <roland@frob.com>
3843 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
3845 * iconvdata/Makefile (tests): Add bug-iconv3 only if
3846 [$(have-thread-library) = yes].
3848 2003-02-21 Ulrich Drepper <drepper@redhat.com>
3850 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
3852 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
3853 not chechk for errors (unless testing for 32bit variant).
3854 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3855 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3856 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3858 2003-02-21 Jakub Jelinek <jakub@redhat.com>
3860 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
3861 Check for signed overflow, not unsigned.
3863 * sysdeps/sparc/sparc64/elf/configure.in: New file.
3864 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
3865 Use -fcall-used-g6, not -fcall-used-g7.
3867 2003-02-21 Andreas Jaeger <aj@suse.de>
3869 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
3872 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
3873 clear whole mxcsr but only exceptions.
3875 2003-02-21 Roland McGrath <roland@redhat.com>
3877 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
3878 for libfoo.so that need $(make-link) rules.
3880 2003-02-21 Roland McGrath <roland@frob.com>
3882 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
3883 to match existing struct stat layout in mig protocols.
3885 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3887 * version.h (VERSION): Bump to 2.3.2.
3889 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
3890 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
3892 * sysdeps/generic/Dist: Add sysdep-cancel.h.
3893 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
3894 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
3895 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
3896 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
3897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
3899 * Makefile (distribute): Add include/stubs-prologue.h,
3900 include/gnu/stubs.h, scripts/merge-abilist.awk, and
3901 scripts/extract-abilist.awk.
3903 2003-02-20 Roland McGrath <roland@redhat.com>
3905 * math/Makefile (distribute): Don't add generated files.
3907 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3909 * math/Makefile: Rearrange variable definitions slightly to get
3910 definition in the right order.
3912 2003-02-20 Roland McGrath <roland@redhat.com>
3914 * Makerules: Clean up conditional around include of tls.make.
3915 * Make-dist: Export generating=t to prevent using that.
3916 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
3918 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3920 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
3921 around in search if port IPPORT_RESERVED/2 has been test.
3923 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
3925 * posix/regcomp.c: Remove inclusions.
3926 * posix/regexec.c: Likewise.
3927 * posix/regex_internal.c: Likewise.
3928 * posix/regex_internal.h: Add inclusions here.
3929 * posix/regex.c: Only include sys/types.h before regex.h. Include
3930 regex_internal.h here. Include regex_internal.c before regcomp.c
3931 and regexec.c (might expose more opportunities to the C compiler).
3933 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
3935 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
3936 [!_LIBC] (__wcrtomb): New definition.
3937 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
3938 HAVE_LOCALE_H as well.
3940 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3942 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
3943 patch to check for system call errors.
3945 2002-07-24 Philip Blundell <philb@gnu.org>
3947 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
3950 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3952 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
3953 * sysdeps/unix/sysv/linux/kernel-features.h
3954 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
3955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
3957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
3958 interprocedure branches.
3959 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
3960 * sysdeps/powerpc/nofpu/Dist: ...here.
3961 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
3962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
3963 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
3964 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
3965 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
3967 2003-02-18 Alan Modra <amodra@bigpond.net.au>
3969 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
3971 2003-02-20 Philip Blundell <philb@gnu.org>
3973 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
3974 missing arguments to INTERNAL_SYSCALL_ERROR_P and
3975 INTERNAL_SYSCALL_ERRNO.
3977 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3979 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
3980 for __ASSUME_32BITUIDS.
3982 2003-02-20 Andreas Schwab <schwab@suse.de>
3984 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
3985 POSIX_MADV_* constants.
3987 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3989 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
3990 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
3991 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
3992 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
3994 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
3996 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
3998 2003-02-16 Roland McGrath <roland@redhat.com>
4000 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
4002 2003-02-19 Ulrich Drepper <drepper@redhat.com>
4004 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
4005 decimal input digits.
4006 * stdlib/tst-strtod.c (main): Add test for strtof bug.
4008 2003-02-18 Ulrich Drepper <drepper@redhat.com>
4010 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
4011 invalid file descriptors and missing access permissions.
4013 2003-02-17 Ulrich Drepper <drepper@redhat.com>
4015 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
4018 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
4019 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
4020 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
4023 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
4024 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4026 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
4027 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
4028 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4029 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4030 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4032 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4034 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
4035 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
4036 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
4037 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
4038 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
4039 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
4041 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
4042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
4043 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
4044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
4046 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
4047 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
4048 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
4049 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
4051 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
4053 * nss/getent.c (print_hosts): Print all IP addresses of one host.
4055 2003-02-15 Roland McGrath <roland@frob.com>
4057 * sysdeps/mach/hurd/tls.h: New file.
4058 * sysdeps/mach/hurd/i386/tls.h: New file.
4060 * mach/errsystems.awk: Include <errno.h> in generated output.
4062 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
4063 use target mach-before-compile instead of generated.
4064 (mach-before-compile): New target.
4065 * Makerules: Disable use of tls.make if $(generating) is set.
4066 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
4067 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
4068 mach-shortcuts.h so mach/ generation happens before hurd/.
4070 2003-02-14 Ulrich Drepper <drepper@redhat.com>
4072 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
4073 of demorm correctly if low word is zero.
4074 Reported by Fred J. Tydeman <tydeman@tybor.com>.
4075 * math/libm-test.inc (nextafter_test): New test, but disabled due
4078 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
4079 counter and only call __exit_thread if this is not the last thread.
4081 2003-02-13 Jakub Jelinek <jakub@redhat.com>
4083 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
4084 subtracting map->l_tls_offset.
4086 2003-02-12 Ulrich Drepper <drepper@redhat.com>
4088 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
4089 _CS_GNU_LIBPTHREAD_VERSION.
4090 * posix/conststr.c: Handle these new values.
4091 * posix/getconf.c: Likewise.
4093 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
4094 masking of version index.
4095 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4097 2003-02-11 Ulrich Drepper <drepper@redhat.com>
4099 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
4100 correctly. Reported by Thorsten Kukuk.
4102 2003-02-10 Ulrich Drepper <drepper@redhat.com>
4104 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
4105 _BSD_SOURCE to compiler.
4106 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
4107 Patches by Alan Modra.
4109 2003-02-08 Ulrich Drepper <drepper@redhat.com>
4111 * io/ftwtest.c: Get current working directory before and after the
4112 nftw call and make sure they match.
4114 2003-02-08 Jim Meyering <jim@meyering.net>
4116 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
4117 the current directory, not just when DIR contains a slash.
4118 Reported by Manoj Srivastava.
4120 2003-02-07 Jim Meyering <jim@meyering.net>
4122 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
4123 Include autoconf-recommended block of dirent/NAMELEN-related
4124 definitions and includes. Use NAMELEN throughout, rather than
4126 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
4127 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
4128 (stpcpy): Declare, if necessary.
4129 (mempcpy): Define, if necessary.
4130 [!_LIBC] (__stpcpy, __mempcpy): Define.
4131 [!_LIBC] (LXSTAT, XSTAT): Define.
4132 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
4133 (find_object): Don't use c99-style struct initializer.
4134 Tweak wording in a couple comments.
4136 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4138 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
4140 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
4141 after the trapa instruction.
4142 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
4144 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
4145 (NEED_SYSCALL_INST_PAD): Define.
4146 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
4147 avoid to use definition for the kernel.
4148 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4149 Save and restore the frame pointer.
4150 (SYSCALL_INST_PAD): Define.
4151 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4152 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
4153 after trapa instruction.
4154 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4155 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4157 2003-02-07 Jakub Jelinek <jakub@redhat.com>
4159 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
4160 so that it can have aliases.
4161 * inet/herrno.c (h_errno): Put it into .bss not .data section.
4163 2003-02-07 Ulrich Drepper <drepper@redhat.com>
4165 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
4166 (profile_fixup): Likewise.
4167 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4169 2002-11-24 Robert Love <rml@tech9.net>
4171 * posix/sched.h: Second parameter of sched_setaffinity and
4172 sched_getaffinity is `unsigned int', not `unsigned long'.
4173 * sysdeps/generic/sched_setaffinity.c: Likewise.
4174 * sysdeps/generic/sched_getaffinity.c: Likewise.
4176 2003-02-05 Ulrich Drepper <drepper@redhat.com>
4178 * debug/catchsegv.sh: Fix typo in error messsage.
4179 Reported by John Levon <levon@movementarian.org>.
4181 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
4182 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
4183 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4184 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4186 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4187 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4189 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
4190 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
4192 2003-02-05 Jim Meyering <jim@meyering.net>
4194 Fix a heap-corrupting bug.
4195 * io/ftw.c: Include <limits.h>.
4196 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
4197 (process_entry): Allocate enough space to hold the resulting
4198 file name. Don't presume that 2*dirbufsize is enough.
4199 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
4200 it is guaranteed to be defined.
4202 2003-02-04 Ulrich Drepper <drepper@redhat.com>
4204 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
4205 * iconvdata/bug-iconv3.c: New file.
4207 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
4209 * sysdeps/unix/sysv/linux/s390/system.c: New file.
4211 2003-02-03 Jakub Jelinek <jakub@redhat.com>
4213 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
4215 * config.h.in (BROKEN_SPARC_WDISP22): Add.
4217 2003-02-03 Ulrich Drepper <drepper@redhat.com>
4219 * sysdeps/i386/i686/memmove.S: New file.
4221 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
4224 Include kernel-features.h
4225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
4226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
4228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4230 2003-02-02 Jakub Jelinek <jakub@redhat.com>
4232 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
4234 2003-01-25 Jim Meyering <jim@meyering.net>
4236 * io/ftw.c (object_compare): Compare inode numbers before device
4237 numbers, since the former are much more likely to differ.
4239 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4241 * time/tzfile.c (__tzfile_compute): Change return value type to
4242 void. Adjust return statements.
4243 * include/time.h (__tzfile_compute): Adjust prototype.
4245 2003-02-01 Jim Meyering <jim@meyering.net>
4247 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
4250 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4253 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
4255 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4258 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
4259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4260 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4262 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4264 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4266 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4268 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
4269 back to 2.4.19 for powerpc64.
4270 * sysdeps/unix/sysv/linux/kernel-features.h
4271 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
4272 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
4274 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4276 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
4277 platforms with strange alignment requirements on wchar_t.
4279 2003-01-31 Andreas Schwab <schwab@suse.de>
4281 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
4282 aliases, already added by make-syscalls.sh.
4283 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4284 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4285 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4286 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4287 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4288 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4289 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4290 * sysdeps/unix/inet/syscalls.list: Likewise.
4291 * sysdeps/unix/syscalls.list: Likewise.
4293 2003-01-31 Andreas Schwab <schwab@suse.de>
4295 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
4298 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4300 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
4301 not l to load tls from stack.
4303 2003-01-30 Roland McGrath <roland@redhat.com>
4305 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
4306 null argument before all else.
4307 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4309 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4311 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
4312 Move to RESOLVE protected part of the header.
4313 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
4316 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4318 * stdio-common/Makefile (tests): Add bug15.
4319 (bug15-ENV): Define.
4320 * stdio-common/bug15.c: New file.
4322 2002-10-07 Wolfram Gloger <wg@malloc.de>
4324 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
4325 to foreign sbrk()'s if arena is contiguous. Bug report from
4326 Bruno Haible <bruno@clisp.org>.
4328 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4330 * sysdeps/s390/libc-tls.c: Include stdlib.h.
4332 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4334 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
4337 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4339 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
4341 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
4343 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4345 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4347 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
4348 (allocate_static_tls): ...here. Add __attribute_noinline__.
4349 Don't return on failure.
4350 (_dl_reloc_bad_type): Add __attribute_noinline__.
4351 * elf/do-rel.h (elf_dynamic_do_rel): Add
4352 __attribute__((always_inline)).
4353 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4354 elf_machine_rel_relative, elf_machine_rela_relative,
4355 elf_machine_lazy_rel): Add prototypes with
4356 __attribute__((always_inline)).
4358 2003-01-29 David Mosberger <davidm@hpl.hp.com>
4360 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
4362 2003-01-29 Roland McGrath <roland@redhat.com>
4364 * configure.in: Barf if configured in $srcdir.
4366 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4369 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
4371 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
4373 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
4374 clone parameters to match the order used on ia32.
4375 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4377 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
4379 * elf/elf.h: Add new s390 relocs.
4380 * elf/tls-macros.h: Add s390 versions.
4381 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
4382 * sysdeps/s390/dl-tls.h: New file.
4383 * sysdeps/s390/libc-tls.c: New file.
4384 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
4385 relocs for class PLT.
4386 (elf_machine_rela): Handle TLS relocs.
4387 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4388 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
4389 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4390 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
4391 CLONE_CHILD_*TID flags.
4392 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4393 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
4395 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4396 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4397 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
4398 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
4399 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
4401 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
4402 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
4403 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4405 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
4406 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
4407 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
4408 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4411 2003-01-28 Ulrich Drepper <drepper@redhat.com>
4413 * sysdeps/unix/common/pause.c (do_pause): New function. Split
4414 from __libc_pause. Implement using sigsuspend.
4415 (__libc_pause): Call do_pause to do the real work.
4417 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
4418 sig_or_mask parameter is is_sig != 0.
4420 2003-01-21 Philip Blundell <philb@gnu.org>
4422 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
4424 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
4426 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
4428 2003-01-27 Ulrich Drepper <drepper@redhat.com>
4430 * stdio-common/bug14.c: Use official name for the locale.
4432 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
4433 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
4434 instead of __libc_cleanup_region_end.
4436 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
4437 as first parameter to __libc_cleanup_region_start.
4439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4440 (__fe_nomask_env): Use __prctl not prctl.
4441 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
4444 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
4446 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
4448 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
4449 wrap-around in test.
4451 2003-01-26 Andreas Schwab <schwab@suse.de>
4453 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
4454 compatibility symbols. Remove INTDEF for __divdi3.
4455 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
4456 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
4457 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
4459 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
4461 2003-01-24 Jakub Jelinek <jakub@redhat.com>
4463 * elf/tls-macros.h: Add SPARC 32-bit definitions.
4464 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
4465 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
4466 for the first half of the header. Include tls.h.
4467 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
4469 (elf_machine_rela): Handle TLS relocs.
4470 * sysdeps/sparc/dl-tls.h: New file.
4472 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
4475 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
4476 * sysdeps/sparc/sparc32/memchr.S: Likewise.
4477 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4478 * sysdeps/sparc/sparc32/strcat.S: Likewise.
4479 * sysdeps/sparc/sparc32/strchr.S: Likewise.
4480 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
4481 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
4482 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
4483 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4484 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4485 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4486 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4487 * sysdeps/sparc/sparc64/strcat.S: Likewise.
4488 * sysdeps/sparc/sparc64/strchr.S: Likewise.
4489 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
4490 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
4491 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4492 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4493 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4494 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4496 2003-01-24 Andreas Schwab <schwab@suse.de>
4498 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
4499 elements, and process them backwards.
4500 * elf/Makefile ($(objpfx)tst-array4): New target.
4501 ($(objpfx)tst-array4.out): Likewise.
4502 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
4503 * elf/tst-array4.c: New file.
4504 * elf/tst-array4.exp: Likewise.
4506 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
4510 2003-01-27 Guido Guenther <agx@sigxcpu.org>
4512 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
4513 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
4514 cancellation handling and handle both __NR_pread64 and __NR_pread.
4515 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4516 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
4517 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
4518 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4519 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
4520 case, use register names consistently.
4522 2003-01-27 Wolfram Gloger <wg@malloc.de>
4524 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
4525 pointer, not of the computed chunk. Bug report from Carlos
4526 O'Donell <carlos@baldric.uwo.ca>.
4528 2003-01-25 Andreas Schwab <schwab@suse.de>
4530 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
4531 addressing to save GOT entries.
4533 2003-01-21 Jakub Jelinek <jakub@redhat.com>
4535 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
4536 inline_syscall1, inline_syscall2, inline_syscall3,
4537 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
4538 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
4539 __attribute__((unused)) to ChEcK.
4541 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4543 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
4544 Fix inline assembler constraints.
4545 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
4548 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
4551 2003-01-20 Segher Boessenkool <segher@koffie.nl>
4553 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
4554 compute the cosine, not the sine, even if x > 0.8.
4556 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4558 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
4559 _nss_nis_setspent. Work around the different prototypes.
4560 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
4561 internal_nis_endrpcent.
4562 (internal_nis_endrpcent): Change return type to void. Change callers.
4563 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
4564 _nss_nis_setpwent. Work around the different prototypes.
4565 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
4566 of the function to...
4567 (internal_nis_endprotoent): ... here. New function.
4568 (internal_nis_setprotoent): Use internal_nis_endprotoent.
4569 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
4570 _nss_nis_setnetent. Work around the different prototypes.
4571 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
4572 of the function to...
4573 (internal_nis_endnetgrent): ... here. New function.
4574 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
4576 2003-01-19 Jim Meyering <jim@meyering.net>
4578 * time/strftime.c: (widen): Merge nearly-identical definitions.
4579 (nl_get_alt_digit) [! defined my_strftime]: Define.
4580 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
4581 _nl_get_alt_digit and _nl_get_walt_digit.
4583 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4585 * time/strftime.c (my_strftime): Handle very large width
4586 specifications for numeric values correctly. Improve checks for
4588 * time/Makefile (tests): Add tst-strftime.
4589 * time/tst-strftime.c: New file.
4591 2003-01-18 Ulrich Drepper <drepper@redhat.com>
4593 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
4594 _nss_nis_sethostent. Work around the different prototypes.
4595 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
4596 _nss_nis_setgrent. Work around the different prototypes.
4597 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
4598 function. Split out from _nss_nis_endetherent.
4599 (internal_nis_setetherent): Use internal_nis_endetherent instead of
4600 duplicating the code.
4601 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
4602 of _nss_nis_setaliasent.
4603 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
4604 internal_nis_endservent code, don't duplicate it.
4606 * inet/rexec.c (rexec_af): Protect socket operations with
4607 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
4608 * inet/rcmd.c (rcmd_af): Likewise.
4610 2003-01-17 Roland McGrath <roland@redhat.com>
4612 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
4613 Add test of value 0.80190127184058835.
4615 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
4617 2003-01-17 Richard Henderson <rth@redhat.com>
4619 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
4620 relocs for class PLT.
4621 * sysdeps/alpha/libc-tls.c: New file.
4622 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
4623 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
4625 2003-01-17 Jakub Jelinek <jakub@redhat.com>
4627 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
4628 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
4631 2003-01-17 Andreas Jaeger <aj@suse.de>
4633 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
4635 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
4637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
4638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
4639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
4640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
4641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
4642 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
4643 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
4646 2003-01-16 Ulrich Drepper <drepper@redhat.com>
4648 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
4649 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
4652 * sysdeps/generic/sysconf.c: Unconditionally implement
4653 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
4654 * sysdeps/posix/sysconf.c: Likewise.
4656 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4658 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
4659 set *err to the returned error, not to REG_ESPACE unconditionally.
4660 (build_word_op): Likewise.
4661 * posix/Makefile (tests): Add bug-regex16.
4662 * posix/bug-regex16.c: New test.
4664 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4666 * elf/dl-load.c (_dl_map_object_from_fd): Use
4667 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
4668 been already initialized.
4670 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
4672 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
4674 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4676 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
4677 allocated too. Reported by Al Viro <aviro@redhat.com>.
4679 2003-01-16 Roland McGrath <roland@redhat.com>
4681 Tweak merged .abilist file format to merge duplicate symbols in
4682 different sets into multi-version stanzas with new "| SET regexp..."
4683 header continuation lines.
4684 * scripts/merge-abilist.awk: Rewritten for new format.
4685 * scripts/extract-abilist.awk: Likewise.
4687 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4689 * nscd/connections.c (nscd_run): Remove bogus return which isn't
4690 necessary with gcc 3.2+.
4691 (nscd_init): Don't use error() to print message, use dbg_log.
4693 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
4694 expected size into state.
4695 (UNPACK_BYTES): Do the reverse.
4696 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
4697 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
4698 Reported by Al Viro <aviro@redhat.com>.
4700 * stdio-common/Makefile (tests): Add bug14.
4701 * stdio-common/bug14.c: New file.
4703 * stdio-common/vfscanf.c: When recognizing multibyte characters in
4704 string reset the byte counter after mbrtowc reported it is not a
4705 partial character. Reported by Al Viro <aviro@redhat.com>.
4707 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
4709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
4710 sysdep-cancel.h, not sysdep.h.
4712 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4714 * nscd/connections.c (nscd_run): Protect accept call with
4717 2003-01-15 Andreas Schwab <schwab@suse.de>
4719 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4720 (common-generated): Add s-proto-bp.d.
4721 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
4723 * sysdeps/unix/s-proto-bp.S: New file.
4724 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
4725 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
4726 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
4728 2003-01-15 Roland McGrath <roland@redhat.com>
4730 * Makerules: Use -include for tls.make, suppresses warning.
4731 Move gen-as-const-headers rules up so before-compile is set in time.
4732 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
4734 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4736 * nscd/nscd.c (main): Make code to close all file descriptors
4737 faster and more robust.
4739 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
4740 request with one writev call. Protect all read calls with
4742 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4743 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4745 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
4746 Protect writev calls with TEMP_FAILURE_RETRY.
4747 * nscd/grpcache.c: Likewise.
4748 * nscd/pwdcache.c: Likewise.
4750 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
4751 IPv6 address in debug output.
4753 2003-01-14 Roland McGrath <roland@redhat.com>
4755 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
4756 $(objpfx) directories, and get rid of vpath directives. The previous
4757 arrangement resulted in files being written to the source directories
4758 when run in a clean build. Find all .abilist files in $(..)abilist/.
4759 (update-abi-%): Likewise.
4760 (generated): Don't add .symlist files, they'll be intermediates.
4762 * sysdeps/generic/init-first.c: Add a comment.
4764 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
4766 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
4767 #includes and expressions.
4769 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
4770 config list when it already contains cpu-.*-os.* without / part.
4772 * Makerules (sed-remove-dotdot): New variable.
4773 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
4774 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
4775 (check-abi-config): New variable, append /tls or /notls to the tuple.
4776 (check-abi-%): Use that for -v config value.
4777 Find .abilist files in abilist/libfoo.abilist, not in subdir.
4778 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
4780 2003-01-14 Ulrich Drepper <drepper@redhat.com>
4782 * manual/install.texi: Correct description of header preparation for
4783 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
4785 2003-01-14 Guido Guenther <agx@sigxcpu.org>
4787 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
4788 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4789 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
4791 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
4793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4794 (INTERNAL_SYSCALL): Make use of ERR parameter.
4795 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4796 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4797 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
4800 2003-01-14 Ulrich Drepper <drepper@redhat.com>
4802 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
4804 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
4806 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
4807 Fix entry for bit 31.
4809 * iconvdata/Makefile: Add rules to build IBM866NAV.
4810 * iconvdata/ibm866nav.c: New file.
4811 * iconvdata/tst-tables.sh: Add IBM866NAV.
4812 * iconvdata/gconv-modules: Add entries for IBM866NAV.
4814 2003-01-13 Ulrich Drepper <drepper@redhat.com>
4816 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
4817 to test void* parameters.
4819 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
4820 source pointer before dereferencing.
4821 (__STRING_SMALLL_GET32): Likewise.
4822 (__memset_gc): Add missing parenthesis around macro arguments.
4823 Patch by Denis Zaitsev <zzz@cd-club.ru>.
4825 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
4826 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4828 2003-01-14 Jakub Jelinek <jakub@redhat.com>
4830 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
4833 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
4835 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
4836 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
4838 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
4840 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
4842 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
4844 (PSEUDO): ... to here.
4845 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
4847 (PSEUDO): ... to here.
4849 2003-01-13 Ulrich Drepper <drepper@redhat.com>
4851 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
4852 dirent64 instead of struct dirent for dirent. Call readdir64
4855 * locale/programs/locfile.c (siblings_uncached): Use struct
4856 dirent64 instead of struct dirent for other_dentry. Call
4857 readdir64 instead of readdir.
4859 * elf/ldconfig.c (direntry): Change type to struct dirent64.
4860 (search_dir): Use readdir64 instead of readdir.
4861 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
4863 2003-01-12 Roland McGrath <roland@redhat.com>
4865 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
4866 not strtol. The former is usable in ld.so, the latter not.
4868 * include/fcntl.h: Declare __libc_creat.
4870 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
4871 libhurduser-link.so-no-z-defs): New variables.
4873 * malloc/malloc.c: Revert last change.
4874 * malloc/malloc.h (_int_*): Move these decls to ...
4875 * include/malloc.h: ... here. Add attribute_hidden.
4876 (_int_valloc): Declare it too.
4878 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4880 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
4881 search for removed searchlist. Reported by Roland McGrath.
4883 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
4884 given as start file.
4886 * io/ftw.c (ftw_startup): Use correct name in check for symlink
4887 without existing target. Patch by Jim Meyering.
4889 * Makerules (build-shlib-helper): Don't use -z defs linker option
4890 if no-z-defs is defined either.
4892 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4894 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
4897 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4899 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
4900 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4902 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4904 * io/ftwtest-sh: Add test case for relative path with /. at the end.
4906 2003-01-12 Jim Meyering <jim@meyering.net>
4908 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
4909 use the basename if we've already chdir'd into its parent directory.
4911 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4913 * io/ftw.c (process_entry): Use relative path when using chdir()
4914 to change directory after call to ftw_dir.
4915 * io/ftwtest-sh: Add test for relative path argument to nftw()
4916 with FTW_CHDIR option.
4918 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4920 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4922 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
4924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4925 (INTERNAL_SYSCALL): Make use of ERR parameter.
4926 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4927 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4928 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
4931 2002-01-09 Richard Henderson <rth@redhat.com>
4933 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
4934 DTPREL64 and TPREL64 without loadbase applied.
4936 2002-01-09 Richard Henderson <rth@redhat.com>
4938 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
4941 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
4942 * sysdeps/unix/alpha/sysdep.h: ... here.
4943 (PSEUDO_LOADGP): Remove.
4944 (PSEUDO_PROLOGUE): Load GP in non-pic case.
4945 (SYSCALL_ERROR_LABEL): New.
4946 (PSEUDO): Use it in error branch.
4947 (PSEUDO_END): Add $syscall_error label.
4949 2003-01-12 Andreas Jaeger <aj@suse.de>
4951 * math/bits/mathcalls.h: Round is a const function.
4953 2003-01-11 Jim Meyering <jim@meyering.net>
4955 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
4956 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
4957 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
4958 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
4959 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
4960 [!_LIBC] (internal_function, dirent64, MAX): Define.
4961 (__set_errno): Define if not already defined.
4962 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
4963 the basename, not the entire file name.
4964 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
4965 the basename, not the entire file name.
4967 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4969 * string/tester.c (test_strcpy): Disable last added strcpy until
4972 2003-01-11 Philip Blundell <philb@gnu.org>
4974 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
4976 2003-01-11 Andreas Schwab <schwab@suse.de>
4978 * Makerules: Add vpath for %.dynsym and %.so so that the
4979 implicit rule chaining for check-abi works.
4981 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4983 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4986 2003-01-11 Jakub Jelinek <jakub@redhat.com>
4988 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
4989 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
4991 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
4992 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
4993 Ensure libc.so in DT_NEEDED.
4994 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
4995 CHECK_STATIC_TLS before l_tls_offset use.
4996 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
4998 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4999 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
5000 Allocate TLS_PRE_TCB_SIZE bytes below result.
5001 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
5002 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
5003 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
5004 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
5005 bytes below result and add tcb_offset to memsz.
5006 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
5007 * sysdeps/ia64/dl-machine.h: Include tls.h.
5008 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
5010 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
5011 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
5012 * sysdeps/ia64/libc-tls.c: New file.
5014 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
5016 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
5017 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
5018 Fix type. Move definition out of #if.
5019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
5020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
5021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
5022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
5023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
5024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
5026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
5027 ftruncate64, pread64, pwrite64, truncate64 entries.
5028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5029 (INLINE_SYSCALL): New version that supports function call like
5030 syscalls. Add __builtin_expect.
5031 (LOADARGS_n): Add argument size safety checks.
5032 (INTERNAL_SYSCALL): New Macro.
5033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
5034 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
5035 redefinition of elf_fpreg_t and elf_fpregset_t.
5037 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5039 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
5040 simplify test for unloading. If loader of a DSO is unloaded do not
5041 use its scope anymore. Fall back to own scope and adjust opencounts.
5042 Fix several comments.
5043 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
5044 the l_searchlist, not only for l_initfini.
5046 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
5047 dependencies if objects cannot be removed. Remove object with the
5048 definition as not unloadable if necessary.
5050 * elf/reldep6.c: Create relocation dependency before closing the first
5053 2003-01-10 Guido Günther <agx@sigxcpu.org>
5055 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
5056 * sysdeps/unix/mips/brk.S: Likewise.
5057 * sysdeps/unix/mips/pipe.S: Likewise.
5059 2003-01-10 Andreas Schwab <schwab@suse.de>
5061 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
5063 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
5064 are known to have the vfork syscall.
5066 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
5068 * sysdeps/unix/sysv/linux/kernel-features.h
5069 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
5070 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
5071 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
5073 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5075 * elf/Makefile: Add rules to build and run reldep9 test.
5076 * elf/reldep9.c: New file.
5077 * elf/reldep9mod1.c: New file.
5078 * elf/reldep9mod2.c: New file.
5079 * elf/reldep9mod3.c: New file.
5081 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5083 * elf/Makefile: Add rules to build and run nodelete2 test.
5084 * elf/nodelete2.c: New file.
5085 * elf/nodel2mod1.c: New file.
5086 * elf/nodel2mod2.c: New file.
5087 * elf/nodel2mod3.c: New file.
5089 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5091 * posix/test-vfork.c (noop): Add __attribute_noinline__.
5092 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
5093 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
5095 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
5096 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
5097 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
5098 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
5099 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
5101 2003-01-09 Andreas Schwab <schwab@suse.de>
5103 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
5105 2003-01-08 Ulrich Drepper <drepper@redhat.com>
5107 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
5108 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5110 (INTERNAL_SYSCALL_DECL): Define.
5112 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5114 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
5115 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5117 (INTERNAL_SYSCALL_DECL): Define.
5118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5119 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5120 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5121 (INLINE_SYSCALL): Adjust.
5122 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5123 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5124 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5125 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5126 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
5127 add err argument to INTERNAL_SYSCALL* macros.
5128 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
5129 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
5130 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
5131 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
5133 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
5134 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
5135 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
5137 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5139 Unify symbols in user namespace exported by libc.so and libc.a.
5140 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
5141 argp_fmtstream_free, and argp_fmtstream_printf.
5142 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
5143 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
5144 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
5145 argp_fmtstream_point.
5146 * gmon/gmon.c: Don't define write_profiling.
5147 * libio/genops.c: Don't define _cleanup.
5149 * intl/explodename.c (_nl_find_language.c): Mark as static.
5150 * intl/loadinfo.h: Remove _nl_find_language prototype.
5152 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
5153 * libio/libioP.h: Remove declaration.
5155 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
5156 * libio/libioP.h: Remove declaration.
5158 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
5159 * sysdeps/generic/framestate.c: Define STATIC before including
5162 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
5164 2003-01-06 Philip Blundell <philb@gnu.org>
5166 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
5167 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
5169 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
5171 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
5172 (SYSCALL_ERROR): New.
5173 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
5175 (INTERNAL_SYSCALL): Define.
5176 (INLINE_SYSCALL): Use it.
5177 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5178 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
5179 SYSCALL_ERROR in place of __syscall_error.
5181 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5183 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5184 __bswap_32, __bswap_64): Put x into temporary variable
5186 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5188 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5189 __bswap_32, __bswap_64): Put x into temporary variable
5191 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5193 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
5196 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5198 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
5201 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5203 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
5204 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
5206 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5208 * math/libm-test.inc (significand_test): New function.
5211 2003-01-06 Roland McGrath <roland@redhat.com>
5213 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
5215 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
5216 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
5217 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
5219 * string/tester.c (test_strcpy): Add test with `void *' arguments.
5221 2003-01-06 Ulrich Drepper <drepper@redhat.com>
5223 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
5224 return significand and not the exponent.
5225 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5227 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
5228 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
5230 * malloc/malloc.c: Mark all _int_* functions as static.
5232 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5234 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
5235 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
5237 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5239 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5241 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
5242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
5244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
5245 ftruncate64, truncate64, pread64 and pwrite64 entries.
5246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5247 (INLINE_SYSCALL): Add __builtin_expect.
5248 (LOADARGS_n): Add argument size safety checks.
5249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
5250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
5251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
5252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
5253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
5254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
5256 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5258 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
5259 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
5260 (LIBC_CANCEL_HANDLED): Add.
5262 * sysdeps/unix/sysv/linux/alpha/sysdep.h
5263 (inline_syscall_r0_constraint): Rename to...
5264 (inline_syscall_r0_out_constraint): ... this. Add =.
5265 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
5267 2003-01-06 Andreas Schwab <schwab@suse.de>
5269 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
5270 sure this is always inlined.
5271 (elf_machine_rela): Likewise.
5273 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
5275 2003-01-04 Roland McGrath <roland@redhat.com>
5277 * Makeconfig (+mkdep): Add -MP flag.
5278 Suggested by Art Haas <ahaas@airmail.net>.
5280 2003-01-05 Andreas Schwab <schwab@suse.de>
5282 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
5284 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5286 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
5287 SYSCALL_ERROR_HANDLER.
5288 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
5289 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
5290 Add support for cancellation handling.
5291 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
5292 SYSCALL_ERROR_HANDLER.
5293 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
5294 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
5295 Add support for cancellation handling.
5296 (SYSCALL_ERROR_HANDLER): Define PIC variants.
5298 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
5301 __syscall_pread64 and __syscall_pwrite64 cancelable.
5302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5303 (INTERNAL_SYSCALL): New macro.
5304 (LOADARGS_0, LOADARGS_1): Fix.
5306 2003-01-05 Ulrich Drepper <drepper@redhat.com>
5308 * Makerules (build-shlip-helper): Unless told otherwise, add
5309 -Wl,-z,defs to linker command line.
5310 * rt/Makefile (librt.so): Link with ld.so.
5311 * dlfcn/Makefile (libdl.so): Likewise.
5313 2003-01-05 Jakub Jelinek <jakub@redhat.com>
5315 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5316 cancellation handling.
5317 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5318 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5320 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5322 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
5323 order of parameters passed to kill.
5325 2003-01-04 Andreas Schwab <schwab@suse.de>
5327 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
5329 2002-01-03 Paul Eggert <eggert@twinsun.com>
5331 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
5332 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
5333 when compiling Bison 1.875's `bitset bset = obstack_alloc
5334 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
5336 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5338 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
5340 Correct reference counter in case SIGQUIT handler installation failed.
5342 2003-01-03 Ulrich Drepper <drepper@redhat.com>
5344 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
5345 Define using _Pragma(weak ...).
5347 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
5349 * resolv/res_libc.c: Provide declaration for __res_init_weak and
5350 reorder declarations.
5352 2003-01-03 Art Haas <ahaas@airmail.net>
5354 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
5355 initializer syntax to C99.
5356 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
5357 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
5358 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
5359 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
5360 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
5361 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
5362 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
5363 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
5364 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
5365 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
5366 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
5367 * localedata/tests-mbwc/dat_mblen.c: Likewise.
5368 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
5369 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
5370 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
5371 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
5372 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
5373 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
5374 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
5375 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
5376 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
5377 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
5378 * localedata/tests-mbwc/dat_towlower.c: Likewise.
5379 * localedata/tests-mbwc/dat_towupper.c: Likewise.
5380 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
5381 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
5382 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
5383 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
5384 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
5385 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
5386 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
5387 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
5388 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
5389 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
5390 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
5391 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
5392 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
5393 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
5394 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
5395 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
5396 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
5397 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
5398 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
5399 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
5400 * localedata/tests-mbwc/dat_wctob.c: Likewise.
5401 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
5402 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
5403 * localedata/tests-mbwc/dat_wctype.c: Likewise.
5404 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
5406 2003-01-03 Richard Henderson <rth@redhat.com>
5408 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
5409 (inline_syscall_r0_constraint): New.
5410 (inline_syscall[0-6]): Use them.
5412 2003-01-03 Jakub Jelinek <jakub@redhat.com>
5414 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
5415 Add rtld_hidden_proto.
5416 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
5417 (_dl_allocate_tls): Likewise. Remove INTDEF.
5419 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5421 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
5422 Morita <toshiyasu.morita@hsa.hitachi.com>.
5423 * sysdeps/sh/memcpy.S: Likewise.
5425 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5427 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
5428 any, but unify the test.
5430 2003-01-02 Jakub Jelinek <jakub@redhat.com>
5432 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
5433 sigaction): Protect weak_alias and libc_hidden_weak with
5434 #ifndef LIBC_SIGACTION.
5435 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
5436 sigaction): Likewise.
5437 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
5438 sigaction): Likewise.
5439 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
5440 sigaction): Likewise.
5441 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
5442 sigaction): Likewise.
5443 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
5444 sigaction): Likewise.
5445 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
5446 sigaction): Likewise.
5447 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
5448 sigaction): Likewise. Remove SIGCANCEL handling here.
5449 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
5452 2003-01-02 Art Haas <ahaas@airmail.net>
5454 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
5456 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5458 * posix/getconf.c: Update copyright year.
5459 * nss/getent.c: Likewise.
5460 * nscd/nscd_nischeck.c: Likewise.
5461 * iconv/iconvconfig.c: Likewise.
5462 * iconv/iconv_prog.c: Likewise.
5463 * elf/ldconfig.c: Likewise.
5464 * catgets/gencat.c: Likewise.
5465 * csu/version.c: Likewise.
5466 * elf/ldd.bash.in: Likewise.
5467 * elf/sprof.c (print_version): Likewise.
5468 * locale/programs/locale.c: Likewise.
5469 * locale/programs/localedef.c: Likewise.
5470 * nscd/nscd.c (print_version): Likewise.
5471 * debug/xtrace.sh: Likewise.
5472 * malloc/memusage.sh: Likewise.
5473 * malloc/mtrace.pl: Likewise.
5475 2003-01-01 Jakub Jelinek <jakub@redhat.com>
5477 * io/sys/stat.h: Include time.h with __need_timespec even if
5478 __USE_MISC is defined but __USE_XOPEN is not.
5480 2003-01-01 Andreas Jaeger <aj@suse.de>
5482 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
5483 type to avoid strict aliasing problem.
5484 (_nss_dns_gethostbyname2_r): Likewise.
5485 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5486 (_nss_dns_getnetbyname_r): Likewise.
5487 * resolv/gethnamaddr.c (_gethtent): Likewise.
5488 (gethostbyname2): Likewise.
5490 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5492 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
5493 to avoid using the exported symbols. Define aliases with the
5494 original names separately.
5496 * include/time.h: Add libc_hidden_proto for __strftime_l.
5497 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
5498 * time/strftime.c: Always use libc_hidden_def if _LIBC.
5500 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
5501 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
5503 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
5506 * csu/Makefile (routines): Add dso_handle.
5507 * csu/dso_handle.c: New file.
5509 2002-12-31 Roland McGrath <roland@redhat.com>
5511 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
5512 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
5513 (S-CPPFLAGS): Add -DASSEMBLER here instead.
5514 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
5516 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5518 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
5521 2002-12-31 Andreas Jaeger <aj@suse.de>
5523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
5525 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
5526 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
5527 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
5529 * sysdeps/unix/sysv/linux/kernel_stat.h
5530 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
5532 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
5533 __unused[1-3] since they're needed by some platforms. Handle
5534 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
5536 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
5537 for structs stat and stat64.
5538 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5539 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5540 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5541 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5543 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
5545 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
5546 nsec resolution changes.
5547 (xstat64_conv): Likewise.
5548 (xstat32_conv): Likewise.
5550 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
5553 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
5554 structs stat and stat64.
5556 * time/time.h (__timespec_defined): Define for __USE_MISC.
5558 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5560 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
5561 and __libc_current_sigrtmax.
5563 2002-12-31 Jakub Jelinek <jakub@redhat.com>
5565 * include/errno.h (__errno_location): Add prototype.
5566 Use libc_hidden_proto unconditionally.
5567 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
5569 * include/resolv.h (__res_state): Likewise.
5571 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
5572 * include/sys/socket.h (accept): Add libc_hidden_proto.
5573 * include/errno.h (__errno_location): Likewise.
5574 * include/netdb.h (__h_errno_location): Likewise.
5575 * include/resolv.h (__res_state): Likewise.
5576 * include/unistd.h (__lseek): Likewise.
5577 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
5578 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
5579 * sysdeps/generic/res-state.c (__res_state): Likewise.
5580 * sysdeps/generic/accept.c (accept): Likewise.
5581 * sysdeps/generic/lseek.c (__lseek): Likewise.
5582 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
5583 __libc_current_sigrtmax): Likewise.
5584 * sysdeps/mach/hurd/accept.c (accept): Likewise.
5585 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
5586 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
5587 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
5588 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
5589 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
5590 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
5591 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
5592 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
5594 (__GI_accept): New alias to accept.
5595 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
5596 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
5597 New alias to llseek.
5598 (__GI_accept): New alias to accept.
5599 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
5601 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
5603 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
5605 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
5606 strong_alias (name, __GI_name).
5607 * sysdeps/arm/bsd-_setjmp.S : Likewise.
5608 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
5609 * sysdeps/i386/bsd-_setjmp.S : Likewise.
5610 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
5611 * sysdeps/mips/bsd-_setjmp.S : Likewise.
5612 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
5613 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
5614 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
5615 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
5616 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
5617 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
5618 * sysdeps/sh/bsd-_setjmp.S : Likewise.
5619 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
5620 * sysdeps/unix/arm/fork.S : Likewise.
5621 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
5622 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
5623 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
5624 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
5625 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
5626 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
5627 * sysdeps/unix/i386/fork.S : Likewise.
5628 * sysdeps/unix/mips/fork.S : Likewise.
5629 * sysdeps/unix/sparc/fork.S : Likewise.
5630 * sysdeps/unix/sparc/vfork.S : Likewise.
5631 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
5632 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
5633 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
5634 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
5635 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
5636 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
5637 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
5638 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
5639 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
5640 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
5641 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
5642 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
5643 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
5644 * sysdeps/unix/fork.S : Likewise.
5645 * sysdeps/vax/bsd-_setjmp.S : Likewise.
5646 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
5648 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
5651 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5653 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
5654 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
5655 * sysdeps/mach/hurd/fork.c: Likewise.
5656 * sysdeps/unix/sysv/aix/fork.c: Likewise.
5657 * sysdeps/unix/fork.S: Add __GI___fork alias.
5658 * sysdeps/unix/arm/fork.S: Likewise.
5659 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
5660 * sysdeps/unix/i386/fork.S: Likewise.
5661 * sysdeps/unix/mips/fork.S: Likewise.
5662 * sysdeps/unix/sparc/fork.S: Likewise.
5663 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5664 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
5665 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5666 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
5667 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
5668 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
5669 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
5670 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5671 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
5672 * sysdeps/unix/sparc/vfork.S: Likewise.
5673 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
5674 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
5675 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5676 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
5677 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
5678 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
5679 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
5680 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5682 * include/time.h: Add libc_hidden_proto for __nanosleep.
5683 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
5684 * sysdeps/mach/nanosleep.c: Likewise.
5685 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
5686 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
5688 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
5689 _IO_list_unlock, and _IO_list_resetlock.
5690 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
5691 _IO_list_unlock, and _IO_list_resetlock.
5693 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
5694 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5695 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
5696 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5698 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
5699 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
5700 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
5701 __GI___longjmp alias.
5703 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
5704 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
5705 * sysdeps/arm/bsd-_setjmp.S: Likewise.
5706 * sysdeps/generic/bsd-_setjmp.c: Likewise.
5707 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
5708 * sysdeps/i386/bsd-_setjmp.S: Likewise.
5709 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5710 * sysdeps/mips/bsd-_setjmp.S: Likewise.
5711 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5712 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5713 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5714 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
5715 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
5716 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
5717 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
5718 * sysdeps/sh/bsd-_setjmp.S: Likewise.
5719 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5720 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5721 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5722 * sysdeps/vax/bsd-_setjmp.S: Likewise.
5723 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
5725 2002-12-30 Ulrich Drepper <drepper@redhat.com>
5727 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
5729 2002-12-30 Roland McGrath <roland@redhat.com>
5731 * Rules (generated): Target removed.
5732 * mach/Makefile (generated): Define it here instead.
5734 * math/Makefile (generated): Add m_*l and m_*f variants too.
5736 2002-12-30 Ulrich Drepper <drepper@redhat.com>
5738 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
5739 the to-be-deleted objects right away instead of later separately.
5740 The latter fails because the scope data structures of the DSO
5741 might already be gone.
5743 * elf/Makefile: Add rules to build and run reldep8 test.
5744 * elf/reldep8.c: New file.
5745 * elf/reldep8mod1.c: New file.
5746 * elf/reldep8mod2.c: New file.
5747 * elf/reldep8mod3.c: New file.
5748 Contributed by Jakub Jelinek.
5750 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
5752 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5753 checking of return value ENOSYS from getdents64.
5755 2002-12-28 Andreas Schwab <schwab@suse.de>
5757 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
5758 ($(common-objpfx)s-%.d): Generalized from
5759 $(common-objpfx)s-proto.d rule.
5760 (common-generated): Add s-proto-cancel.d.
5761 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
5762 cancellable syscalls.
5763 * sysdeps/unix/s-proto-cancel.S: New file.
5765 2002-12-29 Roland McGrath <roland@redhat.com>
5767 * resolv/res_libc.c: Move _res defn magic after res_init defn
5768 so _res macro is in effect for that code.
5770 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
5771 pattern for prepending $(..) so it doesn't affect $(foo).
5773 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
5775 2002-12-29 Jakub Jelinek <jakub@redhat.com>
5777 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
5780 2002-12-28 Ulrich Drepper <drepper@redhat.com>
5782 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
5784 2002-12-28 Andreas Jaeger <aj@suse.de>
5786 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
5788 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
5790 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5792 * inet/herrno.c (__h_errno_location): Remove.
5793 * inet/Makefile (routines): Add herrno-loc.
5794 * resolv/res_libc.c (__res_state): Remove.
5795 * resolv/Makefile (routines): Add res-state.
5796 * sysdeps/generic/herrno-loc.c: New file.
5797 * sysdeps/generic/res-state.c: New file.
5799 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5801 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5802 Only define if USE_DL_SYSINFO is defined.
5804 2002-12-22 Jakub Jelinek <jakub@redhat.com>
5806 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
5807 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
5808 Define. Patch by Richard Henderson and Jes Sorensen.
5809 (PSEUDO): Remove unnecessary ;;.
5810 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
5811 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
5812 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
5813 if not initializing thread pointer.
5814 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
5815 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
5816 make it weak also if NONTLS_INIT_TP.
5817 * sysdeps/unix/common/pause.c: Handle cancellation.
5818 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
5819 (LOADSYSCALL): Remove.
5820 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5821 (SYSCALL_ERROR_HANDLER): Use it.
5822 (PSEUDO): Don't jump around error handler.
5823 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
5824 jump around error handler.
5825 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
5826 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
5827 to __syscall_error_handler on failure.
5828 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
5829 (LOADSYSCALL): Remove.
5830 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5831 (SYSCALL_ERROR_HANDLER): Use it.
5832 (PSEUDO): Don't jump around error handler.
5833 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
5834 jump around error handler.
5835 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
5836 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
5837 to __syscall_error_handler on failure.
5839 2002-12-27 Roland McGrath <roland@redhat.com>
5841 * scripts/gen-as-const.awk: New file.
5842 * Makefile (distribute): Add it.
5843 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
5844 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
5846 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
5848 2002-12-27 Andreas Schwab <schwab@suse.de>
5850 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
5852 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5854 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
5857 2002-12-27 Andreas Schwab <schwab@suse.de>
5859 * Makerules ($(common-objpfx)%.make): Filter through
5860 $(sed-remove-objpfx).
5862 2002-12-23 Roland McGrath <roland@redhat.com>
5864 * scripts/abilist.awk: Produce a more compact format, divided into
5865 stanzas for each version set, the set name listed only once.
5866 * scripts/extract-abilist.awk: New file.
5867 * scripts/merge-abilist.awk: New file.
5868 * Makerules (check-abi-%, update-abi-%): New pattern rules.
5869 (update-abi, check-abi): New targets.
5870 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
5872 2002-12-19 Roland McGrath <roland@redhat.com>
5874 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
5876 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
5879 2002-12-21 Andreas Schwab <schwab@suse.de>
5881 * elf/check-textrel.c (handle_file): Swap p_type.
5883 2002-12-21 Andreas Schwab <schwab@suse.de>
5885 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
5886 (INLINE_SYSCALL): Use it.
5887 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5888 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5890 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
5891 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5893 2002-12-20 Art Haas <ahaas@airmail.net>
5895 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
5898 2002-12-21 Philip Blundell <philb@gnu.org>
5900 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
5901 top as seventh arg to __libc_start_main.
5902 Reported by paulnash@wildseed.com.
5904 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
5906 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
5907 compatibility cruft when new enough kernel is assumed.
5909 2002-12-20 Jakub Jelinek <jakub@redhat.com>
5911 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
5912 instead of INLINE_SYSCALL.
5914 2002-12-20 Ulrich Drepper <drepper@redhat.com>
5916 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
5919 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
5920 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5921 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
5922 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5923 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5924 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5925 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5926 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5927 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5928 Patch by William Lee Irwin <wli@holomorphy.com>.
5930 2002-12-20 Andreas Schwab <schwab@suse.de>
5932 * locale/programs/ld-measurement.c (measurement_output): Fix
5935 2002-12-20 Ulrich Drepper <drepper@redhat.com>
5937 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
5938 Redefine _IO_flockifle and _IO_funlockfile as inlines.
5940 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
5941 builds add "tls" in the search path.
5942 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
5943 (path_hwcap): Recognize "tls".
5945 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5947 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
5948 __waitpid instead of waitpid.
5950 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
5952 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5953 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5954 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5956 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
5957 information for system calls.
5959 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
5962 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
5964 2002-12-19 Roland McGrath <roland@redhat.com>
5966 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
5967 * iconvdata/ibm922.h: Likewise.
5968 * iconvdata/ibm930.h: Likewise.
5969 * iconvdata/ibm932.h: Likewise.
5970 * iconvdata/ibm933.h: Likewise.
5971 * iconvdata/ibm935.h: Likewise.
5972 * iconvdata/ibm937.h: Likewise.
5973 * iconvdata/ibm939.h: Likewise.
5974 * iconvdata/ibm943.h: Likewise.
5975 * iconvdata/isiri-3342.h: Likewise.
5977 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5979 * test-skeleton.c (main): Make sure correct value is seen as
5980 argv[0] after adjustment of argv, and argc.
5982 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
5983 RTLD_CORRECT_DYNAMIC_WEAK is defined.
5985 2002-12-19 Jakub Jelinek <jakub@redhat.com>
5987 * nscd/connections.c (nscd_run): Shut up warning.
5988 * tst-ungetc.c (assert): Undefined before redefining.
5990 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5992 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
5995 2002-12-17 Art Haas <ahaas@airmail.net>
5997 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
5998 * iconvdata/cp775.h: Likewise.
5999 * iconvdata/ibm1046.h: Likewise.
6000 * iconvdata/ibm1124.h: Likewise.
6001 * iconvdata/ibm1129.h: Likewise.
6002 * iconvdata/ibm1132.h: Likewise.
6003 * iconvdata/ibm1133.h: Likewise.
6004 * iconvdata/ibm1160.h: Likewise.
6005 * iconvdata/ibm1161.h: Likewise.
6006 * iconvdata/ibm1162.h: Likewise.
6007 * iconvdata/ibm1163.h: Likewise.
6008 * iconvdata/ibm1164.h: Likewise.
6010 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6012 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
6013 __ASSUME_CLONE_THREAD_FLAGS is defined.
6014 * sysdeps/unix/sysv/linux/kernel-features.h
6015 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
6017 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6019 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
6021 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6023 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
6025 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6027 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
6029 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6031 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6032 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
6033 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
6036 2002-12-18 Jakub Jelinek <jakub@redhat.com>
6038 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
6040 [libc: GLIBC_PRIVATE]: ...here.
6041 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
6043 [libc: GLIBC_PRIVATE]: ...here.
6045 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6047 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
6048 Use it instead of directly int $0x80.
6049 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
6050 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6051 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6052 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6053 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6054 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
6056 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6058 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
6060 * elf/elf.h (AT_SYSINFO): New define.
6061 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
6064 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6066 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
6068 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
6070 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
6072 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
6074 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
6076 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
6078 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
6079 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
6080 available, otherwise __libc_maybe_call.
6081 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
6082 cancellation handling.
6083 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
6085 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6087 * posix/regcomp.c (free_workarea_compile): Free the new member
6089 (analyze): Initialize ORG_INDICES.
6090 (duplicate_node_closure): Search for a existing node, which is
6091 duplicated from the node ORG_DEST and satisfies the constraint
6092 CONSTRAINT. And use it to avoid inifimite loop.
6093 (search_duplicated_node): New function.
6094 (duplicate_node): Store the index of the original node.
6095 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
6097 * posix/regex_internal.h (re_dfa_t): Add new members.
6099 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6101 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
6103 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6105 * sysdeps/posix/system.c (do_system): Add support for installation
6106 of cancellation handlers.
6107 * sysdeps/unix/sysv/linux/i386/system.c: New file.
6109 * stdlib/Makefile (tests): Add tst-system.
6110 * stdlib/tst-system.c: New file.
6112 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
6113 CENABLE]: Don't lose content of %ebx.
6115 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6117 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
6118 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
6120 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6122 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
6123 fails to return a function pointer don't use it.
6125 2002-12-16 Art Haas <ahaas@airmail.net>
6127 * io/ftw.c: Convert GCC extension initializer syntax to C99.
6128 * iconvdata/iso-ir-165.c: Likewise.
6129 * iconvdata/jis0208.c: Likewise.
6130 * iconvdata/jis0212.c: Likewise.
6132 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6134 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
6135 epoll_ctl, and epoll_wait.
6136 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
6137 epoll_create, epoll_ctl, and epoll_wait.
6138 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
6139 Davide Libenzi <davidel@xmailserver.org>.
6140 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
6141 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6144 2002-12-16 Art Haas <ahaas@airmail.net>
6146 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
6148 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
6149 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
6150 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
6152 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6154 * stdio-common/Makefile (routines): Remove lockfile. Add
6155 flockfile, ftrylockfile, and funlockfile.
6156 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
6157 * sysdeps/generic/flockfile.c: New file.
6158 * sysdeps/generic/ftrylockfile.c: New file.
6159 * sysdeps/generic/funlockfile.c: New file.
6161 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6163 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
6164 macros instead of doing the calls directly.
6165 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
6166 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
6169 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6171 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
6172 * sysdeps/ieee754/bits/nan.h: Likewise.
6174 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
6175 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
6177 2002-12-16 Roland McGrath <roland@redhat.com>
6179 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
6180 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
6181 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
6183 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
6184 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
6186 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
6187 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
6188 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
6189 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
6190 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
6191 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
6192 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
6193 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
6195 2002-12-13 Paul Eggert <eggert@twinsun.com>
6197 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
6198 is now u_int, not int.
6199 (struct XDR.x_handy): Now u_int, not int.
6200 * sunrpc/xdr_mem.c: Include <limits.h>.
6201 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
6202 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
6203 x_handy is now unsigned, not signed.
6204 Do not decrement x_handy if no change is made.
6205 (xdrmem_setpos): Check for int overflow.
6206 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
6207 (xdr_sizeof): Remove cast that is now unnecessary, now that
6208 x_handy is unsigned.
6210 2002-12-15 Art Haas <ahaas@airmail.net>
6212 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
6213 * iconvdata/gap.awk: Likewise.
6214 * iconvdata/gen-8bit-gap-1.sh: Likewise.
6215 * iconvdata/gen-8bit-gap.sh: Likewise.
6216 * locale/C-address.c: Likewise.
6217 * locale/C-collate.c: Likewise.
6218 * locale/C-ctype.c: Likewise.
6219 * locale/C-identification.c: Likewise.
6220 * locale/C-measurement.c: Likewise.
6221 * locale/C-messages.c: Likewise.
6222 * locale/C-monetary.c: Likewise.
6223 * locale/C-name.c: Likewise.
6224 * locale/C-numeric.c: Likewise.
6225 * locale/C-paper.c: Likewise.
6226 * locale/C-telephone.c: Likewise.
6227 * locale/C-time.c: Likewise.
6228 * nscd/connections.c: Likewise.
6229 * nscd/grpcache.c: Likewise.
6230 * nscd/hstcache.c: Likewise.
6231 * nscd/pwdcache.c: Likewise.
6232 * stdio-common/vfprintf.c: Likewise.
6233 * stdlib/random.c: Likewise.
6234 * sysdeps/generic/siglist.c: Likewise.
6235 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6236 * sysdeps/ieee754/bits/nan.h: Likewise.
6237 * sysdeps/posix/sprofil.c: Likewise.
6238 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6239 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6240 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6242 2002-12-15 Roland McGrath <roland@redhat.com>
6244 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
6246 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
6247 <tls.h> here, no need for it.
6248 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6250 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
6251 parameter, not varargs parameter.
6253 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
6254 argument so it's not an unused variable.
6256 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
6257 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
6260 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
6262 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6264 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
6265 original __libc_fcntl code. Just renamed.
6267 2002-12-15 Andreas Schwab <schwab@suse.de>
6269 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
6271 2002-12-14 Olaf Hering <olh@suse.de>
6273 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
6274 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
6276 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6278 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
6280 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
6281 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
6283 * sysdeps/unix/sysv/linux/open64.c: New file.
6285 * sysdeps/generic/pselect.c: Add support for cancellation handling.
6286 * sysdeps/posix/open64.c: Likewise.
6287 * sysdeps/posix/sigpause.c: Likewise.
6288 * sysdeps/posix/sigwait.c: Likewise.
6289 * sysdeps/posix/system.c: Likewise.
6290 * sysdeps/posix/waitid.c: Likewise.
6291 * sysdeps/unix/sysv/linux/accept.S: Likewise.
6292 * sysdeps/unix/sysv/linux/connect.S: Likewise.
6293 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6294 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6295 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
6296 * sysdeps/unix/sysv/linux/poll.c: Likewise.
6297 * sysdeps/unix/sysv/linux/pread.c: Likewise.
6298 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6299 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6300 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6301 * sysdeps/unix/sysv/linux/readv.c: Likewise.
6302 * sysdeps/unix/sysv/linux/recv.S: Likewise.
6303 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
6304 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
6305 * sysdeps/unix/sysv/linux/send.S: Likewise.
6306 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
6307 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
6308 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6309 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6310 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6311 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6312 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
6313 * sysdeps/unix/sysv/linux/wait.c: Likewise.
6314 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6315 * sysdeps/unix/sysv/linux/writev.c: Likewise.
6316 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6317 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6319 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6321 * sysdeps/generic/sysdep-cancel.h: New file.
6322 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
6324 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
6325 recvmsg, send, sendmsg, sendto): Make cancelable.
6326 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
6327 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
6328 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6329 sendto, osf_select): Likewise.
6330 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
6331 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6332 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
6333 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6335 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
6336 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6337 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
6338 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6340 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
6341 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6342 sendto, select): Likewise.
6343 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
6344 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
6346 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
6347 select, fcntl): Likewise.
6348 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
6349 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
6350 read, readv, select, sigsuspend, write, writev): Likewise.
6352 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6354 * dirent/bug-readdir1.c: Include unistd.h.
6356 2002-12-13 Jakub Jelinek <jakub@redhat.com>
6358 * locale/programs/locale.c: Include locarchive.h.
6359 (ARCHIVE_NAME): Define.
6360 (write_archive_locales): New function.
6361 (write_locales): Use it. Ensure the same locale is not printed
6362 multiple times in verbose mode.
6363 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
6364 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
6366 (struct nameent): New type.
6367 (nameentcmp): New function.
6369 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6371 * posix/regex_internal.c (re_string_context_at): Guard wide char
6372 code with #ifdef RE_ENABLE_I18N.
6374 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
6376 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
6378 2002-12-13 Roland McGrath <roland@redhat.com>
6380 * posix/bug-regex15.c: New file.
6381 * posix/Makefile (tests): Add it.
6383 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
6384 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
6386 2002-12-13 Ulrich Drepper <drepper@redhat.com>
6388 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
6390 * misc/syslog.c (log_cleanup): Don't use parameter in
6391 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
6392 pass NULL instead of a pointer to syslog_lock.
6394 2002-12-12 Ulrich Drepper <drepper@redhat.com>
6396 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
6397 linker map for all iconv modules.
6398 (distribute): Add gconv.map.
6399 * iconvdata/gconv.map: New file.
6401 * elf/Makefile: Also check all iconv modules for text relocations.
6403 * stdlib/Makefile: Remove code to automatically import GMP.
6405 * elf/Makefile (tests): Add rules to build and run check-textrel.
6406 * elf/check-textrel.c: New file.
6408 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
6411 2002-12-11 Jakub Jelinek <jakub@redhat.com>
6413 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
6416 2002-04-30 Bruno Haible <bruno@clisp.org>
6418 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
6419 the encoding if it already has slashes.
6420 Reported by Perry Rapp <prapp@erols.com>.
6422 2002-12-11 Roland McGrath <roland@redhat.com>
6424 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
6425 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
6426 Turn off PIC for compiling this file.
6428 2002-12-11 Ulrich Drepper <drepper@redhat.com>
6430 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
6431 definitions. Not needed.
6432 [_LIBC]: Use definitions from libc-lock.h instead of referencing
6433 pthread routines directly.
6434 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
6436 (arena_get2): Don't look at return value of mutex_lock.
6438 2002-12-11 Roland McGrath <roland@redhat.com>
6440 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
6441 elf-init.o instead of compiling a PIC version.
6443 2002-12-11 Bruno Haible <bruno@clisp.org>
6445 * intl/gettext.h: Renamed to ...
6446 * intl/gmo.h: ... here.
6447 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
6448 * intl/gettextP.h: Update.
6449 * intl/loadmsgcat.c: Update.
6451 * intl/gettextP.h (PARAMS): Make more portable.
6452 (attribute_hidden): Define as empty macro if not already defined.
6453 * intl/hash-string.h (PARAMS): Make more portable.
6454 * intl/loadinfo.h (PARAMS): Likewise.
6455 * intl/plural-exp.h (PARAMS): Likewise.
6456 (attribute_hidden): Move definition near the definition of
6459 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
6460 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
6462 2002-07-13 Bruno Haible <bruno@clisp.org>
6464 * intl/dcigettext.c (freea): New macro.
6465 (FREE_BLOCKS): Free also the registered blocks.
6466 (DCIGETTEXT): Free the 'search' variable.
6467 Reported by Andreas Fischer <a.fischer@asentics.de>.
6469 2002-04-27 Bruno Haible <bruno@clisp.org>
6471 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
6472 * intl/dcigettext.c: Likewise.
6473 * intl/dcgettext.c: Likewise.
6474 * intl/dgettext.c: Likewise.
6475 * intl/gettext.c: Likewise.
6476 * intl/dcngettext.c: Likewise.
6477 * intl/dngettext.c: Likewise.
6478 * intl/ngettext.c: Likewise.
6479 * intl/textdomain.c: Likewise.
6480 * intl/bindtextdom.c: Likewise.
6481 * intl/plural-exp.h: Likewise.
6483 2002-01-02 Bruno Haible <bruno@clisp.org>
6485 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
6487 2001-04-30 Bruno Haible <bruno@clisp.org>
6489 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
6490 default macro definitions. Needed for mingw32.
6492 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6494 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
6495 __builtin_constant_p to macro parameter.
6497 * sysdeps/generic/sigpause.c: Define all functions as weak.
6498 * sysdeps/posix/sigpause.c: Likewise.
6500 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
6503 2002-12-10 Jakub Jelinek <jakub@redhat.com>
6505 * elf/tst-array1.c (preinit_array, init_array, fini_array):
6506 Explicitly align the array to sizeof (void *).
6507 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
6509 * include/libc-symbols.h: Fix a comment typo.
6511 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
6512 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
6514 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
6516 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
6517 (__libc_sigsuspend): Likewise.
6518 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
6519 (__libc_sigsuspend): Likewise.
6520 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
6521 (creat): New weak alias.
6523 2002-12-10 Roland McGrath <roland@redhat.com>
6525 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
6526 contributes a manual chapter.
6527 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
6530 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
6531 and move contents to ...
6532 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
6533 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
6534 it instead of duplicating its contents.
6535 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
6537 2002-12-09 Jakub Jelinek <jakub@redhat.com>
6539 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
6541 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
6543 (EXTRA_LD_ENVVARS): Use it.
6544 (DL_OSVERSION_INIT): Define.
6545 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
6547 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
6549 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6551 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
6553 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
6554 call. It is not allowed to destroy pthread mutexes which are
6555 still in use even though it is safe for our implementations. If
6556 somebody still uses the descriptor it is a bug.
6558 2002-12-09 Richard Henderson <rth@redhat.com>
6560 * csu/abi-note.S: Use .p2align, not .align.
6562 2002-12-09 Ulrich Drepper <drepper@redhat.com>
6564 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
6565 __libc_select aliases.
6567 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
6570 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
6572 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
6574 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
6576 * sysdeps/unix/syscalls.list: Define __libc_select alias.
6578 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
6580 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
6581 __libc___xpg_sigpause aliases.
6583 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
6585 * misc/error.c: Remove use of USE_IN_LIBIO.
6587 2002-12-08 Roland McGrath <roland@redhat.com>
6589 * elf/Makefile (tests): Uncomment tst-array[123].
6590 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
6591 * csu/elf-init.c: New file.
6592 * csu/Makefile (routines, static-only-routines): Add elf-init.
6593 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
6594 and __libc_csu_fini in place of _fini.
6595 * sysdeps/arm/elf/start.S: Likewise.
6596 * sysdeps/cris/elf/start.S: Likewise.
6597 * sysdeps/hppa/elf/start.S: Likewise.
6598 * sysdeps/i386/elf/start.S: Likewise.
6599 * sysdeps/ia64/elf/start.S: Likewise.
6600 * sysdeps/m68k/elf/start.S: Likewise.
6601 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
6602 * sysdeps/mips/elf/start.S: Likewise.
6603 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6604 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
6605 * sysdeps/s390/s390-32/elf/start.S: Likewise.
6606 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6607 * sysdeps/sh/elf/start.S: Likewise.
6608 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6609 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6610 * sysdeps/x86_64/elf/start.S: Likewise.
6612 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
6613 struct containing function ptr and value, free it.
6614 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
6615 It's not safe to let the new thread use the SIGEV pointer.
6617 2001-10-20 Paul Eggert <eggert@twinsun.com>
6619 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
6620 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
6621 Use strerror_r that is only a macro, even if it is not a function.
6622 (strerror): Check for HAVE_DECL_STRERROR before declaring.
6623 (private_strerror): Use prototypes, not old-style function definition.
6624 (print_errno_message): New function.
6625 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
6627 (error_tail, error, error_at_line): Use it.
6629 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
6631 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
6633 2002-12-08 Ulrich Drepper <drepper@redhat.com>
6635 * scripts/output-format.sed: Fix bug in one of the s expressions
6636 which used / for one too many things.
6638 * include/unistd.h: Declare __libc_close.
6640 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6642 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
6644 2002-12-07 Roland McGrath <roland@redhat.com>
6646 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
6647 from 2002-12-06, but remove unnecessary memset call without removing
6648 necessary copy of initialization image.
6650 * Makerules ($(common-objpfx)format.lds): New target.
6651 (common-generated): Add it.
6652 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
6653 * scripts/output-format.sed: New file.
6654 * Makefile (distribute): Add it.
6656 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6658 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
6659 Reported by Art Haas <ahaas@airmail.net>.
6661 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
6663 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
6665 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6667 * string/test-strncpy.c (do_random_tests): Improve test coverage.
6669 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6671 * test-skeleton.c (timeout_handler): Allow expected signal to be
6674 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
6676 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
6678 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6680 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
6681 (SYSCALL_ERROR_HANDLER): Fix a pasto.
6682 Reported by Jeff Bailey <jbailey@nisa.net>.
6684 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6686 * sysdeps/generic/libc-tls.c: Undo last patch.
6688 * include/wctype.h: Define iswalnum with libc_hidden_proto.
6690 * include/signal.h: Define raise with libc_hidden_proto.
6692 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
6693 __execve instead of snprintf and execve.
6695 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
6698 2002-12-06 Jakub Jelinek <jakub@redhat.com>
6700 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
6701 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
6703 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6705 * misc/syslog.c (log_cleanup): New function.
6706 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
6707 (closelog): Likewise.
6709 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
6710 * elf/dl-iteratephdr.c: Likewise.
6711 * elf/dl-lookup.c: Likewise.
6712 * elf/dl-misc.c: Likewise.
6713 * elf/dl-open.c: Likewise.
6714 * elf/dl-support.c: Likewise.
6715 * elf/rtld.c: Likewise.
6716 * sysdeps/generic/ldsodefs.h: Likewise.
6717 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
6718 * sysdeps/mach/bits/libc-lock.h: Likewise.
6719 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6721 2002-12-06 Roland McGrath <roland@redhat.com>
6723 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
6725 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
6726 (malloc_starter, memalign_starter, free_starter): Don't define these.
6727 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
6728 Don't declare them either.
6729 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
6730 __pthread_initialize, so no need to set hooks to *_starter.
6731 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
6732 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
6733 (__libc_malloc_pthread_startup): New function.
6734 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
6736 * malloc/hooks.c (memalign_starter): New function.
6737 * malloc/malloc.c: Declare it.
6738 * malloc/arena.c (save_memalign_hook): New variable.
6739 (ptmalloc_init): Set __memalign_hook to memalign_starter.
6741 * elf/dl-minimal.c (free): Clear the memory.
6742 (calloc): Just call malloc, knowing all memory it returns is cleared.
6744 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
6745 malloc and memset; calloc can avoid the zeroing when redundant.
6746 (_dl_tls_setup): Likewise.
6747 * elf/dl-load.c (decompose_rpath): Likewise.
6748 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
6749 call, since memory from sbrk at startup is already zero.
6751 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
6752 error string for failure, null for success. Update callers.
6753 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
6754 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6756 2002-12-05 Jakub Jelinek <jakub@redhat.com>
6758 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
6760 (readahead): Change args to i:iii.
6761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
6762 Change args to i:iii.
6763 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
6766 2002-12-05 Roland McGrath <roland@redhat.com>
6768 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
6769 call all functions rather than none.
6770 Reported by Mark P. Mitchell <mark@codesourcery.com>.
6772 2002-12-04 Roland McGrath <roland@redhat.com>
6774 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
6775 on _nl_current_LC_* variables.
6777 2002-12-05 Ulrich Drepper <drepper@redhat.com>
6779 * dirent/bug-readdir1.c (main): Don't call closedir, just close
6780 the file descriptor. This is testing what the bug report was about.
6782 2002-12-04 Ulrich Drepper <drepper@redhat.com>
6784 * po/be.po: New file.
6786 * argp/Makefile (tests): Add tst-argp1.
6788 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
6789 Change type of _attribute to void*.
6790 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6791 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6792 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
6793 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6794 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6796 2002-12-04 Roland McGrath <roland@redhat.com>
6798 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
6799 members to the end, so a libpthread compiled with !USE_TLS will still
6800 find other members properly.
6802 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
6803 operand for DEST memory. Fix dummy input operand to use SRC.
6804 Reported by Davin McCall <davmac@ozonline.com.au>.
6806 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
6807 alignment when initializing the DTV entry.
6809 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
6810 when TLS has not been set up, try to set it up if we can.
6811 * elf/tst-tls4.c: Revert last change.
6812 * elf/tst-tls5.c: Likewise.
6813 * elf/tst-tls6.c: Likewise.
6814 * elf/tst-tls7.c: Likewise.
6815 * elf/tst-tls8.c: Likewise.
6816 * elf/tst-tls9.c: Likewise.
6818 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
6819 * sysdeps/generic/ldsodefs.h: Declare it.
6820 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6821 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
6822 function, broken out of __libc_setup_tls.
6823 (init_static_tls): Likewise.
6824 (__libc_setup_tls): Call them.
6825 (_dl_tls_setup): New function, uses new subroutines.
6827 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
6828 Clear the pointer when returning true.
6829 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
6830 first element of the slotinfo list too.
6832 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
6835 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
6836 (_dl_determine_tlsoffset): Likewise.
6838 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
6839 startup_error_tsd, made global.
6840 (dl_main): Update initialization.
6841 * elf/dl-tsd.c: Likewise.
6842 * sysdeps/generic/ldsodefs.h: Declare it.
6844 2002-12-03 Ulrich Drepper <drepper@redhat.com>
6846 * manual/texinfo.tex: Update from latest upstream version.
6848 2002-12-03 Roland McGrath <roland@redhat.com>
6850 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
6851 area surplus in calculation for sbrk call.
6853 * iconvdata/cp1125.c: New file.
6854 * iconvdata/Makefile (distribute): Add it.
6855 (modules): Add CP1125.
6856 (gen-8bit-gap-modules): Add cp1125.
6857 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
6858 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
6860 2002-12-03 Andreas Jaeger <aj@suse.de>
6862 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6864 2002-12-03 Ulrich Drepper <drepper@redhat.com>
6866 * sysdeps/posix/system.c (do_system): Make signal handler
6867 installation thread safe.
6869 2002-12-02 Roland McGrath <roland@redhat.com>
6871 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
6872 caller from EXTRA to -.
6873 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6874 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6875 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6877 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
6879 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
6880 bits of RM are cleared.
6882 2002-12-02 Roland McGrath <roland@redhat.com>
6884 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
6885 TLS setup is required.
6886 * elf/tst-tls5.c: Likewise.
6887 * elf/tst-tls6.c: Likewise.
6888 * elf/tst-tls7.c: Likewise.
6889 * elf/tst-tls8.c: Likewise.
6890 * elf/tst-tls9.c: Likewise.
6892 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
6893 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
6894 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
6895 for being null before calling free_slotinfo.
6896 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
6897 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
6899 2002-11-30 Bruno Haible <bruno@clisp.org>
6901 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
6902 (struct __gconv_step): New field __btowc_fct.
6903 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
6904 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
6906 (__gconv_btwoc_ascii): New declaration.
6907 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6908 (__gconv_btwoc_ascii): New function.
6909 * iconv/gconv_builtin.h: Add BtowcFct argument to all
6910 BUILTIN_TRANSFORMATION invocations.
6911 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6912 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
6913 * iconv/gconv_builtin.c (map): New field btowc_fct.
6914 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
6916 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
6917 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
6918 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
6919 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
6920 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
6921 (gconv_init): Initialize __btowc_fct field.
6922 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
6923 * iconv/loop.c: Document ONEBYTE_BODY.
6924 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
6925 Undefine ONEBYTE_BODY at the end.
6926 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
6927 * iconvdata/8bit-gap.c (NONNUL): New macro.
6928 (BODY for FROM_LOOP): Use it.
6929 (ONEBYTE_BODY): New macro.
6930 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
6931 (NONNUL): New macro.
6932 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
6933 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
6934 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
6935 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
6936 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
6937 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
6938 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
6939 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
6940 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
6941 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
6942 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
6943 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
6944 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
6945 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
6946 * iconvdata/ibm932.c: Include <stdbool.h>.
6947 (TRUE, FALSE): Remove macros.
6948 (BODY for FROM_LOOP): Remove unused variable rp1.
6949 (ONEBYTE_BODY): New macro.
6950 (BODY for TO_LOOP): Use bool.
6951 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
6952 * iconvdata/ibm943.c: Include <stdbool.h>.
6953 (TRUE, FALSE): Remove macros.
6954 (BODY for FROM_LOOP): Remove unused variable rp1.
6955 (ONEBYTE_BODY): New macro.
6956 (BODY for TO_LOOP): Use bool.
6957 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
6958 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
6959 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
6960 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
6961 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
6962 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
6963 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
6964 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
6965 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
6966 * iconvdata/gbbig5.c: Tweak comment.
6968 2002-12-02 Ulrich Drepper <drepper@redhat.com>
6970 * po/fi.po: Update from translation team.
6972 2002-12-01 Roland McGrath <roland@redhat.com>
6974 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6975 testing getdents64 return value.
6977 * scripts/versions.awk: Don't pass -n flag to sort command.
6979 * posix/bug-regex13.c: Include <string.h>.
6981 * sysdeps/generic/libc-start.c (__libc_start_main): Do
6982 DL_SYSDEP_OSCHECK here.
6983 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
6984 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
6986 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
6987 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
6989 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
6990 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
6992 * include/link.h: Comment typo fix.
6994 2002-12-01 Roland McGrath <roland@frob.com>
6996 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
6997 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
6998 _POSIX_MEMORY_PROTECTION): Likewise.
6999 (_POSIX_POLL, _POSIX_SELECT): Removed.
7001 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7003 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
7004 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
7006 2002-11-28 Jakub Jelinek <jakub@redhat.com>
7008 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
7010 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
7013 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7015 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
7016 branch prediction buffers by using unpaired call/ret.
7018 2002-11-27 Ulrich Drepper <drepper@redhat.com>
7020 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
7021 first parameters constraint string.
7022 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
7024 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
7026 * posix/regcomp.c (parse_expression): Set the bit since the back
7027 reference is used in the regular expression.
7028 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
7030 (re_node_set_init_copy): Likewise.
7031 * posix/regex_internal.h (state_array_t): New structure.
7032 (re_sub_match_last_t): Likewise.
7033 (re_sub_match_top_t): Likewise.
7034 (re_match_context_t): Add new members.
7035 (re_dfa_t): Likewise.
7036 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
7037 to check the matching is really correct, and retry if failed.
7038 Move the routin pruning the impossible nodes from here, ...
7039 (prune_impossible_nodes): To this function.
7040 (check_matching): Invoke check_subexp_matching_top, and replace
7041 redundant checking with transit_state_bkref invocation.
7042 (proceed_next_node): Replace strncmp with memcmp. Reported by
7043 Paolo Bonzini <bonzini@gnu.org>.
7044 (update_cur_sifted_state): Remove search_subexp invocation.
7045 (search_subexp): Remove this function.
7046 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
7048 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
7049 Remove unused invocation of match_ctx_add_entry.
7050 (transit_state): Invoke check_subexp_matching_top.
7051 (check_subexp_matching_top): New function.
7052 (transit_state_bkref): Remove unused array.
7053 Merge transit_state_bkref_loop.
7054 (transit_state_bkref_loop): Use get_subexp instead of
7055 sift_states_backward. Use search_cur_bkref_entry for optimization.
7056 Merge this function to transit_state_bkref.
7057 (get_subexp): New function.
7058 (get_subexp_sub): Likewise.
7059 (find_subexp_node): Likewise.
7060 (check_arrival): Likewise.
7061 (check_arrival_expand_ecl): Likewise.
7062 (check_arrival_expand_ecl_sub): Likewise.
7063 (expand_bkref_cache): Likewise.
7064 (match_ctx_init): Initialize new members.
7065 (match_ctx_clean): New function.
7066 (match_ctx_free): Release new members.
7067 (match_ctx_free_subtops): New function.
7068 (match_ctx_add_entry): Fix indent.
7069 (search_cur_bkref_entry): New function.
7070 (match_ctx_add_subtop): Likewise.
7071 (match_ctx_add_sublast): Likewise.
7073 2002-11-25 Ulrich Drepper <drepper@redhat.com>
7075 * iconv/Makefile (tests): Remove tst-iconv4.c
7076 * iconv/tst-iconv4.c: Moved to...
7077 * iconvdata/tst-iconv4.c: ...here. New file.
7078 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
7080 2002-11-25 Roland McGrath <roland@redhat.com>
7082 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
7083 Grok AF_LINK if defined.
7084 From Momchil Velikov <velco@fadata.bg>.
7086 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
7087 brdaddr, or dstaddr, just set those pointers to null and don't fail.
7088 Reported by Momchil Velikov <velco@fadata.bg>.
7090 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
7091 is > sizeof IFR->ifa_addr, advance past the whole longer length.
7092 (__ifreq): Count up NIFS that way too.
7093 Reported by Momchil Velikov <velco@fadata.bg>.
7095 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
7097 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
7098 and <fpu_control.h>.
7100 2002-11-24 Ulrich Drepper <drepper@redhat.com>
7102 * elf/elf.h (EM_ST19): Fix typo.
7104 2002-11-25 Jakub Jelinek <jakub@redhat.com>
7106 * include/errno.h (__set_errno): Define as errno = val
7109 2002-11-24 Roland McGrath <roland@redhat.com>
7111 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
7112 * sysdeps/posix/writev.c: Likewise.
7113 From Momchil Velikov <velco@fadata.bg>.
7115 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
7116 calling *GL(dl_error_catch_tsd) for a thread-local location.
7117 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
7118 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
7119 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
7121 * libio/iofflush.c: Add libc_hidden_def.
7122 * libio/iofwrite.c: Likewise.
7123 * sysdeps/generic/sigtimedwait.c: Likewise.
7124 * sysdeps/generic/sigwaitinfo.c: Likewise.
7125 * sysdeps/posix/sigwait.c: Likewise.
7126 Reported by Momchil Velikov <velco@fadata.bg>.
7128 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
7129 to match <arpa/inet.h> declaration.
7130 * inet/inet_netof.c (inet_netof): Likewise.
7131 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
7132 Reported by Momchil Velikov <velco@fadata.bg>.
7134 * configure.in: Skip AUTOCONF check under --without-cvs.
7135 * configure: Regenerated.
7137 * posix/Makefile (headers): Add bits/pthreadtypes.h.
7138 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
7139 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
7141 2002-11-24 Andreas Schwab <schwab@suse.de>
7143 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
7146 2002-11-19 Jim Meyering <jim@meyering.net>
7148 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
7150 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
7152 2002-11-23 Roland McGrath <roland@redhat.com>
7154 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
7155 Just produce hex output for datum sizes.
7157 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
7158 Reported by Luca Barbieri <ldb@ldb.ods.org>.
7160 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
7162 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
7163 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7164 and __unused3 fields.
7165 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
7166 [__WORDSIZE == 32]: Only PPC32 requires __unused1
7167 and __unused2 fields.
7168 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
7169 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7170 __unused3, and __unused4 fields.
7172 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
7173 obtain lowest address for profiling in __monstartup call.
7175 2002-11-21 Roland McGrath <roland@redhat.com>
7177 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
7178 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
7180 * locale/localeinfo.h (struct locale_data): Revert last change.
7182 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
7183 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7185 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
7186 __NR_pread64 if not defined.
7187 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
7188 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7190 2002-11-21 Roland McGrath <roland@frob.com>
7192 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
7193 __libc_multiple_libcs here. Call __setfpucw.
7195 2002-11-21 Ulrich Drepper <drepper@redhat.com>
7197 * elf/Makefile (tests): Don't run test-arrayX tests for now.
7199 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
7200 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
7201 CLONE_CHILD_*TID flags.
7203 2002-11-20 Andreas Jaeger <aj@suse.de>
7205 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
7206 We pass struct ucontext on x86-64.
7208 (GET_FRAME): Adjust.
7209 (GET_STACK): Adjust.
7211 2002-11-20 Roland McGrath <roland@redhat.com>
7213 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
7214 conditionalize [! DO_VERSIONING] #error.
7216 * scripts/abilist.awk: Grok function descriptor symbols.
7218 * intl/tst-gettext.c (main): Check return values from setlocale.
7219 Add necessary unsetenv's to make LANG=existing-locale check work.
7221 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
7222 so aborted prior runs don't confuse things.
7224 * locale/localeinfo.h (struct locale_data: union locale_data_value):
7225 Use uintptr_t instead of unsigned int for `word' member.
7226 (_NL_CURRENT_WORD): Cast to uint32_t.
7228 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
7231 2002-11-20 Ulrich Drepper <drepper@redhat.com>
7233 * elf/tls-macros.h: Add IA-64 definitions.
7234 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
7236 * iconv/Makefile (tests): Add tst-iconv4.
7237 * iconv/tst-iconv4.c: New file.
7239 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
7240 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
7241 __GCONV_INCOMPLETE_INPUT.
7242 (ucs4le_internal_loop): Likewise.
7243 (ucs4le_internal_loop_unaligned): Likewise.
7244 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
7245 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
7246 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
7248 * iconv/loop.c (LOOPFCT): First test for empty input then for full
7251 * inet/getnameinfo.c: Use extend_alloca where appropriate.
7252 * sysdeps/posix/getaddrinfo.c: Likewise.
7254 * include/alloca.h (extend_alloca): New define. Based on stack
7255 direction it'll try to append to the previouls allocated buffer.
7257 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
7259 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
7260 use the same service for AF_INET and AF_INET6.
7262 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7264 * intl/localealias.c (read_alias_file): Use only about 400 bytes
7265 of stack space instead of 16k.
7267 2002-11-18 Wolfram Gloger <wg@malloc.de>
7270 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
7271 nothing if not initialized. Bug report from Marcus Brinkmann
7272 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7274 2002-11-19 Roland McGrath <roland@redhat.com>
7276 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
7279 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
7280 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
7281 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
7282 * configure: Regenerated.
7284 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7286 * include/dlfcn.h: __libc_dlopen is now a macro calling
7287 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
7288 (__libc_dlopen_mode): New prototype.
7289 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
7290 new parameter. Store new parameter in mode field of structure passed
7292 (struct do_dlopen_args): Add new field mode.
7293 (do_dlopen): Pass mode from parameter structure to _dl_open.
7295 2002-11-11 Randolf Chung <tausq@debian.org>
7297 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
7298 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
7299 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
7301 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
7303 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
7304 Set -mdisable-fpregs for this file.
7306 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
7308 * sysdeps/unix/sysv/linux/configure.in:
7309 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
7310 from gcc-3.0 era for backwards compatibility.
7311 * sysdeps/unix/sysv/linux/configure: Regenerate.
7313 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
7314 Define mcontext_t as a sigcontext.
7316 2002-11-18 Roland McGrath <roland@redhat.com>
7318 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
7319 Free memory in `last_result' if it was used.
7321 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
7322 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
7323 Do the parsing inline instead of copying strings and calling
7324 inet_network, and properly skip all alias names not matching the form.
7326 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
7328 2002-11-17 Ulrich Drepper <drepper@redhat.com>
7330 * manual/pattern.texi (Wordexp Example): Fix sample code.
7332 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
7333 childs stack which will be loaded into the %esi register.
7335 2002-11-14 Paul Eggert <eggert@twinsun.com>
7337 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
7338 overflow when skipping the question part and when unpacking aliases.
7340 2002-11-15 Roland McGrath <roland@redhat.com>
7342 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
7343 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
7344 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
7346 2002-11-15 Jakub Jelinek <jakub@redhat.com>
7348 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
7349 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
7351 2002-11-15 Roland McGrath <roland@redhat.com>
7353 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
7354 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
7355 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
7356 (+make-include-of-dep): New canned sequence.
7358 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
7359 From Dmitry V. Levin <ldv@altlinux.org>.
7361 2002-11-14 Roland McGrath <roland@redhat.com>
7363 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
7364 * inet/herrno.c (__libc_h_errno): Likewise.
7365 * resolv/res_libc.c (__libc_res): Likewise.
7366 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
7367 (__res_state) [! USE___THREAD]: Don't define as weak.
7368 * csu/Versions: Revert last change.
7369 * resolv/Versions: Revert last change.
7371 * Makerules ($(common-objpfx)%.make): New pattern rule.
7372 * tls.make.c: New file.
7373 * Makefile (distribute): Add it.
7375 * sysdeps/generic/errno.c [! USE___THREAD]
7376 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
7377 with compat_symbol so they are not link-time visible.
7378 [! USE___THREAD] (__libc_errno): New alias for errno.
7379 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7380 Add __libc_errno here.
7381 * inet/herrno.c [USE___THREAD]: Use this conditional
7382 in place of [USE_TLS && HAVE___THREAD].
7383 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
7384 (h_errno, _h_errno): Declare these with compat_symbol so they are not
7386 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
7387 * resolv/res_libc.c [! USE___THREAD]
7388 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
7389 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
7390 (__libc_res): Define as alias for _res.
7391 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7392 Add __libc_h_errno and __libc_res here.
7394 2002-11-14 Jakub Jelinek <jakub@redhat.com>
7396 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
7397 * resolv/Versions (h_errno, _res): Likewise.
7399 2002-11-14 Roland McGrath <roland@redhat.com>
7401 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
7402 (%.symlist): Likewise.
7404 2002-11-13 Roland McGrath <roland@redhat.com>
7406 * scripts/abilist.awk: New file.
7407 * Makefile (distribute): Add it.
7408 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
7409 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
7410 [$(subdir) = elf] (tests): Depend on libc.symlist.
7411 (generated, common-generated): Add those files.
7413 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
7414 * configure: Regenerated.
7415 * config.make.in (OBJDUMP): New variable, substituted by configure.
7417 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
7418 (mallochook, reallochook): Set them up.
7419 (checkhdr): Check HDR->magic2 value.
7420 (freehook): Reset HDR->magic2.
7421 (memalignhook): New static function.
7422 (old_memalign_hook): New static variable.
7423 (mcheck, reallochook): Set __memalign_hook to memalignhook.
7425 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
7428 2002-11-13 Andreas Jaeger <aj@suse.de>
7430 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
7432 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7434 2002-11-11 Paul Eggert <eggert@twinsun.com>
7436 * manual/crypt.texi (Cryptographic Functions): Mention that
7437 the MD5 one-way algorithm is compatible with BSD's.
7439 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
7441 * posix/regex_internal.c (re_string_skip_chars): Also return the last
7443 (re_string_reconstruct): Calculate the context by itself when the
7444 offset points out of the valid range.
7445 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
7446 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
7447 (IS_WIDE_WORD_CHAR): New macro.
7448 (IS_WIDE_NEWLINE): New macro.
7450 2002-11-12 Andreas Jaeger <aj@suse.de>
7452 * sysdeps/x86_64/strchr.S: Don't use one register for two
7453 purposes, this fixes a bug noticed by test-strchr.c.
7455 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
7458 2002-11-12 Roland McGrath <roland@redhat.com>
7460 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
7461 (_G_IO_NO_BACKWARD_COMPAT): Define it.
7463 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
7464 instead of <pt-machine.h>.
7465 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
7467 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7469 2002-11-10 Roland McGrath <roland@redhat.com>
7471 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
7472 Call fputs instead of fwprintf (simpler to follow in debugger).
7474 * crypt/md5-crypt.c: Doc fix.
7476 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
7477 the beginning of generated target commands.
7479 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
7480 dependencies for these in case implicit rule search skipped the
7481 nonexistent source directory.
7482 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
7483 files with $(object-suffixes) as targets too.
7484 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
7485 and a target for it using $(make-target-directory).
7487 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
7489 2002-11-10 Roland McGrath <roland@frob.com>
7491 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
7492 * sysdeps/generic/bits/pthreadtypes.h: ... here.
7494 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
7495 l_start == 0 and l_len == 1 as we do l_len == 0.
7497 2002-11-10 Ulrich Drepper <drepper@redhat.com>
7499 * po/da.po: Update from translation team.
7501 2002-11-10 Roland McGrath <roland@redhat.com>
7503 * config.make.in (includedir): New variable, substituted by configure.
7504 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
7505 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
7507 2002-11-10 Andreas Jaeger <aj@suse.de>
7509 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
7510 REG_OLDMASK and REG_CR2 to synch with kernel header.
7513 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
7515 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
7516 * nss/getnssent_r.c (__nss_getent_r): Likewise.
7517 (__nss_setent): Likewise.
7518 (__nss_getent_r): Likewise.
7519 * inet/getnetgrent_r.c (innetgr): Likewise.
7520 (__internal_setnetgrent_reuse): Likewise.
7521 (internal_getnetgrent_r): Likewise.
7522 * inet/ether_hton.c (ether_hostton): Likewise.
7523 * inet/ether_ntoh.c (ether_ntohost): Likewise.
7524 * sunrpc/netname.c (netname2user): Likewise.
7525 * sunrpc/publickey.c (getpublickey): Likewise.
7526 (getsecretkey): Likewise.
7528 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
7530 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
7531 error in range calculation.
7533 2002-10-09 Jakub Jelinek <jakub@redhat.com>
7535 * string/test-strspn.c (do_test): Ensure zero termination.
7536 * string/test-strpbrk.c (do_test): Likewise.
7537 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
7538 * string/test-strncpy.c (stupid_strncpy): Likewise.
7539 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
7541 2002-10-08 Roland McGrath <roland@redhat.com>
7543 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
7546 2002-09-22 H.J. Lu <hjl@gnu.org>
7548 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
7549 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
7550 only if __NR_mmap2 is defined.
7552 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
7553 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
7554 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
7555 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
7557 2002-11-08 Jakub Jelinek <jakub@redhat.com>
7559 * posix/bug-regex13.c (tests): Add new test.
7561 * string/test-strchr.c (stupid_strchr): New function.
7562 (do_random_tests): Make sure the string is zero terminated.
7563 * string/test-strpbrk.c (stupid_strpbrk): New function.
7564 (do_random_tests): Make sure the string is zero terminated.
7565 * string/test-strcmp.c (stupid_strcmp): New function.
7566 (do_random_tests): Make sure the strings are zero terminated.
7567 * string/test-strspn.c (stupid_strspn): New function.
7568 (simple_strspn): Rename rej argument to acc.
7569 (do_random_tests): Make sure the string is zero terminated.
7570 * string/test-strcspn.c (stupid_strcspn): New function.
7571 * string/test-strncpy.c (stupid_strncpy): New function.
7572 * string/test-stpncpy.c (stupid_stpncpy): New function.
7573 * string/test-strncmp.c (stupid_strncmp): New function.
7574 (do_random_tests): Make sure the strings are zero terminated.
7575 * string/test-string.h (impl_t): Change test into long.
7576 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
7578 2002-11-08 Roland McGrath <roland@redhat.com>
7580 * sysdeps/ia64/elf/configure.in: Add TLS check.
7581 From Ian Wienand <ianw@cse.unsw.edu.au>.
7582 * sysdeps/ia64/elf/configure: Regenerated.
7584 2002-11-07 Roland McGrath <roland@redhat.com>
7586 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
7587 place of _IO_new_do_write.
7588 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
7589 #undef before versioned_symbol use.
7591 2002-11-07 Richard Henderson <rth@redhat.com>
7593 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
7594 * configure: Regenerated.
7595 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
7596 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
7597 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
7598 _dl_fini via gp-relative relocations.
7599 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
7601 * elf/tls-macros.h: Add alpha versions.
7602 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
7603 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
7604 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
7605 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
7606 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7607 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
7608 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7609 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7610 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
7611 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7612 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
7613 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7614 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7615 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7616 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
7617 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
7618 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7619 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7621 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
7622 Kill argument registers across the inline syscall.
7624 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
7626 * linuxthreads/sysdeps/alpha/tls.h: New file.
7627 * sysdeps/alpha/dl-tls.h: New file.
7629 2002-10-29 David Mosberger <davidm@hpl.hp.com>
7631 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
7632 (gmon_initializer): New function.
7633 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
7634 __gmon_start__ here. Call it from gmon_initializer() instead.
7636 2002-03-12 H.J. Lu <hjl@gnu.org>
7638 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
7639 tst-array2, and tst-array3.
7640 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
7641 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
7642 ($(objpfx)tst-array1.out): New target.
7643 ($(objpfx)tst-array2): Likewise.
7644 ($(objpfx)tst-array2.out): Likewise.
7645 ($(objpfx)tst-array3.out): Likewise.
7646 * elf/tst-array1.c: New file.
7647 * elf/tst-array1.exp: Likewise.
7648 * elf/tst-array2.c: Likewise.
7649 * elf/tst-array2dep.c: Likewise.
7650 * elf/tst-array2.exp: Likewise.
7651 * elf/tst-array3.c: Likewise.
7653 2002-10-28 David Mosberger <davidm@hpl.hp.com>
7655 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
7656 Don't add L->l_addr to array entry values.
7658 2002-11-07 Jakub Jelinek <jakub@redhat.com>
7660 * string/test-string.h: New file.
7661 * string/test-strlen.c: New file.
7662 * string/test-string.h: New file.
7663 * string/test-strcmp.c: New file.
7664 * string/test-strchr.c: New file.
7665 * string/test-strrchr.c: New file.
7666 * string/test-strcpy.c: New file.
7667 * string/test-stpcpy.c: New file.
7668 * string/test-strncpy.c: New file.
7669 * string/test-stpncpy.c: New file.
7670 * string/test-strpbrk.c: New file.
7671 * string/test-strcspn.c: New file.
7672 * string/test-strspn.c: New file.
7673 * string/test-strcat.c: New file.
7674 * string/test-strncmp.c: New file.
7675 * string/test-memchr.c: New file.
7676 * string/test-memcmp.c: New file.
7677 * string/test-memset.c: New file.
7678 * string/test-memcpy.c: New file.
7679 * string/test-mempcpy.c: New file.
7680 * string/test-memmove.c: New file.
7681 * string/Makefile (strop-tests): New variable.
7682 (tests): Add strop-tests.
7683 (distribute): Add test-string.h.
7685 2002-11-06 Ulrich Drepper <drepper@redhat.com>
7687 * posix/regcomp.c: Use tabs instead of spaces.
7688 * posix/regexec.c: Likewise.
7689 * posix/regex_internal.h: Likewise.
7691 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
7693 2002-11-06 Jakub Jelinek <jakub@redhat.com>
7695 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
7697 (regcomp): Don't set can_be_null here.
7698 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
7699 (re_compile_internal): Clear can_be_null, set regs_allocated.
7701 * posix/regcomp.c (re_set_fastmap): New function.
7702 (re_compile_fastmap_iter): Use it. Remove redundant type ==
7703 COMPLEX_BRACKET check.
7704 * posix/regexec.c (re_search_internal): Optimize searching with
7705 fastmap. Call re_string_reconstruct even if match_first is
7706 smaller than raw_mbs_idx.
7708 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
7710 * posix/regcomp (free_dfa_content): Use free_state.
7711 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
7712 pointers in case that realloc failed.
7713 (re_node_set_merge): Likewise.
7714 (register_state): Likewise.
7715 (create_newstate_common): Invoke memory release functions in case of
7717 (create_ci_newstate): Likewise.
7718 (create_cd_newstate): Likewise.
7719 (free_state): New function.
7720 * posix/regexec.c (re_search_internal): Invoke memory release
7721 functions in case of error conditions.
7722 (sift_states_backward): Likewise.
7723 (merge_state_array): Likewise.
7724 (add_epsilon_src_nodes): Likewise.
7725 (sub_epsilon_src_nodes): Likewise.
7726 (search_subexp): Likewise.
7727 (sift_states_bkref): Likewise.
7728 (transit_state_sb): Likewise.
7729 (transit_state_mb): Likewise.
7730 (transit_state_bkref_loop): Likewise.
7731 (group_nodes_into_DFAstates): Likewise.
7732 (push_fail_stack): Don't edit pointers in case that realloc failed.
7733 (extend_buffers): Likewise.
7734 (match_ctx_add_entry): Likewise.
7736 2002-11-06 Roland McGrath <roland@redhat.com>
7738 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
7739 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7741 * configure.in: Add checks on as and ld for binutils 2.13 or later.
7742 * configure: Regenerated.
7744 2002-11-06 Ulrich Drepper <drepper@redhat.com>
7746 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
7747 If re_compile_internal failed free fastmap buffer.
7748 (free_dfa_content): Broken out of regfree function. Frees all dfa
7750 (regfree): Add free_dfa_content.
7751 (re_compile_internal): If any of the called functions fails free
7752 all dfa related memory.
7754 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7756 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
7757 warnings from the kernel headers.
7759 2002-11-05 Roland McGrath <roland@redhat.com>
7761 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
7762 From Johannes Stezenbach <js@convergence.de>.
7764 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
7765 #errlist-compat magic comment to give 123 as size.
7766 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
7767 (libc: GLIBC_2.2): ... here.
7768 (libc: GLIBC_2.3): Likewise.
7770 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7772 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
7773 which happens at the beginning so that we can unload modules in
7776 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7778 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
7779 under [__USE_MISC || _ASM].
7781 * elf/elf.h: Remove the obsolete SH TLS relocations.
7783 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7785 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
7787 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
7790 __NR_pread64 and __NR_pwrite64.
7791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7792 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
7794 Revert change to use INLINE_SYSCALL.
7795 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7796 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7797 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7798 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
7800 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7803 Update clobber list and add a comment about the syscall ABI.
7805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
7806 s_pwrite64, s_ftruncate, s_truncate): Re-add.
7808 2002-11-05 Jakub Jelinek <jakub@redhat.com>
7810 * iconv/gconv_dl.c (free_mem): Clear loaded.
7811 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
7814 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7816 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
7818 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
7819 as old code without locking. _IO_seekoff calls this function after
7821 * libio/ioseekpos.c: Likewise for _IO_seekpos.
7822 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
7823 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
7825 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
7826 of _IO_seekoff_internal.
7827 (_IO_rewind): Likewise.
7828 * libio/ioftell.c: Likewise.
7829 * libio/ftello.c: Likewise.
7830 * libio/ftello64.c: Likewise.
7831 * libio/iofgetpos.c: Likewise.
7832 * libio/iofgetpos64.c: Likewise.
7833 * libio/oldiofgetpos.c: Likewise.
7834 * libio/oldiofgetpos64.c: Likewise.
7835 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
7836 _IO_seekpos_internal.
7837 * libio/iofsetpos64.c: Likewise.
7838 * libio/oldiofsetpos.c: Likewise.
7839 * libio/oldiofsetpos64.c: Likewise.
7841 2002-11-04 Roland McGrath <roland@redhat.com>
7843 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
7844 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
7845 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
7846 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
7847 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7848 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7849 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7850 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
7851 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
7852 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
7854 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
7855 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
7856 Remove these, no longer used.
7858 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
7861 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
7862 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
7863 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
7864 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
7865 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
7868 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
7869 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7870 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
7872 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7873 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
7875 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7877 2002-11-03 Roland McGrath <roland@redhat.com>
7879 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
7880 `_dl_tls_static_used'.
7881 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
7882 (__libc_setup_tls): Initialize it. Let the initial value of
7883 _dl_tls_static_size indicate some surplus space in the computed value.
7884 * elf/dl-open.c (_dl_tls_static_size): New variable.
7885 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
7886 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
7887 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
7888 (CHECK_STATIC_TLS): Use it.
7889 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
7890 closed objects occupied a trailing contiguous chunk of static TLS area.
7892 2002-10-18 Bruno Haible <bruno@clisp.org>
7894 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
7896 2002-11-04 Ulrich Drepper <drepper@redhat.com>
7898 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
7899 _wide_data->_IO_read_end if adjustment can be made in the current
7902 * sysdeps/unix/sysv/linux/fexecve.c: New file.
7904 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
7905 wide oriented streams are used.
7907 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
7908 service hasn't been used [PR libc/4744].
7910 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
7911 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
7913 * manual/examples/dir.c: Don't include <stddef.h>.
7914 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
7915 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
7917 2002-11-02 H.J. Lu <hjl@gnu.org>
7919 * stdio-common/reg-printf.c: Include <stddef.h>.
7921 2002-11-03 Ulrich Drepper <drepper@redhat.com>
7923 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
7925 * po/ca.po: Update from translation team.
7926 * po/es.po: Likewise.
7928 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
7929 is defined write out memory map.
7930 * sysdeps/unix/sysv/linux/segfault.c: New file.
7932 2002-11-02 Roland McGrath <roland@redhat.com>
7934 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
7935 pointers that can alias.
7936 Reported by Daniel Jacobowitz <drow@mvista.com>.
7938 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
7940 2002-11-02 Roland McGrath <roland@redhat.com>
7942 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
7943 description to be clearer and to say that *RESULT is set to ENTRY.
7945 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7947 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
7948 dests_ch arrays together. Alloca or malloc dest_states,
7949 dest_states_word and dest_states_nl arrays together. Free memory on
7952 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
7954 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
7955 and current_saltbits.
7957 2002-11-02 Roland McGrath <roland@redhat.com>
7959 * stdio-common/reg-printf.c: Include <stdlib.h>.
7961 2002-11-02 H.J. Lu <hjl@gnu.org>
7963 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
7964 caller to EXTRA instead of execve.
7966 2002-11-01 Roland McGrath <roland@redhat.com>
7968 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
7969 in place of [!(USE_TLS && HAVE___THREAD)].
7970 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
7972 2002-10-31 Roger Sayle <roger@eyesopen.com>
7974 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
7976 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7978 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
7979 without defining FP_ROUNDMODE.
7981 2002-10-29 Jakub Jelinek <jakub@redhat.com>
7983 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
7984 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
7986 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7987 (OLD_SIGLIST_SIZE): Define.
7988 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7989 (OLD_SIGLIST_SIZE): Define.
7990 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
7992 2002-11-01 Jakub Jelinek <jakub@redhat.com>
7994 * sysdeps/ia64/strncpy.S: Fix recovery code.
7996 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7998 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
8000 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
8002 * elf/dl-libc.c (free_mem): Likewise.
8003 * iconv/gconv_conf.c (free_mem): Likewise.
8004 * iconv/gconv_db.c (free_mem): Likewise.
8005 * iconv/gconv_dl.c (free_mem): Likewise.
8006 * iconv/gconv_cache.c (free_mem): Likewise.
8007 * intl/finddomain.c (free_mem): Likewise.
8008 * intl/dcigettext.c (free_mem): Likewise.
8009 * locale/setlocale.c (free_mem): Likewise.
8010 * misc/fstab.c (fstab_free): Likewise.
8011 * nss/nsswitch.c (free_mem): Likewise.
8012 * posix/regcomp.c (free_mem): Likewise.
8013 * resolv/gai_misc.c (free_res): Likewise.
8014 * stdlib/fmtmsg.c (free_mem): Likewise.
8015 * sunrpc/clnt_perr.c (free_mem): Likewise.
8016 * sysdeps/generic/setenv.c (free_mem): Likewise.
8017 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
8018 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
8019 * time/tzset.c (free_mem): Likewise.
8020 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
8021 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
8022 * malloc/set-freeres.c (__libc_freeres): Likewise.
8024 * login/getutent.c: Include stdlib.h instead of stddef.h.
8025 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8026 (__getutent): Allocate buffer the first time it is run.
8027 * login/getutid.c: Include stdlib.h instead of stddef.h.
8028 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8029 (__getutid): Allocate buffer the first time it is run.
8030 * login/getutline.c: Include stdlib.h instead of stddef.h.
8031 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8032 (__getutline): Allocate buffer the first time it is run.
8033 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
8034 (mtrace): Allocate malloc_trace_buffer.
8035 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
8036 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
8037 * string/strerror.c: Include libintl.h and errno.h.
8038 (buf): New variable.
8039 (strerror): Only allocate buffer if actually needed (unknown error).
8040 * time/tzfile.c (transitions): Add libc_freeres_ptr.
8043 2002-10-25 Jakub Jelinek <jakub@redhat.com>
8045 * include/libc-symbols.h (libc_freeres_ptr): New macro.
8046 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
8048 (__libc_freeres): Free all pointers in that section.
8049 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
8050 commands when creating .lds script.
8051 (LDSEDCMD-c.so): New variable.
8052 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8053 (rcmd_af): Use strdup to allocate ahostbuf.
8054 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8055 (rexec_af): Use strdup to allocate ahostbuf.
8056 * stdio-common/reg-printf.c (printf_funcs): Remove.
8057 (__printf_arginfo_table): Change into printf_arginfo_function **.
8058 Add libc_freeres_ptr.
8059 (__register_printf_function): Allocate __printf_arginfo_table
8060 and __printf_function_table the first time it is called.
8061 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
8062 printf_arginfo_function **.
8063 (parse_one_spec): Add __builtin_expect.
8064 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
8066 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
8068 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
8069 (string_space, map): Add libc_freeres_ptr.
8071 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
8073 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
8075 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
8076 (buffer): Add libc_freeres_ptr.
8077 (free_mem): Remove for _LIBC.
8078 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
8080 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
8082 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
8084 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
8086 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
8088 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
8090 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
8093 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
8097 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8099 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
8100 instead of duplicating the whole function in libc.
8102 2002-10-31 Roland McGrath <roland@redhat.com>
8104 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
8105 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
8107 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8109 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
8110 32bit-predefine when creating .new32 list and -U for each
8111 32bit-predefine when creating .new64 list.
8112 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
8114 2002-10-29 Andreas Schwab <schwab@suse.de>
8116 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
8117 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
8119 2002-10-25 Roland McGrath <roland@redhat.com>
8121 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
8122 * sysdeps/unix/sysv/linux/configure: Regenerated.
8124 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
8125 _dl_starting_up decl.
8127 2002-10-20 H.J. Lu <hjl@gnu.org>
8129 * sysdeps/unix/sysv/linux/configure.in: Don't check
8130 /lib/modules/`uname -r`/build/include for kernel headers if
8132 * sysdeps/unix/sysv/linux/configure: Regenerated.
8134 2002-10-25 Roland McGrath <roland@redhat.com>
8136 * math/math.h (M_LOG2El): Correct the value.
8137 From Stephen L Moshier <steve@moshier.net>.
8139 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
8140 conditional from __libc_multiple_libcs access. Remove kludge for weak
8141 symbol access with old compilers we no longer support.
8142 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8143 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
8145 2002-10-25 Roland McGrath <roland@redhat.com>
8147 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
8148 implement SV_RESETHAND by translating it to SA_RESETHAND.
8150 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
8152 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
8153 type on ELF64 platforms.
8155 2002-10-24 Ulrich Drepper <drepper@redhat.com>
8157 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
8159 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
8161 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8163 * elf/dl-misc.c: Include <sysdep.h>.
8164 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
8166 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
8167 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8168 (INLINE_SYSCALL): Use that.
8169 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
8170 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8171 (INLINE_SYSCALL): Use that.
8172 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
8173 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8174 (INLINE_SYSCALL): Use that.
8175 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
8177 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8178 (__INTERNAL_SYSCALL_STRING): Define.
8179 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8181 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8182 (__INTERNAL_SYSCALL_STRING): Define.
8183 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
8184 __SYSCALL_STRING to inline_syscall*.
8185 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
8187 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
8188 inline_syscall4, inline_syscall5, inline_syscall6): Add string
8191 2002-10-24 Roland McGrath <roland@redhat.com>
8193 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
8194 * sysdeps/unix/sysv/linux/init-first.c: Not here.
8195 * sysdeps/powerpc/elf/libc-start.c: Or here.
8196 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
8197 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
8198 * sysdeps/unix/sysv/aix/init-first.c: Or here.
8199 * sysdeps/generic/libc-start.c: Or here.
8200 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
8201 access with [! SHARED].
8202 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8204 * libio/bug-wfflush.c: New file.
8205 * libio/Makefile (tests): Add bug-wfflush.
8207 2002-10-23 Roland McGrath <roland@redhat.com>
8209 * stdio-common/tst-fphex.c: New file.
8210 * stdio-common/Makefile (tests): Add tst-fphex.
8211 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
8212 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
8213 chars always before the value digits.
8214 Reported by James Antill <james.antill@redhat.com>.
8216 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8218 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
8219 (free_mem): New function.
8220 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
8221 if not cross compiling.
8222 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
8223 (bug-regex14-ENV): Set.
8224 (bug-regex14-mem): New target.
8225 * posix/bug-regex14.c: New file.
8227 2002-10-23 Roland McGrath <roland@redhat.com>
8229 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
8230 target, so we don't touch it when the link fails.
8232 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
8233 Check for the result overflowing off_t and fail with EOVERFLOW.
8234 * libio/ioftell.c (_IO_ftell): Likewise.
8235 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8237 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
8238 use a temporary timeval on the stack for gettimeofday and copy it.
8239 * login/logout.c (logout): Likewise.
8240 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8242 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
8243 Use __SWORD_TYPE instead of int for member types.
8244 (struct statfs64): Likewise.
8245 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
8246 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
8247 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
8248 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
8249 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
8251 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
8252 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
8253 (ST_NODIRATIME): Restore fixed value of 2048.
8254 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
8255 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
8257 Rearranged <bits/types.h> definitions to reduce duplication.
8258 * sysdeps/generic/bits/types.h: Rewritten, using macros from
8259 <bits/wordsize.h> and new header <bits/typesizes.h>.
8260 * posix/Makefile (headers): Add bits/typesizes.h here.
8261 * sysdeps/generic/bits/typesizes.h: New file.
8262 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
8263 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
8264 * sysdeps/mach/hurd/bits/typesizes.h: New file.
8265 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
8266 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
8267 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
8268 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
8269 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
8270 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
8271 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
8272 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
8273 <bits/pthreadtypes.h> here, not in <bits/types.h>.
8274 * signal/signal.h: Likewise.
8276 * streams/stropts.h: Include <bits/xtitypes.h>.
8277 * streams/Makefile (headers): Add bits/xtitypes.h here.
8278 * sysdeps/generic/bits/xtitypes.h: New file.
8279 * sysdeps/s390/bits/xtitypes.h: New file.
8280 * sysdeps/ia64/bits/xtitypes.h: New file.
8281 * sysdeps/x86_64/bits/xtitypes.h: New file.
8283 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
8284 * sysdeps/generic/bits/ipctypes.h: New file.
8285 * sysdeps/mips/bits/ipctypes.h: New file.
8286 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
8287 * sysdeps/gnu/bits/msq.h: Likewise.
8288 * sysvipc/sys/ipc.h: Likewise.
8290 2002-10-22 Ulrich Drepper <drepper@redhat.com>
8292 * elf/dl-load.c (struct filebuf): For buf element to have the
8293 alignment of ElfXX_Ehdr since this is what will be stored in it.
8295 2002-10-22 Jakub Jelinek <jakub@redhat.com>
8297 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
8298 into pointer to locrec_offset.
8299 (add_locale_to_archive): Adjust callers. Free normalized_name right
8300 before returning, not immediately after add_locale, pass it to
8301 add_alias if not NULL instead of name. Rename second normalized_name
8302 occurence to nnormalized_codeset_name.
8304 * locale/programs/locarchive.c (enlarge_archive): Make sure
8305 string_size is always a multiple of 4.
8306 Reported by Andreas Schwab <schwab@suse.de>.
8308 2002-10-21 Andreas Schwab <schwab@suse.de>
8310 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
8311 caller to EXTRA instead of execve, since the latter has a
8312 higher-priority implementation in linuxthreads.
8314 2002-10-21 Roland McGrath <roland@redhat.com>
8316 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
8317 slotinfo list's len member to the proper size, not just 1.
8318 Initialize static_map.l_tls_initimage.
8320 * elf/dl-open.c (dl_open_worker): Fix loop searching for
8321 dtv_slotinfo_list element containing new modules' l_tls_modid.
8323 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
8324 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
8325 * elf/Makefile (tests): Add tst-tls9.
8326 (tests-static): Add tst-tls9-static.
8327 (tst-tls9-static-ENV): New variable.
8328 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
8330 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
8331 modids used by partially loaded modules being closed can't be known.
8333 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
8335 * posix/Makefile: Add a test case for the bug reported by Aharon
8336 Robbins <arnold@skeeve.com>.
8337 * posix/bug-regex13.c: New file.
8338 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
8340 2002-10-21 Ulrich Drepper <drepper@redhat.com>
8342 * csu/gmon-start.c: Pretty printing.
8344 2002-10-19 Art Haas <ahaas@neosoft.com>
8346 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
8347 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
8348 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
8349 * configure: Regenerated.
8351 2002-10-19 Roland McGrath <roland@redhat.com>
8353 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
8354 and then set $subdirs directly, because the new Autoconf breaks
8355 compatibility in every way imaginable and insists on whining
8356 about usage that worked since the dawn of time.
8357 * configure: Regenerated.
8359 * configure: Regenerated (using Autoconf 2.54).
8360 * sysdeps/alpha/elf/configure: Likewise.
8361 * sysdeps/generic/configure: Likewise.
8362 * sysdeps/i386/elf/configure: Likewise.
8363 * sysdeps/ia64/elf/configure: Likewise.
8364 * sysdeps/mach/hurd/configure: Likewise.
8365 * sysdeps/mach/configure: Likewise.
8366 * sysdeps/unix/configure: Likewise.
8367 * sysdeps/unix/common/configure: Likewise.
8368 * sysdeps/unix/sysv/aix/configure: Likewise.
8369 * sysdeps/unix/sysv/linux/configure: Likewise.
8370 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8371 * sysdeps/x86_64/elf/configure: Likewise.
8373 * config.make.in: Nix completely-soft nonsense.
8374 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
8375 of machine directories instead of fpu subdirectory.
8376 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
8377 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
8378 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
8379 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
8380 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
8381 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
8382 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
8383 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
8384 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
8385 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
8386 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
8387 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
8388 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
8389 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
8390 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
8391 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
8392 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
8393 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
8394 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
8395 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
8396 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
8397 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
8398 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
8399 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
8400 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
8401 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
8402 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
8403 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
8404 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
8405 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
8406 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
8407 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
8408 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
8409 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
8410 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
8411 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
8412 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
8413 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
8414 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
8415 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
8417 2002-10-19 Bruno Haible <bruno@clisp.org>
8419 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
8421 2002-10-18 Roland McGrath <roland@redhat.com>
8423 * io/Makefile (routines): Add lchmod.
8424 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
8425 * sysdeps/generic/lchmod.c: New file.
8426 * sysdeps/mach/hurd/lchmod.c: New file.
8427 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
8429 2002-10-18 Art Haas <ahaas@neosoft.com>
8431 * configure.in: Remove remaining AC_FD_CC macros, and replace
8432 AC_FD_MSG with AS_MESSAGE_FD.
8434 2002-10-18 Roland McGrath <roland@redhat.com>
8436 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
8437 typos: VALUE -> FINALADDR.
8439 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
8440 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
8441 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
8442 (inline_syscall6): Move these macros ...
8443 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
8445 * configure.in (libc_link_dests, libc_link_sources): Remove these
8446 variables and the AC_LINK_FILES call.
8448 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
8449 change to put new symbols here instead of in GLIBC_2.2.
8450 * sysdeps/powerpc/Subdirs: Move this file ...
8451 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
8453 2002-10-07 Roland McGrath <roland@redhat.com>
8455 * sysdeps/generic/bits/time.h: Replaced with contents of the
8456 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
8457 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
8458 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
8459 macros is ok even for architectures that don't now implement them.
8460 * sysdeps/mach/hurd/bits/time.h: File removed.
8461 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
8462 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
8463 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
8464 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
8465 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
8467 2002-10-18 Jeff Bailey <jbailey@gnu.org>
8469 * configure.in: Replace obsolete AC_OUTPUT syntax with
8470 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
8472 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
8473 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
8475 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
8476 * sysdeps/alpha/elf/configure.in: Likewise.
8477 * sysdeps/i386/elf/configure.in: Likewise.
8478 * sysdeps/mach/hurd/configure.in: Likewise.
8479 * sysdeps/x86_64/elf/configure.in: Likewise.
8481 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
8483 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
8484 * sysdeps/generic/configure.in: Likewise.
8485 * sysdeps/i386/elf/configure.in: Likewise.
8486 * sysdeps/ia64/elf/configure.in: Likewise.
8487 * sysdeps/mach/configure.in: Likewise.
8488 * sysdeps/mach/hurd/configure.in: Likewise.
8489 * sysdeps/unix/configure.in: Likewise.
8490 * sysdeps/unix/common/configure.in: Likewise.
8491 * sysdeps/unix/sysv/aix/configure.in: Likewise.
8492 * sysdeps/unix/sysv/linux/configure.in: Likewise.
8493 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
8494 * sysdeps/x86_64/elf/configure.in: Likewise.
8496 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
8497 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
8498 that it's obvious when extra autoconf machinery is being dragged in.
8500 2002-10-18 Roland McGrath <roland@redhat.com>
8502 * configure.in: Remove bogus echo included in
8503 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
8504 * configure: Regenerated.
8506 2002-10-18 Jakub Jelinek <jakub@redhat.com>
8508 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
8509 (statfs_filesize_max): New function.
8510 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
8511 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
8512 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
8513 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
8514 statfs_filesize_max.
8515 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8516 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
8517 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
8519 2002-10-17 Roland McGrath <roland@redhat.com>
8521 * configure.in (MIG): Just AC_SUBST it here.
8522 * configure: Regenerated.
8523 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
8524 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
8525 * sysdeps/mach/configure: Regenerated.
8527 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
8528 and AC_PROVIDE([_AS_CR_PREPARE]).
8530 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
8531 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
8533 * elf/dl-support.c: Move _dl_tls_* variables to ...
8534 * sysdeps/generic/libc-tls.c: ... here.
8536 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
8537 allow IDX to be one past the current last slotinfo entry.
8538 (_dl_close): Pass IMAP->l_init_called for that parameter.
8540 2002-10-07 Andreas Schwab <schwab@suse.de>
8542 * aclocal.m4: Fix for autoconf 2.53.
8543 * configure.in: Likewise. Require autoconf 2.53.
8545 2002-10-08 Richard Henderson <rth@redhat.com>
8547 * soft-fp/op-4.h: Handle carry correctly in
8548 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
8549 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
8550 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
8552 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
8554 * configure.in: Compute completely-soft.
8555 * config.make.in: Make completely-soft available to sub-makes.
8556 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
8557 gcc-double-routines. Add sim-full.c. Add fenv_const and
8558 fe_nomask to libm-support.
8559 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
8560 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
8561 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
8562 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
8563 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
8564 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
8565 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
8566 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
8567 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
8568 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
8569 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
8570 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
8571 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
8572 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
8573 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
8574 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
8575 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
8576 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
8577 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
8578 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
8580 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
8581 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
8582 FP_HANDLE_EXCEPTIONS.
8583 Define FP_ROUNDMODE.
8584 Redefine FP_* macros to correspond to the FE_* bit positions.
8585 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
8586 Define externs for __sim_exceptions, __sim_disabled_exceptions,
8587 __sim_round_mode, __simulate_exceptions.
8588 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
8589 * sysdeps/powerpc/bits/fenv.h: ...to here.
8591 2002-10-06 Jakub Jelinek <jakub@redhat.com>
8593 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8594 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
8595 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
8596 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
8599 2002-10-15 Jakub Jelinek <jakub@redhat.com>
8601 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
8602 __libc_res_nsend): New prototypes.
8603 * resolv/res_query.c (QUERYSIZE): Define.
8604 (__libc_res_nquery): Renamed from res_nquery. Added answerp
8605 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
8606 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
8607 res_nsend, pass answerp.
8608 (res_nquery): Changed into wrapper around __libc_res_nquery.
8609 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
8610 argument. Call __libc_res_nquerydomain and __libc_res_nquery
8611 instead of the non-__libc_ variants, pass them answerp.
8612 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
8613 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
8614 Added answerp argument. Call __libc_res_nquery instead of
8615 res_nquery, pass answerp.
8616 (res_nquerydomain): Changed into wrapper around
8617 __libc_res_nquerydomain.
8618 * resolv/res_send.c: Include sys/ioctl.h.
8619 (MAXPACKET): Define.
8620 (send_vc): Change arguments. Reallocate answer buffer if it is
8622 (send_dg): Likewise.
8623 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
8624 Reallocate answer buffer if it is too small and hooks are in use.
8625 Adjust calls to send_vc and send_dg.
8626 (res_nsend): Changed into wrapper around __libc_res_nsend.
8627 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
8628 just 1K answer buffer on the stack, use __libc_res_nsearch instead
8630 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
8631 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8632 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
8633 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
8634 (gethostbyaddr): Similarly with __libc_res_nquery.
8635 * resolv/Versions (libresolv): Export __libc_res_nquery and
8636 __libc_res_nsearch at GLIBC_PRIVATE.
8638 2002-10-17 Roland McGrath <roland@redhat.com>
8640 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
8641 * configure: Regenerated.
8643 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
8644 before performing the reloc, not after.
8645 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8647 2002-10-17 Ulrich Drepper <drepper@redhat.com>
8649 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
8650 * locale/programs/linereader.c (lr_open): Likewise.
8651 * locale/programs/charmap-dir.c (charmap_open): Likewise.
8652 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8654 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8656 * posix/bug-regex11.c: Add a test case for the bug reported by
8657 Paolo Bonzini <bonzini@gnu.org>.
8658 * posix/regexec.c (sift_states_bkref): Use correct destination of
8661 2002-10-17 Roland McGrath <roland@redhat.com>
8663 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
8664 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
8665 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
8666 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8667 Call it after performing TPOFF relocs.
8668 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8669 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8670 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
8672 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
8673 when closing a partially-initialized object.
8675 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
8676 instead of _dl_fatal_printf when we see PT_TLS.
8678 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
8679 instead of $(libof-$<).
8681 2002-10-16 Roland McGrath <roland@redhat.com>
8683 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
8684 instead of += to append, to be sure $(lib) gets expanded at defn time.
8685 (libof-$(cpp-src)): New variable, define this instead.
8686 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
8687 (lib): Don't use override.
8688 (CPPFLAGS-$(lib)): New variable, put -D's here.
8689 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
8690 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
8691 LIB found by $(libof-*) for basename, target, or source.
8692 * Makerules (CPPFLAGS-nonlib): New variable.
8693 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
8694 * locale/Makefile (lib): Likewise.
8695 * sunrpc/Makefile (lib): Likewise.
8697 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
8698 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
8699 * sysdeps/unix/sysv/linux/pathconf.h: New file.
8700 (statfs_link_max): New function, guts from fpathconf.c.
8701 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
8702 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8703 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
8704 to use the linux/pathconf.c code by #include rather than duplication.
8705 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
8707 2002-10-16 Jakub Jelinek <jakub@redhat.com>
8709 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8710 Use __libc_errno only for libc itself.
8712 2002-10-16 Andreas Jaeger <aj@suse.de>
8714 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
8716 2002-10-16 Ulrich Drepper <drepper@redhat.com>
8718 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8719 Use __libc_errno only for libc itself.
8721 2002-10-15 Roland McGrath <roland@redhat.com>
8722 Jakub Jelinek <jakub@redhat.com>
8724 * sysdeps/unix/sysv/linux/Makefile
8725 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
8726 sparc/Makefile to produce a bi-arch file as needed.
8727 That's now parameterized by the variable $(64bit-predefine).
8728 Use LC_ALL=C for `comm' commands in that rule.
8729 No longer conditional on [$(no_syscall_list_h)].
8730 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
8731 (64bit-predefine): New variable.
8732 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
8733 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
8734 * sysdeps/unix/sysv/linux/powerpc/Makefile
8735 (64bit-predefine): New variable.
8737 2002-10-15 Roland McGrath <roland@redhat.com>
8739 * sysdeps/unix/sysv/linux/Makefile
8740 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
8742 * login/utmp-private.h: Declare __libc_utmp_lock.
8743 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
8744 and call __libc_utmp_jump_table functions directly, instead of using
8747 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
8748 * sysdeps/unix/sysv/linux/configure: Regenerated.
8750 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
8751 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8752 Use int32_t for ll_time.
8753 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8754 Use int32_t instead of long int for ut_session.
8755 Use an anonymous struct with 32-bit fields for ut_tv.
8756 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
8757 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
8758 here as in utmp.h for `struct utmp'.
8759 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
8760 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
8761 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
8762 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
8763 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
8764 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
8766 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
8767 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
8768 All the following files were identical or equivalent to it.
8769 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
8770 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
8771 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
8772 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
8773 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
8774 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
8775 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
8776 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
8777 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
8778 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
8780 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
8781 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
8782 Other than the previously incorrect sign of msg_iovlen, this is a
8783 no-op on 32-bit platforms. On 64-bit platforms it makes this header
8784 match their layouts as well, so the following are now identical to it.
8785 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
8786 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
8787 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
8788 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
8789 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
8791 2002-10-15 Ulrich Drepper <drepper@redhat.com>
8793 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8794 Define for 2.4+ kernels.
8796 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
8797 are known to have the vfork syscall. Don't confuse the CPUs
8798 branch prediction unit by jumping to the return address.
8800 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
8801 support for reiserfs and xfs.
8803 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
8805 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
8807 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
8809 2002-10-16 Jakub Jelinek <jakub@redhat.com>
8811 * include/libc-symbols.h (attribute_tls_model_ie): Define.
8812 * include/errno.h (errno): Define to __libc_errno in libc.so.
8813 Add attribute_tls_model_ie.
8814 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
8815 Add attribute_tls_model_ie.
8816 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
8817 attribute_tls_model_ie.
8818 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
8820 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
8822 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
8823 attribute_tls_model_ie.
8824 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
8826 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
8827 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
8828 __libc_errno in USE___THREAD case.
8829 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8831 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
8832 __attribute__((tls_model (""))).
8833 * configure: Rebuilt.
8834 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
8836 2002-10-15 Ulrich Drepper <drepper@redhat.com>
8838 * timezone/asia: Update from tzdata2002d.
8839 * timezone/australasia: Likewise.
8840 * timezone/iso3166.tab: Likewise.
8841 * timezone/southamerica: Likewise.
8842 * timezone/zone-tab: Likewise.
8844 2002-10-15 Roland McGrath <roland@redhat.com>
8846 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
8847 Adjust TCB pointer before calling free, so we get the whole block.
8849 2002-10-14 Roland McGrath <roland@redhat.com>
8851 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
8852 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
8853 extern using attribute_hidden instead of static, avoids warning.
8855 2002-10-09 Jakub Jelinek <jakub@redhat.com>
8857 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
8858 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8860 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8862 * po/sv.po: Update from translation team.
8864 2002-10-12 H.J. Lu <hjl@gnu.org>
8866 * sunrpc/thrsvc.c (PROCQUIT): New.
8867 (struct rpc_arg): New.
8868 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
8869 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
8870 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
8871 (main): Modified for struct rpc_arg *.
8873 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8875 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
8877 2002-10-14 Jakub Jelinek <jakub@redhat.com>
8879 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
8880 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
8881 in ld.so even if __thread is supported.
8883 2002-10-13 Jakub Jelinek <jakub@redhat.com>
8885 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
8886 Add hack to prevent the compiler from clobbering the signal context.
8887 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
8889 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
8892 2002-10-14 Andreas Jaeger <aj@suse.de>
8894 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
8895 Guido Guenther <agx@sigxcpu.org>.
8897 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8899 * po/sk.po: Update from translation team.
8901 2002-09-26 Roland McGrath <roland@redhat.com>
8903 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
8905 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
8906 DL_DST_LIB based on $(slibdir).
8908 2002-10-13 Roland McGrath <roland@frob.com>
8910 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
8912 * sysdeps/mach/hurd/getresuid.c: New file.
8913 * sysdeps/mach/hurd/getresgid.c: New file.
8914 * sysdeps/mach/hurd/setresuid.c: New file.
8915 * sysdeps/mach/hurd/setresgid.c: New file.
8917 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
8918 setresgid): Declare them.
8921 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
8922 add libc_hidden_proto.
8923 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
8924 getresuid, getresgid, setresuid, setresgid here.
8925 * Versions.def (libc): Define GLIBC_2.3.2 set.
8926 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
8927 Add libc_hidden_def.
8928 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
8929 * sysdeps/generic/setresgid.c: New file.
8930 * sysdeps/generic/setresuid.c: New file.
8931 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8932 (sysdep_routines): Don't add getresuid and getresgid here.
8933 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
8934 (sysdep_routines): Don't add setresuid and setresgid here.
8935 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8936 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8937 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8938 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8939 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8940 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8941 * posix/Makefile (routines): Add them all here instead.
8942 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
8943 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
8944 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
8945 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
8946 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
8947 [! __NR_setresuid]: Include generic file.
8948 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
8949 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
8950 [! __NR_setresuid]: Include generic file.
8951 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
8952 Caller is - now, not EXTRA.
8953 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
8954 (setresuid, setresgid, getresuid, getresgid): Likewise.
8955 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
8956 Add these calls here.
8957 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
8958 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8959 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8960 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8961 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8964 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8965 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8967 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8968 (sysdep_routines): Add setfsuid and setfsgid here.
8969 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
8970 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
8971 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8972 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8973 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8974 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8975 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8976 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8978 * hurd/errno.c: Renamed to ...
8979 * hurd/errno-loc.c: ... this.
8980 * hurd/Makefile (routines): errno -> errno-loc
8982 2002-10-13 Ulrich Drepper <drepper@redhat.com>
8984 * po/de.po: Update from translation team.
8986 * MakeTAGS: Add -E flag to xgettext runs.
8988 2002-10-12 Ulrich Drepper <drepper@redhat.com>
8990 * po/fr.po: Update from translation team.
8992 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
8993 Optimize a bit for use in glibc.
8995 2002-10-12 Roland McGrath <roland@redhat.com>
8997 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
8998 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
9000 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9002 * po/sv.po: Update from translation team.
9004 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9006 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
9008 (regfree): Likewise.
9009 (create_initial_state): Likewise.
9010 (analyze): Remove the substitutions which became useless.
9011 (calc_first): Likewise.
9012 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
9013 epsilon destination.
9014 (duplicate_node_closure): New function.
9015 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
9016 (calc_inveclosure): Likewise.
9017 (calc_eclosure): Likewise.
9018 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
9019 direct invocation of duplicate_node.
9020 (parse): Don't use comma operator in the return to avoid compiler
9022 (parse_reg_exp): Likewise.
9023 (parse_branch): Likewise.
9024 (parse_expression): Likewise.
9025 (parse_sub_exp): Likewise.
9026 (parse_dup_op): Likewise.
9027 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
9028 which became useless.
9029 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
9030 (create_cd_newstate): Likewise.
9031 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
9032 (re_token_t): Likewise.
9033 (re_dfa_t): Likewise.
9034 (re_node_set_remove): New macro.
9035 * posix/regexec.c (check_matching): Remove the handling
9037 (check_halt_node_context): Likewise.
9038 (proceed_next_node): Likewise.
9039 (pop_fail_stack): Fix the memory leak.
9040 (set_regs): Likewise.
9041 (free_fail_stack_return): New function.
9042 (sift_states_backward): Fix the memory leak. Remove the handling
9044 (update_cur_sifted_state): Append some if clause to avoid redundant
9046 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
9048 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
9049 (check_subexp_limits): Likewise.
9050 (search_subexp): Likewise.
9051 (sift_states_bkref): Likewise.
9052 (transit_state_mb): Likewise.
9053 (transit_state_bkref_loop): Likewise.
9054 (transit_state_bkref_loop): Likewise.
9055 (group_nodes_into_DFAstates): Likewise.
9056 (check_node_accept): Likewise.
9057 (sift_ctx_init): Add initializing.
9059 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9061 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
9064 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9066 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
9067 duplicated variable c.
9069 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
9072 * sysdeps/unix/sysv/linux/i386/sysdep.h
9073 (INTERNAL_SYSCALL_ERROR_P): New define.
9074 (INTERNAL_SYSCALL_ERRNO): Likewise.
9076 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
9077 Add hack to prevent the compiler from clobbering the signal context.
9079 2002-10-11 Roland McGrath <roland@redhat.com>
9081 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9084 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
9085 * sysdeps/sh/dl-lookupcfg.h: File removed.
9086 * sysdeps/i386/dl-lookupcfg.h: File removed.
9088 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
9089 missing labels and ; from last change.
9091 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
9092 number literals, so they are doubles instead of ints.
9094 2002-10-09 Roland McGrath <roland@redhat.com>
9096 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
9097 changed from [USE_TLS && HAVE___THREAD].
9099 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
9100 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
9101 * sysdeps/x86_64/dl-machine.h
9102 (elf_machine_type_class, elf_machine_rela): Likewise.
9103 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
9106 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
9107 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
9108 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
9110 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
9111 instead of ___tls_get_addr.
9112 (___tls_get_addr_internal): Add attribute_hidden to decl.
9114 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
9115 _dl_error_catch_tsd.
9116 * elf/rtld.c (startup_error_tsd): New function.
9117 (dl_main): Point _dl_error_catch_tsd at that.
9118 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
9119 use new function pointer instead.
9120 * elf/dl-tsd.c: New file.
9121 * elf/Makefile (routines): Add it.
9123 2002-10-07 Roland McGrath <roland@redhat.com>
9125 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
9126 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
9127 take _dl_load_lock around calling __writev.
9129 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
9130 (INLINE_SYSCALL): Use that.
9132 * sysdeps/generic/dl-sysdep.h: New file.
9133 * sysdeps/mach/hurd/dl-sysdep.h: New file.
9134 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
9135 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
9136 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
9138 * elf/dl-minimal.c (__errno_location): Removed.
9139 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9140 Use GOTOFF access for errno.
9141 * sysdeps/unix/sysv/linux/i386/sysdep.h
9142 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9144 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9145 Use PC-relative access for errno.
9146 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9147 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9149 * include/tls.h: New file.
9150 (USE___THREAD): New macro.
9151 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
9153 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
9154 changed from [USE_TLS && HAVE___THREAD].
9155 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9156 * sysdeps/unix/i386/sysdep.S: Likewise.
9157 * sysdeps/unix/x86_64/sysdep.S: Likewise.
9158 * include/errno.h: Likewise.
9159 * include/netdb.h: Likewise.
9160 * include/resolv.h: Likewise.
9162 * sysdeps/generic/errno.c: New file.
9163 * csu/Makefile (aux): New variable, list errno.
9164 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
9165 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
9166 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
9167 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9168 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9169 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
9170 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
9171 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
9172 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9173 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
9174 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
9175 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
9176 * sysdeps/unix/alpha/sysdep.S: Likewise.
9177 * sysdeps/generic/start.c: Likewise.
9178 * sysdeps/unix/start.c: Likewise.
9179 * sysdeps/unix/arm/start.c: Likewise.
9180 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
9181 * sysdeps/unix/sparc/start.c: Likewise.
9182 * sysdeps/unix/sysv/irix4/start.c: Likewise.
9183 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
9185 * manual/search.texi (Tree Search Function, Hash Search Function):
9186 Mention search.h clearly.
9188 2002-10-05 Roland McGrath <roland@redhat.com>
9190 * elf/dl-fxstat64.c: File removed.
9191 * elf/dl-xstat64.c: File removed.
9192 * elf/Makefile (rtld-routines): Remove them.
9193 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
9194 Instead, use strong_alias instead of versioned_symbol in the
9196 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
9197 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9199 * include/shlib-compat.h
9200 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
9201 [! NOT_IN_libc] (IS_IN_libc): Define it.
9202 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
9203 * elf/Makefile (CPPFLAGS-.os): Likewise.
9205 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
9206 Return the status instead of calling exit.
9208 * Makeconfig (CFLAGS): Prepend -std=gnu99.
9209 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
9210 Remove superfluous rm command, whose @ plus make bugs hid
9211 all these commands from the make output.
9213 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
9214 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
9215 Use that file's contents instead of literal echo's for the prologue.
9216 * include/features.h: Include <gnu/stubs.h> unconditionally.
9217 * include/gnu/stubs.h: New file.
9219 2002-09-30 Roland McGrath <roland@redhat.com>
9221 * elf/rtld-Rules: New file.
9222 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
9223 $(objpfx)rtld-libc.a): New targets.
9224 (generated): Add them.
9225 (reloc-link): Remove -o $@ from the variable.
9226 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
9227 (distribute): Add rtld-Rules.
9228 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
9229 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
9230 (common-mostlyclean, common-clean): Clean up rtld-* files.
9231 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
9233 2003-05-20 Jakub Jelinek <jakub@redhat.com>
9235 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
9236 If temp != NULL, copy dynamic entries which need relocation to temp
9237 array before relocating.
9238 (DL_RO_DYN_TEMP_CNT): Define.
9239 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
9240 * elf/rtld.c (_dl_start): Likewise.
9241 (dl_main): Likewise. Add dyn_temp static variable.
9243 2002-10-11 Roland McGrath <roland@redhat.com>
9245 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
9246 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
9248 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
9249 proper set of no-op insn prefixes.
9251 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
9253 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9255 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
9256 __pthread_kill_other_threads_np.
9258 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
9260 2002-10-08 Roland McGrath <roland@redhat.com>
9262 * locale/newlocale.c (__newlocale): If setting all categories to "C",
9263 just return &_nl_C_locobj instead of copying it.
9264 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
9265 * locale/duplocale.c (__duplocale): Likewise.
9267 2002-10-07 Roland McGrath <roland@frob.com>
9269 * config.h.in (HAVE_I386_SET_GDT): New #undef.
9270 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
9271 * sysdeps/mach/configure: Regenerated.
9273 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9276 Add all necessary register outputs for syscall-clobbered registers.
9278 2002-10-02 David Mosberger <davidm@hpl.hp.com>
9280 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
9281 Itanium 2 (and Itanium).
9282 Fix unwind directives and make it fit in 80 columns.
9283 * sysdeps/ia64/memset.S: Likewise.
9284 * sysdeps/ia64/memcpy.S: Likewise.
9285 Move jump table to .rodata section.
9287 2002-10-03 Roland McGrath <roland@frob.com>
9289 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
9292 2002-10-10 Andreas Jaeger <aj@suse.de>
9294 * sysdeps/x86_64/_mcount.S: Restore correct registers.
9296 2002-10-10 Ulrich Drepper <drepper@redhat.com>
9298 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
9300 2002-10-09 Ulrich Drepper <drepper@redhat.com>
9302 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
9303 _dl_allocate_tls_init. Add rtld_hidden_proto.
9304 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
9306 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
9308 * version.h (VERSION): Bump to 2.3.1.
9310 * Make-dist: Add back one of the tar invocations removed before.
9312 * stdlib/Makefile (distribute): Add allocalim.h.
9314 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
9315 (__libc_tsd_address): Use correct variable name.
9316 Patch by Stefan Jones <stefan.jones@multigig.com>.
9318 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
9319 Reported by edwardsg@sgi.com [PR libc/4678].
9321 * Versions.def (libc): Add GLIBC_2.3.1.
9322 (libpthread): Add GLIBC_2.3.1.
9324 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
9326 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
9327 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
9329 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
9330 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9332 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
9333 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
9334 and make old name an alias.
9335 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
9336 and make old name an alias.
9337 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
9340 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
9341 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
9343 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
9345 * sysdeps/posix/readv.c: Likewise
9346 * sysdeps/unix/sysv/aix/readv.c: Likewise.
9347 * sysdeps/unix/sysv/linux/readv.c: Likewise.
9348 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
9350 * sysdeps/posix/writev.c: Likewise
9351 * sysdeps/unix/sysv/aix/writev.c: Likewise.
9352 * sysdeps/unix/sysv/linux/writev.c: Likewise.
9354 * include/sys/wait.h: Declare __waitid.
9355 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
9356 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
9358 * sysdeps/posix/waitid.c: Likewise.
9359 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
9361 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
9363 2002-10-07 Jakub Jelinek <jakub@redhat.com>
9365 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
9367 (__MAX_ALLOCA_CUTOFF): Define.
9368 Include allocalim.h.
9369 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
9370 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
9371 host_buffer depending on __libc_use_alloca.
9372 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
9373 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
9374 net_buffer depending on __libc_use_alloca.
9375 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
9376 buf depending on __libc_use_alloca.
9377 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
9378 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
9379 instead of hardcoded constants.
9380 Pass proper size argument to alloca and compute end for wide char
9382 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
9383 instead of hardcoded constants.
9384 * string/strcoll.c (strcoll): Likewise.
9385 * string/strxfrm.c (strxfrm): Likewise.
9386 * sysdeps/posix/readv.c (__readv): Likewise.
9387 * sysdeps/posix/writev.c (__writev): Likewise.
9388 * sysdeps/generic/allocalim.h: New file.
9390 2002-10-08 Roland McGrath <roland@redhat.com>
9392 * configure.in (aux_missing warning): Change "too old" to
9393 "incompatible versions", since for autoconf it's "too new" right now.
9394 * configure: Regenerated.
9396 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
9397 one found doesn't work on our configure.in.
9398 * configure: Regenerated.
9399 * config.make.in (AUTOCONF): New substituted variable.
9400 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
9401 (autoconf-it): ... here, use that instead of defining conditionally.
9402 Use $(AUTOCONF) instead of literal autoconf.
9403 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
9404 with this condition.
9405 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
9407 2002-10-08 Ulrich Drepper <drepper@redhat.com>
9409 * Make-dist (dist): Cleanup a bit. We are not interested in the
9410 14 char filename limit anymore. Remove intermediate files and
9413 2002-10-05 Ulrich Drepper <drepper@redhat.com>
9415 * po/sk.po: Update from translation team.
9416 * po/tr.po: Likewise.
9417 * po/gl.po: Likewise.
9419 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9421 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
9423 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9425 * version.h (RELEASE): Change to stable.
9427 2002-10-03 Jakub Jelinek <jakub@redhat.com>
9429 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
9430 __syscall_exit_group): New prototypes.
9432 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9434 * glibc 2.3 released.
9437 See ChangeLog.13 for earlier changes.