* iconvdata/testdata/BRF: New file.
[glibc.git] / ChangeLog
blob905efa7c7cf905ce0693e5df82b3d52a841029fc
1 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
3         * iconvdata/brf.c: New file.
4         * iconvdata/testdata/BRF: New file.
5         * iconvdata/testdata/BRF..UTF8: New file.
6         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7         * iconvdata/Makefile: Add rules to build BRF.
8         * iconvdata/TESTS: Add BRF entry.
9         * iconvdata/gconv-modules: Likewise.
10         * iconvdata/tst-tables.sh: Likewise.
12 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
14         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
15         type `long long int', not `long int'.
16         (wcstoq): Likewise.
18 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
20         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
21         of values on 64-bit platforms which are too large.
23 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
24             Joe Kerian  <jkerian@us.us.ibm.com>
26         [BZ #2749]
27         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
28         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
29         (__copysignl): Use signbit() for comparison.
30         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
31         SET_LDOUBLE_WORDS64.
33         [BZ #2423, #2749]
34         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
35         (__ceill): Remove calls to fegetround(), fesetround().
36         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
37         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
38         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
40 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
42         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
44         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
46 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
48         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
49         demangle pointer.
50         * csu/libc-start.c: Likewise.
52 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
54         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
55         really work anyway.
57 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
59         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
60         users.
61         (handle_request): Remove unnecessary tests.
63         * nscd/cache.c (cache_add): Record the failure to add to the cache.
65 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
67         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
68         workbits in semi-raw fraction.
70         * math/test-misc.c: Add new tests.
72 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
74         * math/basic-test.c: Include test-skeleton.c.
75         (TEST_TRUNC): Define.
76         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
77         (main): Rename to ...
78         (do_test): ...this.  Run new tests.
79         (TEST_FUNCTION): Define.
81 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
82             Joe Kerian  <jkerian@us.us.ibm.com>
84         [BZ #2749]
85         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
86         handling for high words.
87         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
88         and overflow for infinity.
90 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
92         * nscd/connections.c (handle_request): Add a __builtin_expect.
94         * nscd/connections.c (serv2db): Change type into structure which
95         also says whether this is a request for data.  Renamed to
96         servinfo.  All users changed.
97         (handle_request): Much simpler test whether we should search the cache.
99         * nscd/connections.c (handle_request): Fix thinko in selinux test
100         invocation.
102         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
103         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
104         it before getting dl_load_lock and then relock.
105         (_dl_lookup_symbol_x): Pass flags to add_dependency.
106         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
107         case we unlocked the scope.
108         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
109         _dl_lookup_symbol_x in case we locked the scope.
110         (_dl_profile_fixup): Likewise.
111         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
112         set DL_LOOKUP_SCOPE_LOCK.
114 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
116         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
117         CFLAGS-getsrvbynpt_r.c.
118         * nscd/getsrvbynm_r.c: New file.
119         * nscd/getsrvbypt_r.c: New file.
120         * nscd/nscd_getserv_r.c: New file.
121         * nscd/servicescache.c: New file.
122         * nscd/Makefile (routines): Add nscd_getserv_r.
123         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
124         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
125         CFLAGS-getsrvbypt_r.c.
126         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
127         table.  Add entries for services database.
128         * nscd/connections.c (serv2str): Mark as const.  Add entries for
129         services database.
130         (dbs): Add .reset_res and servdb initialization.
131         (serv2db): Add entries for services database.
132         (verify_persistent_db): Accept dbnr == servdb.
133         (invalidate_cache): Rewrite database name recognition to use a table.
134         Call res_init() if .reset_res is set for database.
135         (handle_request): Add code to handle services database.
136         * nscd/gai.c: Don't define __getservbyname_r.
137         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
138         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
139         (serv_response_header): Define.
140         (struct datahead): Add serv_response_header member.
141         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
142         using table.
143         * nscd/nscd.conf: Add entries for services database.
144         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
145         Declare serv_iov_disabled.
146         Declare addservbyname, readdservbyname, addservbyport, and
147         readdservbyport.
148         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
149         (find_db): Fix error message.
150         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
151         __nscd_getservbyname_r, and __nscd_getservbyport_r.
152         * nscd/selinux.c (perms): Add entries for services database.
153         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
154         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
156         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
157         * nscd/hstcache.c: Likewise.
158         * nscd/pwdcache.c: Likewise.
160         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
161         computation of keylen.
163         * include/string.h: Only redefine strndupa if this is really for
164         libc code.
166 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
168         * nscd/nscd_gethst_r.c: Minor cleanups.
170         * nscd/connections.c (handle_request): Check selinux permissions
171         for all non-admin commands.
173         * sysdeps/i386/i486/bits/atomic.h: Define
174         atomic_compare_and_exchange_val_acq,
175         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
176         using __sync_* built-ins for gcc >= 4.1.
177         * sysdeps/x86_64/bits/atomic.h: Likewise.
179         [BZ #3840]
180         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
181         and .oS.d files.
183 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
185         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
186         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
187         (do_test): Check errno and exit(0) if ENOSYS.
189 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
191         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
192         thousands separators.
193         * stdlib/Makefile: Add rules to build and run tst-strtod4.
194         * stdlib/tst-strtod4.c: New test.
196         [BZ #3855]
197         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
198         hexadecimal digit should accept just the initial 0.
199         * stdlib/tst-strtod2.c (tests): New variable.
200         (do_test): Run several tests rather than just one.
202 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
204         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
205         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
207 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
209         * io/fts.c: Make sure fts_cur is always valid after return from
210         fts_read.
211         Patch by Miloslav Trmac <mitr@redhat.com>.
213 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
215         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
216         (R_MIPS_NUM): Bump by 1.
218 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
220         * posix/execvp.c: Include alloca.h.
221         (allocate_scripts_argv): Renamed to...
222         (scripts_argv): ... this.  Don't allocate buffer here nor count
223         arguments.
224         (execvp): Use alloca if possible.
225         * posix/Makefile: Add rules to build and run tst-vfork3 test.
226         * posix/tst-vfork3.c: New test.
228 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
230         * string/Makefile (tst-strxfrm2-ENV): Define.
231         * stdlib/Makefile (tst-strtod3-ENV): Define.
233 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
235         * posix/getconf.c: Update copyright year.
236         * nss/getent.c: Likewise.
237         * iconv/iconvconfig.c: Likewise.
238         * iconv/iconv_prog.c: Likewise.
239         * elf/ldconfig.c: Likewise.
240         * catgets/gencat.c: Likewise.
241         * csu/version.c: Likewise.
242         * elf/ldd.bash.in: Likewise.
243         * elf/sprof.c (print_version): Likewise.
244         * locale/programs/locale.c: Likewise.
245         * locale/programs/localedef.c: Likewise.
246         * nscd/nscd.c (print_version): Likewise.
247         * debug/xtrace.sh: Likewise.
248         * malloc/memusage.sh: Likewise.
249         * malloc/mtrace.pl: Likewise.
250         * debug/catchsegv.sh: Likewise.
252 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
254         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
255         attempts.
257 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
259         * posix/wordexp.c: Remove some unnecessary tests.
261 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
263         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
264         blacklist the group till after we look it up.
266 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
268         * include/atomic.h (atomic_forced_read): New macro.
270 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
272         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
274 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
276         * nss/getXXbyYY_r.c: Include atomic.h.
277         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
278         add atomic_write_barrier () in between.
280         * stdlib/Makefile (tests): Add tst-makecontext.
281         * stdlib/tst-makecontext.c: New test.
283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
284         (__makecontext): Don't realign uc_mcontext.uc_regs.
286 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
288         * elf/dl-support.c: Include dl-procinfo.h.
289         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
290         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
291         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
292         Define.
293         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
294         hardcoded constants.
295         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
296         PPC_PLATFORM_* macros for array designators.
298 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
300         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
301         names to the beginning.
302         (_dl_powerpc_platforms): Add "power6x".
303         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
304         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
305         (_DL_PLATFORMS_COUNT): Increase.
306         (_dl_string_platform): Handle power6x case.
307         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
308         PPC_FEATURE_POWER6_EXT): Define.
309         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
311 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
313         [BZ #3747]
314         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
315         [-2^31 .. 2^31) range.
316         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
317         targets.
318         * stdlib/tst-rand48-2.c: New test.
319         * stdlib/Makefile (tests): Add tst-rand48-2.
321 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
323         * misc/tst-pselect.c (do_test): Fix sigblock argument.
325 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
327         * misc/tst-pselect.c (do_test): Make sure the helper process is
328         terminating when the test is aborted.
330 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
332         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
333         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
334         Handle relatime mount option.
336         [BZ #2337]
337         * libio/Makefile (tests): Add tst-setvbuf1.
338         * libio/tst-setvbuf1.c: New file.
340 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
342         [BZ #2337]
343         * libio/genops.c (__uflow): Fix a typo.
344         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
345         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
346         the narrow buffer size.
348 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
350         [BZ #2337]
351         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
352         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
353         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
354         in _flags.
355         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
356         _IO_wstr_finish): Likewise.
357         * libio/wmemstream.c (open_wmemstream): Likewise.
358         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
359         even for wide streams.
361 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
364         kernel-features.h.
366 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
368         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
369         separators also if no non-zero digits found.
370         * stdlib/Makefile (tests): Add tst-strtod3.
372 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
374         [BZ #3632]
375         * include/features.h: Fix comment about default value for
376         _POSIX_C_SOURCE.
378         [BZ #3664]
379         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
380         empty parsed strings.
381         * stdlib/Makefile (tests): Add tst-strtod2.
382         * stdlib/tst-strtod2.c: New file.
384         [BZ #3673]
385         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
386         computation.
387         * stdlib/Makefile (tests): Add tst-atof2.
388         * stdlib/tst-atof2.c: New file.
390         [BZ #3674]
391         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
392         correctly if removing trailing zero of hex-float.
393         * stdlib/Makefile (tests): Add tst-atof1.
394         * stdlib/tst-atof1.c: New file.
396 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
398         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
399         Start searching for next comma at p rather than rest.
400         * misc/Makefile (tests): Add tst-mntent2.
401         * misc/tst-mntent2.c: New test.
403         * misc/getusershell.c (initshells): Check for integer overflows.
404         Make strings buffer one bigger as fgets always succeeds when second
405         argument is 1.  Don't use calloc for shells array.  Disallow
406         / as shell.
408 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
410         * malloc/memusage.c: Handle realloc with new size of zero and
411         non-NULL pointer correctly.
412         (me): Really write first record twice.
413         (struct entry): Make format bi-arch safe.
414         (dest): Write out more realloc statistics.
415         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
417 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
419         * nis/nis_subr.c (nis_getnames): Revert last change.
421 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
423         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
424         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
425         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
426         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
427         ENOTTY.
428         * io/Makefile: Add rules to build and run tst-ttyname_r test.
429         * io/tst-ttyname_r.c: New test.
431 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
433         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
435 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
437         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
438         jump table entries.
440 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
442         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
443         `clone' function to ensure proper unwinding stop of gdb.
444         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
446 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
448         * nscd/nscd.init: Remove obsolete and commented-out -S option
449         handling.
451 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
453         [BZ #3514]
454         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
456         [BZ #3515]
457         * manual/string.texi (strtok): Remove duplicate paragraph.
459 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
461         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
462         libgcc not supporting `rflags' unwinding (register # >= 17).
464 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
466         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
467         succeeded.
469 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
470             Jakub Jelinek  <jakub@redhat.com>
471             Jan Kratochvil  <jan.kratochvil@redhat.com>
473         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
474         unwind information.
475         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
476         'restore_rt' even in the 'signal' directory.
477         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
479 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
481         [BZ #3559]
482         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
483         malloc crashed.  Don't allocate memory unnecessarily in each
484         loop.
486 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
488         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
490 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
492         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
494 2006-11-18  Bruno Haible  <bruno@clisp.org>
496         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
497         __sysconf only after having tried to call getgroups32.
499 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
501         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
502         addresses for IPv4 queries if they can be mapped.
504 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
506         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
507         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
508         (signmask): Add .size directive.
509         (othermask): Add .type directive.
511 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
513         * po/nl.po: Update from translation team.
515         * timezone/zdump.c: Redo fix for BZ #3137.
517 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
519         * nss/nss_files/files-alias.c (get_next_alias): Set line back
520         to first_unused after parsing :include: file.
522 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
524         * timezone/africa: Update from tzdata2006o.
525         * timezone/antarctica: Likewise.
526         * timezone/asia: Likewise.
527         * timezone/australasia: Likewise.
528         * timezone/backward: Likewise.
529         * timezone/europe: Likewise.
530         * timezone/iso3166.tab: Likewise.
531         * timezone/northamerica: Likewise.
532         * timezone/southamerica: Likewise.
533         * timezone/zone.tab: Likewise.
535         * time/tzfile.c (__tzfile_read): Extend to handle new file format
536         on machines with 64-bit time_t.
538         * timezone/checktab.awk: Update from tzcode2006o.
539         * timezone/ialloc.c: Likewise.
540         * timezone/private.h: Likewise.
541         * timezone/scheck.c: Likewise.
542         * timezone/tzfile.h: Likewise.
543         * timezone/tzselect.ksh: Likewise.
544         * timezone/zdump.c: Likewise.
545         * timezone/zic.c: Likewise.
547         [BZ #3483]
548         * elf/ldconfig.c (main): Call setlocale and textdomain.
549         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
551         [BZ #3480]
552         * manual/argp.texi: Fix typos.
553         * manual/charset.texi: Likewise.
554         * manual/errno.texi: Likewise.
555         * manual/filesys.texi: Likewise.
556         * manual/lang.texi: Likewise.
557         * manual/maint.texi: Likewise.
558         * manual/memory.texi: Likewise.
559         * manual/message.texi: Likewise.
560         * manual/resource.texi: Likewise.
561         * manual/search.texi: Likewise.
562         * manual/signal.texi: Likewise.
563         * manual/startup.texi: Likewise.
564         * manual/stdio.texi: Likewise.
565         * manual/sysinfo.texi: Likewise.
566         * manual/syslog.texi: Likewise.
567         * manual/time.texi: Likewise.
568         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
570         [BZ #3465]
571         * sunrpc/clnt_raw.c: Minimal message improvements.
572         * sunrpc/pm_getmaps.c: Likewise.
573         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
574         * nis/nis_print_group_entry.c: Likewise.
575         * locale/programs/repertoire.c: Likewise.
576         * locale/programs/charmap.c: Likewise.
577         * malloc/memusage.sh: Likewise.
578         * elf/dl-deps.c: Likewise.
579         * locale/programs/ld-collate.c: Likewise.
580         * libio/vswprintf.c: Likewise.
581         * malloc/memusagestat.c: Likewise.
582         * sunrpc/auth_unix.c: Likewise.
583         * sunrpc/rpc_main.c: Likewise.
584         * nscd/cache.c: Likewise.
585         * locale/programs/repertoire.c: Unify output messages.
586         * locale/programs/charmap.c: Likewise.
587         * locale/programs/ld-ctype.c: Likewise.
588         * locale/programs/ld-monetary.c: Likewise.
589         * locale/programs/ld-numeric.c: Likewise.
590         * locale/programs/ld-time.c: Likewise.
591         * elf/ldconfig.c: Likewise.
592         * nscd/selinux.c: Likewise.
593         * elf/cache.c: Likewise.
594         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
596         [BZ #3451]
597         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
598         change atomic.
599         (ceil): Likewise.
601 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
603         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
604         if N is one bigger than return value.
605         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
606         and l1 last arguments, if buf is defined, verify the return value
607         equals to strlen (buf) and verify no byte beyond passed length
608         is modified.
610 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
612         * po/sv.po: Update from translation team.
614 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
616         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
617         noinline attribute.
619 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
621         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
622         noinline attribute.
624         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
625         Use __new_sys_siglist instead of _sys_siglist_internal as
626         second macro argument.
627         (_old_sys_siglist): Use declare_symbol_alias macro instead of
628         strong_alias.
630 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
632         [BZ #3493]
633         * posix/unistd.h (sysconf): Remove const attribute.
635         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
636         temporary or deprecated addresses.
637         Patch by Sridhar Samudrala <sri@us.ibm.com>.
639         * string/Makefile (tests): Add tst-strxfrm2.
640         * string/tst-strxfrm2.c: New file.
642 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
644         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
645         rather than r->r_brk.
647 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
649         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
650         optimization even if needed > n.
652         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
653         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
654         return false, otherwise return true.
655         (cache_rpath): Return decompose_rpath return value.
657 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
659         * include/libc-symbols.h (declare_symbol): Rename to...
660         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
661         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
662         .size directive.
663         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
664         changes.
665         * sysdeps/gnu/siglist.c: Likewise.
667 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
669         * sysdeps/powerpc/fpu/bits/mathinline.h
670         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
671         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
673 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
675         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
676         Update handling of cache descriptor 0x49 for new models.
677         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
678         Likewise.
680 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
682         * malloc/memusage.c (dest): Reset not_me back to false after
683         printing statistics.
685 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
687         * configure.in: Work around ld --help change and avoid -z relro
688         test completely if the architecture doesn't care about security.
690 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
692         * po/sv.po: Update from translation team.
694 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
696         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
697         generate compatibility version.
699 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
701         * configure.in: Relax -z relro requirement a bit.
703         * po/sv.po: Update from translation team.
705 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
707         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
708         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
709         * elf/dl-close.c (_dl_close_worker): Likewise.
710         * elf/dl-open.c (_dl_open_worker): Likewise.
711         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
713 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
715         * configure.in: Require assembler support for visibility, compiler
716         support for visibility and aliases, linker support for various -z
717         options.
718         * Makeconfig: Remove conditional code which now is unnecessary.
719         * config.h.in: Likewise.
720         * config.make.in: Likewise.
721         * dlfcn/Makefile: Likewise.
722         * elf/Makefile: Likewise.
723         * elf/dl-load.c: Likewise.
724         * elf/rtld.c: Likewise.
725         * include/libc-symbols.h: Likewise.
726         * include/stdio.h: Likewise.
727         * io/Makefile: Likewise.
728         * io/fstat.c: Likewise.
729         * io/fstat64.c: Likewise.
730         * io/fstatat.c: Likewise.
731         * io/fstatat64.c: Likewise.
732         * io/lstat.c: Likewise.
733         * io/lstat64.c: Likewise.
734         * io/mknod.c: Likewise.
735         * io/mknodat.c: Likewise.
736         * io/stat.c: Likewise.
737         * io/stat64.c: Likewise.
738         * libio/stdio.c: Likewise.
739         * nscd/Makefile: Likewise.
740         * stdlib/Makefile: Likewise.
741         * stdlib/atexit.c: Likewise.
742         * sysdeps/generic/ldsodefs.h: Likewise.
743         * sysdeps/i386/dl-machine.h: Likewise.
744         * sysdeps/i386/sysdep.h: Likewise.
745         * sysdeps/i386/i686/memcmp.S: Likewise.
746         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
747         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
748         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
750         * Makerules: USE_TLS support is now default.
751         * tls.make.c: Likewise.
752         * csu/Versions: Likewise.
753         * csu/libc-start.c: Likewise.
754         * csu/libc-tls.c: Likewise.
755         * csu/version.c: Likewise.
756         * dlfcn/dlinfo.c: Likewise.
757         * elf/dl-addr.c: Likewise.
758         * elf/dl-cache.c: Likewise.
759         * elf/dl-close.c: Likewise.
760         * elf/dl-iteratephdr.c: Likewise.
761         * elf/dl-load.c: Likewise.
762         * elf/dl-lookup.c: Likewise.
763         * elf/dl-object.c: Likewise.
764         * elf/dl-open.c: Likewise.
765         * elf/dl-reloc.c: Likewise.
766         * elf/dl-support.c: Likewise.
767         * elf/dl-sym.c: Likewise.
768         * elf/dl-sysdep.c: Likewise.
769         * elf/dl-tls.c: Likewise.
770         * elf/ldconfig.c: Likewise.
771         * elf/rtld.c: Likewise.
772         * elf/tst-tls-dlinfo.c: Likewise.
773         * elf/tst-tls1.c: Likewise.
774         * elf/tst-tls10.h: Likewise.
775         * elf/tst-tls14.c: Likewise.
776         * elf/tst-tls2.c: Likewise.
777         * elf/tst-tls3.c: Likewise.
778         * elf/tst-tls4.c: Likewise.
779         * elf/tst-tls5.c: Likewise.
780         * elf/tst-tls6.c: Likewise.
781         * elf/tst-tls7.c: Likewise.
782         * elf/tst-tls8.c: Likewise.
783         * elf/tst-tls9.c: Likewise.
784         * elf/tst-tlsmod1.c: Likewise.
785         * elf/tst-tlsmod13.c: Likewise.
786         * elf/tst-tlsmod13a.c: Likewise.
787         * elf/tst-tlsmod14a.c: Likewise.
788         * elf/tst-tlsmod2.c: Likewise.
789         * elf/tst-tlsmod3.c: Likewise.
790         * elf/tst-tlsmod4.c: Likewise.
791         * elf/tst-tlsmod5.c: Likewise.
792         * elf/tst-tlsmod6.c: Likewise.
793         * include/errno.h: Likewise.
794         * include/link.h: Likewise.
795         * include/tls.h: Likewise.
796         * locale/global-locale.c: Likewise.
797         * locale/localeinfo.h: Likewise.
798         * malloc/arena.c: Likewise.
799         * malloc/hooks.c: Likewise.
800         * malloc/malloc.c: Likewise.
801         * resolv/Versions: Likewise.
802         * sysdeps/alpha/dl-machine.h: Likewise.
803         * sysdeps/alpha/libc-tls.c: Likewise.
804         * sysdeps/generic/ldsodefs.h: Likewise.
805         * sysdeps/generic/tls.h: Likewise.
806         * sysdeps/i386/dl-machine.h: Likewise.
807         * sysdeps/ia64/dl-machine.h: Likewise.
808         * sysdeps/ia64/libc-tls.c: Likewise.
809         * sysdeps/mach/hurd/fork.c: Likewise.
810         * sysdeps/mach/hurd/i386/tls.h: Likewise.
811         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
812         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
813         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
814         * sysdeps/s390/libc-tls.c: Likewise.
815         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
816         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
817         * sysdeps/sh/dl-machine.h: Likewise.
818         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
819         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
820         * sysdeps/x86_64/dl-machine.h: Likewise.
822         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
823         split out locking and parameter checking.
824         (_dl_close): Call _dl_close_worker after locking and checking.
825         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
826         _dl_close.
827         * elf/Makefile: Add rules to build and run tst-thrlock.
828         * elf/tst-thrlock.c:  New file.
830         [BZ #3426]
831         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
832         reality.
834         [BZ #3429]
835         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
836         we are sure we do not need it anymore for _dl_close.  Also move
837         the asserts inside the lock region.
838         Patch mostly by Suzuki <suzuki@in.ibm.com>.
840 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
842         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
843         argument.
844         (_dl_lookup_symbol_x): Adjust caller.
846         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
847         _ns_global_scope.
848         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
850         * elf/dl-libc.c: Revert l_scope name changes.
851         * elf/dl-load.c: Likewise.
852         * elf/dl-object.c: Likewise.
853         * elf/rtld.c: Likewise.
854         * elf/dl-close.c (_dl_close): Likewise.
855         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
856         always use __rtld_mrlock_{change,done}.  Always free old scope list
857         here if not l_scope_mem.
858         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
859         change.  Never free scope list here.  Just __rtld_mrlock_lock before
860         the lookup and __rtld_mrlock_unlock it after the lookup.
861         * elf/dl-sym.c: Likewise.
862         * include/link.h (struct r_scoperec): Remove.
863         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
864         with l_scope_mem and l_scoperec_lock with l_scope_lock.
866 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
868         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
870 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
872         * configure.in: Disable building profile libraries by default.
874 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
876         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
877         as signed longs, check for x_base + pos overflow.
878         * sunrpc/Makefile (tests): Add tst-xdrmem2.
879         * sunrpc/tst-xdrmem2.c: New test.
881 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
883         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
884         _dl_lookup_symbol_x code.
886 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
888         * elf/dl-runtime.c: Include sysdep-cancel.h.
889         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
890         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
891         instead of catomic_* macros.
892         * elf/dl-sym.c: Include sysdep-cancel.h.
893         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
894         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
895         * elf/dl-close.c: Include sysdep-cancel.h.
896         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
897         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
898         * elf/dl-open.c: Include sysdep-cancel.h.
899         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
900         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
902 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
904         [BZ #3313]
905         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
906         fastbin rather than end of fastbin array.
908 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
910         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
911         body macro.
912         * sysdeps/x86_64/bits/atomic.h
913         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
914         (catomic_decrement): Use correct body macro.
916 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
918         * include/atomic.h: Add a unique prefix to all local variables
919         in macros.
920         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
922 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
924         [BZ #3369]
925         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
926         and 7.
928 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
930         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
932 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
934         [BZ #3313]
935         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
936         determine highest fast bin to consolidate, always look into all of
937         them.
938         (do_check_malloc_state): Only require for empty bins for large
939         sizes in main arena.
941         * libio/stdio.h: Add more __wur attributes.
943         * elf/dl-minimal.c (realloc): Optimize last patch.
945 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
947         [BZ #3352]
948         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
949         and use memcpy() if it does.
951 2006-11-12  Andreas Jaeger  <aj@suse.de>
953         [BZ #2510]
954         * manual/search.texi (Hash Search Function): Clarify.
955         (Array Search Function): Clarify.
957 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
959         [BZ #2830]
960         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
961         shifting.
962         * math/atest-exp2.c (read_mpn_hex): Likewise.
963         * math/atest-sincos.c (main): Likewise.
965 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
967         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
968         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
969         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
970         version GLIBC_2.6.
971         * Versions.def: Add GLIBC_2.6 for libc.
973         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
975         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
977 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
979         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
981         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
983         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
984         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
986 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
988         * include/atomic.c: Define catomic_* operations.
989         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
990         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
991         * malloc/memusage.c: Likewise.
992         * gmon/mcount.c: Likewise.
993         * elf/dl-close.c: Likewise.
994         * elf/dl-open.c: Likewise.
995         * elf/dl-profile.c: Likewise.
996         * elf/dl-sym.c: Likewise.
997         * elf/dl-runtime.c: Likewise.
998         * elf/dl-fptr.c: Likewise.
999         * resolv/res_libc.c: Likewise.
1001 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
1003         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1004         components which lack them.
1006         * nis/nis_subr.c (nis_getnames): Make sure that we always return
1007         at least one entry consisting of the parameter concatenated with
1008         the domain.
1010 2006-10-10  Roland McGrath  <roland@frob.com>
1012         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
1013         * sysdeps/mach/hurd/futimes.c: Likewise.
1014         * sysdeps/mach/hurd/lutimes.c: Likewise.
1016 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
1017             Jakub Jelinek  <jakub@redhat.com>
1019         Implement reference counting of scope records.
1020         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
1021         from the list in objects which remain.  Always allocate new scope
1022         record.
1023         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1024         don't resize, allocate a new one.
1025         * elf/dl-runtime.c: Update reference counters before using a scope
1026         array.
1027         * elf/dl-sym.c: Likewise.
1028         * elf/dl-libc.c: Adjust for l_scope name change.
1029         * elf/dl-load.c: Likewise.
1030         * elf/dl-object.c: Likewise.
1031         * elf/rtld.c: Likewise.
1032         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
1033         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
1034         Add l_scoperec_lock.
1035         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1036         * sysdeps/generic/rtld-lowlevel.h: New file.
1038         * include/atomic.h: Rename atomic_and to atomic_and_val and
1039         atomic_or to atomic_or_val.  Define new macros atomic_and and
1040         atomic_or which do not return values.
1041         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1042         Various cleanups.
1043         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1045         * po/sv.po: Update from translation team.
1047 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
1049         * Versions.def: Add GLIBC_2.6 to libpthread.
1051         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1052         (versioned_symbol): Likewise.
1053         (compat_symbol): Likewise.
1055         * po/tr.po: Update from translation team.
1057 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1059         * nis/Banner: Removed.  It's been integral part forever and the
1060         author info is incomplete anyway.
1061         * libio/Banner: Likewise.
1063         * nis/nis_table.c (nis_list): If __follow_path fails in the new
1064         code, make sure the nis_freeresult call doesn't crash and that the
1065         result is reported correctly.
1067 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
1069         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1070         when callback is NULL.
1072         * nis/Versions (libnss_nisplus): Add
1073         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1074         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1075         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1076         _nss_create_tablename): Rename to...
1077         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1078         ... these.  No longer static.
1079         (internal_setgrent): Adjust users.
1080         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1081         Don't use locking around _nss_grp_create_tablename call.
1082         * nis/nss_nisplus/nisplus-initgroups.c: New file.
1084 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1086         * version.h (VERSION): Bump to 2.5.90 for new development tree.
1088 2006-10-06  Andreas Jaeger  <aj@suse.de>
1090         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1092 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1094         * po/pl.po: Update from translation team.
1096         * nscd/nscd.c (main): Fix typo in message.
1097         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1099 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1101         [BZ #3291]
1102         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1103         errno.h, signal.h, unistd.h and sysdep-cancel.h.
1104         (__sigprocmask): Define.
1106 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
1108         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1109         used.
1111 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1113         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1114         in oldtotal and newtotal calculation.
1115         * nscd/nscd-client.h (struct mapped_database): Add datasize
1116         field.
1117         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1118         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1119         increased.
1120         (__nscd_cache_search): Add checks to make sure we never reference
1121         data beyond the current mapping.
1123 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1125         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1126         variables const to avoid compiler warnings.
1128         * io/fts.c (fts_close): Remove redundant checks.
1129         (fts_build): Likewise.
1130         (fts_palloc): Likewise.
1132         * manual/message.texi (Advanced gettext functions,
1133         Using gettextized software): Fix typos.
1135 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
1137         * posix/glob.c (glob_in_dir): Add some comments and asserts to
1138         explain why there are no leaks.
1140 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
1142         * libio/wmemstream.c: Include <wchar.h>.
1143         * libio/bug-wmemstream1.c: Likewise.
1144         * libio/tst-wmemstream1.c: Likewise.
1145         * libio/tst-wmemstream2.c: Likewise.
1147         * version.h (RELEASE): Bump to 2.5.
1148         * README: Regenerated.
1150         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1152         [BZ #3273]
1153         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1154         found no group members.
1155         Patch by Petr Baudis.
1157 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
1159         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1160         assert bootstrap_map.l_tls_modid is zero.
1161         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1162         if USE___THREAD.
1164 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
1166         * libio/stdio.h: Move open_wmemstream prototype to ...
1167         * wcsmbs/wchar.h: ... here.
1169 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
1171         [BZ #3252]
1172         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1173         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1174         __{,l}chown to handle the rest.
1175         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1176         fchownat syscall and __ASSUME_32BITUIDS case inline, call
1177         __{,l}chown to handle the rest.
1178         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1179         i386/fchownat.c.
1180         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1181         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1183         [BZ #3253]
1184         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1185         time, rather allocate increasingly bigger arrays of pointers, if
1186         possible with alloca, if too large with malloc.
1188 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
1190         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1192         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1194 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
1196         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1197         home addresses.
1198         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1199         IFA_F_HOMEADDRESS flag for interfaces.
1200         * include/ifaddrs.h (struct in6addrinfo): Define
1201         in6ai_homeaddress.
1203 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
1205         [BZ #3225]
1206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1207         PTR_DEMANGLE3): Define.
1208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1209         PTR_DEMANGLE3): Likewise.
1210         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1211         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1212         Likewise.
1213         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1215 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
1217         * po/libc.pot: Regenerated.
1218         * po/be.po: Updated.
1219         * po/ca.po: Likewise.
1220         * po/cs.po: Likewise.
1221         * po/da.po: Likewise.
1222         * po/de.po: Likewise.
1223         * po/el.po: Likewise.
1224         * po/en_GB.po: Likewise.
1225         * po/es.po: Likewise.
1226         * po/fi.po: Likewise.
1227         * po/fr.po: Likewise.
1228         * po/gl.po: Likewise.
1229         * po/hr.po: Likewise.
1230         * po/hu.po: Likewise.
1231         * po/ja.po: Likewise.
1232         * po/ko.po: Likewise.
1233         * po/nb.po: Likewise.
1234         * po/nl.po: Likewise.
1235         * po/pl.po: Likewise.
1236         * po/pt_BR.po: Likewise.
1237         * po/ru.po: Likewise.
1238         * po/rw.po: Likewise.
1239         * po/sk.po: Likewise.
1240         * po/sv.po: Likewise.
1241         * po/tr.po: Likewise.
1242         * po/zh_CN.po: Likewise.
1243         * po/zh_TW.po: Likewise.
1245         [BZ #3137]
1246         * iconv/iconv_prog.c (main): Fix spelling in error message.
1247         * iconv/iconvconfig.c (main): Likewise.
1248         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1249         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1250         * locale/programs/localedef.c (main): Likewise.
1251         * locale/programs/repertoire.c (repertoire_read): Likewise.
1252         * timezone/zdump.c (main): Likewise.
1253         * nscd/connections.c (handle_request): Fix spelling in log message.
1254         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1256 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
1258         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1259         interfaces.
1261 2006-09-20  Andreas Jaeger  <aj@suse.de>
1263         * math/libm-test.inc (lrint_test_upward): Fix typo.
1265 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
1267         [BZ #2592]
1268         * math/libm-test.inc (lrint_test_tonearest): New function.
1269         (lrint_test_towardzero): New function.
1270         (lrint_test_downward): New function.
1271         (lrint_test_upward): New function.
1272         (main): Run these new tests.
1273         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1274         of values near to 0.
1275         (two52): Use double not long double.
1276         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1277         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1278         (two23): Use float not double.
1279         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1280         (two23): Use float not double.
1281         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1282         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1283         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1284         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1286 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1288         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1289         Cast sp to unsigned long to avoid compiler warning.
1290         Use __makecontext_ret function instead of a trampoline on the stack.
1291         (__makecontext_ret): New function.
1292         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1294 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
1296         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1297         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1298         bits.
1300 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
1302         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1303         sure no reference to the unloaded map's search list remains in the
1304         dependency's scope.
1306 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1308         * elf/Makefile: Add rules to build and run unload7 test.
1309         * elf/unload7.c: New test.
1310         * elf/unload7mod1.c: New file.
1311         * elf/unload7mod2.c: New file.
1313 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
1315         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1316         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1317         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1318         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1319         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1320         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1321         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1322         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1323         PTRACE_GETEVENTMSG): Likewise.
1324         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1325         values.
1327 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
1329         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1330         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1331         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1332         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1334 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1336         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1337         write '\0' to the fd.
1338         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1339         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1340         Change regs to unsigned long pointer from unsigned int, fix fscr
1341         offset.
1343 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1345         * io/Makefile (CFLAGS-fstatat.c): Set.
1346         (CFLAGS-fstatat64.c): Likewise.
1347         (CFLAGS-mknodat.c): Likewise.
1349         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1350         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1351         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1352         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1354 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1355             Steven Munroe  <sjmunroe@us.ibm.com>
1357         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1358         names to the beginning.  Rename "cell" to "cellbe".
1359         (_dl_powerpc_platforms): New.
1360         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1361         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1362         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1363         (_DL_HWCAP_PLATFORM): Define to new mask.
1364         (_dl_platform_string, _dl_string_platform): New functions.
1365         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1366         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1368 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
1370         [BZ #2526]
1371         * README.libm: Fix a thinko in sqrt algorithm description.
1373         [BZ #3143]
1374         * manual/string.texi (argz_delete): Fix prototype.
1375         Patch by <alpt@freaknet.org>.
1377 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
1379         [BZ #3138]
1380         * io/test-lfs.c (do_prepare): Give name_len type size_t.
1381         * io/tst-fcntl.c (do_prepare): Likewise.
1382         * posix/tst-exec.c (do_prepare): Likewise.
1383         * posix/tst-preadwrite.c (do_prepare): Likewise.
1384         * posix/tst-spawn.c (do_prepare): Likewise.
1385         * posix/tst-truncate.c (do_prepare): Likewise.
1386         * rt/tst-aio.c (do_prepare): Likewise.
1387         * rt/tst-aio64.c (do_prepare): Likewise.
1388         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1389         size_t.
1391 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
1393         [BZ #2821]
1394         * time/mktime.c (guess_time_tm): Fix overflow detection.
1395         * time/Makefile (tests): Add bug-mktime1.
1396         * time/bug-mktime1.c: New file.
1398         [BZ #3189, #3188]
1399         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1400         (mremap): Likewise.
1402 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
1404         [BZ #1006]
1405         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1406         Ensure relocation doesn't clobber any bits outside of the
1407         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1408         R_SPARC_HI22 and R_SPARC_H44.
1410         [BZ #2775]
1411         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1412         (long) (MINSIZE + nb - old_size) is positive.
1414         * malloc/arena.c (grow_heap): When growing bail even if new_size
1415         is negative.
1417         [BZ #3155]
1418         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1419         stack below r1.
1421 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1423         * posix/regex_internal.c (re_string_reconstruct): Handle
1424         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1425         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1426         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1427         re_string_context_at.
1428         * posix/Makefile: Add rules to build and run bug-regex26 test.
1429         * posix/bug-regex26.c: New test.
1431         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1432         rather than col_sym_free.  Move seqp declaration earlier.
1434         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1436 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
1438         * nscd/initgrcache.c (addinitgroupsX): Move any_success
1439         decl before first goto out.
1441 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1443         * Makerules (shlib.lds): If have-hash-style, put .hash section
1444         at the end of the RO segment.
1446 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
1448         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1449         style hash table format is used.
1451 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1453         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1454         randomization rather than before.
1455         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1457 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
1459         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1461         * malloc/malloc.c (_int_malloc): Use full list insert and not
1462         shortcut which assumes the list is empty for large requests
1463         too.
1465         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1467 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
1469         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1470         and offout arguments to the prototype.
1471         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1472         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1473         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1474         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1475         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1476         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1477         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1478         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1480 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
1482         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1484         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1485         dlopen parameters.
1487 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
1489         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1490         only if herrno is NETDB_INTERNAL.  Handle errors other than
1491         ERANGE outside of the loops, handle TRY_AGAIN.
1493         * locale/programs/ld-ctype.c (translit_flatten): Issue error
1494         if other's ctype category was missing.
1495         * locale/programs/ld-collate.c (collate_read): Return if
1496         copy_locale's collate category is missing.
1498 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
1500         [BZ #2684]
1501         * malloc/malloc.c (public_rEALLOc): Try harder by using other
1502         arenas if allocation failed.
1503         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1505 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
1507         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1508         waste bins[0..1].
1509         (malloc_state): Reduce bins size by 2.
1510         (_int_malloc): Fix test for large enough buffer for early termination.
1511         When no unsorted block matches perfectly and an exiting block has
1512         to be split, use full list insert and not shortcut which assumes
1513         the list is empty.
1515         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1516         failure.
1518 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1520         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1521         do anything.
1523         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1524         symbol require exact match (these are PLTs).
1525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1526         (_dl_ppc64_addr_sym_match): Likewise.
1528         [BZ #2683]
1529         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1530         If symbol has a value use it.
1531         * elf/tst-dladdr1.c: New file.
1532         * elf/Makefile: Add rules to build and run tst-addr1.
1534 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
1536         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1537         keeps failing and heap growth or new heap creation isn't
1538         successful either.
1539         * malloc/tst-malloc.c (main): Add new tests.
1541 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1543         [BZ #2734]
1544         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1545         as in the x86-64 code to use bswap.
1547 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
1549         [BZ #2680]
1550         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1551         __USE_UNIX98.
1552         * posix/bits/unistd.h: Likewise.
1554 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
1556         [BZ #2751]
1557         * string/strchr.c: Add cast to avoid warning.
1559 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1561         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1562         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
1563         limit is needed to avoid the exploding of the address space
1564         requirement for secondary heaps.
1565         * malloc/arena.c (HEAP_MAX_SIZE): Define using
1566         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1568 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
1570         [BZ #3018]
1571         * Makerules (depfiles): Handle extra-test-objs the same as
1572         extra-objs.
1573         (common-mostlyclean): Likewise.
1574         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1575         instead.
1576         * elf/Makefile (extra-objs): Likewise.
1577         * stdlib/Makefile (extra-objs): Likewise.
1579 2006-08-14  Eric Blake  <ebb9@byu.net>
1581         [BZ #3044]
1582         * misc/error.h: Assume C89 or better.
1583         * misc/error.c: Likewise.
1585 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1587         [BZ #3040]
1588         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1589         __ASSUME_ATFCTS is defined.
1591 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
1593         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1594         to sort in each call.
1596         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1597         is empty simply return and use next service.
1598         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1600         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
1601         tells us when not finding a charmap file is an error.
1602         * locale/programs/charmap.h: Adjust charmap_read prototype.
1603         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1604         cannot find a charmap.
1605         * locale/programs/localedef.c (main): Adjust charmap_read call.
1607 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1609         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1610         sysdeps/posix/pause.c implementation instead.
1612 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
1614         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1615         to EPERM.
1617 2006-08-13  Andreas Schwab  <schwab@suse.de>
1619         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1620         Don't clobber caller's LRSAVE.
1621         (_dl_prof_resolve): Likewise.
1623 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
1625         [BZ #1996]
1626         * libio/memstream.c (open_memstream): Allocate initial buffer with
1627         calloc.
1628         * libio/wmemstream.c (open_wmemstream): Likewise.
1629         * libio/strops.c: Pretty printing.
1630         (_IO_str_overflow): Clear uninitialized part of the new buffer.
1631         (enlarge_userbuf): New function.
1632         (_IO_str_seekoff): Call it if seek position is larger than current
1633         buffer.
1634         * libio/wstrops.c: Likewise.
1635         * libio/vasprintf.c: Add comment as to why we do not have to use
1636         calloc instead of malloc to allocate initial buffer.
1637         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1638         * libio/bug-memstream1.c: New file.
1639         * libio/bug-wmemstream1.c: New file.
1641 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1643         * libio/wstrops.c: Remove dead macro definitions and comments.
1644         * libio/strops.c: Likewise.
1646         [BZ #2764]
1647         * login/utmpname.c (__utmpname): Remove unnecessary test.
1649 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
1651         [BZ #2832]
1652         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1653         0s from integers.
1655 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1657         [BZ #2987]
1658         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1659         for CPU clocks.
1660         * sysdeps/unix/clock_settime.c: Add support for platform-specific
1661         setting of CPU clocks.
1663 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1665         [BZ #2841]
1666         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1667         since C99 requires the result to promote to 'int' when uint_least8_t
1668         and uint_least16_t promote to 'int'.
1670 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
1672         [BZ #3013]
1673         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1674         lenght of one output field, correct bitmask creation.
1675         * locale/programs/ld-time.c: Add alignment.
1677         [BZ #2997]
1678         * misc/error.c: Add space between program name and message if file
1679         name is missing.
1681 2006-08-03  Eric Blake  <ebb9@byu.net>
1683         [BZ #2998]
1684         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1686 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
1688         * malloc/memusagestat.c: Silence warnings.
1690         * malloc/malloc.c: Dynamically size mmap treshold if the program
1691         frees mmaped blocks.
1692         Patch by Valerie Henson and Arjan van de Ven.
1694 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
1696         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1697         __USE_GNU.
1699         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1700         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1701         (DEF): Don't put the var into .gnu.linkonce.r.* section.
1702         Only provide var definitions in strtol_l (or for *ull*
1703         in strtoll_l).
1705         * stdio-common/bug16.c (tests): New array.
1706         (do_tests): Allow the first hexadecimal digit
1707         to be 1, 2, 4 or 8.  Do 3 additional tests.
1709         * sysdeps/s390/fpu/libm-test-ulps: Update.
1711         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1712         fchownat syscall if available.
1713         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1714         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1715         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1717 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1719         * nis/nis_xdr.c: Avoid some function calls.
1721 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
1722             Ulrich Drepper  <drepper@redhat.com>
1724         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1725         short cut if only one name component is stripped away.
1727 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1729         * nis/nis_call.c: Minor cleanups throughout.
1730         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1731         (first_shoot): Add search_parent_first parameter.  Only if it is set
1732         search parent server first.
1733         If directory for table found through cold start cache is not the same
1734         as referenced in the cache, don't use it.
1735         (__nisfind_server): Take additional parameter.  Pass it on to
1736         first_shoot.
1737         (__prepare_niscall): Adjust __nisfind_server call.
1738         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1739         * nis/nis_table.c: Adjust __nisfind_server call.
1740         * nis/nis_lookup.c: Likewise.
1741         (nis_lookup): Don't loop endlessly if name is reduced to ".".
1743 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
1745         [BZ #2182]
1746         * math/s_cacosh.c: Return values from positive branch.
1747         * math/s_cacoshf.c: Likewise.
1748         * math/s_cacoshl.c: Likewise.
1750         [BZ #2883]
1751         * sysvipc/sys/msg.h: Change return value to ssize_t.
1752         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1753         * sysvipc/msgrcv.c: Likewise.
1754         * include/sys/msg.h: Likewise.
1756         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1757         test introduced in patch for bz #661.
1758         (getgrouplist): Simplify code a bit.  Don't allocate one additional
1759         element for NEWGROUPS.
1761         [BZ #2908]
1762         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1763         'f', use '1' as leading digit not '\1'.
1764         * stdio-common/Makefile (tests): Add bug16.
1765         * stdio-common/bug16.c: New file.
1767         [BZ #2914]
1768         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1769         and don't try to open it.  The patch introducing the macro
1770         contained a bug and used the same file name as the new file
1771         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
1772         this out completely.
1774         [BZ #2926]
1775         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1776         Patch by Jerry James <Jerry.James@usu.edu>.
1778         * rt/Makefile (tests): Add tst-clock2.
1779         * rt/tst-clock2.c: New file.
1781         [BZ #2978]
1782         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1783         function and its parameters and pass it to new thread.
1784         (__gai_notify): Add support for alternative waiting for completion.
1785         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1786         waiting for completion.
1787         * resolv/getaddrinfo_a.c: Likewise.
1788         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1789         waiting for completion is used.
1790         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1791         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1792         * resolv/gai_error.c: Likewise.
1793         * resolv/gai_sigqueue.c: Likewise.
1795 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
1797         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1798         errno to EBADF and return MACH_PORT_NULL.
1800 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
1802         [BZ #2980]
1803         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1805 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
1807         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1808         walk them instead of the symbol table.
1810 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
1812         [BZ #2098]
1813         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1814         status of NSS calls, not the number of returned entries.
1816         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1817         request_key, keyctl.
1819 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1821         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1823 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
1825         * elf/tst-auditmod1.c: Fix typo in #error.
1827 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1829         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1831         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1833 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1835         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1836         that the directory is empty even on non-POSIX filesystems.
1838 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1840         * elf/dl-open.c (dl_open_worker): Add branch prediction.
1842         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1843         the backend NSS module.  If backend setgrent call failed, don't have
1844         internal_setgrent fail.  Just remember this until it is needed.
1845         * nis/nss_compat/compat-pwd.c: Likewise.
1846         * nis/nss_compat/compat-spwd.c: Likewise.
1848 2006-07-30  Roland McGrath  <roland@redhat.com>
1850         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1851         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1852         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1853         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1855         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1856         (nanosleep_not_cancel): New macro.
1857         (sigsuspend_not_cancel): new macro.
1858         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1859         (do_sigsuspend): Define as inline.
1860         (__sigsuspend): Always use do_sigsuspend.
1861         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
1862         * include/signal.h: Declare __sigsuspend_nocancel.
1863         * sysdeps/posix/pause.c
1864         [! NO_CANCELLATION] (__pause_nocancel): New function.
1866         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
1867         * include/time.h (__nanosleep_nocancel): Likewise.
1869 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
1871         * locale/programs/localedef.c (add_to_readlist): Rename local
1872         variables to avoid confusion.
1874         * locale/programs/charmap.c (charmap_read): Emit error message if
1875         charmap couldn't be found or read.
1877 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
1879         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1880         __ASSUME_FUTEX_LOCK_PI.
1881         * include/time.h: Declare __nanosleep_nocancel.
1882         * include/unistd.h: Declare __pause_nocancel.
1884         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
1885         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
1886         get the __stack_chk_fail_local definition when it's needed.
1888 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
1890         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
1891         * dlfcn/bug-atexit3.c: New file.
1892         * dlfcn/bug-atexit3-lib.cc: New file.
1894         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
1895         used when the namespace is not the base namespace.
1897 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
1899         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
1900         (__new_exitfn): Bump it in every successful call.
1901         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
1902         more exit handlers, call them right away.
1903         * stdlib/exit.h: Declare __new_exitfn_called.
1905 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
1907         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
1908         calling registered handler.
1910         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
1911         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1912         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1913         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1914         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1915         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1916         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1917         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1919 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
1921         * elf/dl-lookup.c (dl_new_hash): New functions.
1922         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
1923         value here.  Compute new-style hash value.  Pass new hash value
1924         and reference to variable with the old value to do_lookup_x.
1925         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
1926         old-style hash table.
1927         (_dl_debug_bindings): Pass new hash value and reference to variable
1928         with the old value to do_lookup_x.
1929         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
1930         new-style hash value and change old-style hash value parameter to
1931         be a reference.  Reoganize functions to determine whether
1932         new-style hash table is available.  Only fall back on old-style
1933         table.  If old-style hash value is needed, compute it here.
1934         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
1935         entry.
1936         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
1937         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
1938         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
1939         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
1940         * Makeconfig: If linker supports --hash-style option add it to all
1941         linker command lines to build DSOs.
1942         * config.make.in: Define have-hash-style.
1943         * configure.in: Test whether linker supports --hash-style option.
1945         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
1946         * sysdeps/generic/ldsodefs.h: Adjust prototype.
1948 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
1950         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
1951         auditing.
1953         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
1954         RPATH of main map twice.
1956 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
1958         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
1959         look further, return original strings.
1960         (_nl_find_msg): Do not return found translation if the conversion
1961         failed.  Either signal the string is unusable or that something went
1962         wrong and the original should be used.
1964 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
1966         * string/_strerror.c (__strerror_r): Add __builtin_expect.
1968 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
1970         [BZ #2766]
1971         * misc/insremque.c (insque): Handle prev == NULL.
1972         * misc/Makefile (tests): Add tst-insremque.
1973         * misc/tst-insremque.c: New test.
1975 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
1977         [BZ #2792]
1978         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
1979         conflict with DL_DST_REQUIRED.
1981 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
1983         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
1984         match what Solaris does.
1986 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
1988         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
1989         local_setegid instead of seteuid and setegid.
1990         * sysdeps/generic/local-setxid.h: New file.
1991         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
1993         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
1995         * string/Makefile (tests): Add bug-envz1.
1996         * string/bug-envz1.c: New file.
1998 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
2000         * posix/regex_internal.c (re_string_skip_chars): If no character has
2001         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
2002         to the byte which couldn't be converted.
2003         (re_string_reconstruct): Don't clear valid_raw_len before calling
2004         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
2005         tip_context using re_string_context_at.
2006         * posix/Makefile: Add rules to build and run bug-regex25 test.
2007         * posix/bug-regex25.c: New test.
2009 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
2011         [BZ #2703]
2012         * string/envz.c (envz_strip): Correct erroneously reversed src
2013         and dest parameters to memmove() invocation.
2015 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
2017         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2018         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2019         to make sure the database has been already invalidated.
2020         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
2021         after the cache has been invalidated.  Use pthread_mutex_lock rather
2022         than pthread_mutex_trylock if fd != -1.
2023         * nscd/connections.c (invalidate_cache): Add fd argument, write
2024         response to fd if not calling prune_cache, pass fd to prune_cache.
2025         (handle_request): Adjust invalidate_cache caller.
2026         (nscd_run): Pass -1 as fd to prune_cache.
2028 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
2030         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2031         the correct place.
2033 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
2035         * nscd/nscd.h (struct database_dyn): Add prunelock field.
2036         * nscd/cache.c (prune_cache): Take prunelock before starting the
2037         work.  Just return in case it is already taken.
2038         * nscd/connections.c (dbs): Initialize .prunelock.
2040 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
2042         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2043         copying.  No need to allocate new array for group members.  Just
2044         move the pointers and update the size.
2046         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2047         Avoid memory leak in case realloc fails.  Simplification for
2048         better code generation.
2050         Avoid deprecation warning because of libc_hidden_proto for
2051         inet6_option_alloc.
2052         * inet/inet6_option.c (option_alloc): Renamed from
2053         inet6_option_alloc.  Made static.
2054         (inet6_option_alloc): Now a simple wrapper around option_alloc.
2055         (inet6_option_append): Call option_alloc.
2056         * include/netinet/in.h: Remove libc_hidden_proto for
2057         inet6_option_alloc.
2059         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2060         for cleanup when cb!=NULL [Coverity CID 233].
2062 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
2064         [BZ #2693]
2065         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2066         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2067         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2068         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2069         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2070         and inet6_rth_getaddr.
2071         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2072         array.
2073         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2074         Mark inet6_option_* interfaces as deprecated.
2075         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2076         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2077         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2078         inet6_rth_segments, and inet6_rth_getaddr.
2079         * inet/inet6_opt.c: New file.
2080         * inet/inet6_rth.c: New file.
2082         * inet/netinet/icmp6.h: Pretty printing.
2084         [BZ #2683]
2085         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2087 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
2089         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2090         doing it all here.  When server does not know the answer do not
2091         fail immediate, try parent first.
2093         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2094         overflow test.
2096 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
2098         * nis/nis_call.c (__prepare_niscall): New function.  Split out
2099         from __do_niscall.
2100         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2101         and exported.
2102         (__follow_path): New function.  Split out from nis_list.
2103         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2104         _xdr_nis_result.
2105         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2106         _xdr_nis_result.
2107         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2108         and __follow_path.
2109         * nis/Versions: Export __prepare_niscall, __create_ib_request,
2110         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2111         from libnsl for version GLIBC_PRIVATE.
2112         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2113         Remove entry parameter from _nss_nisplus_parse_pwent and
2114         _nss_nisplus_parse_grent.
2115         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2116         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2117         again.  Rewrite getpwent handling to not use nis_first_entry and
2118         nis_next_entry.  Roll out own niscall handling.
2119         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2121         * sunrpc/xdr_rec.c: Fix typo in comment.
2123 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
2125         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2126         handling.
2128         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2129         to allocate memory for my_pollfd.  Better initialization of
2130         cb_is_running.  Use TEMP_FAILURE_RETRY.
2132         * malloc/memusage.sh (memusageso): Add quotes.
2133         (memusagestat): Likewise.
2134         * debug/xtrace.sh (pcprofileso): Likewise.
2135         (pcprofiledump): Likewise.
2136         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2137         replacement.
2138         * malloc/Makefile ($(objpfx)memusage): Likewise.
2140         * nis/nis_callback.c (__nis_create_callback): Calls to
2141         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
2142         asprintf call fails.
2144         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2145         no uninitialized memory is passed to sendto.
2147 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2149         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2150         of snprintf+strdup.  Handle OOM.
2151         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2152         cb->serv together.  Remove now obsolete free calls.
2153         (__nis_destroy_callback): Remove now obsolete free call.
2155 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
2157         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2158         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2159         and ULA respectively). Set precedence for IPv4 address to 10 as
2160         defined in RFC3484 for preferring IPv6.
2161         * posix/gai.conf: Update to match the new default tables.
2163 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
2165         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2166         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2167         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2168         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2170         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2171         Removed.
2172         (init_nss_interface): Remove initialization of these variables.
2174 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2176         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2177         nis_free_directory forward to avoid duplication.
2179 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
2181         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2182         rec_dirsearch returning NULL.
2183         (first_shoot): Handle __nis_finddirectory returning NULL.
2184         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2186         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2187         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2189 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
2191         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2192         pid changed.
2194 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
2196         * include/rpc/pmap_prot.h: Mark all functions as hidden.
2198         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2199         * nscd/nscd_getgr_r.c: Likewise.
2201         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2203         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2204         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2206         * stdlib/longlong.h (__clz_tab): Mark as hidden.
2208         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2210         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2212         * include/rpc/auth.h: Mark xdr_des_block_internal and
2213         xdr_opaque_auth_internal as hidden.
2215         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2216         hidden.
2218         * include/rpc/xdr.h: Mark all _internal functions as hidden.
2220         * misc/getusershell.c (okshells): Don't use static initializers,
2221         do it dynamically.
2223         * stdlib/fmtmsg.c (keywords): Change type of len element to
2224         uint32_t to not waste space on 64bit machines.
2226         * locale/setlocale.c: Change _nl_category_names into a string.
2227         Add new _nl_category_name_idxs.  Change all users.
2228         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2229         Declare _nl_category_name_idxs.
2230         * locale/findlocale.c: Adjust for _nl_category_names change.
2231         * locale/loadlocale.c: Likewise.
2232         * locale/newlocale.c: Likewise.
2233         * intl/dcigettext.c: Likewise.
2235         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2236         (add_alias2): ...here.  New function.
2237         (__gconv_read_conf): Simplify builtin alias handling.
2238         (builtin_aliases): Convert to string to avoid relocations.
2239         * iconv/gconv_builtin.h: Add comment about correct formatting.
2241 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2243         * resolv/res_debug.c (loc_ntoa): Make error const.
2245 2006-05-14  Andreas Schwab  <schwab@suse.de>
2247         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2249 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
2251         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2252         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2253         sizeof (cpu_set_t).
2255 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
2257         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2259         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2261         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2262         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2264         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2265         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2267         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2268         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2269         xdr_cback_data.
2271         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2272         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2273         xdr_ypupdate_args.
2275         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2276         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2278         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2279         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2281         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2282         * include/rpcsvc/nis_callback.h: New file.
2284         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2285         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2287         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2288         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2290         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2291         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2293         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2294         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2296         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2297         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2298         xdr_ypdelete_args.
2300         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
2301         __BEGIN_DECLS and __END_DECLS, the header is not installed.
2303         * nis/nis_error.c: Remove table of strings.  Use position
2304         independent mechanism.
2305         * nis/nis_error.h: New file.
2307 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
2309         * locale/programs/ld-time.c (time_finish): If wide era name or
2310         format aren't provided, set both wname and wformat to L"".
2312 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2314         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2315         results if the call was succesful.
2317         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2319         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2320         as hidden.
2322 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
2324         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2326 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2328         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2329         caller makes sure this is not the case.
2330         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
2332 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
2334         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2335         calls.
2337         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2338         [Coverity CID 229, 230]
2340         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2341         DGETTEXT calls.
2342         (hol_help): Likewise.  [Coverity CID 226, 227]
2344         * string/argz-replace.c (__argz_replace): Unconditionally call
2345         free on SRC.  [Coverity CID 225]
2347         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2348         the return value of __nis_default_owner and __nis_default_group,
2349         it has been especially allocated.  [Coverity CID 224]
2351         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
2352         searchgroup and searchowner.  Significantly simplified.
2353         (__nis_default_owner): Remove duplication.  Do not locally copy the
2354         string before duplicating it.
2355         (__nis_default_group): Likewise.
2357         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2358         we must clear the variable before calling __nisfind_server.
2360         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2361         nis_getnames.  [Coverity CID 223]
2363         * locale/programs/locfile.c (locfile_read): Use alloca instead of
2364         xmalloc to allocate local repertoire name.  [Coverity CID 222]
2366         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2367         allocate memory for the input to add_bytes.  [Coverity CID 221]
2369         * posix/wordexp.c (w_addword): Free word if realloc fails and it
2370         was allocated here.  [Coverity CID 219, 220]
2372         * posix/getconf.c (print_all): Free confstr data after printing.
2373         [Coverity CID 218]
2375         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2376         list allocation fails.  [Coverity CID 215]
2378         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2379         [Coverity CID 213]
2381         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2382         string is NULL.  [Coverity CID 212]
2383         * argp/Makefile: Add rules to build and run bug-argp1.
2384         * argp/bug-argp1.c: New file.
2386         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2387         end of string.
2388         * stdlib/canonicalize.c (__realpath): Likewise.
2390         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2391         pointer.  [Coverity CID 206]
2393         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2394         in statically linked code.
2395         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2396         statically built code, be prepared to have no link map.
2397         [Coverity CID 205]
2399         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2400         dgettext calls. [Coverity CID 204]
2402         * argp/argp-help.c (struct uparams): Remove valid member.  Change
2403         the one user.
2404         (uparam_names): Reduce size.  Avoid relative relocations.
2405         Moved to read-only segment.
2406         (fill_in_uparams): Update for new layout.
2408         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2409         assumed to always be != NULL. [Coverity CID 202]
2411         * argp/argp-help.c (hol_entry_help): Remove some dead code
2412         [Coverity CID 200].
2414         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2415         away a few more unconditional yperr2nss calls.
2416         (_nss_nis_getservbyname_r): Likewise.
2418 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
2420         * sysdeps/generic/ldsodefs.h: Remove support for non-core
2421         architectures.
2423         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2424         that unused memory passed to sendto is nevertheless initialized.
2426         [BZ #2499]
2427         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2428         possibly unaligned memory accesses.
2430         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2431         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2432         and __putlong respectively.  Correct buffer overflow check for
2433         NS_NOTIFY_OP.
2435         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2437         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2438         (send_dg): Rewrite error handling to be more compact and avoid
2439         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
2441         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2443         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2444         instead of ns_get16.
2445         (res_queriesmatch): Likewise.  Minor optimization.
2447         [BZ #2499]
2448         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2449         __libc_res_nsend might reallocate the buffer for the answer.  In
2450         this case we have to reload the HP pointer.
2452 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2454         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
2455         some branch prediction hints.
2457         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2458         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2459         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2460         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2461         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2462         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2463         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2464         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2466 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2468         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2469         by a GOT relocation to make Scrt1.o position independent.
2470         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2472         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2473         six system call parameters.
2474         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2476 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2478         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2479         malloc&bzero.
2481         * sunrpc/svc_udp.c (BZERO): Remove definition.
2482         (CALLOC): Define.
2483         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2485         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
2486         (des_SPtrans): Use uint32_t type.
2487         (des_skb): Likewise.
2489         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2491 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
2493         [BZ #2509]
2494         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2495         on 32-bit arches.
2497 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2499         * locale/programs/ld-address.c (address_finish): Fix one more
2500         place where the iso639 array might be accessed beyond the limits.
2502 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
2504         * nis/nis_table.c (nis_list): Avoid clearing res twice before
2505         filling it for the first time.
2507         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2508         Adjust all callers.
2509         Free res object content before returning.
2511         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2513         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2514         client->cl_auth.
2516         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2517         cleanup for initial thread, just the free call on TVP.
2519         * nscd/gai.c (__getline): Define.
2522 See ChangeLog.16 for earlier changes.