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