1 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
2 Joe Kerian <jkerian@us.us.ibm.com>
5 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
6 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7 (__copysignl): Use signbit() for comparison.
8 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
13 (__ceill): Remove calls to fegetround(), fesetround().
14 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
16 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
18 2007-01-17 Jakub Jelinek <jakub@redhat.com>
20 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
22 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
24 2007-01-17 Ulrich Drepper <drepper@redhat.com>
26 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
28 * csu/libc-start.c: Likewise.
30 2007-01-16 Ulrich Drepper <drepper@redhat.com>
32 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
35 2007-01-15 Ulrich Drepper <drepper@redhat.com>
37 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
39 (handle_request): Remove unnecessary tests.
41 * nscd/cache.c (cache_add): Record the failure to add to the cache.
43 2007-01-15 Jakub Jelinek <jakub@redhat.com>
45 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
46 workbits in semi-raw fraction.
48 * math/test-misc.c: Add new tests.
50 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
52 * math/basic-test.c: Include test-skeleton.c.
54 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
56 (do_test): ...this. Run new tests.
57 (TEST_FUNCTION): Define.
59 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
60 Joe Kerian <jkerian@us.us.ibm.com>
63 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
64 handling for high words.
65 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
66 and overflow for infinity.
68 2007-01-15 Ulrich Drepper <drepper@redhat.com>
70 * nscd/connections.c (handle_request): Add a __builtin_expect.
72 * nscd/connections.c (serv2db): Change type into structure which
73 also says whether this is a request for data. Renamed to
74 servinfo. All users changed.
75 (handle_request): Much simpler test whether we should search the cache.
77 * nscd/connections.c (handle_request): Fix thinko in selinux test
80 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
81 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
82 it before getting dl_load_lock and then relock.
83 (_dl_lookup_symbol_x): Pass flags to add_dependency.
84 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
85 case we unlocked the scope.
86 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
87 _dl_lookup_symbol_x in case we locked the scope.
88 (_dl_profile_fixup): Likewise.
89 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
90 set DL_LOOKUP_SCOPE_LOCK.
92 2007-01-13 Ulrich Drepper <drepper@redhat.com>
94 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
95 CFLAGS-getsrvbynpt_r.c.
96 * nscd/getsrvbynm_r.c: New file.
97 * nscd/getsrvbypt_r.c: New file.
98 * nscd/nscd_getserv_r.c: New file.
99 * nscd/servicescache.c: New file.
100 * nscd/Makefile (routines): Add nscd_getserv_r.
101 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
102 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
103 CFLAGS-getsrvbypt_r.c.
104 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
105 table. Add entries for services database.
106 * nscd/connections.c (serv2str): Mark as const. Add entries for
108 (dbs): Add .reset_res and servdb initialization.
109 (serv2db): Add entries for services database.
110 (verify_persistent_db): Accept dbnr == servdb.
111 (invalidate_cache): Rewrite database name recognition to use a table.
112 Call res_init() if .reset_res is set for database.
113 (handle_request): Add code to handle services database.
114 * nscd/gai.c: Don't define __getservbyname_r.
115 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
116 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
117 (serv_response_header): Define.
118 (struct datahead): Add serv_response_header member.
119 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
121 * nscd/nscd.conf: Add entries for services database.
122 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
123 Declare serv_iov_disabled.
124 Declare addservbyname, readdservbyname, addservbyport, and
126 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
127 (find_db): Fix error message.
128 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
129 __nscd_getservbyname_r, and __nscd_getservbyport_r.
130 * nscd/selinux.c (perms): Add entries for services database.
131 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
132 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
134 * nscd/grpcache.c: Remove obsolete code. Cleanups.
135 * nscd/hstcache.c: Likewise.
136 * nscd/pwdcache.c: Likewise.
138 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
139 computation of keylen.
141 * include/string.h: Only redefine strndupa if this is really for
144 2007-01-12 Ulrich Drepper <drepper@redhat.com>
146 * nscd/nscd_gethst_r.c: Minor cleanups.
148 * nscd/connections.c (handle_request): Check selinux permissions
149 for all non-admin commands.
151 * sysdeps/i386/i486/bits/atomic.h: Define
152 atomic_compare_and_exchange_val_acq,
153 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
154 using __sync_* built-ins for gcc >= 4.1.
155 * sysdeps/x86_64/bits/atomic.h: Likewise.
158 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
161 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
163 * stdlib/tst-makecontext.c: Include errno.h. Change main()
164 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
165 (do_test): Check errno and exit(0) if ENOSYS.
167 2007-01-11 Jakub Jelinek <jakub@redhat.com>
169 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
170 thousands separators.
171 * stdlib/Makefile: Add rules to build and run tst-strtod4.
172 * stdlib/tst-strtod4.c: New test.
175 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
176 hexadecimal digit should accept just the initial 0.
177 * stdlib/tst-strtod2.c (tests): New variable.
178 (do_test): Run several tests rather than just one.
180 2007-01-11 Jakub Jelinek <jakub@redhat.com>
182 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
183 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
185 2007-01-10 Ulrich Drepper <drepper@redhat.com>
187 * io/fts.c: Make sure fts_cur is always valid after return from
189 Patch by Miloslav Trmac <mitr@redhat.com>.
191 2006-10-27 Richard Sandiford <richard@codesourcery.com>
193 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
194 (R_MIPS_NUM): Bump by 1.
196 2007-01-03 Jakub Jelinek <jakub@redhat.com>
198 * posix/execvp.c: Include alloca.h.
199 (allocate_scripts_argv): Renamed to...
200 (scripts_argv): ... this. Don't allocate buffer here nor count
202 (execvp): Use alloca if possible.
203 * posix/Makefile: Add rules to build and run tst-vfork3 test.
204 * posix/tst-vfork3.c: New test.
206 2007-01-03 Ulrich Drepper <drepper@redhat.com>
208 * string/Makefile (tst-strxfrm2-ENV): Define.
209 * stdlib/Makefile (tst-strtod3-ENV): Define.
211 2007-01-02 Ulrich Drepper <drepper@redhat.com>
213 * posix/getconf.c: Update copyright year.
214 * nss/getent.c: Likewise.
215 * iconv/iconvconfig.c: Likewise.
216 * iconv/iconv_prog.c: Likewise.
217 * elf/ldconfig.c: Likewise.
218 * catgets/gencat.c: Likewise.
219 * csu/version.c: Likewise.
220 * elf/ldd.bash.in: Likewise.
221 * elf/sprof.c (print_version): Likewise.
222 * locale/programs/locale.c: Likewise.
223 * locale/programs/localedef.c: Likewise.
224 * nscd/nscd.c (print_version): Likewise.
225 * debug/xtrace.sh: Likewise.
226 * malloc/memusage.sh: Likewise.
227 * malloc/mtrace.pl: Likewise.
228 * debug/catchsegv.sh: Likewise.
230 2006-12-24 Ulrich Drepper <drepper@redhat.com>
232 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
235 2006-12-23 Ulrich Drepper <drepper@redhat.com>
237 * posix/wordexp.c: Remove some unnecessary tests.
239 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
241 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
242 blacklist the group till after we look it up.
244 2006-12-21 Ulrich Drepper <drepper@redhat.com>
246 * include/atomic.h (atomic_forced_read): New macro.
248 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
250 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
252 2006-12-19 Jakub Jelinek <jakub@redhat.com>
254 * nss/getXXbyYY_r.c: Include atomic.h.
255 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
256 add atomic_write_barrier () in between.
258 * stdlib/Makefile (tests): Add tst-makecontext.
259 * stdlib/tst-makecontext.c: New test.
261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
262 (__makecontext): Don't realign uc_mcontext.uc_regs.
264 2006-11-28 Jakub Jelinek <jakub@redhat.com>
266 * elf/dl-support.c: Include dl-procinfo.h.
267 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
268 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
269 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
271 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
273 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
274 PPC_PLATFORM_* macros for array designators.
276 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
278 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
279 names to the beginning.
280 (_dl_powerpc_platforms): Add "power6x".
281 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
282 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
283 (_DL_PLATFORMS_COUNT): Increase.
284 (_dl_string_platform): Handle power6x case.
285 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
286 PPC_FEATURE_POWER6_EXT): Define.
287 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
289 2006-12-18 Jakub Jelinek <jakub@redhat.com>
292 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
293 [-2^31 .. 2^31) range.
294 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
296 * stdlib/tst-rand48-2.c: New test.
297 * stdlib/Makefile (tests): Add tst-rand48-2.
299 2006-12-14 Jakub Jelinek <jakub@redhat.com>
301 * misc/tst-pselect.c (do_test): Fix sigblock argument.
303 2006-12-14 Ulrich Drepper <drepper@redhat.com>
305 * misc/tst-pselect.c (do_test): Make sure the helper process is
306 terminating when the test is aborted.
308 2006-12-13 Ulrich Drepper <drepper@redhat.com>
310 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
311 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
312 Handle relatime mount option.
315 * libio/Makefile (tests): Add tst-setvbuf1.
316 * libio/tst-setvbuf1.c: New file.
318 2006-12-08 Jakub Jelinek <jakub@redhat.com>
321 * libio/genops.c (__uflow): Fix a typo.
322 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
323 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
324 the narrow buffer size.
326 2006-11-24 Jakub Jelinek <jakub@redhat.com>
329 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
330 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
331 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
333 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
334 _IO_wstr_finish): Likewise.
335 * libio/wmemstream.c (open_wmemstream): Likewise.
336 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
337 even for wide streams.
339 2006-12-13 Jakub Jelinek <jakub@redhat.com>
341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
344 2006-12-11 Ulrich Drepper <drepper@redhat.com>
346 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
347 separators also if no non-zero digits found.
348 * stdlib/Makefile (tests): Add tst-strtod3.
350 2006-12-09 Ulrich Drepper <drepper@redhat.com>
353 * include/features.h: Fix comment about default value for
357 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
358 empty parsed strings.
359 * stdlib/Makefile (tests): Add tst-strtod2.
360 * stdlib/tst-strtod2.c: New file.
363 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
365 * stdlib/Makefile (tests): Add tst-atof2.
366 * stdlib/tst-atof2.c: New file.
369 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
370 correctly if removing trailing zero of hex-float.
371 * stdlib/Makefile (tests): Add tst-atof1.
372 * stdlib/tst-atof1.c: New file.
374 2006-12-09 Jakub Jelinek <jakub@redhat.com>
376 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
377 Start searching for next comma at p rather than rest.
378 * misc/Makefile (tests): Add tst-mntent2.
379 * misc/tst-mntent2.c: New test.
381 * misc/getusershell.c (initshells): Check for integer overflows.
382 Make strings buffer one bigger as fgets always succeeds when second
383 argument is 1. Don't use calloc for shells array. Disallow
386 2006-12-08 Ulrich Drepper <drepper@redhat.com>
388 * malloc/memusage.c: Handle realloc with new size of zero and
389 non-NULL pointer correctly.
390 (me): Really write first record twice.
391 (struct entry): Make format bi-arch safe.
392 (dest): Write out more realloc statistics.
393 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
395 2006-12-05 Jakub Jelinek <jakub@redhat.com>
397 * nis/nis_subr.c (nis_getnames): Revert last change.
399 2006-12-04 Jakub Jelinek <jakub@redhat.com>
401 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
402 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
403 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
404 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
406 * io/Makefile: Add rules to build and run tst-ttyname_r test.
407 * io/tst-ttyname_r.c: New test.
409 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
411 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
413 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
415 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
418 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
420 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
421 `clone' function to ensure proper unwinding stop of gdb.
422 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
424 2006-12-01 Ulrich Drepper <drepper@redhat.com>
426 * nscd/nscd.init: Remove obsolete and commented-out -S option
429 2006-11-23 Jakub Jelinek <jakub@redhat.com>
432 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
435 * manual/string.texi (strtok): Remove duplicate paragraph.
437 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
439 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
440 libgcc not supporting `rflags' unwinding (register # >= 17).
442 2006-11-30 Jakub Jelinek <jakub@redhat.com>
444 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
447 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
448 Jakub Jelinek <jakub@redhat.com>
449 Jan Kratochvil <jan.kratochvil@redhat.com>
451 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
453 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
454 'restore_rt' even in the 'signal' directory.
455 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
457 2006-11-27 Jakub Jelinek <jakub@redhat.com>
460 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
461 malloc crashed. Don't allocate memory unnecessarily in each
464 2006-10-21 Jakub Jelinek <jakub@redhat.com>
466 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
468 2006-11-20 Ulrich Drepper <drepper@redhat.com>
470 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
472 2006-11-18 Bruno Haible <bruno@clisp.org>
474 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
475 __sysconf only after having tried to call getgroups32.
477 2006-11-19 Ulrich Drepper <drepper@redhat.com>
479 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
480 addresses for IPv4 queries if they can be mapped.
482 2006-11-16 Jakub Jelinek <jakub@redhat.com>
484 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
485 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
486 (signmask): Add .size directive.
487 (othermask): Add .type directive.
489 2006-11-14 Ulrich Drepper <drepper@redhat.com>
491 * po/nl.po: Update from translation team.
493 * timezone/zdump.c: Redo fix for BZ #3137.
495 2006-11-14 Jakub Jelinek <jakub@redhat.com>
497 * nss/nss_files/files-alias.c (get_next_alias): Set line back
498 to first_unused after parsing :include: file.
500 2006-11-10 Ulrich Drepper <drepper@redhat.com>
502 * timezone/africa: Update from tzdata2006o.
503 * timezone/antarctica: Likewise.
504 * timezone/asia: Likewise.
505 * timezone/australasia: Likewise.
506 * timezone/backward: Likewise.
507 * timezone/europe: Likewise.
508 * timezone/iso3166.tab: Likewise.
509 * timezone/northamerica: Likewise.
510 * timezone/southamerica: Likewise.
511 * timezone/zone.tab: Likewise.
513 * time/tzfile.c (__tzfile_read): Extend to handle new file format
514 on machines with 64-bit time_t.
516 * timezone/checktab.awk: Update from tzcode2006o.
517 * timezone/ialloc.c: Likewise.
518 * timezone/private.h: Likewise.
519 * timezone/scheck.c: Likewise.
520 * timezone/tzfile.h: Likewise.
521 * timezone/tzselect.ksh: Likewise.
522 * timezone/zdump.c: Likewise.
523 * timezone/zic.c: Likewise.
526 * elf/ldconfig.c (main): Call setlocale and textdomain.
527 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
530 * manual/argp.texi: Fix typos.
531 * manual/charset.texi: Likewise.
532 * manual/errno.texi: Likewise.
533 * manual/filesys.texi: Likewise.
534 * manual/lang.texi: Likewise.
535 * manual/maint.texi: Likewise.
536 * manual/memory.texi: Likewise.
537 * manual/message.texi: Likewise.
538 * manual/resource.texi: Likewise.
539 * manual/search.texi: Likewise.
540 * manual/signal.texi: Likewise.
541 * manual/startup.texi: Likewise.
542 * manual/stdio.texi: Likewise.
543 * manual/sysinfo.texi: Likewise.
544 * manual/syslog.texi: Likewise.
545 * manual/time.texi: Likewise.
546 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
549 * sunrpc/clnt_raw.c: Minimal message improvements.
550 * sunrpc/pm_getmaps.c: Likewise.
551 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
552 * nis/nis_print_group_entry.c: Likewise.
553 * locale/programs/repertoire.c: Likewise.
554 * locale/programs/charmap.c: Likewise.
555 * malloc/memusage.sh: Likewise.
556 * elf/dl-deps.c: Likewise.
557 * locale/programs/ld-collate.c: Likewise.
558 * libio/vswprintf.c: Likewise.
559 * malloc/memusagestat.c: Likewise.
560 * sunrpc/auth_unix.c: Likewise.
561 * sunrpc/rpc_main.c: Likewise.
562 * nscd/cache.c: Likewise.
563 * locale/programs/repertoire.c: Unify output messages.
564 * locale/programs/charmap.c: Likewise.
565 * locale/programs/ld-ctype.c: Likewise.
566 * locale/programs/ld-monetary.c: Likewise.
567 * locale/programs/ld-numeric.c: Likewise.
568 * locale/programs/ld-time.c: Likewise.
569 * elf/ldconfig.c: Likewise.
570 * nscd/selinux.c: Likewise.
571 * elf/cache.c: Likewise.
572 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
575 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
579 2006-11-10 Jakub Jelinek <jakub@redhat.com>
581 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
582 if N is one bigger than return value.
583 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
584 and l1 last arguments, if buf is defined, verify the return value
585 equals to strlen (buf) and verify no byte beyond passed length
588 2006-11-10 Ulrich Drepper <drepper@redhat.com>
590 * po/sv.po: Update from translation team.
592 2006-11-09 Ulrich Drepper <drepper@redhat.com>
594 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
597 2006-11-10 Jakub Jelinek <jakub@redhat.com>
599 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
602 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
603 Use __new_sys_siglist instead of _sys_siglist_internal as
604 second macro argument.
605 (_old_sys_siglist): Use declare_symbol_alias macro instead of
608 2006-11-09 Ulrich Drepper <drepper@redhat.com>
611 * posix/unistd.h (sysconf): Remove const attribute.
613 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
614 temporary or deprecated addresses.
615 Patch by Sridhar Samudrala <sri@us.ibm.com>.
617 * string/Makefile (tests): Add tst-strxfrm2.
618 * string/tst-strxfrm2.c: New file.
620 2006-10-09 Jakub Jelinek <jakub@redhat.com>
622 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
623 rather than r->r_brk.
625 2006-11-08 Jakub Jelinek <jakub@redhat.com>
627 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
628 optimization even if needed > n.
630 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
631 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
632 return false, otherwise return true.
633 (cache_rpath): Return decompose_rpath return value.
635 2006-11-07 Jakub Jelinek <jakub@redhat.com>
637 * include/libc-symbols.h (declare_symbol): Rename to...
638 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
639 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
641 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
643 * sysdeps/gnu/siglist.c: Likewise.
645 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
647 * sysdeps/powerpc/fpu/bits/mathinline.h
648 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
649 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
651 2006-11-05 Ulrich Drepper <drepper@redhat.com>
653 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
654 Update handling of cache descriptor 0x49 for new models.
655 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
658 2006-11-02 Jakub Jelinek <jakub@redhat.com>
660 * malloc/memusage.c (dest): Reset not_me back to false after
663 2006-11-02 Ulrich Drepper <drepper@redhat.com>
665 * configure.in: Work around ld --help change and avoid -z relro
666 test completely if the architecture doesn't care about security.
668 2006-11-01 Ulrich Drepper <drepper@redhat.com>
670 * po/sv.po: Update from translation team.
672 2006-10-31 Ulrich Drepper <drepper@redhat.com>
674 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
675 generate compatibility version.
677 2006-10-29 Ulrich Drepper <drepper@redhat.com>
679 * configure.in: Relax -z relro requirement a bit.
681 * po/sv.po: Update from translation team.
683 2006-10-29 Jakub Jelinek <jakub@redhat.com>
685 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
686 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
687 * elf/dl-close.c (_dl_close_worker): Likewise.
688 * elf/dl-open.c (_dl_open_worker): Likewise.
689 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
691 2006-10-27 Ulrich Drepper <drepper@redhat.com>
693 * configure.in: Require assembler support for visibility, compiler
694 support for visibility and aliases, linker support for various -z
696 * Makeconfig: Remove conditional code which now is unnecessary.
697 * config.h.in: Likewise.
698 * config.make.in: Likewise.
699 * dlfcn/Makefile: Likewise.
700 * elf/Makefile: Likewise.
701 * elf/dl-load.c: Likewise.
702 * elf/rtld.c: Likewise.
703 * include/libc-symbols.h: Likewise.
704 * include/stdio.h: Likewise.
705 * io/Makefile: Likewise.
706 * io/fstat.c: Likewise.
707 * io/fstat64.c: Likewise.
708 * io/fstatat.c: Likewise.
709 * io/fstatat64.c: Likewise.
710 * io/lstat.c: Likewise.
711 * io/lstat64.c: Likewise.
712 * io/mknod.c: Likewise.
713 * io/mknodat.c: Likewise.
714 * io/stat.c: Likewise.
715 * io/stat64.c: Likewise.
716 * libio/stdio.c: Likewise.
717 * nscd/Makefile: Likewise.
718 * stdlib/Makefile: Likewise.
719 * stdlib/atexit.c: Likewise.
720 * sysdeps/generic/ldsodefs.h: Likewise.
721 * sysdeps/i386/dl-machine.h: Likewise.
722 * sysdeps/i386/sysdep.h: Likewise.
723 * sysdeps/i386/i686/memcmp.S: Likewise.
724 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
725 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
726 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
728 * Makerules: USE_TLS support is now default.
729 * tls.make.c: Likewise.
730 * csu/Versions: Likewise.
731 * csu/libc-start.c: Likewise.
732 * csu/libc-tls.c: Likewise.
733 * csu/version.c: Likewise.
734 * dlfcn/dlinfo.c: Likewise.
735 * elf/dl-addr.c: Likewise.
736 * elf/dl-cache.c: Likewise.
737 * elf/dl-close.c: Likewise.
738 * elf/dl-iteratephdr.c: Likewise.
739 * elf/dl-load.c: Likewise.
740 * elf/dl-lookup.c: Likewise.
741 * elf/dl-object.c: Likewise.
742 * elf/dl-open.c: Likewise.
743 * elf/dl-reloc.c: Likewise.
744 * elf/dl-support.c: Likewise.
745 * elf/dl-sym.c: Likewise.
746 * elf/dl-sysdep.c: Likewise.
747 * elf/dl-tls.c: Likewise.
748 * elf/ldconfig.c: Likewise.
749 * elf/rtld.c: Likewise.
750 * elf/tst-tls-dlinfo.c: Likewise.
751 * elf/tst-tls1.c: Likewise.
752 * elf/tst-tls10.h: Likewise.
753 * elf/tst-tls14.c: Likewise.
754 * elf/tst-tls2.c: Likewise.
755 * elf/tst-tls3.c: Likewise.
756 * elf/tst-tls4.c: Likewise.
757 * elf/tst-tls5.c: Likewise.
758 * elf/tst-tls6.c: Likewise.
759 * elf/tst-tls7.c: Likewise.
760 * elf/tst-tls8.c: Likewise.
761 * elf/tst-tls9.c: Likewise.
762 * elf/tst-tlsmod1.c: Likewise.
763 * elf/tst-tlsmod13.c: Likewise.
764 * elf/tst-tlsmod13a.c: Likewise.
765 * elf/tst-tlsmod14a.c: Likewise.
766 * elf/tst-tlsmod2.c: Likewise.
767 * elf/tst-tlsmod3.c: Likewise.
768 * elf/tst-tlsmod4.c: Likewise.
769 * elf/tst-tlsmod5.c: Likewise.
770 * elf/tst-tlsmod6.c: Likewise.
771 * include/errno.h: Likewise.
772 * include/link.h: Likewise.
773 * include/tls.h: Likewise.
774 * locale/global-locale.c: Likewise.
775 * locale/localeinfo.h: Likewise.
776 * malloc/arena.c: Likewise.
777 * malloc/hooks.c: Likewise.
778 * malloc/malloc.c: Likewise.
779 * resolv/Versions: Likewise.
780 * sysdeps/alpha/dl-machine.h: Likewise.
781 * sysdeps/alpha/libc-tls.c: Likewise.
782 * sysdeps/generic/ldsodefs.h: Likewise.
783 * sysdeps/generic/tls.h: Likewise.
784 * sysdeps/i386/dl-machine.h: Likewise.
785 * sysdeps/ia64/dl-machine.h: Likewise.
786 * sysdeps/ia64/libc-tls.c: Likewise.
787 * sysdeps/mach/hurd/fork.c: Likewise.
788 * sysdeps/mach/hurd/i386/tls.h: Likewise.
789 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
790 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
791 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
792 * sysdeps/s390/libc-tls.c: Likewise.
793 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
794 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
795 * sysdeps/sh/dl-machine.h: Likewise.
796 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
797 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
798 * sysdeps/x86_64/dl-machine.h: Likewise.
800 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
801 split out locking and parameter checking.
802 (_dl_close): Call _dl_close_worker after locking and checking.
803 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
805 * elf/Makefile: Add rules to build and run tst-thrlock.
806 * elf/tst-thrlock.c: New file.
809 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
813 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
814 we are sure we do not need it anymore for _dl_close. Also move
815 the asserts inside the lock region.
816 Patch mostly by Suzuki <suzuki@in.ibm.com>.
818 2006-10-27 Jakub Jelinek <jakub@redhat.com>
820 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
822 (_dl_lookup_symbol_x): Adjust caller.
824 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
826 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
828 * elf/dl-libc.c: Revert l_scope name changes.
829 * elf/dl-load.c: Likewise.
830 * elf/dl-object.c: Likewise.
831 * elf/rtld.c: Likewise.
832 * elf/dl-close.c (_dl_close): Likewise.
833 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
834 always use __rtld_mrlock_{change,done}. Always free old scope list
835 here if not l_scope_mem.
836 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
837 change. Never free scope list here. Just __rtld_mrlock_lock before
838 the lookup and __rtld_mrlock_unlock it after the lookup.
839 * elf/dl-sym.c: Likewise.
840 * include/link.h (struct r_scoperec): Remove.
841 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
842 with l_scope_mem and l_scoperec_lock with l_scope_lock.
844 2006-10-25 Ulrich Drepper <drepper@redhat.com>
846 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
848 2006-10-18 Ulrich Drepper <drepper@redhat.com>
850 * configure.in: Disable building profile libraries by default.
852 2006-10-17 Jakub Jelinek <jakub@redhat.com>
854 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
855 as signed longs, check for x_base + pos overflow.
856 * sunrpc/Makefile (tests): Add tst-xdrmem2.
857 * sunrpc/tst-xdrmem2.c: New test.
859 2006-10-18 Ulrich Drepper <drepper@redhat.com>
861 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
862 _dl_lookup_symbol_x code.
864 2006-10-17 Jakub Jelinek <jakub@redhat.com>
866 * elf/dl-runtime.c: Include sysdep-cancel.h.
867 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
868 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
869 instead of catomic_* macros.
870 * elf/dl-sym.c: Include sysdep-cancel.h.
871 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
872 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
873 * elf/dl-close.c: Include sysdep-cancel.h.
874 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
875 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
876 * elf/dl-open.c: Include sysdep-cancel.h.
877 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
878 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
880 2006-10-17 Jakub Jelinek <jakub@redhat.com>
883 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
884 fastbin rather than end of fastbin array.
886 2006-10-18 Ulrich Drepper <drepper@redhat.com>
888 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
890 * sysdeps/x86_64/bits/atomic.h
891 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
892 (catomic_decrement): Use correct body macro.
894 2006-10-17 Jakub Jelinek <jakub@redhat.com>
896 * include/atomic.h: Add a unique prefix to all local variables
898 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
900 2006-10-16 Ulrich Drepper <drepper@redhat.com>
903 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
906 2006-10-14 Ulrich Drepper <drepper@redhat.com>
908 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
910 2006-10-13 Ulrich Drepper <drepper@redhat.com>
913 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
914 determine highest fast bin to consolidate, always look into all of
916 (do_check_malloc_state): Only require for empty bins for large
919 * libio/stdio.h: Add more __wur attributes.
921 * elf/dl-minimal.c (realloc): Optimize last patch.
923 2006-10-12 Richard Sandiford <richard@codesourcery.com>
926 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
927 and use memcpy() if it does.
929 2006-11-12 Andreas Jaeger <aj@suse.de>
932 * manual/search.texi (Hash Search Function): Clarify.
933 (Array Search Function): Clarify.
935 2006-11-12 Joseph Myers <joseph@codesourcery.com>
938 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
940 * math/atest-exp2.c (read_mpn_hex): Likewise.
941 * math/atest-sincos.c (main): Likewise.
943 2006-10-11 Ulrich Drepper <drepper@redhat.com>
945 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
946 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
947 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
949 * Versions.def: Add GLIBC_2.6 for libc.
951 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
953 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
955 2006-10-11 Jakub Jelinek <jakub@redhat.com>
957 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
959 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
961 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
962 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
964 2006-10-11 Ulrich Drepper <drepper@redhat.com>
966 * include/atomic.c: Define catomic_* operations.
967 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
968 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
969 * malloc/memusage.c: Likewise.
970 * gmon/mcount.c: Likewise.
971 * elf/dl-close.c: Likewise.
972 * elf/dl-open.c: Likewise.
973 * elf/dl-profile.c: Likewise.
974 * elf/dl-sym.c: Likewise.
975 * elf/dl-runtime.c: Likewise.
976 * elf/dl-fptr.c: Likewise.
977 * resolv/res_libc.c: Likewise.
979 2006-10-10 Ulrich Drepper <drepper@redhat.com>
981 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
982 components which lack them.
984 * nis/nis_subr.c (nis_getnames): Make sure that we always return
985 at least one entry consisting of the parameter concatenated with
988 2006-10-10 Roland McGrath <roland@frob.com>
990 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
991 * sysdeps/mach/hurd/futimes.c: Likewise.
992 * sysdeps/mach/hurd/lutimes.c: Likewise.
994 2006-10-09 Ulrich Drepper <drepper@redhat.com>
995 Jakub Jelinek <jakub@redhat.com>
997 Implement reference counting of scope records.
998 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
999 from the list in objects which remain. Always allocate new scope
1001 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1002 don't resize, allocate a new one.
1003 * elf/dl-runtime.c: Update reference counters before using a scope
1005 * elf/dl-sym.c: Likewise.
1006 * elf/dl-libc.c: Adjust for l_scope name change.
1007 * elf/dl-load.c: Likewise.
1008 * elf/dl-object.c: Likewise.
1009 * elf/rtld.c: Likewise.
1010 * include/link.h: Include <rtld-lowlevel.h>. Define struct
1011 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
1012 Add l_scoperec_lock.
1013 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1014 * sysdeps/generic/rtld-lowlevel.h: New file.
1016 * include/atomic.h: Rename atomic_and to atomic_and_val and
1017 atomic_or to atomic_or_val. Define new macros atomic_and and
1018 atomic_or which do not return values.
1019 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1021 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1023 * po/sv.po: Update from translation team.
1025 2006-10-07 Ulrich Drepper <drepper@redhat.com>
1027 * Versions.def: Add GLIBC_2.6 to libpthread.
1029 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1030 (versioned_symbol): Likewise.
1031 (compat_symbol): Likewise.
1033 * po/tr.po: Update from translation team.
1035 2006-10-06 Ulrich Drepper <drepper@redhat.com>
1037 * nis/Banner: Removed. It's been integral part forever and the
1038 author info is incomplete anyway.
1039 * libio/Banner: Likewise.
1041 * nis/nis_table.c (nis_list): If __follow_path fails in the new
1042 code, make sure the nis_freeresult call doesn't crash and that the
1043 result is reported correctly.
1045 2006-09-27 Jakub Jelinek <jakub@redhat.com>
1047 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1048 when callback is NULL.
1050 * nis/Versions (libnss_nisplus): Add
1051 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1052 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1053 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1054 _nss_create_tablename): Rename to...
1055 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1056 ... these. No longer static.
1057 (internal_setgrent): Adjust users.
1058 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1059 Don't use locking around _nss_grp_create_tablename call.
1060 * nis/nss_nisplus/nisplus-initgroups.c: New file.
1062 2006-10-06 Ulrich Drepper <drepper@redhat.com>
1064 * version.h (VERSION): Bump to 2.5.90 for new development tree.
1066 2006-10-06 Andreas Jaeger <aj@suse.de>
1068 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1070 2006-10-06 Ulrich Drepper <drepper@redhat.com>
1072 * po/pl.po: Update from translation team.
1074 * nscd/nscd.c (main): Fix typo in message.
1075 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1077 2006-10-02 Jakub Jelinek <jakub@redhat.com>
1080 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1081 errno.h, signal.h, unistd.h and sysdep-cancel.h.
1082 (__sigprocmask): Define.
1084 2006-10-02 Ulrich Drepper <drepper@redhat.com>
1086 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1089 2006-10-02 Jakub Jelinek <jakub@redhat.com>
1091 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1092 in oldtotal and newtotal calculation.
1093 * nscd/nscd-client.h (struct mapped_database): Add datasize
1095 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1096 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1098 (__nscd_cache_search): Add checks to make sure we never reference
1099 data beyond the current mapping.
1101 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
1103 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1104 variables const to avoid compiler warnings.
1106 * io/fts.c (fts_close): Remove redundant checks.
1107 (fts_build): Likewise.
1108 (fts_palloc): Likewise.
1110 * manual/message.texi (Advanced gettext functions,
1111 Using gettextized software): Fix typos.
1113 2006-09-30 Ulrich Drepper <drepper@redhat.com>
1115 * posix/glob.c (glob_in_dir): Add some comments and asserts to
1116 explain why there are no leaks.
1118 2006-09-29 Ulrich Drepper <drepper@redhat.com>
1120 * libio/wmemstream.c: Include <wchar.h>.
1121 * libio/bug-wmemstream1.c: Likewise.
1122 * libio/tst-wmemstream1.c: Likewise.
1123 * libio/tst-wmemstream2.c: Likewise.
1125 * version.h (RELEASE): Bump to 2.5.
1126 * README: Regenerated.
1128 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1131 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1132 found no group members.
1133 Patch by Petr Baudis.
1135 2006-09-29 Jakub Jelinek <jakub@redhat.com>
1137 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1138 assert bootstrap_map.l_tls_modid is zero.
1139 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1142 2006-09-27 Ulrich Drepper <drepper@redhat.com>
1144 * libio/stdio.h: Move open_wmemstream prototype to ...
1145 * wcsmbs/wchar.h: ... here.
1147 2006-09-25 Jakub Jelinek <jakub@redhat.com>
1150 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1151 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1152 __{,l}chown to handle the rest.
1153 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1154 fchownat syscall and __ASSUME_32BITUIDS case inline, call
1155 __{,l}chown to handle the rest.
1156 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1158 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1159 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1162 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1163 time, rather allocate increasingly bigger arrays of pointers, if
1164 possible with alloca, if too large with malloc.
1166 2006-09-24 Jakub Jelinek <jakub@redhat.com>
1168 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1170 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1172 2006-09-24 Ulrich Drepper <drepper@redhat.com>
1174 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1176 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1177 IFA_F_HOMEADDRESS flag for interfaces.
1178 * include/ifaddrs.h (struct in6addrinfo): Define
1181 2006-09-21 Jakub Jelinek <jakub@redhat.com>
1184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1185 PTR_DEMANGLE3): Define.
1186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1187 PTR_DEMANGLE3): Likewise.
1188 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1189 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1191 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1193 2006-09-20 Jakub Jelinek <jakub@redhat.com>
1195 * po/libc.pot: Regenerated.
1196 * po/be.po: Updated.
1197 * po/ca.po: Likewise.
1198 * po/cs.po: Likewise.
1199 * po/da.po: Likewise.
1200 * po/de.po: Likewise.
1201 * po/el.po: Likewise.
1202 * po/en_GB.po: Likewise.
1203 * po/es.po: Likewise.
1204 * po/fi.po: Likewise.
1205 * po/fr.po: Likewise.
1206 * po/gl.po: Likewise.
1207 * po/hr.po: Likewise.
1208 * po/hu.po: Likewise.
1209 * po/ja.po: Likewise.
1210 * po/ko.po: Likewise.
1211 * po/nb.po: Likewise.
1212 * po/nl.po: Likewise.
1213 * po/pl.po: Likewise.
1214 * po/pt_BR.po: Likewise.
1215 * po/ru.po: Likewise.
1216 * po/rw.po: Likewise.
1217 * po/sk.po: Likewise.
1218 * po/sv.po: Likewise.
1219 * po/tr.po: Likewise.
1220 * po/zh_CN.po: Likewise.
1221 * po/zh_TW.po: Likewise.
1224 * iconv/iconv_prog.c (main): Fix spelling in error message.
1225 * iconv/iconvconfig.c (main): Likewise.
1226 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1227 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1228 * locale/programs/localedef.c (main): Likewise.
1229 * locale/programs/repertoire.c (repertoire_read): Likewise.
1230 * timezone/zdump.c (main): Likewise.
1231 * nscd/connections.c (handle_request): Fix spelling in log message.
1232 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1234 2006-09-20 Ulrich Drepper <drepper@redhat.com>
1236 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1239 2006-09-20 Andreas Jaeger <aj@suse.de>
1241 * math/libm-test.inc (lrint_test_upward): Fix typo.
1243 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
1246 * math/libm-test.inc (lrint_test_tonearest): New function.
1247 (lrint_test_towardzero): New function.
1248 (lrint_test_downward): New function.
1249 (lrint_test_upward): New function.
1250 (main): Run these new tests.
1251 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1252 of values near to 0.
1253 (two52): Use double not long double.
1254 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1255 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1256 (two23): Use float not double.
1257 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1258 (two23): Use float not double.
1259 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1260 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1261 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1262 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1264 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1266 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1267 Cast sp to unsigned long to avoid compiler warning.
1268 Use __makecontext_ret function instead of a trampoline on the stack.
1269 (__makecontext_ret): New function.
1270 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1272 2006-09-19 Jakub Jelinek <jakub@redhat.com>
1274 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1275 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1278 2006-09-19 Ulrich Drepper <drepper@redhat.com>
1280 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1281 sure no reference to the unloaded map's search list remains in the
1284 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1286 * elf/Makefile: Add rules to build and run unload7 test.
1287 * elf/unload7.c: New test.
1288 * elf/unload7mod1.c: New file.
1289 * elf/unload7mod2.c: New file.
1291 2006-09-18 Jakub Jelinek <jakub@redhat.com>
1293 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1294 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1295 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1296 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1297 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1298 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1299 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1300 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1301 PTRACE_GETEVENTMSG): Likewise.
1302 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1305 2006-09-17 Mike Frysinger <vapier@gentoo.org>
1307 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1308 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1309 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1310 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1312 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1314 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1315 write '\0' to the fd.
1316 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1317 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1318 Change regs to unsigned long pointer from unsigned int, fix fscr
1321 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1323 * io/Makefile (CFLAGS-fstatat.c): Set.
1324 (CFLAGS-fstatat64.c): Likewise.
1325 (CFLAGS-mknodat.c): Likewise.
1327 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1328 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1329 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1330 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1332 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1333 Steven Munroe <sjmunroe@us.ibm.com>
1335 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1336 names to the beginning. Rename "cell" to "cellbe".
1337 (_dl_powerpc_platforms): New.
1338 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1339 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1340 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1341 (_DL_HWCAP_PLATFORM): Define to new mask.
1342 (_dl_platform_string, _dl_string_platform): New functions.
1343 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1344 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1346 2006-09-12 Jakub Jelinek <jakub@redhat.com>
1349 * README.libm: Fix a thinko in sqrt algorithm description.
1352 * manual/string.texi (argz_delete): Fix prototype.
1353 Patch by <alpt@freaknet.org>.
1355 2006-08-26 Joseph Myers <joseph@codesourcery.com>
1358 * io/test-lfs.c (do_prepare): Give name_len type size_t.
1359 * io/tst-fcntl.c (do_prepare): Likewise.
1360 * posix/tst-exec.c (do_prepare): Likewise.
1361 * posix/tst-preadwrite.c (do_prepare): Likewise.
1362 * posix/tst-spawn.c (do_prepare): Likewise.
1363 * posix/tst-truncate.c (do_prepare): Likewise.
1364 * rt/tst-aio.c (do_prepare): Likewise.
1365 * rt/tst-aio64.c (do_prepare): Likewise.
1366 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1369 2006-09-09 Ulrich Drepper <drepper@redhat.com>
1372 * time/mktime.c (guess_time_tm): Fix overflow detection.
1373 * time/Makefile (tests): Add bug-mktime1.
1374 * time/bug-mktime1.c: New file.
1377 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1380 2006-09-07 Jakub Jelinek <jakub@redhat.com>
1383 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1384 Ensure relocation doesn't clobber any bits outside of the
1385 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1386 R_SPARC_HI22 and R_SPARC_H44.
1389 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1390 (long) (MINSIZE + nb - old_size) is positive.
1392 * malloc/arena.c (grow_heap): When growing bail even if new_size
1396 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1399 2006-09-06 Jakub Jelinek <jakub@redhat.com>
1401 * posix/regex_internal.c (re_string_reconstruct): Handle
1402 offset < pstr->valid_raw_len && pstr->offsets_needed case.
1403 Ensure no bytes read before raw_mbs array. Pass a saved copy of
1404 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1405 re_string_context_at.
1406 * posix/Makefile: Add rules to build and run bug-regex26 test.
1407 * posix/bug-regex26.c: New test.
1409 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1410 rather than col_sym_free. Move seqp declaration earlier.
1412 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1414 2006-09-05 Jakub Jelinek <jakub@redhat.com>
1416 * nscd/initgrcache.c (addinitgroupsX): Move any_success
1417 decl before first goto out.
1419 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1421 * Makerules (shlib.lds): If have-hash-style, put .hash section
1422 at the end of the RO segment.
1424 2006-09-04 Ulrich Drepper <drepper@redhat.com>
1426 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1427 style hash table format is used.
1429 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1431 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1432 randomization rather than before.
1433 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1435 2006-08-31 Jakub Jelinek <jakub@redhat.com>
1437 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1439 * malloc/malloc.c (_int_malloc): Use full list insert and not
1440 shortcut which assumes the list is empty for large requests
1443 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1445 2006-08-30 Jakub Jelinek <jakub@redhat.com>
1447 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1448 and offout arguments to the prototype.
1449 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1450 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1451 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1452 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1453 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1454 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1455 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1456 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1458 2006-08-28 Ulrich Drepper <drepper@redhat.com>
1460 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1462 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1465 2006-08-28 Jakub Jelinek <jakub@redhat.com>
1467 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1468 only if herrno is NETDB_INTERNAL. Handle errors other than
1469 ERANGE outside of the loops, handle TRY_AGAIN.
1471 * locale/programs/ld-ctype.c (translit_flatten): Issue error
1472 if other's ctype category was missing.
1473 * locale/programs/ld-collate.c (collate_read): Return if
1474 copy_locale's collate category is missing.
1476 2006-08-27 Ulrich Drepper <drepper@redhat.com>
1479 * malloc/malloc.c (public_rEALLOc): Try harder by using other
1480 arenas if allocation failed.
1481 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1483 2006-08-26 Ulrich Drepper <drepper@redhat.com>
1485 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1487 (malloc_state): Reduce bins size by 2.
1488 (_int_malloc): Fix test for large enough buffer for early termination.
1489 When no unsorted block matches perfectly and an exiting block has
1490 to be split, use full list insert and not shortcut which assumes
1493 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1496 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1498 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1501 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1502 symbol require exact match (these are PLTs).
1503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1504 (_dl_ppc64_addr_sym_match): Likewise.
1507 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1508 If symbol has a value use it.
1509 * elf/tst-dladdr1.c: New file.
1510 * elf/Makefile: Add rules to build and run tst-addr1.
1512 2006-08-24 Jakub Jelinek <jakub@redhat.com>
1514 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1515 keeps failing and heap growth or new heap creation isn't
1517 * malloc/tst-malloc.c (main): Add new tests.
1519 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1522 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1523 as in the x86-64 code to use bswap.
1525 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
1528 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1530 * posix/bits/unistd.h: Likewise.
1532 2006-05-15 Mike Frysinger <vapier@gentoo.org>
1535 * string/strchr.c: Add cast to avoid warning.
1537 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1539 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1540 platforms define as 512K. For 64-bit platforms as 32MB. The lower
1541 limit is needed to avoid the exploding of the address space
1542 requirement for secondary heaps.
1543 * malloc/arena.c (HEAP_MAX_SIZE): Define using
1544 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1546 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
1549 * Makerules (depfiles): Handle extra-test-objs the same as
1551 (common-mostlyclean): Likewise.
1552 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1554 * elf/Makefile (extra-objs): Likewise.
1555 * stdlib/Makefile (extra-objs): Likewise.
1557 2006-08-14 Eric Blake <ebb9@byu.net>
1560 * misc/error.h: Assume C89 or better.
1561 * misc/error.c: Likewise.
1563 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1566 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1567 __ASSUME_ATFCTS is defined.
1569 2006-08-19 Ulrich Drepper <drepper@redhat.com>
1571 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1572 to sort in each call.
1574 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1575 is empty simply return and use next service.
1576 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1578 * locale/programs/charmap.c (charmap_read): Add new parameter. It
1579 tells us when not finding a charmap file is an error.
1580 * locale/programs/charmap.h: Adjust charmap_read prototype.
1581 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1582 cannot find a charmap.
1583 * locale/programs/localedef.c (main): Adjust charmap_read call.
1585 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1587 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1588 sysdeps/posix/pause.c implementation instead.
1590 2006-08-09 Jakub Jelinek <jakub@redhat.com>
1592 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1595 2006-08-13 Andreas Schwab <schwab@suse.de>
1597 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1598 Don't clobber caller's LRSAVE.
1599 (_dl_prof_resolve): Likewise.
1601 2006-08-14 Ulrich Drepper <drepper@redhat.com>
1604 * libio/memstream.c (open_memstream): Allocate initial buffer with
1606 * libio/wmemstream.c (open_wmemstream): Likewise.
1607 * libio/strops.c: Pretty printing.
1608 (_IO_str_overflow): Clear uninitialized part of the new buffer.
1609 (enlarge_userbuf): New function.
1610 (_IO_str_seekoff): Call it if seek position is larger than current
1612 * libio/wstrops.c: Likewise.
1613 * libio/vasprintf.c: Add comment as to why we do not have to use
1614 calloc instead of malloc to allocate initial buffer.
1615 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1616 * libio/bug-memstream1.c: New file.
1617 * libio/bug-wmemstream1.c: New file.
1619 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1621 * libio/wstrops.c: Remove dead macro definitions and comments.
1622 * libio/strops.c: Likewise.
1625 * login/utmpname.c (__utmpname): Remove unnecessary test.
1627 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
1630 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1633 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1636 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1638 * sysdeps/unix/clock_settime.c: Add support for platform-specific
1639 setting of CPU clocks.
1641 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
1644 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1645 since C99 requires the result to promote to 'int' when uint_least8_t
1646 and uint_least16_t promote to 'int'.
1648 2006-08-12 Ulrich Drepper <drepper@redhat.com>
1651 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1652 lenght of one output field, correct bitmask creation.
1653 * locale/programs/ld-time.c: Add alignment.
1656 * misc/error.c: Add space between program name and message if file
1659 2006-08-03 Eric Blake <ebb9@byu.net>
1662 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1664 2006-08-09 Ulrich Drepper <drepper@redhat.com>
1666 * malloc/memusagestat.c: Silence warnings.
1668 * malloc/malloc.c: Dynamically size mmap treshold if the program
1669 frees mmaped blocks.
1670 Patch by Valerie Henson and Arjan van de Ven.
1672 2006-08-08 Jakub Jelinek <jakub@redhat.com>
1674 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1677 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1678 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1679 (DEF): Don't put the var into .gnu.linkonce.r.* section.
1680 Only provide var definitions in strtol_l (or for *ull*
1683 * stdio-common/bug16.c (tests): New array.
1684 (do_tests): Allow the first hexadecimal digit
1685 to be 1, 2, 4 or 8. Do 3 additional tests.
1687 * sysdeps/s390/fpu/libm-test-ulps: Update.
1689 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1690 fchownat syscall if available.
1691 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1692 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1693 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1695 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1697 * nis/nis_xdr.c: Avoid some function calls.
1699 2006-08-07 Jakub Jelinek <jakub@redhat.com>
1700 Ulrich Drepper <drepper@redhat.com>
1702 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1703 short cut if only one name component is stripped away.
1705 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1707 * nis/nis_call.c: Minor cleanups throughout.
1708 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1709 (first_shoot): Add search_parent_first parameter. Only if it is set
1710 search parent server first.
1711 If directory for table found through cold start cache is not the same
1712 as referenced in the cache, don't use it.
1713 (__nisfind_server): Take additional parameter. Pass it on to
1715 (__prepare_niscall): Adjust __nisfind_server call.
1716 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1717 * nis/nis_table.c: Adjust __nisfind_server call.
1718 * nis/nis_lookup.c: Likewise.
1719 (nis_lookup): Don't loop endlessly if name is reduced to ".".
1721 2006-08-03 Ulrich Drepper <drepper@redhat.com>
1724 * math/s_cacosh.c: Return values from positive branch.
1725 * math/s_cacoshf.c: Likewise.
1726 * math/s_cacoshl.c: Likewise.
1729 * sysvipc/sys/msg.h: Change return value to ssize_t.
1730 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1731 * sysvipc/msgrcv.c: Likewise.
1732 * include/sys/msg.h: Likewise.
1734 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1735 test introduced in patch for bz #661.
1736 (getgrouplist): Simplify code a bit. Don't allocate one additional
1737 element for NEWGROUPS.
1740 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1741 'f', use '1' as leading digit not '\1'.
1742 * stdio-common/Makefile (tests): Add bug16.
1743 * stdio-common/bug16.c: New file.
1746 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1747 and don't try to open it. The patch introducing the macro
1748 contained a bug and used the same file name as the new file
1749 instead of using /var/adm/hostid. Nobody complaint so I'm taking
1750 this out completely.
1753 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1754 Patch by Jerry James <Jerry.James@usu.edu>.
1756 * rt/Makefile (tests): Add tst-clock2.
1757 * rt/tst-clock2.c: New file.
1760 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1761 function and its parameters and pass it to new thread.
1762 (__gai_notify): Add support for alternative waiting for completion.
1763 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1764 waiting for completion.
1765 * resolv/getaddrinfo_a.c: Likewise.
1766 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1767 waiting for completion is used.
1768 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1769 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1770 * resolv/gai_error.c: Likewise.
1771 * resolv/gai_sigqueue.c: Likewise.
1773 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
1775 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1776 errno to EBADF and return MACH_PORT_NULL.
1778 2006-06-23 Joseph Myers <joseph@codesourcery.com>
1781 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1783 2006-08-02 Ulrich Drepper <drepper@redhat.com>
1785 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1786 walk them instead of the symbol table.
1788 2006-08-01 Ulrich Drepper <drepper@redhat.com>
1791 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1792 status of NSS calls, not the number of returned entries.
1794 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1795 request_key, keyctl.
1797 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1799 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1801 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
1803 * elf/tst-auditmod1.c: Fix typo in #error.
1805 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1807 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1809 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1811 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
1813 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1814 that the directory is empty even on non-POSIX filesystems.
1816 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1818 * elf/dl-open.c (dl_open_worker): Add branch prediction.
1820 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1821 the backend NSS module. If backend setgrent call failed, don't have
1822 internal_setgrent fail. Just remember this until it is needed.
1823 * nis/nss_compat/compat-pwd.c: Likewise.
1824 * nis/nss_compat/compat-spwd.c: Likewise.
1826 2006-07-30 Roland McGrath <roland@redhat.com>
1828 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1829 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1830 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1831 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1833 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1834 (nanosleep_not_cancel): New macro.
1835 (sigsuspend_not_cancel): new macro.
1836 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1837 (do_sigsuspend): Define as inline.
1838 (__sigsuspend): Always use do_sigsuspend.
1839 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
1840 * include/signal.h: Declare __sigsuspend_nocancel.
1841 * sysdeps/posix/pause.c
1842 [! NO_CANCELLATION] (__pause_nocancel): New function.
1844 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
1845 * include/time.h (__nanosleep_nocancel): Likewise.
1847 2006-07-30 Ulrich Drepper <drepper@redhat.com>
1849 * locale/programs/localedef.c (add_to_readlist): Rename local
1850 variables to avoid confusion.
1852 * locale/programs/charmap.c (charmap_read): Emit error message if
1853 charmap couldn't be found or read.
1855 2006-07-28 Ulrich Drepper <drepper@redhat.com>
1857 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1858 __ASSUME_FUTEX_LOCK_PI.
1859 * include/time.h: Declare __nanosleep_nocancel.
1860 * include/unistd.h: Declare __pause_nocancel.
1862 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
1863 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
1864 get the __stack_chk_fail_local definition when it's needed.
1866 2006-07-26 Ulrich Drepper <drepper@redhat.com>
1868 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
1869 * dlfcn/bug-atexit3.c: New file.
1870 * dlfcn/bug-atexit3-lib.cc: New file.
1872 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
1873 used when the namespace is not the base namespace.
1875 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
1877 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
1878 (__new_exitfn): Bump it in every successful call.
1879 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
1880 more exit handlers, call them right away.
1881 * stdlib/exit.h: Declare __new_exitfn_called.
1883 2006-07-25 Ulrich Drepper <drepper@redhat.com>
1885 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
1886 calling registered handler.
1888 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
1889 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1890 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1891 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1892 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1893 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1894 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1895 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1897 2006-07-10 Ulrich Drepper <drepper@redhat.com>
1899 * elf/dl-lookup.c (dl_new_hash): New functions.
1900 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
1901 value here. Compute new-style hash value. Pass new hash value
1902 and reference to variable with the old value to do_lookup_x.
1903 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
1904 old-style hash table.
1905 (_dl_debug_bindings): Pass new hash value and reference to variable
1906 with the old value to do_lookup_x.
1907 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
1908 new-style hash value and change old-style hash value parameter to
1909 be a reference. Reoganize functions to determine whether
1910 new-style hash table is available. Only fall back on old-style
1911 table. If old-style hash value is needed, compute it here.
1912 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
1914 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
1915 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
1916 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
1917 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
1918 * Makeconfig: If linker supports --hash-style option add it to all
1919 linker command lines to build DSOs.
1920 * config.make.in: Define have-hash-style.
1921 * configure.in: Test whether linker supports --hash-style option.
1923 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
1924 * sysdeps/generic/ldsodefs.h: Adjust prototype.
1926 2006-06-27 Ulrich Drepper <drepper@redhat.com>
1928 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
1931 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
1932 RPATH of main map twice.
1934 2006-06-22 Ulrich Drepper <drepper@redhat.com>
1936 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
1937 look further, return original strings.
1938 (_nl_find_msg): Do not return found translation if the conversion
1939 failed. Either signal the string is unusable or that something went
1940 wrong and the original should be used.
1942 2006-06-21 Ulrich Drepper <drepper@redhat.com>
1944 * string/_strerror.c (__strerror_r): Add __builtin_expect.
1946 2006-06-14 Jakub Jelinek <jakub@redhat.com>
1949 * misc/insremque.c (insque): Handle prev == NULL.
1950 * misc/Makefile (tests): Add tst-insremque.
1951 * misc/tst-insremque.c: New test.
1953 2006-06-17 Ulrich Drepper <drepper@redhat.com>
1956 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
1957 conflict with DL_DST_REQUIRED.
1959 2006-06-16 Ulrich Drepper <drepper@redhat.com>
1961 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
1962 match what Solaris does.
1964 2006-06-04 Ulrich Drepper <drepper@redhat.com>
1966 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
1967 local_setegid instead of seteuid and setegid.
1968 * sysdeps/generic/local-setxid.h: New file.
1969 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
1971 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
1973 * string/Makefile (tests): Add bug-envz1.
1974 * string/bug-envz1.c: New file.
1976 2006-06-02 Jakub Jelinek <jakub@redhat.com>
1978 * posix/regex_internal.c (re_string_skip_chars): If no character has
1979 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
1980 to the byte which couldn't be converted.
1981 (re_string_reconstruct): Don't clear valid_raw_len before calling
1982 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
1983 tip_context using re_string_context_at.
1984 * posix/Makefile: Add rules to build and run bug-regex25 test.
1985 * posix/bug-regex25.c: New test.
1987 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
1990 * string/envz.c (envz_strip): Correct erroneously reversed src
1991 and dest parameters to memmove() invocation.
1993 2006-05-30 Jakub Jelinek <jakub@redhat.com>
1995 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
1996 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
1997 to make sure the database has been already invalidated.
1998 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
1999 after the cache has been invalidated. Use pthread_mutex_lock rather
2000 than pthread_mutex_trylock if fd != -1.
2001 * nscd/connections.c (invalidate_cache): Add fd argument, write
2002 response to fd if not calling prune_cache, pass fd to prune_cache.
2003 (handle_request): Adjust invalidate_cache caller.
2004 (nscd_run): Pass -1 as fd to prune_cache.
2006 2006-05-30 Ulrich Drepper <drepper@redhat.com>
2008 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2011 2006-05-29 Ulrich Drepper <drepper@redhat.com>
2013 * nscd/nscd.h (struct database_dyn): Add prunelock field.
2014 * nscd/cache.c (prune_cache): Take prunelock before starting the
2015 work. Just return in case it is already taken.
2016 * nscd/connections.c (dbs): Initialize .prunelock.
2018 2006-05-25 Ulrich Drepper <drepper@redhat.com>
2020 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2021 copying. No need to allocate new array for group members. Just
2022 move the pointers and update the size.
2024 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2025 Avoid memory leak in case realloc fails. Simplification for
2026 better code generation.
2028 Avoid deprecation warning because of libc_hidden_proto for
2030 * inet/inet6_option.c (option_alloc): Renamed from
2031 inet6_option_alloc. Made static.
2032 (inet6_option_alloc): Now a simple wrapper around option_alloc.
2033 (inet6_option_append): Call option_alloc.
2034 * include/netinet/in.h: Remove libc_hidden_proto for
2037 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2038 for cleanup when cb!=NULL [Coverity CID 233].
2040 2006-05-24 Ulrich Drepper <drepper@redhat.com>
2043 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2044 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2045 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2046 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2047 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2048 and inet6_rth_getaddr.
2049 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2051 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2052 Mark inet6_option_* interfaces as deprecated.
2053 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2054 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2055 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2056 inet6_rth_segments, and inet6_rth_getaddr.
2057 * inet/inet6_opt.c: New file.
2058 * inet/inet6_rth.c: New file.
2060 * inet/netinet/icmp6.h: Pretty printing.
2063 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2065 2006-05-23 Ulrich Drepper <drepper@redhat.com>
2067 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2068 doing it all here. When server does not know the answer do not
2069 fail immediate, try parent first.
2071 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2074 2006-05-20 Ulrich Drepper <drepper@redhat.com>
2076 * nis/nis_call.c (__prepare_niscall): New function. Split out
2078 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2080 (__follow_path): New function. Split out from nis_list.
2081 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2083 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2085 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2087 * nis/Versions: Export __prepare_niscall, __create_ib_request,
2088 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2089 from libnsl for version GLIBC_PRIVATE.
2090 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2091 Remove entry parameter from _nss_nisplus_parse_pwent and
2092 _nss_nisplus_parse_grent.
2093 * nis/nss_nisplus/nisplus-parser.c: Likewise.
2094 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2095 again. Rewrite getpwent handling to not use nis_first_entry and
2096 nis_next_entry. Roll out own niscall handling.
2097 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2099 * sunrpc/xdr_rec.c: Fix typo in comment.
2101 2006-05-19 Ulrich Drepper <drepper@redhat.com>
2103 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2106 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2107 to allocate memory for my_pollfd. Better initialization of
2108 cb_is_running. Use TEMP_FAILURE_RETRY.
2110 * malloc/memusage.sh (memusageso): Add quotes.
2111 (memusagestat): Likewise.
2112 * debug/xtrace.sh (pcprofileso): Likewise.
2113 (pcprofiledump): Likewise.
2114 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2116 * malloc/Makefile ($(objpfx)memusage): Likewise.
2118 * nis/nis_callback.c (__nis_create_callback): Calls to
2119 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
2120 asprintf call fails.
2122 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2123 no uninitialized memory is passed to sendto.
2125 2006-05-18 Ulrich Drepper <drepper@redhat.com>
2127 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2128 of snprintf+strdup. Handle OOM.
2129 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2130 cb->serv together. Remove now obsolete free calls.
2131 (__nis_destroy_callback): Remove now obsolete free call.
2133 2006-05-18 David Woodhouse <dwmw2@redhat.com>
2135 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2136 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2137 and ULA respectively). Set precedence for IPv4 address to 10 as
2138 defined in RFC3484 for preferring IPv6.
2139 * posix/gai.conf: Update to match the new default tables.
2141 2006-05-18 Jakub Jelinek <jakub@redhat.com>
2143 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2144 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2145 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2146 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2148 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2150 (init_nss_interface): Remove initialization of these variables.
2152 2006-05-18 Ulrich Drepper <drepper@redhat.com>
2154 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2155 nis_free_directory forward to avoid duplication.
2157 2006-05-17 Ulrich Drepper <drepper@redhat.com>
2159 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2160 rec_dirsearch returning NULL.
2161 (first_shoot): Handle __nis_finddirectory returning NULL.
2162 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2164 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2165 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2167 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2169 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2172 2006-05-15 Ulrich Drepper <drepper@redhat.com>
2174 * include/rpc/pmap_prot.h: Mark all functions as hidden.
2176 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2177 * nscd/nscd_getgr_r.c: Likewise.
2179 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2181 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2182 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2184 * stdlib/longlong.h (__clz_tab): Mark as hidden.
2186 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2188 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2190 * include/rpc/auth.h: Mark xdr_des_block_internal and
2191 xdr_opaque_auth_internal as hidden.
2193 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2196 * include/rpc/xdr.h: Mark all _internal functions as hidden.
2198 * misc/getusershell.c (okshells): Don't use static initializers,
2201 * stdlib/fmtmsg.c (keywords): Change type of len element to
2202 uint32_t to not waste space on 64bit machines.
2204 * locale/setlocale.c: Change _nl_category_names into a string.
2205 Add new _nl_category_name_idxs. Change all users.
2206 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2207 Declare _nl_category_name_idxs.
2208 * locale/findlocale.c: Adjust for _nl_category_names change.
2209 * locale/loadlocale.c: Likewise.
2210 * locale/newlocale.c: Likewise.
2211 * intl/dcigettext.c: Likewise.
2213 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2214 (add_alias2): ...here. New function.
2215 (__gconv_read_conf): Simplify builtin alias handling.
2216 (builtin_aliases): Convert to string to avoid relocations.
2217 * iconv/gconv_builtin.h: Add comment about correct formatting.
2219 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2221 * resolv/res_debug.c (loc_ntoa): Make error const.
2223 2006-05-14 Andreas Schwab <schwab@suse.de>
2225 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2227 2006-05-12 Jakub Jelinek <jakub@redhat.com>
2229 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2230 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2233 2006-05-11 Ulrich Drepper <drepper@redhat.com>
2235 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2237 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2239 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2240 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2242 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2243 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2245 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2246 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2249 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2250 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2253 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2254 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2256 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2257 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2259 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2260 * include/rpcsvc/nis_callback.h: New file.
2262 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2263 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2265 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2266 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2268 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2269 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2271 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2272 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2274 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2275 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2278 * nis/nis_xdr.h: Mark all functions as hidden. Remove
2279 __BEGIN_DECLS and __END_DECLS, the header is not installed.
2281 * nis/nis_error.c: Remove table of strings. Use position
2282 independent mechanism.
2283 * nis/nis_error.h: New file.
2285 2006-05-11 Jakub Jelinek <jakub@redhat.com>
2287 * locale/programs/ld-time.c (time_finish): If wide era name or
2288 format aren't provided, set both wname and wformat to L"".
2290 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2292 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2293 results if the call was succesful.
2295 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2297 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2300 2006-05-10 Jakub Jelinek <jakub@redhat.com>
2302 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2304 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2306 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2307 caller makes sure this is not the case.
2308 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
2310 2006-05-09 Ulrich Drepper <drepper@redhat.com>
2312 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2315 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2316 [Coverity CID 229, 230]
2318 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2320 (hol_help): Likewise. [Coverity CID 226, 227]
2322 * string/argz-replace.c (__argz_replace): Unconditionally call
2323 free on SRC. [Coverity CID 225]
2325 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2326 the return value of __nis_default_owner and __nis_default_group,
2327 it has been especially allocated. [Coverity CID 224]
2329 * nis/nis_defaults.c (searchXYX): New functions. Used by both
2330 searchgroup and searchowner. Significantly simplified.
2331 (__nis_default_owner): Remove duplication. Do not locally copy the
2332 string before duplicating it.
2333 (__nis_default_group): Likewise.
2335 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2336 we must clear the variable before calling __nisfind_server.
2338 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2339 nis_getnames. [Coverity CID 223]
2341 * locale/programs/locfile.c (locfile_read): Use alloca instead of
2342 xmalloc to allocate local repertoire name. [Coverity CID 222]
2344 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2345 allocate memory for the input to add_bytes. [Coverity CID 221]
2347 * posix/wordexp.c (w_addword): Free word if realloc fails and it
2348 was allocated here. [Coverity CID 219, 220]
2350 * posix/getconf.c (print_all): Free confstr data after printing.
2353 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2354 list allocation fails. [Coverity CID 215]
2356 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2359 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2360 string is NULL. [Coverity CID 212]
2361 * argp/Makefile: Add rules to build and run bug-argp1.
2362 * argp/bug-argp1.c: New file.
2364 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2366 * stdlib/canonicalize.c (__realpath): Likewise.
2368 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2369 pointer. [Coverity CID 206]
2371 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2372 in statically linked code.
2373 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2374 statically built code, be prepared to have no link map.
2377 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2378 dgettext calls. [Coverity CID 204]
2380 * argp/argp-help.c (struct uparams): Remove valid member. Change
2382 (uparam_names): Reduce size. Avoid relative relocations.
2383 Moved to read-only segment.
2384 (fill_in_uparams): Update for new layout.
2386 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2387 assumed to always be != NULL. [Coverity CID 202]
2389 * argp/argp-help.c (hol_entry_help): Remove some dead code
2392 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2393 away a few more unconditional yperr2nss calls.
2394 (_nss_nis_getservbyname_r): Likewise.
2396 2006-05-06 Ulrich Drepper <drepper@redhat.com>
2398 * sysdeps/generic/ldsodefs.h: Remove support for non-core
2401 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2402 that unused memory passed to sendto is nevertheless initialized.
2405 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2406 possibly unaligned memory accesses.
2408 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2409 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2410 and __putlong respectively. Correct buffer overflow check for
2413 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2415 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2416 (send_dg): Rewrite error handling to be more compact and avoid
2417 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
2419 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2421 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2422 instead of ns_get16.
2423 (res_queriesmatch): Likewise. Minor optimization.
2426 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2427 __libc_res_nsend might reallocate the buffer for the answer. In
2428 this case we have to reload the HP pointer.
2430 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2432 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
2433 some branch prediction hints.
2435 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2436 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2437 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2438 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2439 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2440 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2441 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2442 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2444 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2446 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2447 by a GOT relocation to make Scrt1.o position independent.
2448 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2450 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2451 six system call parameters.
2452 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2454 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2456 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2459 * sunrpc/svc_udp.c (BZERO): Remove definition.
2461 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2463 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
2464 (des_SPtrans): Use uint32_t type.
2465 (des_skb): Likewise.
2467 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2469 2006-05-05 Jakub Jelinek <jakub@redhat.com>
2472 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2475 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2477 * locale/programs/ld-address.c (address_finish): Fix one more
2478 place where the iso639 array might be accessed beyond the limits.
2480 2006-05-04 Ulrich Drepper <drepper@redhat.com>
2482 * nis/nis_table.c (nis_list): Avoid clearing res twice before
2483 filling it for the first time.
2485 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2487 Free res object content before returning.
2489 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2491 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2494 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2495 cleanup for initial thread, just the free call on TVP.
2497 * nscd/gai.c (__getline): Define.
2500 See ChangeLog.16 for earlier changes.