1 2004-08-08 Ulrich Drepper <drepper@redhat.com>
3 * resolv/res_send.c: Compiling with DEBUG defined works again.
4 * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
7 * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
8 available the process is not killed. [BZ #41]
10 * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
12 * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
15 * po/sv.po: Update from translation team.
17 2004-08-07 Ulrich Drepper <drepper@redhat.com>
19 * inet/netinet/in.h: Add more const to the setipv4soucefilter,
20 getsourcefilter, and setsourcefilter parameter list.
21 * sysdeps/generic/setipv4sourcefilter.c: Likewise.
22 * sysdeps/generic/getsourcefilter.c: Likewise.
23 * sysdeps/generic/setsourcefilter.c: Likewise.
24 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
25 * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
26 * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
28 * po/tr.po: Update from translation team.
30 2004-08-06 Ulrich Drepper <drepper@redhat.com>
32 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
33 Reported by Paolo Bonzini.
35 2004-08-06 Jakub Jelinek <jakub@redhat.com>
37 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
39 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
40 elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
42 * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
43 before including linux/atalk.h.
45 * resolv/res_libc.c: Include atomic.h.
47 * intl/finddomain.c (free_mem): Rename to...
48 (_nl_finddomain_subfreeres): ... this. Add
49 __libc_freeres_fn_section.
50 * intl/loadmsgcat.c (_nl_unload_domain): Add
51 __libc_freeres_fn_section.
52 * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
54 (_nl_findomain_subfreeres): New prototype.
55 * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
57 2004-07-30 Guido Guenther <agx@sigxcpu.org>
59 * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
60 test if the key is numeric or not.
61 (group_keys): Likewise.
63 2004-08-05 Ulrich Drepper <drepper@redhat.com>
65 * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
66 struct group_filter, and GROUP_FILTER_SIZE.
67 * include/sys/socket.h: Declare __getsockopt.
68 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
69 * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
70 * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
71 * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
73 * po/ko.po: Update from translation team.
75 2004-08-04 Jakub Jelinek <jakub@redhat.com>
77 * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
79 (__hesiod_res_set): Free nsaddrs.
81 * include/resolv.h (__res_maybe_init): Add prototype.
82 * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
83 * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
84 * resolv/res_libc.c (__res_initstamp, lock): New variables.
85 (res_init): Increase __res_initstamp.
86 (__res_maybe_init): New function.
87 * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
88 * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
89 of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
90 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
91 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
92 _nss_dns_gethostbyaddr_r): Likewise.
93 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
94 _nss_dns_getnetbyaddr_r): Likewise.
95 * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
96 gethostbyaddr): Likewise.
97 * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
98 res_isourserver, res_sendsigned, res_update, res_search,
99 res_querydomain): Likewise.
100 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
101 * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
102 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
105 2004-08-05 Ulrich Drepper <drepper@redhat.com>
107 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
108 V4-mapped IPv6 addresses and req->ai_family==AF_INET.
109 Reported by A. Guru <a.guru@sympatico.ca>.
111 * po/sv.po: Update from translation team.
112 * po/sk.po: Likewise.
113 * po/pl.po: Likewise.
115 2004-08-04 Jakub Jelinek <jakub@redhat.com>
116 Ulrich Drepper <drepper@redhat.com>
118 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
119 characters than necessary.
121 2004-08-05 Ulrich Drepper <drepper@redhat.com>
123 * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
124 * wcsmbs/tst-mbsrtowcs.c: New file.
126 * po/fr.po: Update from translation team.
128 2004-08-04 Jakub Jelinek <jakub@redhat.com>
130 * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported
131 by A. Guru <a.guru@sympatico.ca>. [BZ #295]
133 2004-08-05 Ulrich Drepper <drepper@redhat.com>
135 * po/nl.po: Update from translation team.
137 * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
138 numeric address formats inet_addr knows.
139 (getaddrinfo): Allow AI_NUMERICSERV flag.
140 If neither IPv4 nor IPv6 interface is present we cannot make any
141 decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the
142 string is not just a number. Remove useless freeaddrinfo call.
143 * resolv/netdb.h (AI_NUMERICSERV): Define.
144 Based on a patch by a.guru@sympatico.ca.
146 2004-08-04 Jakub Jelinek <jakub@redhat.com>
148 * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
149 instead of trying to initialize some, but not all, fields one by
151 * stdio-common/printf_size.c (printf_size): Initialize fb_info
152 structure with *info instead of trying to initialize some, but not
155 * nscd/connections.c (handle_request): Check if req->type is in
156 LASTDBREQ .. LASTREQ range instead of req.
158 * locale/programs/linereader.c (lr_create): Initialize
159 lr->return_widestr to 0.
161 * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
162 (free_mem): Call free_slotinfo just once.
164 * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
167 * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
168 * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
169 (free_mem): Rename to _nl_locale_subfreeres.
170 * iconv/gconv_db.c: Include locale/localeinfo.h.
171 (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
172 (free_mem): Call _nl_locale_subfreeres.
173 * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
175 2004-08-04 Roland McGrath <roland@frob.com>
177 * Makeconfig ($(common-objpfx)config.status):
178 Fix typo: $(add_ons) -> $(add-ons).
179 (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs)
180 include, use black magic to get it set to an add-on's name during the
181 include of the add-on's Makeconfig.
183 * configure.in: Use variable name `libc_add_on' when sourcing add-on
184 configure fragments, so they can refer to this.
185 * configure: Regenerated.
187 2004-08-04 Roland McGrath <roland@redhat.com>
189 * posix/tst-waitid.c (test_child): Sleep a second before stopping.
190 (do_test): Bump sleep to three seconds.
191 (sigchld, check_sigchld): New functions.
192 (do_test): Handle SIGCHLD and check for getting the right details.
194 * posix/tst-waitid.c (do_test): Kill the child process when bailing
195 out early on some failure.
196 [WCONTINUED]: Test WCONTINUED functionality.
198 2004-08-03 Ulrich Drepper <drepper@redhat.com>
200 * nscd/connections.c (handle_request): Print more descriptive
201 message for invalid request types.
203 2004-08-02 Jakub Jelinek <jakub@redhat.com>
205 * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
206 Always treat high as highest number in range + 1.
207 * iconvdata/ibm943.c (BODY): Likewise.
209 2004-07-31 Bruno Haible <bruno@clisp.org>
211 * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
212 * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
213 __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
214 __jisx0213_from_ucs_level2): Regenerated.
215 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
216 * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
218 (JISX0213_1_2004_set): New enum value.
219 (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
220 (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
221 when possible, ESC $ ( Q when needed.
222 * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
223 * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
224 * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
225 * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
226 * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
227 * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
229 2004-07-22 Bruno Haible <bruno@clisp.org>
231 * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
233 2004-07-29 David S. Miller <davem@redhat.com>
235 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
236 better for smaller than 256 byte copies. Also, use only one
237 unrolled loop instead of two for the large copy case.
239 2004-07-30 Richard Henderson <rth@redhat.com>
241 * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
242 * sysdeps/alpha/remq.S: Likewise.
243 * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
244 new division algorithms in divl.S and divq.S respectively.
246 2004-07-28 GOTO Masanori <gotom@debian.or.jp>
248 * timezone/asia: Update from tzdata2004b.
249 * timezone/backward: Likewise.
250 * timezone/europe: Likewise.
251 * timezone/iso3166.tab: Likewise.
252 * timezone/leapseconds: Likewise.
253 * timezone/northamerica: Likewise.
254 * timezone/southamerica: Likewise.
255 * timezone/zone.tab: Likewise.
257 * timezone/private.h: Update from tzcode2004b.
258 * timezone/zic.c: Likewise.
260 2004-07-27 Ulrich Drepper <drepper@redhat.com>
262 * nscd/grpcache.c (cache_addgr): If necessary, add entry also
263 under the name the user provided.
264 * nscd/pwdcache.c (cache_addpw): Likewise.
266 2004-07-26 Roland McGrath <roland@redhat.com>
268 * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
271 2004-07-26 Ulrich Drepper <drepper@redhat.com>
273 * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
276 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
277 new buffer at the right time.
278 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
280 2004-07-25 Ulrich Drepper <drepper@redhat.com>
282 * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
283 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
284 * inet/Makefile (routines): Likewise.
285 * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
286 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
287 * sysdeps/generic/getipv4sourcefilter.c: New file.
288 * sysdeps/generic/setipv4sourcefilter.c: New file.
289 * sysdeps/generic/getsourcefilter.c: New file.
290 * sysdeps/generic/setsourcefilter.c: New file.
292 2004-07-17 Steven Munroe <sjmunroe@us.ibm.com>
294 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
297 2004-07-21 Jakub Jelinek <jakub@redhat.com>
300 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
301 BITS_PER_MP_LIMB shifting up.
302 * stdlib/tst-strtod.c (main): Add new tests.
304 2004-07-23 Jakub Jelinek <jakub@redhat.com>
307 * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
308 _IO_no_init. Remove wd from struct locked_FILE.
309 (_IO_wproc_jumps): Remove.
310 Reported by Andrew Josey <a.josey@opengroup.org>.
311 * stdio-common/Makefile (tests): Add tst-popen.
312 * stdio-common/tst-popen.c: New test.
314 2004-07-23 Ulrich Drepper <drepper@redhat.com>
316 * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
317 _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
318 _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
319 Reported by Andrew Josey.
321 * include/features.h: Document _POSIX_C_SOURCE == 200112L.
323 * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
324 * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
325 * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
326 off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
327 * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
328 * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
329 useconds_t if __USE_XOPEN2K is defined.
330 * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
331 * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
333 2004-07-19 Thorsten Kukuk <kukuk@suse.de>
335 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
336 allocate memory for large temporary variables with alloca.
338 2004-07-22 Ulrich Drepper <drepper@redhat.com>
340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
341 code must have version GLIBC_2.0. Patch by Dwayne McConnell.
343 * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
344 pointer and zero length.
346 2004-07-21 Ulrich Drepper <drepper@redhat.com>
348 * nscd/cache.c (prune_cache): Print correct list when debugging.
350 2004-07-21 Jakub Jelinek <jakub@redhat.com>
352 * resolv/res_libc.c (res_init): If RES_INIT is set and
353 _res.nscount > 0, call __res_nclose and free nsaddrs.
354 * resolv/Makefile: Add rules to build and run tst-leaks2.
355 * resolv/tst-leaks2.c: New test.
357 2004-07-21 Ulrich Drepper <drepper@redhat.com>
359 * intl/libintl.h: Don't define macros for C++.
360 Patch by Goto Masanori.
362 2004-07-22 GOTO Masanori <gotom@debian.or.jp>
365 * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
366 * inet/arpa/inet.h: Likewise.
367 * resolv/inet_addr.c: Likewise.
369 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
371 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
373 2004-07-20 Roland McGrath <roland@redhat.com>
375 * configure.in (add_ons): Substitute this. Move $add_ons handling
376 after AC_CANONICAL_HOST and default setting of $machine et al.
377 Don't set $subdirs from $add_ons.
378 Instead, source add-on/configure fragments early on.
379 (base_machine): If it's already set, don't set it based on $machine.
380 (libc_config_ok): New variable, set to no. If an add-on fragment sets
381 it to yes, skip the tuple sanity check as if --enable-hacker-mode.
382 (sysnames): Try appending add-on names after machine as well.
383 * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
384 * Makeconfig ($(common-objpfx)config.status): Also depend on configure
385 files in $(add_ons) dirs.
387 * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
388 definition, now in netinet/in.h proper.
390 2004-07-20 Alexandre Oliva <aoliva@redhat.com>
392 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
393 Sort by syscalls. Make sure we get headers such as sgidefs.h from
394 the build tree before just-installed ones.
396 * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
397 include sgidefs.h where appropriate.
398 * sysdeps/mips/dl-machine.h: Likewise.
399 * sysdeps/mips/machine-gmon.h: Likewise.
400 * sysdeps/mips/bits/setjmp.h: Likewise.
401 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
402 * sysdeps/mips/mips64/__longjmp.c: Likewise.
403 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
404 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
405 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
406 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
407 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
408 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
409 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
410 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
411 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
412 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
413 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
414 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
415 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
416 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
417 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
418 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
419 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
420 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
422 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
425 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
427 (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
429 2004-07-20 Ulrich Drepper <drepper@redhat.com>
431 * inet/netinet/in.h: Define struct ip_mreq and struct
433 Define struct group_req and struct group_source_req.
434 * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
435 IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
436 IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
437 MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
438 MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
440 Define MCAST_INCLUDE and MCAST_EXCLUDE.
442 * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
444 2004-07-19 Jakub Jelinek <jakub@redhat.com>
447 * math/libm-test.inc (max_value, min_value): New variables.
448 (initialize): Initialize them.
449 (pow_test): Add a couple of new tests.
450 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
451 exception if |y| >= 1U<<31.
452 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
453 exception if |y| >= 1L<<63.
454 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
455 If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
456 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
458 2004-07-18 Ulrich Drepper <drepper@redhat.com>
460 * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
462 * nscd/grpcache.c (cache_addgr): Likewise.
463 * nscd/hstcache.c (cache_addhst): Likewise.
465 2004-07-10 GOTO Masanori <gotom@debian.or.jp>
467 * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
468 * sysdeps/s390/s390-64/elf/start.S: Likewise.
470 2004-04-16 Andreas Schwab <schwab@suse.de>
472 * sysdeps/ia64/bits/atomic.h: Cast first argument of
473 __sync_bool_compare_and_swap_si correct to void*.
475 2004-07-17 Ulrich Drepper <drepper@redhat.com>
477 * iconv/iconv_prog.c (print_known_names): Make machine-readable
478 output even less cluttered.
480 2004-07-16 Steven Munroe <sjmunroe@us.ibm.com>
483 * setjmp/Makefile (tests): Add bug269-setjmp.
484 * setjmp/bug269-setjmp.c: New file.
485 * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
486 Store R2 from jmpbuf in callers TOC save area.
487 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
488 Store R2 in TOC save area.
489 * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
490 Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
492 2004-07-16 Jakub Jelinek <jakub@redhat.com>
494 * locale/newlocale.c: Include bits/libc-lock.h.
495 (__libc_setlocale_lock): Extern decl.
496 (__newlocale): Use it.
497 Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
499 2004-07-15 Jakub Jelinek <jakub@redhat.com>
501 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
502 static inline __attribute ((always_inline)). Don't define if
504 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
507 Remove static inline __attribute ((always_inline)). Don't define
509 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
511 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
512 __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
513 Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
514 (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
517 * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
519 * elf/Makefile: Add rules to build and run tst-pie1.
520 * elf/tst-pie1.c: New test.
521 * elf/tst-piemod1.c: New file.
523 2004-07-14 Jakub Jelinek <jakub@redhat.com>
526 * manual/string.texi (l64a): Note that the static buffer is 7 bytes
527 long. Rewrite example code so that it takes into account l64a output
528 shorter than 6 characters.
529 Reported by Julian Graham <julian.graham@aya.yale.edu>.
531 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
533 * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
534 (elf_machine_rela_relative): Remove unused valiable.
536 2004-07-12 Paul Eggert <eggert@cs.ucla.edu>
539 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
540 outside the buffer if the read returns 0. __strtod_l can't set
541 endp to NULL, so remove a test for that case.
543 2004-07-12 Roland McGrath <roland@redhat.com>
545 * manual/signal.texi (Interrupted Primitives): Make clear that
546 TEMP_FAILURE_RETRY evaluates its expression as long int and compares
547 it to -1 to define "failure".
549 2004-07-10 Ulrich Drepper <drepper@redhat.com>
551 * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
553 * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
555 * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
558 * elf/rtld.c (print_statistics): Mark with noinline attribute.
559 * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
561 (elf_machine_rel_relative): Likewise.
563 * include/string.h: Add libc_hidden_proto for __strtok_r and
565 * sysdeps/generic/strsep.c: Add libc_hidden_def.
566 * sysdeps/generic/strtok_r.c: Likewise.
567 * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
568 * sysdeps/i386/i686/strtok_r.S: Likewise.
569 * sysdeps/x86_64/strtok_r.S: Likewise.
571 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
573 * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
574 instead of internal-linkage, such that we can alias to it.
575 (internal_endnetgrent, internal_getnetgrent_r): Likewise.
577 2004-07-09 Ulrich Drepper <drepper@redhat.com>
579 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
580 to the front for gcc 3.5+.
581 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
583 * include/fcntl.h: Don't declare __fcntl_nocancel here if
584 NO_CANCELLATION is defined.
586 2004-07-07 Jakub Jelinek <jakub@redhat.com>
588 * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
589 GL(dl_nloaded) into it while still in critical section.
591 2004-07-06 Thorsten Kukuk <kukuk@suse.de>
593 * nss/getent.c (print_group, print_passwd): Use %lu format for
594 `unsigned long int' values.
596 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
597 error typos in goto statements.
599 2004-07-07 Roland McGrath <roland@frob.com>
601 * Makefile (dist-separate): New variable.
602 (glibc-%.tar rule): Make separate tar files for add-ons listed there.
603 Depend on their configure files.
604 (dist-do-separate-dirs): New canned sequence to do that.
605 (dist-separate-libidn, dist-separate-linuxthreads): New variables.
606 (dist): Depend on add-on tar files based on $(dist-separate).
607 (dist-version): New variable, default to $(version).
608 (tag-for-dist, dist): Use that in place of $(version) in deps.
610 2004-07-07 Ulrich Drepper <drepper@redhat.com>
612 * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
613 before the loop running the destructors.
615 2004-05-18 Andreas Schwab <schwab@suse.de>
617 * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
618 the first segment for mprotect, not l_text_end.
620 2004-07-05 Ulrich Drepper <drepper@redhat.com>
622 * elf/dl-profile.c (_dl_start_profile): Compact error handling.
623 Remove hashfraction variable. Make kcount and kcountsize local
626 * elf/dl-init.c: Don't define and use _dl_starting_up if
627 HAVE_INLINED_SYSCALLS is defined and the variable is not used.
628 * elf/dl-support.c: Likewise.
629 * elf/rtld.c: Likewise.
630 * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
631 if HAVE_INLINED_SYSCALLS is defined.
632 * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
634 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
635 * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
636 * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
638 * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
639 is needed to stop profiling.
640 * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
641 profile make sure it cannot be unloaded.
643 * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
645 * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
646 support, make sure the helper function is inlined.
647 * sysdeps/unix/sysv/linux/pread.c: Likewise.
648 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
649 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
652 2004-07-05 Jakub Jelinek <jakub@redhat.com>
654 * include/string.h (ffs): Add libc_hidden_builtin_proto.
655 * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
656 * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
657 * sysdeps/alpha/ffs.S (ffs): Likewise.
658 * sysdeps/s390/ffs.c (ffs): Likewise.
659 * sysdeps/powerpc/ffs.c (ffs): Likewise.
660 * sysdeps/i386/ffs.c (ffs): Likewise.
661 * sysdeps/i386/i686/ffs.c (ffs): Likewise.
662 * sysdeps/m68k/ffs.c (ffs): Likewise.
663 * sysdeps/generic/ffs.c (ffs): Likewise.
664 * sysdeps/m88k/ffs.c (ffs): Likewise.
665 * sysdeps/am29k/ffs.c (ffs): Likewise.
666 * sysdeps/i960/ffs.c (ffs): Likewise.
667 * sysdeps/x86_64/ffs.c (ffs): Likewise.
669 * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
671 * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
672 __libc_siglongjmp): Remove symbol_version.
673 * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
674 Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
675 * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
677 * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
678 * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
679 strong_alias instead of default_symbol_version, remove
681 * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
682 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
683 into strong_alias to __novmxsetjmp.
684 (__vmx__setjmp): Similarly with __vmxsetjmp.
685 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
686 default_symbol_version and symbol_version.
687 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
688 into strong_alias to __novmxsetjmp.
689 (__vmx__setjmp): Similarly with __vmxsetjmp.
690 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
691 default_symbol_version and symbol_version.
693 * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
695 2004-07-05 Ulrich Drepper <drepper@redhat.com>
697 * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
699 2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
701 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
702 instead of libc_hidden_def.
704 2004-07-01 Roland McGrath <roland@redhat.com>
706 * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
708 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
709 $(..)shlib-versions file to last in deps list. This lets add-ons give
710 more-specific matches that override defaults in the top-level file.
712 * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
713 already set, don't set it or libc_cv_gcc_unwind_find_fde.
714 * sysdeps/unix/sysv/linux/configure: Regenerated.
716 2004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
718 * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
719 (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
720 (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
721 * sysdeps/s390/fpu/e_sqrt.c: New file.
722 * sysdeps/s390/fpu/e_sqrtf.c: New file.
723 * sysdeps/s390/Implies: New file.
724 * sysdeps/s390/s390-32/Implies: Remove ieee754, move
725 ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
726 * sysdeps/s390/s390-64/Implies: Likewise.
728 2004-06-30 Jakub Jelinek <jakub@redhat.com>
730 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
731 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
733 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
734 DO_CALL (exit, 1) instead of branching to _exit.
735 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
738 * sysdeps/s390/fpu/bits/mathinline.h: New file.
740 * include/glob.h (glob64): Add libc_hidden_proto.
741 * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
742 * sysdeps/gnu/glob64.c (glob64): Likewise.
743 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
745 2004-06-11 Jakub Jelinek <jakub@redhat.com>
747 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
748 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
750 2004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com>
752 * sysdeps/powerpc/fpu/s_lround.c: Removed.
753 * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
754 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
755 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
756 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
757 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
758 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
759 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
760 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
761 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
762 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
763 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
764 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
765 * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
766 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
767 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
769 2004-06-30 Ulrich Drepper <drepper@redhat.com>
771 * include/net/if.h: Handle if_nameindex and if_freenameindex with
773 * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
774 * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
775 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
776 netlink if possible. Fall back on ioctl method if necessary.
777 * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
779 * include/unistd.h: Declare __truncate.
780 * sysdeps/generic/truncate.c: Also define __truncate.
781 * sysdeps/mach/hurd/truncate.c: Likewise.
782 * sysdeps/unix/common/syscalls.list: Likewise.
783 * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
785 2004-06-29 Ulrich Drepper <drepper@redhat.com>
787 * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
788 info.extra. Patch by Marcus Meissner.
790 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
792 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
793 Fix branch offset for a PLT entry.
795 2004-06-20 Jim Meyering <jim@meyering.net>
797 * malloc/obstack.h (obstack_base): Cast to `void *', to align with
800 2004-06-28 Ulrich Drepper <drepper@redhat.com>
802 * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
803 Workaround for [BZ #232].
805 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
807 2004-06-28 GOTO Masanori <gotom@debian.or.jp>
809 * iconv/gconv_simple.c: Use get16/put16 for user given buffer
810 in ucs2/ucs2reverse when unaligned memory access is attempted.
811 * iconv/tst-iconv5.c: New file.
812 * iconv/Makefile (tests): Add tst-iconv5.
814 2004-06-28 Jakub Jelinek <jakub@redhat.com>
816 * inet/bug-if1.c: Include <string.h>.
818 2004-06-19 Roland McGrath <roland@redhat.com>
820 * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
821 under this macro name instead.
822 [NO_DO_WAITID]: Don't define it at all.
823 (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
824 defined, then return ENOTSUP for combinations of selection bits other
825 than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
827 * posix/tst-waitid.c: New file.
828 * posix/Makefile (tests): Add it.
830 2004-06-28 Jakub Jelinek <jakub@redhat.com>
832 * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
835 * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
836 relocation in librt.so.
839 * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
840 _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
842 2004-06-27 Ulrich Drepper <drepper@redhat.com>
844 * elf/ldconfig.c (add_dir): Take chroot into account.
845 Based on changes by HJ Lu and Hideki Iwamoto.
847 * nscd/connections.c (invalidate_cache): If the host cache has to
848 be invalidated, re-read resolv.conf.
850 * resolv/resolv.h (RES_NOIP6DOTINT): Define.
851 * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
852 * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
853 if RES_NOIP6DOTINT flag is set.
854 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
856 2004-06-25 Jakub Jelinek <jakub@redhat.com>
858 * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
859 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
860 * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
864 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
865 F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
867 2004-06-21 Jakub Jelinek <jakub@redhat.com>
870 * sysdeps/unix/alpha/Makefile: New file.
871 * sysdeps/unix/alpha/rt-sysdep.S: New file.
872 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
874 2004-06-18 Ulrich Drepper <drepper@redhat.com>
876 * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
877 determine the canonical name only for the first returned entry.
879 * inet/bug-if1.c: New file.
880 * inet/Makefile (tests): Add bug-if1.
882 2004-06-18 Roland McGrath <roland@frob.com>
884 * Makerules (compile-mkdep-flags): Add -MT $@.
886 * Makefile (dist, tag-for-dist): New targets.
887 (files-for-dist, tag-of-stem): New variables.
888 (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
889 Make tar files using cvs export.
890 (%.bz2, %.gz, tag-%): New pattern rules.
891 (distribute): Variable removed.
892 (+subdir_targets): Remove distinfo targets.
893 (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
894 (rpm/%): Pattern rule removed.
895 * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
896 * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
898 * Makerules (dist, subdir_distinfo): Targets removed.
899 ($(objpfx)distinfo): Depend on $(distribute).
900 * Make-dist: File removed.
902 * NEWS: Fix a typo. Update bug-reporting instructions.
904 2004-06-17 Thorsten Kukuk <kukuk@suse.de>
906 * sysdeps/unix/sysv/linux/sched_setaffinity.c
907 (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
908 cpuset is wrongly set.
910 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
912 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
915 2004-06-14 Jakub Jelinek <jakub@redhat.com>
918 * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
919 in a local variable, point rp to that local variable afterwards.
921 2004-06-11 Jakub Jelinek <jakub@redhat.com>
923 * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
926 2004-06-17 Ulrich Drepper <drepper@redhat.com>
928 * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
929 error value for unknown interface. [BZ #198]
931 2004-06-13 Jakub Jelinek <jakub@redhat.com>
933 * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
934 (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
935 __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
936 the asm uses as its input, either of size __n where __n is known or
938 (strstr): Add "memory" clobber.
940 2004-06-14 Jakub Jelinek <jakub@redhat.com>
943 * nss/nsswitch.c (free_mem): Don't try to close a library handle
944 if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>.
946 2004-06-11 Dmitry V. Levin <ldv@altlinux.org>
949 * debug/xtrace.sh: Fix typo in error diagnostics.
951 2004-06-14 Andreas Schwab <schwab@suse.de>
953 * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
956 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
958 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
959 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
963 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
965 Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19.
966 Fix pasto that overflowed sigcontext.v_reserve.
967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
968 Fix pasto that clobbers r19.
969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
970 of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that
971 overflowed sigcontext.v_reserve.
973 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
976 * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
977 instead of ".gnu.linkonce.ro." as the prefix for linkonce
978 read-only section name.
980 2004-06-14 Richard Henderson <rth@redhat.com>
982 * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
983 (_ITOFT, _FTOIT, _ITOFT2): Likewise.
985 2004-06-08 Jakub Jelinek <jakub@redhat.com>
987 * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
988 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
989 (__backtrace): Don't call init #ifndef SHARED.
990 * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
991 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
992 (__backtrace): Don't call init #ifndef SHARED.
993 * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
994 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
995 (__backtrace): Don't call init #ifndef SHARED.
997 2004-06-11 Roland McGrath <roland@redhat.com>
999 * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
1000 From Krzysztof Halasa <khc@pm.waw.pl>.
1002 2004-06-10 Jakub Jelinek <jakub@redhat.com>
1004 * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
1006 2004-06-08 Jakub Jelinek <jakub@redhat.com>
1009 * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
1010 succeeds. Reported by Miles Ohlrich <miles@cray.com>.
1012 * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
1013 fails. Avoid memory leak if realloc fails.
1015 2004-06-09 Jakub Jelinek <jakub@redhat.com>
1017 * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
1018 NULL, "" or contains '=' character in it. Reported by
1019 Michael T Kerrisk <mtk-lists@gmx.net>.
1020 * stdlib/tst-environ.c: Include errno.h.
1021 (main): Add tests for these arguments to setenv/unsetenv.
1023 2004-06-07 Roland McGrath <roland@frob.com>
1025 * NEWS: Update bug reporting instructions. Fix some typos.
1027 2004-06-05 Ulrich Drepper <drepper@redhat.com>
1029 * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
1030 * stdio-common/_itoa.c: Add _itoa implementation.
1032 * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
1033 to also send request. Add parameter to allow this.
1035 * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
1036 * nscd/nscd_getpw_r.c: Likewise.
1037 * nscd/nscd-client.h: Change __nscd_open_socket prototype.
1039 2004-06-05 Andreas Jaeger <aj@suse.de>
1041 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1042 Handle more than 6 args correctly. Based on a patch by Masahide
1043 Washizawa <washi@jp.ibm.com>.
1045 2004-06-04 Ulrich Drepper <drepper@redhat.com>
1047 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
1048 in all places, not __nss_not_use_nscd_group.
1049 Reported by Philippe Gregoire.
1051 2004-06-03 Ulrich Drepper <drepper@redhat.com>
1053 * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
1055 2004-05-07 Dmitry V. Levin <ldv@altlinux.org>
1057 * argp/argp-help.c (__argp_error, __argp_failure): Check result
1058 of __asprintf call and don't use string if it failed.
1059 * stdio-common/psignal.c (psignal): Likewise.
1060 * locale/programs/localedef.c (more_help): Likewise.
1061 * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
1062 arg_bool, parse_line): Check result of __asprintf calls and
1063 don't use string if they failed.
1064 * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
1065 * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
1066 call and exit if it failed.
1068 2004-05-10 Jakub Jelinek <jakub@redhat.com>
1070 * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
1071 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
1072 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
1073 _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
1074 _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
1075 _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
1076 _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
1077 _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
1078 _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
1079 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1080 <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
1082 2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
1084 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
1085 -momit-leaf-frame-pointer.
1087 * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
1090 * sysdeps/mach/hurd/getcwd.c
1091 (_hurd_canonicalize_directory_name_intern): Only realloc when
1094 * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
1097 * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
1100 * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
1101 __libc_write and __libc_lseek64.
1103 2004-05-29 Roland McGrath <roland@redhat.com>
1105 * elf/Makefile (shared-only-routines): Add dl-caller.
1107 2004-05-28 Ulrich Drepper <drepper@redhat.com>
1109 * sysdeps/powerpc/configure.in: New file.
1111 2004-05-28 Steven Munroe <sjmunroe@us.ibm.com>
1113 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
1114 "altivec" to enable VMX instructions.
1115 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1116 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1117 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1125 2004-05-27 Jakub Jelinek <jakub@redhat.com>
1127 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
1128 __builtin_expm1l for GCC 3.5+.
1129 (__expl): Define using __builtin_expl for GCC 3.4+.
1130 (exp, expf, expl): Don't define for GCC 3.4+.
1131 (tan, tanf, tanl): Don't define for GCC 3.5+.
1132 (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
1133 (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
1134 (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
1135 (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
1136 (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
1138 (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
1139 Don't define for GCC 3.5+.
1140 (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
1141 (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
1142 define for GCC 3.5+.
1143 (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
1144 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
1145 define for GCC 3.2+.
1147 2004-05-27 Jakub Jelinek <jakub@redhat.com>
1149 * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
1150 * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
1151 * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
1152 * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
1153 * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
1154 * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
1155 * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
1156 * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
1157 * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
1158 * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
1159 * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
1160 * sysdeps/i386/i586/memcpy.S (memcpy): Remove
1161 libc_hidden_builtin_def if MEMPCPY_P.
1162 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1163 * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
1164 * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
1165 * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
1166 * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
1168 2004-05-26 Roland McGrath <roland@frob.com>
1170 * sysdeps/generic/bits/in.h
1171 (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
1172 These are long obsolete in BSD systems where they originated.
1173 * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
1175 2004-05-26 Jakub Jelinek <jakub@redhat.com>
1177 * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
1178 * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
1179 (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
1180 (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
1181 constant '\0' and first argument is not constant.
1182 (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
1183 (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
1184 For GCC 3.2+ use __builtin_strncpy.
1185 (strncat): For GCC 3.2+ use __builtin_strncat.
1186 (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
1188 (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
1189 if both arguments are constant.
1191 2004-05-26 Ulrich Drepper <drepper@redhat.com>
1193 * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
1194 mapped addresses in gethostbyaddr.
1196 2004-05-25 Ulrich Drepper <drepper@redhat.com>
1198 * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
1199 flags parameter, convert afp to simple int parameter. Adjust code.
1200 typep was never != NULL and flags therefore also unused. *afp is
1202 * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
1203 * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter
1204 handling for __nss_hostname_digits_dots calls.
1205 * nss/getXXbyYY_r.c: Likewise.
1207 * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
1209 2004-05-25 Steven Munroe <sjmunroe@us.ibm.com>
1211 * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
1212 * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
1213 (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
1214 (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
1215 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
1216 implementation from w_sqrt.c.
1217 * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
1218 implementation from w_sqrtf.c.
1219 * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
1220 using inline __ieee754_sqrt().
1221 * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
1222 using inline __ieee754_sqrtf().
1223 * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
1224 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
1225 * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
1226 PPC_FEATURE_* independent of __ASSEMBLER__.
1228 2004-05-25 Jakub Jelinek <jakub@redhat.com>
1230 * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
1232 (aio_start_notify_thread): Define if not defined.
1233 (notify_func_wrapper): Use it.
1234 * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
1236 (aio_create_helper_thread): Define if not defined.
1237 (__aio_create_helper_thread): New function.
1238 (__aio_enqueue_request): Use aio_create_helper_thread.
1240 * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
1241 (struct ypresp_all_data): New type.
1242 (__xdr_ypresp_all): Change second argument to
1243 struct ypresp_all_data *. Replace ypall_foreach and
1244 ypall_data with objp->foreach and objp->data.
1245 (yp_all): Remove status variable, add data. Replace
1246 all uses of status with data.status. Initialize data.foreach
1247 and data.data instead of ypall_foreach and ypall_data.
1249 2004-05-24 Jakub Jelinek <jakub@redhat.com>
1251 * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
1252 in l_flags_1, not in l_flags.
1254 2004-04-10 Robert Millan <robertmh@gnu.org>
1256 * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
1257 with sysdeps/generic/bits/in.h.
1259 2004-05-25 Roland McGrath <roland@frob.com>
1261 * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
1262 GCC GPL to standard glibc LGPL.
1264 2004-05-24 Ulrich Drepper <drepper@redhat.com>
1266 * manual/string.texi (Copying and Concatenation): Fixed second
1268 Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
1270 2004-05-23 Ulrich Drepper <drepper@redhat.com>
1272 * malloc/obstack.c: Don't allow linking with _obstack.
1274 2004-05-23 Andreas Schwab <schwab@suse.de>
1276 * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
1277 of separate "m" constraints.
1279 2004-05-15 Chris Demetriou <cgd@broadcom.com>
1281 * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
1282 (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
1283 and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
1285 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
1287 * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
1288 Add comment explaining why libc still defines it.
1290 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
1292 * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
1293 obstack_alignment_mask, obstack_alloc, obstack_base,
1294 obstack_blank, obstack_blank_fast, obstack_chunk_size,
1295 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
1296 obstack_grow0, obstack_init, obstack_int_grow,
1297 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
1298 obstack_next_free, obstack_object_size, obstack_ptr_grow,
1299 obstack_ptr_grow_fast, obstack_room): Remove declarations of
1300 nonexistent functions.
1302 2004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
1304 * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
1305 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
1306 [PIC]: Redundent for powerpc64, removed.
1307 (ENTRY): Generate size and alignment for opd entry.
1308 (EALIGN): Generate size and alignment for opd entry.
1309 (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
1310 (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
1312 2004-05-19 Ulrich Drepper <drepper@redhat.com>
1314 * misc/regexp.h: Say the functions have been withdrawn.
1316 * wcsmbs/tst-wcpncpy.c: Add more tests.
1318 2004-05-18 Roland McGrath <roland@frob.com>
1320 * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
1321 standard glibc LGPL.
1322 * sysdeps/generic/unwind-dw2.c: Likewise.
1323 * sysdeps/generic/unwind-dw2-fde.c: Likewise.
1324 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1325 * sysdeps/generic/unwind-pe.h: Likewise.
1327 2004-05-15 Petter Reinholdtsen <pere@hungry.com>
1329 * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
1330 MONTENEGRO" which have taken over the code 819. Patch from
1331 Danilo Segan. [BZ #40]
1333 2004-05-15 Jakub Jelinek <jakub@redhat.com>
1335 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1336 (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
1339 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
1341 * catgets/gencat.c: Update bug reporting instructions.
1342 * csu/version.c: Likewise.
1343 * debug/catchsegv.sh: Likewise.
1344 * debug/pcprofiledump.c: Likewise.
1345 * debug/xtrace.sh: Likewise.
1346 * elf/ldd.bash.in: Likewise.
1347 * iconv/iconv_prog.c: Likewise.
1348 * iconv/iconvconfig.c: Likewise.
1349 * locale/programs/locale.c: Likewise.
1350 * locale/programs/localedef.c: Likewise.
1351 * login/programs/pt_chown.c: Likewise.
1352 * malloc/memusage.sh: Likewise.
1353 * malloc/memusagestat.c: Likewise.
1354 * malloc/mtrace.pl: Likewise.
1355 * manual/crypt.texi: Likewise.
1356 * manual/install.texi: Likewise.
1357 * nss/makedb.c: Likewise.
1359 2004-05-14 Jakub Jelinek <jakub@redhat.com>
1361 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
1362 CHECK_STATIC_TLS if sym != NULL.
1363 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1364 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1366 2004-05-12 Andreas Schwab <schwab@suse.de>
1368 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
1371 2004-05-13 H.J. Lu <hongjiu.lu@intel.com>
1373 * Rules (xtests): Depend on tests.
1375 2004-05-13 Jakub Jelinek <jakub@redhat.com>
1377 * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
1378 count is negative, yet write_ptr < write_end.
1379 (_IO_default_xsgetn): Avoid one underflow per char if count is
1380 negative, yet read_ptr < read_end.
1382 2004-05-12 Steven Munroe <sjmunroe@us.ibm.com>
1384 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
1387 2004-05-12 Ulrich Drepper <drepper@redhat.com>
1389 * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
1392 2004-05-10 Roland McGrath <roland@frob.com>
1394 * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
1395 (__hurd_directory_name_split): Likewise.
1397 2004-05-10 Ulrich Drepper <drepper@redhat.com>
1399 * po/fr.po: Update from translation team.
1401 2004-05-10 Andreas Jaeger <aj@suse.de>
1403 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1404 Correctly compute alignment.
1405 Patch by Michael Matz <matz@suse.de>.
1407 2004-05-09 Ulrich Drepper <drepper@redhat.com>
1409 * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
1410 * sysdeps/posix/sigpause.c: Likewise.
1411 * signal/signal.h: Don't define sigpause macro unless needed.
1413 2004-05-08 Jakub Jelinek <jakub@redhat.com>
1415 * configure.in (libc_cv_libgcc_s_suffix): New check.
1416 (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
1417 * config.make.in (libgcc_s_suffix): Set.
1418 * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
1420 2004-05-08 Ulrich Drepper <drepper@redhat.com>
1422 * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
1424 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
1426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
1427 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
1428 Load argument values into temporary variables.
1429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
1430 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
1433 2004-05-07 Ulrich Drepper <drepper@redhat.com>
1435 * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
1436 need to be compiled with exceptions.
1438 2004-05-06 Ulrich Drepper <drepper@redhat.com>
1440 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
1441 * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
1443 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
1444 realloc cannot fail.
1446 * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
1449 * nis/nis_table.c: Clean up memory handling.
1450 * nis/nis_subr.c (nis_getnames): Clean up memory handling.
1451 * nis/nis_removemember.c (nis_removemember): Add comment
1452 explaining use of realloc.
1454 * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
1456 Patch by Lev S Bishop <lev.bishop@yale.edu>.
1458 * math/bug-tgmath1.c (main): Test fabs and carg as well.
1460 2004-05-06 Richard Henderson <rth@redhat.com>
1462 * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
1463 AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
1464 * sysdeps/unix/sysv/linux/alpha/Versions: Export
1465 __libc_alpha_cache_shape as a private symbol.
1466 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
1467 * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
1469 2004-05-06 Richard Henderson <rth@redhat.com>
1471 * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
1472 * sysdeps/alpha/divl.S: Use them.
1473 * sysdeps/alpha/divq.S: Likewise.
1474 * sysdeps/alpha/divqu.S: Likewise.
1475 * sysdeps/alpha/reml.S: Likewise.
1476 * sysdeps/alpha/remq.S: Likewise.
1477 * sysdeps/alpha/remqu.S: Likewise.
1479 2004-05-06 Ulrich Drepper <drepper@redhat.com>
1481 * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
1484 * math/Makefile (tests): Add bug-tgmath1.
1485 * math/bug-tgmath1.c: New file.
1487 2004-05-05 Jakub Jelinek <jakub@redhat.com>
1489 * sysdeps/alpha/atomicity.h: Remove.
1490 * sysdeps/generic/atomicity.h: Remove.
1492 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
1494 * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
1497 2004-04-22 David Mosberger <davidm@hpl.hp.com>
1499 * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
1501 * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
1503 * sysdeps/ia64/strcat.c: New file.
1504 * sysdeps/ia64/strcat.S: Delete.
1506 2004-05-04 Jakub Jelinek <jakub@redhat.com>
1508 * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
1511 2004-04-23 Jakub Jelinek <jakub@redhat.com>
1513 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
1514 libc_hidden_proto. Define to __GI___libm_error_support for
1515 assembly going into libc.so.
1516 * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
1519 * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
1520 * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
1522 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
1523 gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
1526 2004-05-03 Jakub Jelinek <jakub@redhat.com>
1528 * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
1529 __USE_BSD or __USE_UNIX98.
1530 * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1531 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1532 * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
1534 * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1535 * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1536 * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1537 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
1539 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
1541 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
1543 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
1545 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
1547 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
1549 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
1551 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
1553 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
1555 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
1557 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
1559 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
1561 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
1563 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1564 * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1565 * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
1567 2004-05-01 Jakub Jelinek <jakub@redhat.com>
1569 * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
1570 __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
1571 __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
1572 * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
1573 * sysdeps/unix/sysv/linux/Versions (libc): Remove
1574 __libc_sigaction@@GLIBC_PRIVATE.
1575 * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
1576 __modify_ldt@@GLIBC_PRIVATE.
1577 * socket/Versions (libc): Remove __libc_accept, __libc_send,
1578 __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
1579 __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
1580 * stdio-common/Versions (libc): Remove
1581 _itoa_upper_digits@@GLIBC_PRIVATE.
1582 * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
1583 * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
1584 __libc_readv and __libc_writev @@GLIBC_PRIVATE.
1585 * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
1586 * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
1587 __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
1588 __libc_lseek64 @@GLIBC_PRIVATE.
1590 2004-04-30 Jakub Jelinek <jakub@redhat.com>
1592 * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
1595 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
1597 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
1598 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
1599 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
1600 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
1601 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
1602 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
1603 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
1604 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
1605 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
1606 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
1607 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
1608 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
1609 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
1610 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
1611 * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
1612 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
1613 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
1614 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
1616 * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
1617 mantissa for AIX long double format.
1618 * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
1620 * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
1621 * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
1622 (_fpioconst_pow10): AIX long double format has same exponent range as
1624 * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
1625 (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
1628 2004-04-23 Art Haas <ahaas@airmail.net>
1630 * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
1632 2004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca>
1634 * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
1635 * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
1636 * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
1637 * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
1638 * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
1640 2004-04-29 Philip Blundell <pb@nexus.co.uk>
1642 * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
1645 2004-04-29 Jakub Jelinek <jakub@redhat.com>
1647 * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
1648 prototypes and description [BZ #131].
1650 * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
1651 Patch by Ed Catmur <ed@catmur.co.uk>.
1652 * string/tst-inlcall.c (main): Add test for strpbrk.
1655 * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
1657 (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
1658 yet defined, #undef back after including linux/sysctl.h if defined
1660 (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
1661 back after including linux/sysctl.h if defined here.
1663 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
1664 for single precision register, add it to __asm clobbers [BZ #139].
1665 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
1666 for single precision register, add it to __asm clobbers.
1667 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
1668 instead of fqtoi in QP_HANDLE_EXCEPTIONS.
1669 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
1670 Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
1672 2004-04-23 Andreas Schwab <schwab@suse.de>
1674 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
1677 2004-04-22 Philip Blundell <philb@gnu.org>
1679 * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
1680 when calling _dl_signal_error.
1681 (elf_machine_rel): Likewise.
1683 2004-04-21 Ulrich Drepper <drepper@redhat.com>
1685 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
1686 and use it internally instead of __sigsetjmp.
1687 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
1688 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
1689 * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
1690 * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
1691 * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
1692 * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
1693 * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
1694 _GI___libm_frexp_4f, _GI___libm_frexp_4l.
1695 * sysdeps/ia64/fpu/bits/mathinline.h: New file.
1696 * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
1697 HIDDEN_JUMPTARGET for exit call.
1698 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
1700 * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
1701 * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
1704 2004-04-21 Jakub Jelinek <jakub@redhat.com>
1706 * posix/tst-chmod.c (do_test): Fix a typo.
1708 * elf/lateglobal.c (main): Fix error checks.
1709 Patch by Stephen Clarke <stephen.clarke@st.com>.
1711 * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
1712 mention they have been added in ISO C99.
1713 Reported by Ben Pfaff <blp@cs.stanford.edu>.
1715 2004-03-31 H.J. Lu <hongjiu.lu@intel.com>
1717 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
1719 2004-04-20 Jakub Jelinek <jakub@redhat.com>
1721 * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
1724 2004-04-20 Jakub Jelinek <jakub@redhat.com>
1726 * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
1728 * stdio-common/tst-sscanf.c (int_tests): Adjust.
1730 * nis/nss-nis.c: Include stdlib.h.
1732 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
1734 * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
1735 libc_hidden_builtin_def.
1737 2004-04-20 Jim Meyering <jim@meyering.net>
1739 * misc/error.c (error_tail): Don't leak upon realloc failure.
1741 2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1743 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
1744 Use RETURN_ADDRESS instead of __builtin_return_address.
1746 2004-04-19 Ulrich Drepper <drepper@redhat.com>
1748 * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
1751 2004-04-20 Jakub Jelinek <jakub@redhat.com>
1753 * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
1754 do input_error () instead of conv_error () and don't look at errno.
1755 Don't eat any whitespace before %% if skip_space == 0.
1756 * stdio-common/tst-sscanf.c (int_tests): New array.
1757 (main): Run int_tests.
1760 See ChangeLog.14 for earlier changes.