Compatibility of signalfd/eventfd with older kernels.
[glibc/pb-stable.git] / ChangeLog
blobd32f15b08a17f53e4414b4dfae58f83fb6b26283
1 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
3         [BZ #10422]
4         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
5         kernels, dropped when eventfd2 support was added.
6         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
7         kernels, dropped when signalfd4 support was added.
8         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
9         added, name them.
11         [BZ #10452]
12         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
13         replies up.
15         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
17 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
19         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
20         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
22         [BZ #10448]
23         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
24         callback we must touch the status to avoid using stale value.
26         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
27         compiled in.
29 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
31         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
32         /lib/modules/* headers anymore.  We have sane headers in the standard
33         place now.
35 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
38         "etf3enh" and "highgprs" added.
39         (_dl_s390_platforms): "z10" added.
40         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
41         Increased for the new entries.
42         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
43         HWCAP_S390_HIGH_GPRS added.
45         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
46         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
47         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
48         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
49         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
51 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
53         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
54         avoid additional cpuid instructions.  Most of the information is
55         stored somewhere.
57         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
58         cache descriptors.
59         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
61         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
62         SSSE3 bit for Atoms.
63         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
64         here anymore.
66         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
67         structure before copying it to avoid warning.
68         * posix/tst-rfc3484-2.c (do_test): Likewise.
69         * posix/tst-rfc3484-3.c (do_test): Likewise.
71         [BZ #10416]
72         * include/unistd.h: Make header file suitable for C++ test cases.
73         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
75         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
76         stack alignment in the exit code.
78         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
79         potentially be zero.
81         * elf/tst-unique1.c: Extend test to check for unloading DSO with
82         unique symbol definition.
83         Patch by Jakub Jelinek.
84         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
85         make sure the object with the definition cannot be unloaded.  Adjust
86         a few types.
87         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
88         the unique symbol hash table should not be const.
90 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
92         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
93         unnecesary variables.  Comment fixes.
95 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
97         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
98         Use NONASCII_CASE information provided by the locale to determine
99         whether optimized string load function can be used.  Minor cleanups.
101 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
103         * string/strcasestr.c (STRCASESTR): New macro.
104         (__strcasestr): Renamed to ..
105         (STRCASESTR): ...this.
106         * string/strstr.c (STRSTR): New macro.
107         (strstr): Renamed to ..
108         (STRSTR): ...this.
109         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
110         strstr-c strcasestr-c
111         (CFLAGS-strstr.c): New.
112         (CFLAGS-strcasestr.c): Likewise.
113         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
114         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
115         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
116         * sysdeps/x86_64/multiarch/strstr.c: New file.
118 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
120         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
121         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
122         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
123         _NL_CTYPE_NONASCII_CASE.
124         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
125         field.
126         (ctype_finish): Check whether there are any 8-bit characters outside
127         the range ASCII has or whether the mapping isn't the same as for
128         ASCII (±0x20).  Set nonascii_case appropriately.
129         (ctype_output): Add output handler for nonascii_case.
131 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
133         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
134         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
136 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
138         [BZ #10360]
139         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
140         0xffff in the EDNS0 record.
142 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
144         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
145         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
146         is written before the list head update.
147         Patch by Andreas Schwab <aschwab@redhat.com>.
149 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
150             Jakub Jelinek  <jakub@redhat.com>
152         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
153         corruption thread-safe.
155 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
157         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
158         overrides atomic_compare_and_exchange_val_rel, define to
159         atomic_compare_and_exchange_val_rel by default, otherwise default
160         to catomic_compare_and_exchange_val_acq.
161         (catomic_compare_and_exchange_bool_rel): If arch overrides
162         atomic_compare_and_exchange_bool_rel, define to
163         atomic_compare_and_exchange_bool_rel by default.
164         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
165         Use catomic_compare_and_exchange_val_rel instead of
166         catomic_compare_and_exchange_val_acq.
168 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
170         * sysdeps/generic/ldsodefs.h: Add prototype for
171         _dl_higher_prime_number.
172         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
174         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
175         restoring of ymm registers a bit.
177 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
179         * sysdeps/x86_64/memcmp.S: New file.
181 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
183         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
184         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
185         pointers in writable memory.
187 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
189         * config.h.in: Add HAVE_AVX_SUPPORT entry.
190         * config.make.in: Add config-cflags-avx entry.
191         * configure.in: Substitute libc_cv_cc_avx.
192         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
193         * elf/tst-audit4.c: New file.
194         * elf/tst-audit5.c: New file.
195         * elf/tst-auditmod4a.c: New file.
196         * elf/tst-auditmod4b.c: New file.
197         * elf/tst-auditmod5a.c: New file.
198         * elf/tst-auditmod5b.c: New file.
199         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
200         link-defines.sym.
201         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
202         (La_x86_64_vector): Likewise.
203         (La_x86_64_regs): Append lr_vector.
204         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
205         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
206         saving and restoring SSE registers to ...
207         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
208         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
209         <link-defines.h>.
210         (_dl_runtime_profile): Use LR_SIZE to allocate space for
211         La_x86_64_regs.  Allocate extra space and jump to memory at
212         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
213         (save_and_restore_vector_sse): New.
214         (save_and_restore_vector_avx): Likewise.
215         (check_avx): Likewise.
216         (save_and_restore_vector): Likewise.
217         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
218         HAVE_AVX_SUPPORT.
219         * sysdeps/x86_64/link-defines.sym: New file.
221 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
223         * elf/do-lookup.h: Removed after folding content into...
224         * elf/dl-lookup.c: ...here.
226         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
228 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
230         * configure.in: Check for gnu_unique_symbol symbol type.
231         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
232         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
233         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
234         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
235         change.
236         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
237         unique symbol table.
238         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
239         for first namespace.
240         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
241         unique symbol hash table.
242         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
243         * elf/tst-unique1.c: New file.
244         * elf/tst-unique1mod1.c: New file.
245         * elf/tst-unique1mod2.c: New file.
246         * elf/tst-unique2.c: New file.
247         * elf/tst-unique2mod1.c: New file.
248         * elf/tst-unique2mod2.c: New file.
250 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
252         * elf/elf.h (STB_GNU_UNIQUE): Define.
254         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
255         from...
256         * include/inline-hashtab.h: ...here.
257         (htab_expand): Adjust for renamed function.  Correct memory handling.
259 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
261         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
263 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
265         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
266         (PPC_FEATURE_HAS_VSX): Likewise.
268 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
270         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
271         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
273         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
274         aligned to 16 byte boundaries.
275         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
276         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
277         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
279 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
281         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
282         * config.make.in (config-cflags-sse4): New variable.
283         * configure.in: Substitute libc_cv_cc_sse4.
284         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
285         HAVE_SSE4_SUPPORT.
286         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
287         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
288         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
289         * sysdeps/x86_64/multiarch/strcspn.S: New file.
290         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
291         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
292         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
293         * sysdeps/x86_64/multiarch/strspn.S: New file.
295 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
297         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
298         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
299         (tests): Add tst-audit3 for x86_64.
300         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
301         ($(objpfx)tst-audit3): Define.
302         ($(objpfx)tst-audit3.out): Define.
303         (tst-audit3-ENV): Define.
304         * elf/tst-audit3.c: New file.
305         * elf/tst-auditmod3a.c: New file.
306         * elf/tst-auditmod3b.c: New file.
307         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
308         and restore xmm6.
310         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
311         (__stpncpy): Renamed to ...
312         (STPNCPY): This.
313         (stpncpy): Create alias only if STPNCPY is not defined.
314         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
315         defined.
316         (strncpy): Renamed to ...
317         (STRNCPY): This.
318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
319          stpncpy-c strncpy-c for string.
320         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
321         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
322         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
323         * sysdeps/x86_64/multiarch/strcpy.S: New file.
324         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
325         * sysdeps/x86_64/multiarch/strncpy.S: New file.
327 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
329         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
330         adding to fast bin list.
332 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
334         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
335         inet_makeaddr.  This worked only with class-based networks.
336         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
337         Likewise.
339         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
340         recognize all types.
341         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
342         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
343         be in host byte order.
345 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
347         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
348         (MODEL_OFFSET): Define.
349         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
350         family and model.
351         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
352         out common code into new function get_common_indeces. Determine
353         extended family and model for Intel processors.
355 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
357         * resolv/resolv.h: Define RES_SNGLKUPREOP.
358         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
359         option.
360         * resolv/res_send.c (reopen): New function.  Broken out of...
361         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
362         fallback mechanism.  If single-request fails switch to
363         single-request-reopen mode which opens a new socket for the second
364         request.
366 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
368         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
369         (CHECK_SP): Use it.
371 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
373         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
374         for saved registers.
375         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
376         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
377         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
379 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
381         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
383 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
385         * po/id.po: Update from translation team.
387         * po/bg.po: Update from translation team.
389 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
391         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
392         defined.
393         (strncmp): Renamed to STRNCMP.
394         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
395         strncmp-c for string.
396         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
397         * sysdeps/x86_64/multiarch/strcmp.S: New file.
398         * sysdeps/x86_64/multiarch/strncmp.S: New file.
399         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
401 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
403         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
404         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
405         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
406         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
407         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
408         ifuncmain7static.c.
409         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
410         ifuncmain7static, and ifuncmain7picstatic.
411         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
412         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
413         $(objpfx)ifuncmain7pie.out.
414         (modules-names): Add ifuncmod5 ifuncmod6
415         (ifuncmod5.so-no-z-defs): Define.
416         (ifuncmod6.so-no-z-defs): Define.
417         (CFLAGS-ifuncmain5pic.c): Define.
418         (CFLAGS-ifuncmain5picstatic.c): Define.
419         (CFLAGS-ifuncmain5staticpic.c): Define.
420         (CFLAGS-ifuncdep5pic.c): Define.
421         (CFLAGS-ifuncmain7pic.c): Define.
422         (CFLAGS-ifuncmain7picstatic.c): Define.
423         (CFLAGS-ifuncmain1staticpie.c): Define.
424         (CFLAGS-ifuncmain5pie.c): Define.
425         (CFLAGS-ifuncmain6pie.c): Define.
426         (CFLAGS-ifuncmain7pie.c): Define.
427         ($(objpfx)ifuncmain1staticpie.out): Define.
428         ($(objpfx)ifuncmain1staticpie): Define.
429         ($(objpfx)ifuncmain5pie.out): Define.
430         ($(objpfx)ifuncmain5pie): Define.
431         ($(objpfx)ifuncmain6pie.out): Define.
432         ($(objpfx)ifuncmain6pie): Define.
433         ($(objpfx)ifuncmain5): Define.
434         ($(objpfx)ifuncmain5pic): Define.
435         ($(objpfx)ifuncmain5static): Define.
436         ($(objpfx)ifuncmain5staticpic): Define.
437         ($(objpfx)ifuncmain5picstatic): Define.
438         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
439         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
440         ifuncmain6pie.out.
441         * elf/b/elf/ifuncmain1staticpie.c: New file.
442         * elf/ifuncdep5.c: New file.
443         * elf/ifuncdep5pic.c: New file.
444         * elf/ifuncmain5.c: New file.
445         * elf/ifuncmain5pic.c: New file.
446         * elf/ifuncmain5picstatic.c: New file.
447         * elf/ifuncmain5pie.c: New file.
448         * elf/ifuncmain5static.c: New file.
449         * elf/ifuncmain5staticpic.c: New file.
450         * elf/ifuncmain6pie.c: New file.
451         * elf/ifuncmain7.c: New file.
452         * elf/ifuncmain7pic.c: New file.
453         * elf/ifuncmain7picstatic.c: New file.
454         * elf/ifuncmain7pie.c: New file.
455         * elf/ifuncmain7static.c: New file.
456         * elf/ifuncmod5.c: New file.
457         * elf/ifuncmod6.c: New file.
459 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
461         [BZ #10085]
462         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
463         (nss_endgrent): New variable.
464         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
465         fields. Change type of files to bool and adjust all users.
466         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
467         (internal_endgrent): Call nss_endgrent if necessary.
468         (add_group): New function.  Broken out of...
469         (check_and_add_group): ...here.
470         (getgrent_next_nss): Remove test that any callback is available.
471         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
472         callback.  If there is no blacklist we can trust the results returned
473         by the initgroups_dyn callback.  In case there is a callback and we
474         find a group entry for the group ID but it doesn't contain the
475         correct member, switch to the slow mode and use getgrent_r.
476         (internal_getgrent_r): When we see a +: entry, determine whether
477         there is any callback and which we can use the initgroups_dyn
478         callback.
480 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
482         * malloc/malloc.c (_int_malloc): Add some consistency checks.
483         (_int_free): Likewise.
485         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
486         AF_IEEE802154.
487         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
488         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
489         and ARPHRD_IEEE802154_PHY.
491         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
492         relative to generic Linux version.
494 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
496         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
497         ($(objpfx)ifuncmain1vispie): Likewise.
499 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
501         * login/Makefile: Build pt_chown as PIE.
503 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
505         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
506         a format string.
507         * elf/sln.c (usage): Likewise.
508         * malloc/memusage.sh (do_help): Likewise.
509         * nss/getent.c (more_help): Likewise.
510         * posix/getconf.c (main): Likewise.
511         * sunrpc/rpcinfo.c (usage): Likewise.
512         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
514 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
516         * login/programs/pt_chown.c: Use libcap to drop privileges other than
517         those needed.
518         * login/Makefile: If necessary link pt_chown with -lcap.
519         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
520         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
522 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
524         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
525         comparisons.
526         * string/test-memchr.c (do_random_tests): Test very large lengths
527         as well.
529 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
531         * Makeconfig (+link-pie): Define.
532         (+prectorS): Define.
533         (+postctorS): Define.
534         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
535         * nscd/Makefile ($(objpfx)nscd): Likewise.
537 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
539         [BZ #10107]
540         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
541         with cmplwi.
542         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
544 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
546         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
547         into ...
548         * sysdeps/unix/grantpt.c: ...here.
550 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
552         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
553         chmod if it is necessary.
555         [BZ #10166]
556         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
557         when the slave device is in devpts or devfs.
559         [BZ #10183]
560         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
562         [BZ #10195]
563         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
564         of nd_opt_home_agent_info_preference to uint16_t.
565         Patch by Arnaud Ebalard <arno@natisbad.org>.
567         [BZ #10207]
568         * nss/getent.c: Add support for printing gshadow data.
570         [BZ #10203]
571         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
572         not just the currently used one and those which follow.
573         Patch by Joe Landers <jlanders@vmware.com>.
575         [BZ #10196]
576         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
577         * libio/Makefile: Run tst-fgetwc with necessary envvar.
578         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
580         [BZ #10217]
581         * stdlib/abort.c: Define variable __abort_msg.
582         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
583         * include/stdlib.h: Declare __abort_msg.
584         * assert/assert-perr.c: Don't free buffer for message immediately.
585         Store atomically in __abort_msg and free old buffer if necessary.
586         * assert/assert.c: Likewise.
587         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
588         store pointer in __abort_msg, and possibly free old string.
589         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
591         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
593         [BZ #10211]
594         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
595         handle leap seconds if they are available.
596         Patch by Akinori Hattori <hattya@gentoo.org>.
598         * timezone/tzselect.ksh: Update from tzcode2009i.
599         * timezone/zdump.c: Likewise.
600         * timezone/zic.c: Likewise.
602         * timezone/africa: Update from tzdata2009i.
603         * timezone/antarctica: Likewise.
604         * timezone/asia: Likewise.
605         * timezone/australasia: Likewise.
606         * timezone/backward: Likewise.
607         * timezone/etcetera: Likewise.
608         * timezone/europe: Likewise.
609         * timezone/factory: Likewise.
610         * timezone/iso3166.tab: Likewise.
611         * timezone/leapseconds: Likewise.
612         * timezone/northamerica: Likewise.
613         * timezone/pacificnew: Likewise.
614         * timezone/solar87: Likewise.
615         * timezone/solar88: Likewise.
616         * timezone/solar89: Likewise.
617         * timezone/southamerica: Likewise.
618         * timezone/systemv: Likewise.
619         * timezone/yearistype: Likewise.
620         * timezone/zone.tab: Likewise.
622 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
624         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
625         STT_GNU_IFUNC symbol or in 8 into type_class.
627         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
628         instead of Elf64_Addr.
630 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
632         * po/sv.po: Update from translation team.
634         [BZ #10229]
635         * misc/sys/select.h (__NFDBITS): Expression should have type int.
636         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
637         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
638         the C version.
640 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
642         * Versions.def: Add GLIBC_2.11 for libpthread.
644 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
646         * resolv/res_send.c (send_dg): Remember we switched to
647         single-request mode.
649 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
651         * dlfcn/dlfcn.h: Remove comma at end of enum.
652         Patch by J.H.M. Dassen <rdassen@redhat.com>.
654         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
655         parsing mode string.
657 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
659         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
661         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
663         * sysdeps/x86_64/multiarch/strlen.S: New file.
664         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
665         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
666         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
667         content.
669         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
670         is defined.
672 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
674         * sysdeps/x86_64/strlen.S: Minor optimizations.
676 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
678         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
679         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
680         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
681         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
682         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
683         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
684         ifuncmain3.c, ifuncmod3.c,.
685         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
686         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
687         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
688         ifuncmain4picstatic.
689         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
690         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
691         ifuncmain3, ifuncmain4.
692         (tests): Depend on $(objpfx)ifuncmain1pie.out and
693         $(objpfx)ifuncmain1vispie.out.
694         (modules-names): Add ifuncmod1 ifuncmod3.
695         (generated): Add ifuncmain1pie ifuncmain1pie.out
696         ifuncmain1vispie ifuncmain1vispie.out.
697         Define rules to build and run the tests.
698         * elf/ifuncdep1.c: New file.
699         * elf/ifuncdep1pic.c: New file.
700         * elf/ifuncdep2.c: New file.
701         * elf/ifuncdep2pic.c: New file.
702         * elf/ifuncmain1.c: New file.
703         * elf/ifuncmain1pic.c: New file.
704         * elf/ifuncmain1picstatic.c: New file.
705         * elf/ifuncmain1pie.c: New file.
706         * elf/ifuncmain1static.c: New file.
707         * elf/ifuncmain1staticpic.c: New file.
708         * elf/ifuncmain1vis.c: New file..
709         * elf/ifuncmain1vispic.c: New file..
710         * elf/ifuncmain1vispie.c: New file.
711         * elf/ifuncmain2.c: New file.
712         * elf/ifuncmain2pic.c: New file.
713         * elf/ifuncmain2picstatic.c: New file.
714         * elf/ifuncmain2static.c: New file.
715         * elf/ifuncmain3.c: New file.
716         * elf/ifuncmain4.c: New file.
717         * elf/ifuncmain4picstatic.c: New file.
718         * elf/ifuncmain4static.c: New file.
719         * elf/ifuncmod1.c: New file.
720         * elf/ifuncmod3.c: New file.
722 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
724         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
726 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
728         [BZ #10221]
729         * posix/Makefile (routines): Add execvpe.
730         * posix/Versions: Export execvpe for GLIBC_2.11.
731         * posix/execvp.c: Now only a wrapper.  Move code to...
732         * posix/execvpe.c: ...here.  New file.
733         * posix/unistd.h: Declare execvpe.
735 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
737         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
738         for STT_GNU_IFUNC handling for efficiency.
739         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
741         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
742         _exit.
743         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
745 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
747         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
748         for !SHARED.
750 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
752         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
753         is not defined.
754         (__rela_iplt_start): New declaration.
755         (__rela_iplt_end): Likewise.
756         (__rel_iplt_start): Likewise.
757         (__rel_iplt_end): Likewise.
758         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
759         * elf/elf.h (R_386_IRELATIVE): New macro.
760         (R_X86_64_IRELATIVE): New macro.
761         (R_386_NUM): Updated.
762         (R_X86_64_NUM): Likewise.
763         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
764         (libc_ifunc_hidden_def): New macro.
765         * sysdeps/generic/dl-irel.h: New file.
766         * sysdeps/i386/dl-irel.h: New file.
767         * sysdeps/x86_64/dl-irel.h: New file.
768         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
769         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
770         Handle R_386_IRELATIVE.
771         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
772         (elf_machine_lazy_rela): Likewise.
773         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
774         R_X86_64_IRELATIVE.
775         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
777 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
779         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
780         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
781         are no differences.  If an architecture has bits in CPUID index 1
782         meaning different things the values for the COMMON_CPUID_INDEX_1
783         index must not be set.
784         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
785         (HAS_POPCOUNT): ...this.  New macro.
786         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
787         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
788         to set the value for Intel and AMD architectures.
789         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
790         INTEL_CPUID_INDEX_1.
791         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
792         change.
794 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
796         * configure.in: Move AC_CANONICAL_HOST before first use of $host
797         and $build.
799 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
801         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
802         (__expm1l): Set errno to ERANGE on overflow.
803         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
804         (__tanl): Set errno to EDOM for ±Inf.
805         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
806         (__cosl): Set errno to EDOM for ±Inf.
807         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
808         (__sinl): Set errno to EDOM for ±Inf.
810         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
811         defined, use it.
812         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
813         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
814         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
816 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
818         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
819         code accessing it.
820         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
822 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
824         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
825         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
826         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
827         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
829         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
830         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
831         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
832         defined.
833         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
834         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
836 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
838         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
839         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
840         is, either do nothing at all if __ASSUME_ACCEPT4, or
841         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
842         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
843         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
844         define.
845         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
846         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
847         internal_accept4 in socket directory.
849 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
851         * sysdeps/ia64/configure.in: New file.
853 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
855         [BZ #10162]
856         * sysdeps/ia64/memchr.S: Use speculative load.
858         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
859         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
860         use it.
862         * sysdeps/i386/__longjmp.S: Add .text.
863         * sysdeps/x86_64/__longjmp.S: Likewise.
865 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
867         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
868         __ASSUME_ACCEPT4 for IA-64.
870 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
872         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
874         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
875         (SOCKOP_accept4): Define.
877 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
879         Sun approved the change of the license.
880         * sunrpc/auth_des.c: Replace license text.
881         * sunrpc/auth_none.c: Likewise.
882         * sunrpc/auth_unix.c: Likewise.
883         * sunrpc/authdes_prot.c: Likewise.
884         * sunrpc/authuxprot.c: Likewise.
885         * sunrpc/bindrsvprt.c: Likewise.
886         * sunrpc/clnt_gen.c: Likewise.
887         * sunrpc/clnt_perr.c: Likewise.
888         * sunrpc/clnt_raw.c: Likewise.
889         * sunrpc/clnt_simp.c: Likewise.
890         * sunrpc/clnt_tcp.c: Likewise.
891         * sunrpc/clnt_udp.c: Likewise.
892         * sunrpc/clnt_unix.c: Likewise.
893         * sunrpc/des_crypt.c: Likewise.
894         * sunrpc/des_soft.c: Likewise.
895         * sunrpc/get_myaddr.c: Likewise.
896         * sunrpc/getrpcport.c: Likewise.
897         * sunrpc/key_call.c: Likewise.
898         * sunrpc/key_prot.c: Likewise.
899         * sunrpc/openchild.c: Likewise.
900         * sunrpc/pm_getmaps.c: Likewise.
901         * sunrpc/pm_getport.c: Likewise.
902         * sunrpc/pmap_clnt.c: Likewise.
903         * sunrpc/pmap_prot.c: Likewise.
904         * sunrpc/pmap_prot2.c: Likewise.
905         * sunrpc/pmap_rmt.c: Likewise.
906         * sunrpc/rpc/auth.h: Likewise.
907         * sunrpc/rpc/auth_unix.h: Likewise.
908         * sunrpc/rpc/clnt.h: Likewise.
909         * sunrpc/rpc/des_crypt.h: Likewise.
910         * sunrpc/rpc/key_prot.h: Likewise.
911         * sunrpc/rpc/netdb.h: Likewise.
912         * sunrpc/rpc/pmap_clnt.h: Likewise.
913         * sunrpc/rpc/pmap_prot.h: Likewise.
914         * sunrpc/rpc/pmap_rmt.h: Likewise.
915         * sunrpc/rpc/rpc.h: Likewise.
916         * sunrpc/rpc/rpc_des.h: Likewise.
917         * sunrpc/rpc/rpc_msg.h: Likewise.
918         * sunrpc/rpc/svc.h: Likewise.
919         * sunrpc/rpc/svc_auth.h: Likewise.
920         * sunrpc/rpc/types.h: Likewise.
921         * sunrpc/rpc/xdr.h: Likewise.
922         * sunrpc/rpc_clntout.c: Likewise.
923         * sunrpc/rpc_cmsg.c: Likewise.
924         * sunrpc/rpc_common.c: Likewise.
925         * sunrpc/rpc_cout.c: Likewise.
926         * sunrpc/rpc_dtable.c: Likewise.
927         * sunrpc/rpc_hout.c: Likewise.
928         * sunrpc/rpc_main.c: Likewise.
929         * sunrpc/rpc_parse.c: Likewise.
930         * sunrpc/rpc_parse.h: Likewise.
931         * sunrpc/rpc_prot.c: Likewise.
932         * sunrpc/rpc_sample.c: Likewise.
933         * sunrpc/rpc_scan.c: Likewise.
934         * sunrpc/rpc_scan.h: Likewise.
935         * sunrpc/rpc_svcout.c: Likewise.
936         * sunrpc/rpc_tblout.c: Likewise.
937         * sunrpc/rpc_util.c: Likewise.
938         * sunrpc/rpc_util.h: Likewise.
939         * sunrpc/rpcinfo.c: Likewise.
940         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
941         * sunrpc/rpcsvc/key_prot.x: Likewise.
942         * sunrpc/rpcsvc/klm_prot.x: Likewise.
943         * sunrpc/rpcsvc/mount.x: Likewise.
944         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
945         * sunrpc/rpcsvc/rex.x: Likewise.
946         * sunrpc/rpcsvc/rstat.x: Likewise.
947         * sunrpc/rpcsvc/rusers.x: Likewise.
948         * sunrpc/rpcsvc/sm_inter.x: Likewise.
949         * sunrpc/rpcsvc/spray.x: Likewise.
950         * sunrpc/rpcsvc/yppasswd.x: Likewise.
951         * sunrpc/rtime.c: Likewise.
952         * sunrpc/svc.c: Likewise.
953         * sunrpc/svc_auth.c: Likewise.
954         * sunrpc/svc_authux.c: Likewise.
955         * sunrpc/svc_raw.c: Likewise.
956         * sunrpc/svc_run.c: Likewise.
957         * sunrpc/svc_simple.c: Likewise.
958         * sunrpc/svc_tcp.c: Likewise.
959         * sunrpc/svc_udp.c: Likewise.
960         * sunrpc/svc_unix.c: Likewise.
961         * sunrpc/svcauth_des.c: Likewise.
962         * sunrpc/xcrypt.c: Likewise.
963         * sunrpc/xdr.c: Likewise.
964         * sunrpc/xdr_array.c: Likewise.
965         * sunrpc/xdr_float.c: Likewise.
966         * sunrpc/xdr_mem.c: Likewise.
967         * sunrpc/xdr_rec.c: Likewise.
968         * sunrpc/xdr_ref.c: Likewise.
969         * sunrpc/xdr_sizeof.c: Likewise.
970         * sunrpc/xdr_stdio.c: Likewise.
972         * po/da.po: Update from translation team.
974 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
976         * sysdeps/sh/____longjmp_chk.S: New file.
977         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
978         * sysdeps/sh/sh4/__longjmp.S: Likewise.
980 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
981             Ulrich Drepper  <drepper@redhat.com>
983         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
984         (__nscd_cache_search): Assume each entry in the
985         hash chain needs one hashentry and half of datahead.  Use
986         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
988 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
990         * posix/sys/wait.h: Fix typos.  Pretty printing.
991         * stdlib/stdlib.h: Likewise.  Correct comments.
993         [BZ #10159]
994         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
996         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
997         patch.
999 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1001         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1002         Use it if we absolutely cannot reach any more correct list elements
1003         because that many do not fit into the currently mapped database.
1005 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1007         * nscd/nscd_helper.c: Include stddef.h.
1008         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1009         in a couple of places.  Return NULL if trail is not less than
1010         datasize, don't consider dataheads with length smaller than
1011         offsetof (struct datahead, data) + datalen.
1012         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1013         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1014         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1015         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1016         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1017         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1018         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1020         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1021         Rename ...
1022         (fallocate64): ... to this.
1023         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1024         Rename ...
1025         (fallocate64): ... to this.
1026         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1027         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1028         fallocate64@@GLIBC_2.10.
1029         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1030         fallocate64@@GLIBC_2.11.
1031         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1033         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1034         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1036         * nscd/selinux.c (nscd_avc_destroy): Removed.
1037         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1038         * nscd/nscd.c (termination_handler): Don't call
1039         nscd_avc_destroy.
1041 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1043         * include/atomic.h: Formatting.
1044         (catomic_compare_and_exchange_val_acq): Don't define if already
1045         defined by bits/atomic.h.
1047 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1049         * math/libm-test.inc (expm1_test): Add test for range error.
1051         * Versions.def: Add GLIBC_2.11 for libc.
1052         * debug/Makefile (routines): Add longjmp_chk.
1053         Add rules to build and run tst-longjmp_chk.
1054         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1055         * debug/longjmp_chk.c: New file.
1056         * debug/tst-longjmp_chk.c: New file.
1057         * include/bits/setjmp2.: New file.
1058         * include/stdio.h: Mark __fortify_fail as internal_function.
1059         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1060         * setjmp/bits/setjmp2.h: New file.
1061         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1062         of the aliases.
1063         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1064         defined.
1065         * sysdeps/i386/____longjmp_chk.S: New file.
1066         * sysdeps/x86_64/____longjmp_chk.S: New file.
1067         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1068         * sysdeps/x86_64/__longjmp.S: Likewise.
1070         * version.h: Bump for 2.11 development.
1072         * elf/check-execstack.c: New file.
1073         * elf/Makefile: Add rules to build and run check-execstack.
1075 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1077         * version.h (VERSION): Bump to 2.10.1.
1079         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1080         compatibility functions.
1081         * nss/getXXent_r.c: Likewise.
1082         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1083         * gshadow/getsgnam_r.c: Likewise.
1084         * gshadow/Version: Remove duplicate entries.
1086         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1087         for recent processor.
1088         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1089         Likewise.
1091 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1093         * version.h (VERSION): Bump for 2.10 release.
1094         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1096         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1097         same place we add ASFLAGS-config.
1099 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1101         [BZ #10128]
1102         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1103         or FORMERR and the other NOERROR, don't raise an error.
1105 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1107         [BZ #10118]
1108         * Makeconfig (+asflags): New variable based upon ASFLAG or
1109         asflags-cpu.
1110         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1111         * config.make.in (asflags-cpu): Add variable based upon
1112         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1113         the assembler.
1114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1115         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1116         recognizes power6 instruction set due to passing -mcpu=power6 from
1117         --with-cpu=power6 when compiling .S files.
1118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1119         Likewise.
1120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1121         Likewise.
1122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1123         Likewise.
1125 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1127         * string/stratcliff.c (do_test): Test for zero length
1128         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1129         at the end of the page.
1131 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1133         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1135         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1136         count is zero.
1138         * po/da.po: Update from translation team.
1140 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1142         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1143         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1145 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1147         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1148         and READ_IMPLIES_EXEC.
1150 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1152         * po/da.po: Update from translation team.
1154 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1156         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1157         comment change.
1159 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1161         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1162         to MAP_ANON in PROT_NONE mmap64 call.
1163         (open_archive): Likewise.
1164         (file_data_available_p): Use mmap64 instead of mremap.
1165         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1166         Attempt to reserve address space after mmap64 region.
1168 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1170         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1171         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1172         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1174         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1175         atanh should set ERANGE.
1177         [BZ #10087]
1178         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1179         result of lookup to make call to implement STT_GNU_IFUNC.
1180         (_dl_profile_fixup): Likewise.
1181         Patch by H.J. Lu <hjl.tools@gmail.com>.
1183         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1184         warning.
1186         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1187         from definition.
1189         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1190         label if it is not used.
1192         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1193         of gmon_hist_hdr and gmon_hdr structures and use them.
1194         * elf/sprof.c: Likewise.
1196         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1197         warning.
1199         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1201         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1202         to avoid cast.
1204         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1205         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1206         to avoid warnings.
1207         (iruserok_af): Use ss_family instead of casts.
1209         * gmon/gmon.c (write_hist): Define real-type variant of
1210         gmon_hist_hdr structure and use it.
1211         (write_gmon): Likewise for gmon_hdr.
1213         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1214         function if we are not going to define it.
1215         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1217         * inet/inet6_option.c (option_alloc): Add temporary variable to
1218         avoid warning.
1220         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1221         name of VTable element.
1222         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1223         * libio/iovsscanf.c: Likewise.
1224         * libio/vasprintf.c: Likewise.
1225         * libio/vsnprintf.c: Likewise.
1226         * stdio-common/isoc99_vsscanf.c: Likewise.
1227         * stdlib/strfmon_l.c: Likewise.
1228         * debug/vasprintf_chk.c: Likewise.
1229         * debug/vsnprintf_chk.c: Likewise.
1230         * debug/vsprintf_chk.c: Likewise.
1232         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1233         function pointers.
1235 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1237         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1239 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1241         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1243         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1244         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1245         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1246         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1247         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1248         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1249         * math/libm-test.inc: Add tests for errno after tan calls with
1250         ±Inf.
1252         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1253         errno value vor pow(+-0,neg).
1254         * math/libm-test.inc (pow_test): Add tests for errno value for
1255         pole errors.
1257         * math/w_fmod.c: Also handle x=±Inf as error.
1258         * math/w_fmodf.c: Likewise.
1259         * math/w_fmodl.c: Likewise.
1260         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1261         x=±Inf or y=0.
1263         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1264         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1265         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1266         * sysdeps/i386/fpu/s_sin.S: Likewise.
1267         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1268         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1269         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1270         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1271         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1272         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1273         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1274         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1275         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1276         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1277         ±Inf.
1279         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1280         ERANGE for underflows.
1281         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1283         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1284         the 2001 revision.
1286         * libio/tst-widetext.input: Remove surrogates.
1288         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1290         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1291         for lgamma should set errno to ERANGE, not EDOM.
1292         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1294 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1296         [BZ #10093]
1297         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1298         UTF-16 surrogates.
1300         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1301         space when temporarily mapping the whole content of the old file.
1303         [BZ #10100]
1304         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1305         not zero.
1307 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1309         * iconvdata/sjis.c (BODY): Don't advance inptr before
1310         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1311         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1312         two byte chars.
1314 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1316         * locale/locarchive.h (struct locarhandle): Rename len field to
1317         mmaped and add new reserved field.
1318         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1319         (create_archive): Reserve address space and then map file into it.
1320         (open_archive): Likewise.
1321         (file_data_available_p): New function.
1322         (compare_from_file): New function.
1323         (close_archive): Adjust to member name changes.
1324         (add_locale): Before comparing locale data, check it is mapped.
1325         Otherwise fall back to reading from the file.
1327 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1329         * stdio-common/psiginfo.c: Include <errno.h>.
1331 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1333         [BZ #9920]
1334         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1335         to get consistency between 32 and 64 bit architectures.
1337         [BZ #10052]
1338         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1339         directory for dummy syscall rules.
1340         Patch by Chris Steinbroner <hesh@pobox.com>.
1342 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1344         [BZ #10092]
1345         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1346         MNT_EXPIRE.
1348 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1350         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1351         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1353 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1355         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1356         data from vector to temporary buffer and call PWRITEV after it
1357         instead of vice versa.
1358         * sysdeps/posix/preadv.c: Fix up comment.
1359         * misc/preadv.c: Likewise.
1360         * misc/preadv64.c: Likewise.
1361         * misc/pwritev.c: Likewise.
1362         * misc/pwritev64.c: Likewise.
1363         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1365 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1367         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1369         * shadow/Makefile (tests): Add tst-shadow.
1370         * shadow/tst-shadow.c: New file.
1372         [BZ #9955]
1373         * gshadow/Makefile: New file.
1374         * gshadow/Versions: New file.
1375         * gshadow/fgetsgent.c: New file.
1376         * gshadow/fgetsgent_r.c: New file.
1377         * gshadow/getsgent.c: New file.
1378         * gshadow/getsgent_r.c: New file.
1379         * gshadow/getsgnam.c: New file.
1380         * gshadow/getsgnam_r.c: New file.
1381         * gshadow/gshadow.h: New file.
1382         * gshadow/putsgent.c: New file.
1383         * gshadow/sgetsgent.c: New file.
1384         * gshadow/sgetsgent_r.c: New file.
1385         * gshadow/tst-gshadow.c: New file.
1386         * include/gshadow.h: New file.
1387         * Makeconfig (all-subdirs): Add gshadow.
1388         * Makefile (installed-headers): Add gshadow/gshadow.h.
1389         * nss/Makefile (databases): Add sgrp.
1390         * nss/Versions: Add gshadow functions as private exports.
1391         * nss/nsswitch.conf: Add gshadow entry.
1392         * nss/sgrp-lookup.c: New file.
1393         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1394         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1395         * nss/nss_files/files-sgrp.c: New file.
1396         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1397         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1399 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1401         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1402         * stdio-common/reg-modifier.c: Likewise.
1404 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1406         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1407         is no FPU.
1409 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1411         [BZ #10086]
1412         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1413         headers up to 2.6.30.
1415         * po/ca.po: Update from translation team.
1417 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1419         [BZ #10069]
1420         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1421         an object that uses static TLS if the TLS modid is higher than the
1422         reserve we always allocate.  At least for multi-threaded code.
1424 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1426         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1427         Numerically stable check for valid width.
1429         * locale/programs/locarchive.c (open_archive): Map the entire file
1430         and not just the administrative data.
1431         (add_locale): When we find a hash sum match compare the content
1432         to be sure.
1434         * malloc/malloc.c (malloc_info): Output address space information.
1436 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1438         * malloc/malloc.c (malloc_info): Also output system memory information.
1440         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1441         architectures have preadv/pwritev in 2.6.30.
1443         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1444         * sysdeps/posix/readv.c: Likewise.
1445         Reported by Markus Armbruster <armbru@redhat.com>.
1447         * malloc/hooks.c (top_check): Force hook value into register.
1449 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1451         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1452         calls to _dl_relocate_object.
1454 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1456         [BZ #9957]
1457         * malloc/malloc.c (force_reg): Define.
1458         (sYSMALLOc): Load hook variable into variable
1459         before test and force into register.
1460         (sYSTRIm): Likewise.
1461         (public_mALLOc): Force hook value into register.
1462         (public_fREe): Likewise.
1463         (public_rEALLOc): Likewise.
1464         (public_mEMALIGn): Likewise.
1465         (public_vALLOc): Likewise.
1466         (public_pVALLOc): Likewise.
1467         (public_cALLOc): Likewise.
1468         (__posix_memalign): Likewise.
1469         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1470         before test and force into register.
1471         * malloc/hooks.c (top_check): Likewise.
1472         (public_sET_STATe): Pretty printing.
1474         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1475         in case we only receive one reply in single-request mode.
1477 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1479         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1480         are dlopened in statically linked program even for __LM_ID_CALLER.
1482 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1484         * resolv/res_send.c (send_dg): Don't switch into single-request
1485         mode if we already are in it.
1487 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1489         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1490         are always at least 4 bytes in the returned line.
1492 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1494         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1495         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1496         instead of 8K.  Stop searching in /proc/stat after hitting first
1497         line not starting with cpu.
1498         (next_line): Truncate too long
1499         lines at buffer size * 3/4 instead of pretending there were line
1500         breaks inside of large lines.
1502 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1504         * sysdeps/x86_64/mp_clz_tab.c: New file.
1506 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1507             Ulrich Drepper  <drepper@redhat.com>
1509         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1510         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1511         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1513 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1515         * sysdeps/sh/libc-tls.c: New file.
1517         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1519 2009-04-14  Roland McGrath  <roland@redhat.com>
1521         * elf/elf.h: Add various missing ARM constants, to match binutils.
1523 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1525         Optimizations from GMP.
1526         * sysdeps/x86_64/add_n.S: New file.
1527         * sysdeps/x86_64/addmul_1.S: New file.
1528         * sysdeps/x86_64/lshift.S: New file.
1529         * sysdeps/x86_64/mul_1.S: New file.
1530         * sysdeps/x86_64/rshift.S: New file.
1531         * sysdeps/x86_64/sub_n.S: New file.
1532         * sysdeps/x86_64/submul_1.S: New file.
1534 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
1536         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1537         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1538         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1539         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1541 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1543         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1544         preadv/pwritev.
1546 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
1548         * sysdeps/x86-64/strrchr.S: New file.
1550 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
1552         * stdio-common/printf.h (struct printf_info): Add user element.
1553         New types printf_arginfo_size_function, printf_va_arg_function.
1554         Declare register_printf_specifier, register_printf_modifier,
1555         register_printf_type.
1556         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1557         (union printf_arg): Add pa_user element.
1558         Adjust __printf_arginfo_table type.
1559         Add __printf_va_arg_table, __printf_modifier_table,
1560         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1561         declarations.
1562         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1563         If registered arginfo call failed try normal specifier.
1564         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1565         function.
1566         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1567         * stdio-common/Versions: Export register_printf_modifier,
1568         register_printf_type, and register_printf_specifier for GLIBC_2.10.
1569         * stdio-common/reg-modifier.c: New file.
1570         * stdio-common/reg-type.c: New file.
1571         * stdio-common/reg-printf.c (__register_printf_specifier): New
1572         function.  Mostly the old __register_printf_function function but
1573         uses locking and type of third parameter changed.
1574         (__register_printf_function): Implement using
1575         __register_printf_specifier.
1576         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1577         calls to arginfo functions.  Allocate enough memory for user-defined
1578         types.  Call new va_arg functions to get user-defined types.
1579         Try installed handlers even for existing format specifiers first.
1581 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
1583         * sysdeps/x86_64/rawmemchr.S: New file.
1585         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1586         Simplified code and possible copy problem fixed.
1588         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1589         function if it is not defined.  Add some necessary casts.
1590         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1592         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1593         have preadv/pwritev in 2.6.30.
1595 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
1597         * malloc/malloc.c (malloc_info): New function.
1598         * malloc/malloc.h: Declare it.
1599         * malloc/Versions: Export malloc_info for GLIBC_2.10.
1601         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1602         to avoid PLT slot.
1604         * malloc/malloc.c (_int_realloc): Add parameter with old block
1605         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
1606         Adjust all callers.
1607         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1609 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
1611         * sysdeps/x86_64/strchrnul.S: New file.
1613         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1614         depending libcrypt on -lfreebl3.
1616         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1617         preadv/pwritev in 2.6.30.
1619         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1620         instead of __strcasecmp.
1622         * string/stratcliff.c (do_test): Add memchr tests..
1623         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1624         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1625         first read quad word.
1627 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1629         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1630         * string/tst-svc.input: Add new test case.
1631         * string/tst-svc.expect: Adjust.
1632         * string/Makefile: Don't ignore tst-svc error.
1634         * sysdeps/x86_64/memchr.S: New file.
1636         * resolv/resolv.h (RES_SNGLKUP): Define.
1637         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1638         * resolv/res_send.c (send_dg): If we sent two requests at once and
1639         only get one reply before timeout switch to mode where we send the
1640         second request only after the first answer has been received.
1642 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1644         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1645         * sysdeps/x86_64/strchr.S: Likewise.
1647 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1649         * configure.in: We need to test for the compiler earlier.
1651         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1652         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1653         GLIBC_2.10.
1654         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1655         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1656         and pwritev.
1657         * misc/preadv.c: New file.
1658         * misc/preadv64.c: New file.
1659         * misc/pwritev.c: New file.
1660         * misc/pwritev64.c: New file.
1661         * sysdeps/posx/preadv.c: New file.
1662         * sysdeps/posx/preadv64.c: New file.
1663         * sysdeps/posx/pwritev.c: New file.
1664         * sysdeps/posx/pwritev64.c: New file.
1665         * sysdeps/unix/sysv/linux/preadv.c: New file.
1666         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1667         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1668         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1669         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1670         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1672         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1673         compatibility code.
1674         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1676         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1677         __ASSUME_COMPLETE_READV_WRITEV.
1678         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1679         with modern kernels.
1680         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1682         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1683         to free a possible malloced buffer in case of cancellation.
1684         * sysdeps/posix/writev.c: Likewise for write.
1686 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1688         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1690         * configure.in: Recognize --enable-nss-crypt.
1691         * config.make.in: Add nss-crypt entry.
1692         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1693         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1694         and include path for NSS directory to compiler for md5-crypt,
1695         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1696         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1697         function implementation, use NSS.  Introduce wrappers around the
1698         hash function calls.  Little code size optimization.
1699         * crypt/sha256-crypt.c: Likewise.
1700         * crypt/sha512-crypt.c: Likewise.
1701         * scripts/check-local-headers.sh: Ignore nss3 directory.
1703         * configure.in: Rename pic_default to libc_cv_pic_default.
1704         * config.make.in: Likewise.
1706 2009-04-01  Roland McGrath  <roland@redhat.com>
1708         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1709         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1710         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1711         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1712         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1713         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1714         (R_SPARC_NUM): Update.
1715         From Dave Miller <davem@davemloft.net>.
1717 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
1719         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1721 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
1723         * elf/dl-open.c: Keep track of used name spaces and only iterate over
1724         those which are used.
1725         * elf/dl-addr.c: Likewise.
1726         * elf/dl-caller.c: Likewise.
1727         * elf/dl-fini.c: Likewise.
1728         * elf/dl-iteratephdr.c: Likewise.
1729         * elf/dl-libc.c: Likewise.
1730         * elf/dl-load.c: Likewise.
1731         * elf/dl-support.c: Likewise.
1732         * elf/dl-sym.c: Likewise.
1733         * elf/rtld.c: Likewise.
1734         * sysdeps/generic/ldsodefs.h: Likewise.
1736         * elf/dl-load.c: Remove support for systems without MAP_ANON.
1737         * elf/dl-minimal.c: Likewise.
1738         * elf/dl-misc.c: Likewise.
1739         * elf/rtld.c: Likewise.
1740         * sysdeps/generic/ldsodefs.h: Likewise.
1742 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
1744         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1745         Avoid reuse of complex expression.
1747         * po/fr.po: Update from translation team.
1749 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1751         * include/dirent.h: Yet more changes to match sort function type
1752         change.
1753         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1754         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1755         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1757 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
1759         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1761 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1763         * nscd/connections.c (restart): Try to preserve the process name
1764         by reading the /proc/self/exe symlink and using the return name.
1765         Patch by Jeff Bastian <jbastian@redhat.com>.
1767 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
1769         [BZ #9733]
1770         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1771         if we are not loading a new audit library.
1772         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1773         Only use profiling trampoline for auditing if we are not relocating
1774         an audit library.
1775         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1776         * elf/rtld.c: Likewise.
1777         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1779         * elf/rtld.c (dl_main): Extend help message for --audit option.
1781         [BZ #9759]
1782         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1783         alphasort64, versionsort, and versionsort64 to POSIX 2008.
1784         * dirent/alphasort.c: Adjust implementation to type change.
1785         * dirent/alphasort64.c: Likewise.
1786         * dirent/scandir.c: Likewise.
1787         * dirent/versionsort.c: Likewise.
1788         * dirent/versionsort64.c: Likewise.
1789         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1790         declaration.
1791         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1792         declaration.
1794         [BZ #9880]
1795         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1796         correctly.  Set segleft member in output as required.
1797         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1798         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1800         [BZ #9881]
1801         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1802         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1803         * inet/Makefile (tests): Add tst-inet6_rth.
1804         * inet/tst-inet6_rth.c: New file.
1806         [BZ #5807]
1807         * string/strlen.c (strlen): Fix omission in the expression to test
1808         for NUL bytes.
1810 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1812         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1814         * elf/dl-runtime.c (reloc_offset): Define.
1815         (reloc_index): Define.
1816         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1817         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
1818         computing index from reloc_offset.
1819         (_dl_call_pltexit): Likewise.
1820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1821         the relocation index to _dl_fixup.
1822         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1823         _dl_call_pltexit.
1824         * sysdeps/x86_64/dl-runtime.c: New file.
1826         [BZ #9893]
1827         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1828         alignment of La_x86_64_regs.  Store xmm parameters.
1829         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1831         [BZ #9913]
1832         * string/strverscmp.c (__strverscmp): Fix case of different digits
1833         in fractional part of string.
1834         Patch by Jingyu Liu <jyliu@fortinet.com>.
1835         * string/Makefile (tests): Add tst-svc2.
1836         * string/tst-svc2.c: New file.
1838         * string/strverscmp.c (__strverscmp): Optimize size of tables.
1840         * locale/iso-639.def: Add Min Nan.
1842 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1844         [BZ #9948]
1845         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1847 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1849         * elf/dl-sysdep.c (auxvars): Compress data structure.
1851         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1852         STT_GNU_IFUNC handling.
1853         (elf_machine_rela): Likewise.
1855 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
1857         * config.h.in (USE_MULTIARCH): Define.
1858         * configure.in: Handle --enable-multi-arch.
1859         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1860         (_dl_fixup_profile): Likewise.
1861         * elf/do-lookup.c (dl_lookup_x): Likewise.
1862         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1863         * elf/elf.h (STT_GNU_IFUNC): Define.
1864         * include/libc-symbols.h (libc_ifunc): Define.
1865         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1866         framework in init-arch.h to get CPUID values.
1867         * sysdeps/x86_64/multiarch/Makefile: New file.
1868         * sysdeps/x86_64/multiarch/init-arch.c: New file.
1869         * sysdeps/x86_64/multiarch/init-arch.h: New file.
1870         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1872         * config.make.in (experimental-malloc): Define.
1873         * configure.in: Handle --enable-experimental-malloc.
1874         * malloc/Makefile: Handle experimental-malloc flag.
1875         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1876         * malloc/arena.c: Likewise.
1877         * malloc/hooks.c: Likewise.
1878         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1880 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1882         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1883         prediction.  A few size optimizations.
1885 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1887         * time/tzset.c: Optimize a bit for size.
1889 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1891         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1892         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1894         * elf/sprof.c: Avoid warning about multi-line comment.
1896 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1898         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1899         DST name.
1900         * time/tst-posixtz.c: Add tests for quoted timezone names.
1902 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1904         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1905         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1906         200809L instead of 200112L.
1907         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1908         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1910         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1911         instead of __quick_exit_funcs to __run_exit_handlers.
1912         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1913         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1914         (__cxa_at_quick_exit): Remove attribute_hidden.
1915         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1916         to __run_exit_handlers.
1917         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1918         attribute_hidden.
1920 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1922         * po/id.po: Update from translation team.
1924 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1927         .machine push; .machine "power6" and .machine pop around mtfsf
1928         insns outside of _ARCH_PWR6 define.
1929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1931         Likewise.
1932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1933         Likewise.
1934         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1935         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1936         relax_fenv_state): Likewise.
1938 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1940         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1941         cxa_at_quick_exit.
1942         (static-only-routines): Add at_quick_exit.
1943         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1944         GLIBC_2.10.
1945         * stdlib/quick_exit.c: New file.
1946         * stdlib/at_quick_exit.c: New file.
1947         * stdlib/cxa_at_quick_exit.c: New file.
1948         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1949         it appropriately.
1950         (__internal_atexit): New function.
1951         (__new_exitfn): Now takes parameter to point to the list to use.
1952         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1953         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1954         (exit): ...here.  Just call __run_exit_handlers appropriately.
1955         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1956         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1957         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1958         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1960         * po/id.po: Update from translation team.
1962 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1964         * po/ru.po: Update from translation team.
1966 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1968         * po/nl.po: Update from translation team.
1970 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1973         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1974         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1975         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1976         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1977         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1978         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1980         * po/pl.po: Update from translation team.
1982 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1984         [BZ #7083]
1985         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1986         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1987         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1988         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1989         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1990         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1991         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1992         for GLIBC_2.10.
1993         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1994         Add fallocate and fallocate64.
1996         * io/fcntl.h: Pretty printing.
1998 2009-03-02  Richard Guenther  <rguenther@suse.de>
2000         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2001         attribute also for non-C99 inline semantics variant.
2003 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2005         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2006         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2007         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2008         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2010         Likewise.
2011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2012         Likewise.
2014 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2016         * po/cs.po: Update from translation team.
2018 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2020         * po/bg.po: Update from translation team.
2021         * po/sv.po: Likewise.
2022         * po/fi.po: Likewise.
2023         * po/vi.po: Likewise.
2025 2009-02-27  Roland McGrath  <roland@redhat.com>
2027         * Makeconfig (%.v.i): Depend on Makeconfig.
2028         Exclude % lines from initial #-comment removal.
2030 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2032         * po/ko.po: Update from translation team.
2034 2009-02-26  Roland McGrath  <roland@redhat.com>
2036         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2037         avoids unused warning.
2039 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2040             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2042         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2043         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2044         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2045         and asm/user.h.  Include asm/ptrace.h.
2046         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2047         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2048         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2049         Undefine.
2050         (start_thread): Don't undefine.
2051         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2052         Define.
2054 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2056         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2057         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2058         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2059         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2060         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2061         200112L to 200809L.
2062         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2063         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2064         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2065         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2066         _SC_THREAD_ROBUST_PRIO_PROTECT.
2067         * posix/unistd.h: fexecve is in POSIX 2008.
2068         * time/time.h: strftime_l is in POSIX 2008.
2069         * io/sys/stat.h: futimens is in POSIX 2008.
2070         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2071         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2072         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2073         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2074         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2075         open_memstream, and vdprintf are in POSIX 2008.
2077 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2079         * include/features.h: Define macros for XPG7/POSIX 2008.
2080         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2081         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2082         POSIX 2008.
2083         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2084         * locale/xlocale.h: Define locale_t type.
2085         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2086         in POSIX 2008.  Don't define locale_t here.
2087         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2088         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2089         UTIME_OMIT only with __USE_ATFILE.
2090         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2091         * stdio-common/psiginfo.c: New file.
2092         * stdio-common/psiginfo-data.h: New file.
2093         * stdio-common/psiginfo-define.h: New file.
2094         * stdio-common/Makefile (routines): Add psiginfo.
2095         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2096         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2097         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2098         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2099         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2100         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2101         * io/sys/stat.h: Move mknodat definition into same conditional as
2102         mknod.
2103         * time/sys/time.h: futimesat is not among the functions accepted
2104         into the POSIX standard.
2106         * include/features.h: If no feature selection given and we select
2107         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2108         * posix/Versions: Export __posix_getopt.
2109         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2110         Use it to alternatively initialize __posixly_correct.
2111         (_getopt_internal_r): Take addition parameter.  Pass on to
2112         _getopt_initialize.
2113         (_getopt_internal): Take addition parameter.  Pass on to
2114         _getopt_internal_r.
2115         (getopt): Pass additional zero to _getopt_internal.
2116         (__posix_getopt): New function.
2117         * posix/getopt.h: Add redirection for getopt.
2118         * posix/getopt1.c (getopt_long): Pass additional zero to
2119         _getopt_internal.
2120         (getopt_long_only): Likewise.
2121         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2122         (_getopt_long_only_r): Likewise.
2123         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2124         _getopt_internal_r.
2126 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2128         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2129         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2130         * sysdeps/posix/sysconf.c (__sysconf): Handle
2131         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2132         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2134 2009-02-24  Roland McGrath  <roland@redhat.com>
2136         [BZ #9895]
2137         * README.template: Reworded not to use substituted version number.
2138         Renamed to ...
2139         * README: ... here (no longer generated).
2140         * Makefile (README): Target removed.
2142 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2144         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2145         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2146         instead.
2148         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2150         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2152 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2154         * po/bg.po: Update from translation team.
2156 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2158         * stdlib/monetary.h: Uglify function parameter names.
2159         * sunrpc/rpc/pmap_clnt.h: Likewise.
2160         * sunrpc/rpc/svc.h: Likewise.
2161         * sunrpc/rpc/xdr.h: Likewise.
2162         * sunrpc/rpc/clnt.h: Likewise.
2163         * resolv/netdb.h: Likewise.
2164         * resolv/arpa/nameser.h: Likewise.
2165         * resolv/resolv.h: Likewise.
2166         * argp/argp.h: Likewise.
2167         * locale/langinfo.h: Likewise.
2168         * io/sys/stat.h: Likewise.
2169         * posix/spawn.h: Likewise.
2170         * nis/rpcsvc/nislib.h: Likewise.
2171         * malloc/obstack.h: Likewise.
2172         * sysdeps/ia64/bits/link.h: Likewise.
2173         * sysdeps/i386/bits/link.h: Likewise.
2174         * sysdeps/s390/bits/link.h: Likewise.
2175         * sysdeps/powerpc/bits/link.h: Likewise.
2176         * sysdeps/x86_64/bits/link.h: Likewise.
2177         * sysdeps/sparc/bits/link.h: Likewise.
2178         * sysdeps/sh/bits/link.h: Likewise.
2179         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2180         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2181         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2182         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2184 2008-12-01  Fredrik Unger  <fred@tree.se>
2186         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2187         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2188         _FP_UNPACK_RAW_2, fix up first argument.
2190 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2192         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2193         (GET_NPROCS_PARSER): Change parameters and use next_line.
2194         (__get_nprocs): Rewrite to not use stdio routines.
2195         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2196         Change parameters and use next_line.
2198 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2200         [BZ #5381]
2201         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2202         Change mempool_alloc prototype.
2203         * nscd/mem.c (gc): Don't handle mem_in_flight.
2204         (mempool_alloc): Third parameter now only indicates whether this is the
2205         first call (to allocate data) or not.  If it is, get db rdlock.
2206         Release it on error.  Don't handle mem_in_flight.
2207         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2208         Adjust third parameter of mempool_alloc calls.
2209         Nothing to do here in case mempool_alloc fails.
2210         Avoid local variable shadowing parameter.  No need to get db rdlock
2211         before calling cache_add.
2212         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2213         no mem_in_flight array anymore.
2214         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2215         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2216         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2217         in case mempool_alloc fails. No need to get db rdlock before calling
2218         cache_add.
2219         * nscd/hstcache.c (cache_addhst): Likewise.
2220         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2221         * nscd/servicescache.c (cache_addserv): Likewise.
2222         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2224 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2226         * po/lt.po: Update from translation team.
2228 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2230         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2231         defined, allow additional data to be added using the optional
2232         MORE_ELF_HEADER_DATA macro.
2233         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2234         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2236 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2238         * include/atomic.h: Define catomic_and if not already defined.
2239         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2240         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2242 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2244         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2245         Change all callers.
2246         (_int_realloc): Likewise.  Third argument is now padded size
2247         All _int_* functions are now static.
2249         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2250         * malloc/arena.c: Likewise.
2251         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2252         functions.
2254         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2255         easily.
2257         * malloc/malloc.c: Add branch prediction for use of the hooks.
2259         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2261 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2263         [BZ #7095]
2264         * bits/confname.h: Add SUSv7 macros for getconf environments.
2265         * bits/environments.h: Likewise.
2266         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2267         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2268         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2269         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2270         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2271         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2272         * posix/getconf.c: Likewise.
2273         * posix/sysconf.c: Likewise.
2274         * sysdeps/posix/sysconf.c: Likewise.
2275         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2276         environments.
2278 2009-01-16  Petr Baudis  <pasky@suse.cz>
2280         [BZ #9753]
2281         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2282         even if we currently have zero nscount.
2284 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2286         [BZ #9781]
2287         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2288         the input line is too long.
2290         * po/Makefile (libc.pot): Add f_print as function taking c-format
2291         parameter.
2293         * debug/xtrace.sh: Unify translatable messages.
2294         * elf/ldd.bash.in: Likewise.
2295         * elf/sprof.c: Likewise.
2296         * locale/programs/locale.c: Likewise.
2297         * malloc/memusage.sh: Likewise.
2298         * nss/getent.c: Likewise.
2300 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2302         * debug/pcprofiledump.c (print_version,
2303         argp_program_version_hook): New function.
2304         * elf/ldconfig.c (more_help): New function.
2305         (argp): Use it.
2306         * elf/sln.c (usage): New function.
2307         (main): Support --help and --version.
2308         * malloc/memusagestat.c (print_version): New function.
2309         (argp_program_version_hook): New variable.
2310         * nscd/nscd.c (more_help): New function.
2311         (argp): Use it.
2312         * posix/getconf.c (main): Send --version output to stdout.
2313         Support --help.
2314         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2315         arguments.  All callers changed.
2316         (print_version): New function.
2317         (parseargs): Support --help and --version.
2318         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2319         changed.
2320         (print_version): New function.
2321         (main): Use getopt_long.  Support --help and --version.
2322         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2323         --version.
2325 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2327         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2328         (update_data): Fix handling of wrapping back
2329         to the beginning of the buffer.
2331         [BZ #9823]
2332         * stdio-common/psignal.c (psignal): Fix test for empty string.
2334 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2336         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2337         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2338         move _null_auth to .rodata.
2340         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2341         value of 24.
2343         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2345         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2346         today than when the original code was written.  Use larger
2347         buffers.  This also makes it unnecessary to have stat information,
2348         if this causes extra efforts.
2349         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2350         __alloc_dir.
2352 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2354         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2355         is set.
2356         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2357         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2358         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2359         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2360         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2361         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2363 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2365         * po/ru.po: Update from translation team.
2367 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2369         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2370         Add _tid slot to maintain consistency with kernel.
2372 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2374         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2375         incomplete characters at end of input buffer.
2376         * libio/Makefile (tests): Add tst-fgetwc.
2377         * libio/tst-fgetwc.c: New file.
2378         * libio/tst-fgetwc.input: New file.
2380 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2382         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2384 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2386         [BZ #9793]
2387         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2388         *OUTBUFSTART unless the whole output fit into the buffer.
2389         * iconv/Makefile (tests): Add tst-iconv4.
2390         * iconv/tst-iconv4.c: New file.
2392 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2394         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2395         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2397 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2399         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2400         newer linker scripts.
2402 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2404         [BZ #7040]
2405         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2406         inotify_rm_watch should have type int.
2408 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2410         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2411         Make aligned_restore_vmx a local symbol.
2412         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2413         Likewise.
2415 2009-01-30  Andreas Jaeger  <aj@suse.de>
2417         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2418         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2419         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2420         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2421         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2422         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2423         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2425 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2427         [BZ #9726]
2428         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2429         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2431 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2433         [BZ #9726]
2434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2435         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2437         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2439 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2441         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2442         memcpy instead of memcmp.
2443         (_dl_setup_pointer_guard): Likewise.
2445 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2447         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2448         manipulated brk, use malloc_printerr.
2449         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2450         requests.
2452 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2454         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2455         rindex): For C++ add inlines so that they can be recognized as
2456         builtins.
2457         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2459 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2460             Jakub Jelinek  <jakub@redhat.com>
2462         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2463         * wcsmbs/wchar.h: Likewise.
2465 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2467         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2468         (stackinfo_sub_sp): Define.
2470 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2472         [BZ #9750]
2473         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2474         * include/alloca.h (alloca_account): Define.
2475         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2476         (stackinfo_sub_sp): Define.
2478         * nscd/connections.c (nscd_init): If database file access fails
2479         check whether this is due to permission problems and bail in that
2480         case.
2482         [BZ #9741]
2483         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2484         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2486 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2488         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2489         Add "t" to clobber list.
2490         (INTERNAL_SYSCALL_NCS): Likewise.
2492 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2494         * nss/getent.c (print_networks): Don't print comma between aliases.
2496 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2498         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2500         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2501         the hash table.
2502         * misc/Makefile (tests): Add bug-hsearch1.
2503         * misc/bug-hsearch1.c: New file.
2505 2009-01-22  Roland McGrath  <roland@redhat.com>
2507         * Makeconfig (%.v.i): Strip trailing # comments,
2508         not only whole-line comments.
2510 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2512         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2513         one parameter.  If non-NULL use it to initialize return value.
2514         (_dl_setup_pointer_guard): New function.
2515         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2516         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2517         * elf/rtld.c (security_init): Pass _dl_random to
2518         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2519         pointer_chk_guard.
2520         * elf/dl-sysdep.c (_dl_random): New variable.
2521         (_dl_sysdep_start): Handle AT_RANDOM.
2522         (_dl_show_auxv): Likewise.
2523         * elf/dl-support.c (_dl_random): New variable.
2524         (_dl_aux_init): Handle AT_RANDOM.
2525         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2526         to _dl_setup_stack_chk_guard.
2528         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2530 2009-01-10  Roland McGrath  <roland@redhat.com>
2532         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2534 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2536         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2538         [BZ #9706]
2539         * nss/nss_files/files-parse.c (strtou32): New function.
2540         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2541         across 32-bit and 64-bit platforms.
2542         (INT_FIELD_MAYBE_NULL): Likewise.
2544 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
2546         [BZ #9720]
2547         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2548         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2549         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2550         Likewise.
2552 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
2554         [BZ #697]
2555         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2556         being NULL also if there are no backreferences.
2557         * posix/rxspencer/tests: Add testcases.
2559 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
2561         [BZ #9697]
2562         * posix/bug-regex17.c: Add testcases.
2563         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2564         handling.
2566 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2568         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2569         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2570         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2571         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2572         for elf subdir.
2573         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2574         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2575         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2576         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2577         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2578         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2580 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
2582         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2583         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2584         re_string_skip_chars, re_string_reconstruct): Likewise.
2585         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2587 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
2589         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2590         adjust the buffer alignment.
2592 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2594         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2595         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2596         net/route.h.
2598         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2599         flavor to description only when flavor is not NULL.
2601         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2602         mutex after SIGIO/SIGURG lookup loop.
2604 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2606         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2608 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
2610         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2611         handling.
2613 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
2615         * sysdeps/unix/sysv/linux/kernel-features.h
2616         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2618         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2619         if no output is written.
2621         * version.h: Bump to 2.10 development.
2623         * posix/getconf.c: Update copyright year.
2624         * nss/getent.c: Likewise.
2625         * iconv/iconvconfig.c: Likewise.
2626         * iconv/iconv_prog.c: Likewise.
2627         * elf/ldconfig.c: Likewise.
2628         * catgets/gencat.c: Likewise.
2629         * csu/version.c: Likewise.
2630         * elf/ldd.bash.in: Likewise.
2631         * elf/sprof.c (print_version): Likewise.
2632         * locale/programs/locale.c: Likewise.
2633         * locale/programs/localedef.c: Likewise.
2634         * nscd/nscd.c (print_version): Likewise.
2635         * debug/xtrace.sh: Likewise.
2636         * malloc/memusage.sh: Likewise.
2637         * malloc/mtrace.pl: Likewise.
2638         * debug/catchsegv.sh: Likewise.
2640 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2642         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2643         script.
2645 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2647         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2648         gethostbyname4_r function call succeeded, just leave the loop.
2650         [BZ #9694]
2651         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2652         very end.
2653         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2654         * wctype/Makefile (tests): Add bug-wctypeh.
2655         * wctype/bug-wctypeh.c: New file.
2657         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2658         LOCALDOMAIN is defined.
2659         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2661         * sysdeps/x86_64/bits/select.h: New file.
2663         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2665 2008-12-21  Bruno Haible  <bruno@clisp.org>
2667         [BZ #9677]
2668         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2669         if no output is written.
2671 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2673         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2674         libc internal symbol __dup2 to avoid access through the PLT.
2676 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2678         [BZ #6545]
2679         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2680         available only for __USE_GNU.
2682         * inet/Makefile (tests): Add tst-getni2.
2683         * inet/tst-getni2.c: New file.
2685         [BZ #7080]
2686         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2687         NULL when NI_NAMEREQD is set.
2688         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2689         * inet/Makefile (tests): Add tst-getni1.
2690         * inet/tst-getni1.c: New file.
2692 2008-12-03  Petr Baudis  <pasky@suse.cz>
2694         [BZ #7067]
2695         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2696         instead of prune_lock.
2697         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2698         * nscd/nscd.h (database_dyn): Add prune_run_cache.
2700 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
2702         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2703         use.
2705         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2706         handling.
2708         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2709         after reading name server list.
2711         [BZ #7058]
2712         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2713         handling for host name aliases.
2715 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
2717         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2718         instead of doing things manually.
2720 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
2722         * posix/regex_internal.h (build_wcs_upper_buffer):
2723         Return type is reg_error_t.
2725 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
2727         * posix/globtest.sh: Use mktemp to create temporary file and
2728         directory.
2730         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2731         sets correctly.
2732         (__CPU_CLR_S): Likewise.
2733         (__CPU_ISSET_S): Likewise.
2735 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
2736             Ulrich Drepper  <drepper@redhat.com>
2738         * scripts/firstversion.awk: Use custom comparison function to compare
2739         version numbers.
2740         * scripts/versions.awk: Use sort invocation which can handle
2741         multi-digit sub-version numbers.
2743 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
2745         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2746         * locale/iso-639.def: Add Chhattisgarhi entry.
2748 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
2750         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2751         ESRCH return value.
2752         (_nss_dns_gethostbyname4_r): Likewise.
2753         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2754         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2755         gethostbyname4_r, we don't have a separate IPv6 status, so copy
2756         the no_data variable.
2758         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2759         information at the correct index.
2761         * socket/sys/socket.h: Declare accept4.
2762         * socket/accept4.c: New file.
2763         * sysdeps/unix/sysv/linux/accept4.c: New file.
2764         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2765         * socket/Makefile (routines): Add accept4.
2766         * socket/Versions: Export accept4 with version GLIBC_2.10.
2767         * socket/paccept.c: Removed.
2768         * sysdeps/unix/sysv/linux/paccept.c: Removed.
2769         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2770         * Versions.def: Define GLIBC_2.10 for libc.
2771         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2773         * nscd/connections.c: Use accept4.
2775         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2777 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
2779         * resolv/res_send.c (send_dg): Create sockets with non-blocking
2780         flag already set.
2782         * stdlib/setenv.c (unsetenv): Don't search environment if it does
2783         not exist.
2784         * stdlib/Makefile (tests): Add tst-unsetenv1.
2785         * stdlib/tst-unsetenv1.c: New file.
2787 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
2789         * login/utmp_file.c (file_writable): New variable.
2790         (setutent_file): Don't try to open file for writing.
2791         (pututline_file): Before writing, make descriptor writable if
2792         necessary.
2794 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
2796         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2797         to IPv4 or IPv6 if an interface has been found.
2799 2008-11-26  Roland McGrath  <roland@redhat.com>
2801         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2802         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2804         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2805         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2806         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2808         * elf/elf.h (NT_386_IOPERM): New macro.
2809         (NT_PPC_VSX): New macro.
2811 2008-11-25  Roland McGrath  <roland@redhat.com>
2813         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2814         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2815         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2816         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2817         Subdirectories moved to ports repository.
2818         * configure.in (base_machine): Remove alpha case.
2820 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
2822         * sysdeps/mach/strerror_l.c: New file.
2824 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
2826         [BZ #6411]
2827         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2828         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2829         magic numbers.
2830         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2831         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2832         (relax_fenv_state): Same as above.
2833         (FPSCR_29): Reserve bit in ISA 2.05.
2834         (FPSCR_NI): Provide define for compat.
2835         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2836         magic numbers.
2837         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2838         magic numbers.
2839         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
2840         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2841         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2842         access to hwcap to account for hwcap size increase to uint64_t.
2843         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2844         Likewise.
2845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2846         (*setcontext): Likewise.
2847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2848         New file.
2849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2850         New file.
2851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2852         (*setcontext): dynamically select mtfsf insn based on
2853         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2854         increase to uint64_t.
2855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2856         (*swapcontext): dynamically select mtfsf insn based on
2857         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
2858         increase to uint64_t.
2859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2860         New file.
2861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2862         New file.
2863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2864         (*setcontext): dynamically select mtfsf insn based on
2865         PPC_FEATURE_HAS_DFP.
2866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2867         (*swapcontext): dynamically select mtfsf insn based on
2868         PPC_FEATURE_HAS_DFP.
2870 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
2872         * version.h: Bump for 2.9 release.
2873         * include/features.h (__GLIBC_MINOR__): Bump to 9.
2875         [BZ #7029]
2876         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2877         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2878         all the rounding.
2880 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2882         [BZ #7009]
2883         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2884         unknown request types for now.
2886 2008-11-11  Roland McGrath  <roland@redhat.com>
2888         * sysdeps/x86_64/configure: New file.
2890         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2891         * configure: Regenerated.
2893 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2895         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2896         correct instruction to remove the stack frame.
2898 2008-11-03  Michael Matz  <matz@suse.de>
2900         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2901         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2903 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2905         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2906         Remove.
2908         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2909         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2910         of the thread variable instead of void *.
2911         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2912         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2913         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2914         __libc_tsd_define arguments.
2915         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2916         __libc_tsd_address arguments.  Remove union hack.
2917         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2918         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2919         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2920         Adjust __libc_tsd_{set,get} arguments.
2921         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2922         __libc_tsd_define arguments.
2923         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2924         arguments.
2925         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2926         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2927         (LOCALE): Adjust __libc_tsd_define arguments.
2928         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2929         arguments.
2930         (LOCALE): Adjust __libc_tsd_define arguments.
2931         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2932         arguments.
2933         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2934         arguments.
2936 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2938         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2939         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2941 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2943         [BZ #6966]
2944         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2946 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2947             Ulrich Drepper  <drepper@redhat.com>
2949         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2950         definition for GCC 3.1 and later.
2952 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2954         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2955         refetch dtv, as it might have changed.
2956         * elf/Makefile: Add rules to build and run tst-tls18.
2957         * elf/tst-tls18.c: New test.
2958         * elf/tst-tlsmod18a.c: New file.
2960 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2962         [BZ #6875]
2963         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2965 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2967         [BZ #6867]
2968         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2970         [BZ #6919]
2971         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2972         Fix length of copy operation.
2974 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2976         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2977         and fix its calling convention.
2979 2008-10-07  Andreas Schwab  <schwab@suse.de>
2981         [BZ #6942]
2982         * resolv/res_send.c (send_vc): Fix last change.
2983         (send_dg): Align here as well.
2985 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2987         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2988         return value in case rlimit is RLIM_INFINITY.
2990         [BZ #6947]
2991         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2992         for UL_SETFSIZE.
2993         * resource/Makefile (tests): Add bug-ulimit1.
2994         * resource/bug-ulimit1.c: New file.
2996         [BZ #6974]
2997         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2998         without dot.  Properly terminate the string with a null byte.
2999         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3001         [BZ #6980]
3002         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3003         negative sizees.
3004         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3005         negative __size.
3007         [BZ #6995]
3008         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3010 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3012         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3013         abort if there is no initgroups_dyn function.
3015         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3016         result if any of the queries really provided an answer.
3018 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3020         * po/lt.po: Update from translation team.
3022 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3024         * po/id.po: Update from translation team.
3026 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3028         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3029         Fix tests for existence of second reply.
3031 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3033         * po/id.po: New file.
3034         Contributed by the Indonesian translation team.
3036 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3038         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3039         initialization.
3041 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3043         * elf/Makefile: Add rules to build and run tst-tls17.
3044         * elf/tst-tls17.c: New test.
3045         * elf/tst-tlsmod17a.c: New file.
3046         * elf/tst-tlsmod17b.c: Likewise.
3048 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3050         * stdlib/divmod_1.c: Use correct type for dummy variable.
3051         * stdlib/mod_1.c: Likewise.
3053 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3055         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3057 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3059         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3060         __nonnull order for C++.
3061         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3062         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3064 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3066         * stdlib/longlong.h: Update from GCC.
3068 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3069             David S. Miller  <davem@davemloft.net>
3071         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3072         make sure any registers used with 64-bit 'branch-on-register'
3073         instructions have their top 32-bits clear.
3074         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3075         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3077 2008-09-18  Andreas Schwab  <schwab@suse.de>
3079         [BZ #6942]
3080         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3081         Properly handle partial reads.
3083 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3085         * elf/elf.h (STO_MIPS_PLT): New.
3086         (R_MIPS_COPY): New.
3087         (R_MIPS_JUMP_SLOT): New.
3088         (R_MIPS_NUM): Redefine to 128.
3089         (DT_MIPS_PLTGOT): New.
3090         (DT_MIPS_RWPLT): New.
3091         (DT_MIPS_NUM): Redefine to 0x35.
3093 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3095         * timezone/africa: Update from tzdata2008f.
3096         * timezone/asia: Likewise.
3097         * timezone/australasia: Likewise.
3098         * timezone/europe: Likewise.
3099         * timezone/leapseconds: Likewise.
3100         * timezone/northamerica: Likewise.
3101         * timezone/southamerica: Likewise.
3102         * timezone/zone.tab: Likewise.
3104 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3106         * nscd/connections.c: Disable use of paccept for now.
3108 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3110         * socket/Versions: Remove paccept export for GLIBC_2.9.
3111         * socket/Makefile (routines): Remove paccept.
3112         * socket/sys/socket.h: Remove paccept declaration.
3114         * po/sv.po: Update from translation team.
3116 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3118         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3119         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3121 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3123         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3124         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3126 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3128         * sunrpc/rpc/svc.h: Declare svcfd_create.
3129         Patch by Michael Solberg <msolberg@redhat.com>.
3131 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3132             Ulrich Drepper  <drepper@redhat.com>
3134         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3135         _int_valloc fails.
3136         (public_pVALLOc): Likewise.
3138 2008-09-02  Andreas Jaeger  <aj@suse.de>
3140         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3141         commit.
3143 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3145         [BZ #6860]
3146         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3148 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3150         * Makefile (check-data): Check data directory in add-ons.
3151         * elf/Makefile (check-data): Likewise.
3153 2008-08-18  Roland McGrath  <roland@redhat.com>
3155         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3156         * configure: Regenerated.
3157         * config.make.in (cflags-cpu): New substituted variable.
3158         (with-cpu): Variable removed.
3159         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3161 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3163         [BZ #6845]
3164         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3165         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3166         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3167         redundant.  Functions which call floating point assembler operations
3168         should go into a sysdeps powerpc/fpu directory.
3170 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3172         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3173         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3175 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3177         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3179         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3180         change related to AT_EXECFN.  We cannot use that string.
3181         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3182         _dl_execfn member.
3183         * elf/dl-support.c: Remove _dl_execfn variable.
3184         (_dl_aux_init): Remove handling of AT_EXECFN.
3185         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3186         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3188 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3190         [BZ #6544]
3191         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3192         byte gets added to writes and seeks from the end use the length of
3193         the buffer and not the currently terminating NUL byte.
3195         [BZ #6634]
3196         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3197         Set to true if locking failed.
3198         (getutid_r_file): Adjust caller.
3199         (pututline_file): Likewise.  Return NULL in this case.
3200         Patch mostly by halesh.s@gmail.com.
3202 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3204         [BZ #6589]
3205         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3206         Define.
3207         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3209 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3211         [BZ #6839]
3212         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3213         macro since it is now available in elf/dynamic-link.h.
3215 2008-08-12  Roland McGrath  <roland@frob.com>
3217         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3218         in case used outside of libc.
3219         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3221 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3223         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3224         directly instead of going through dn_comp.
3226 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3228         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3229         Fix asm constraints.
3231 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3233         [BZ #6790]
3234         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3235         (IPV6_PMTUDISC_PROBE): Likewise.
3237 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3239         [BZ #6791]
3240         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3242 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3243             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3245         [BZ #6817]
3246         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3247         Added the members 'vsx' and 'arch_2_06'.
3248         (_dl_powerpc_platforms): Add the member 'power7'.
3249         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3250         to reflect the changes required by VSX and ISA 2.06.
3251         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3252         'power7'.
3253         Defined PPC_PLATFORM_POWER7.
3254         (_dl_string_platform): Add support for POWER7.
3255         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3256         capability and ISA 2.06.
3258 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3260         [BZ #6824]
3261         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3262         macro to detect use of 128 bit long double.
3263         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3265 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3267         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3269         [BZ #5794]
3270         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3271         parameters.
3272         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3273         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3275 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3277         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3278         guaranteed to be large enough to read inotify event.  Ignore
3279         EAGAIN error.  Better error message.  Add branch predicition.
3280         (main_loop_epoll): Likewise.
3282 2008-08-02  Roland McGrath  <roland@frob.com>
3284         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3285         Add memory clobbers.
3287 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3289         * manual/arith.texi: Avoid @strong{Note:}.
3290         * manual/creature.texi: Likewise.
3291         * manual/filesys.texi: Likewise.
3292         * manual/math.texi: Likewise.
3293         * manual/memory.texi: Likewise.
3294         * manual/resource.texi: Likewise.
3295         * manual/syslog.texi: Likewise.
3296         * manual/time.texi: Likewise.
3298         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3299         to prevent warning.
3301 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3303         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3304         new epoll_create1 interface.
3305         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3306         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3307         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3309         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3310         (NS_GET32): Likewise.
3312         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3313         syscalls, too.
3315         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3316         use the AT_EXECFN value if it is no absolute path.
3317         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3318         __ASSUME_AT_EXECFN.
3320         * Versions.def: Add GLIBC_2.9 to libresolv.
3321         * include/resolv.h: Remove hidden proto declarations for __ns_*
3322         functions.  Add them for __dn_count_labels and __p_secstodate.
3323         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3324         Define ns_msg_getflags macro here.
3325         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3326         and __p_secstodate.
3327         * resolv/Versions: Export functions from <arpa/nameser.h> from
3328         libresolv in version GLIBC_2.9.
3329         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3330         hidden definitions.
3331         * resolv/ns_netint.c: Likewise.
3332         * resolv/ns_parse.c: Likewise.
3333         * resolv/ns_print.c: Likewise.
3334         * resolv/ns_samedomain.c: Likewise.
3335         * resolv/ns_ttl.c: Likewise.
3336         * resolv/arpa/nameser_compat.h: Likewise.
3337         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3338         function calls.
3339         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3340         instead of ns_get16.
3341         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3342         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3343         (gaih_getanswer_slice): Likewise.
3344         * resolv/Makefile (libresolv-routines): Add ns_date.
3345         * resolv/ns_date.c: New file.
3347         * elf/Makefile (check-localplt.out): Also check libresolv and
3348         libcrypt.
3350 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3352         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3353         __ASSUME_O_CLOEXEC.
3355 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3357         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3358         buffer passed to NSS functions.
3360         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3362         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3363         Define.
3365         * misc/syslog.c (openlog_internal): Fix compile problem.
3367 2008-07-28  Roland McGrath  <roland@redhat.com>
3369         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3371 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3373         * io/ftw.c (add_object): Remove inline to avoid warning.
3375         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3377         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3378         Use it instead of locally defined resplen2 variable.
3379         (res_nsend): Adjust for __libc_res_nsend interface change.
3380         (send_vc): Initialize *resplen2 if necessary.  Read length of
3381         package into an appropriately aligned variable.  Store converted length
3382         in new variable and use it appropriately.
3383         Add branch prediction help.
3384         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3385         and pass it on to __libc_res_nsend.  Adjust all callers.
3386         (__libc_res_nsearch): Likewise.
3387         (__libc_res_nqeurydomain): Likewise.
3388         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3389         change.
3390         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3391         Define resplen2 variable and pass it to __libc_res_nsearch and then
3392         to gaih_getanswer.
3393         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3394         Add branch prediction.
3395         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3396         (gaih_getanswer): Don't decode second slice if first one failed due
3397         to a too small buffer.  Don't let not found status of second
3398         decoder shadow results of the first.
3399         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3400         and __libc_res_nquery interface changes
3401         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3402         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3403         __libc_res_nsearch, and __libc_res_nsend.
3404         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3405         change.
3406         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3407         __libc_res_nsearch interface changes.
3409 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3411         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3413         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3414         file descriptors with close-on-exec set.
3415         (exec_comm_child): Fix the case where the write end of the pipe is
3416         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3418         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3419         * io/pipe2.c: Likewise.
3420         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3421         instead of __ASSUME_PACCEPT.
3422         * include/unistd.h: Declare __have_pipe2.
3423         * libio/iopopen.c: Implement "e" flag.
3424         * libio/Makefile (tests): Add tst-popen1.
3425         * libio/tst-popen1.c: New file.
3427         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3428         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3430 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3432         [BZ #6771]
3433         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3434         success call of _IO_SEEKOFF or calls which failed because the
3435         descriptor is for a pipe.
3437         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3438         magic number.
3440         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3442         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3443         F_SETFD use if we know fopen set the flag.
3445         * login/utmp_file.c (setutent_file): Minor optimization in case
3446         O_CLOEXEC is available.
3448 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3450         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3451         * elf/Makefile: Use pie-ccflag variable.
3452         * nscd/Makefile: Likewise.
3453         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3455 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3457         [BZ #6724]
3458         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3459         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3460         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3461         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3462         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3463         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3464         utmp32, utmpx32 and login32.
3465         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3466         versions of struct utmp functions to libc and libutil.
3467         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3468         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3469         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3470         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3471         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3472         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3473         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3474         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3475         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3476         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3477         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3478         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3479         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3480         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3481         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3482         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3483         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3484         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3485         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3486         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3487         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3488         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3490 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3492         * scripts/gen-as-const.awk: Generate more widely usable code by
3493         using 64-bit arithmetic.
3495         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3496         the same treatment as narrow output code in last patch.
3498         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3500         [BZ #6763]
3501         * elf/dl-load.c (local_strdup): Remove inline.
3502         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3503         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3504         part of the object.
3506         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3508 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3510         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3511         the new syscalls, too.
3513         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3514         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3516         [BZ #6698]
3517         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3518         parameter for end of buffer.  If temporary copy is too large use
3519         malloc.
3520         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3521         interface change.
3522         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3523         string rewrite when allocating buffer.
3525         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3526         syscalls, too.
3528         * nscd/connections.c (nscd_init): Clean up fcntl call.
3530         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3531         SOCK_NONBLOCK if possible.
3533         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3534         SOCK_CLOEXEC if available.
3536         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3537         __libc_clntudp_bufcreate_internal.
3538         * include/sys/socket.h: Declare __have_sock_cloexec.
3539         * socket/Makefile (aux): Add have_sock_cloexec.
3540         * socket/have_sock_cloexec.c: New file.
3541         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3542         __libc_clntudp_bufcreate.
3543         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3544         which takes an additional parameter.  Create socket with non-blocking
3545         mode and close-on-exec flag set, if wanted.
3546         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3547         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3548         instead of clntudp_create.  The socket has already the close-on-exec
3549         flag set if SOCK_CLOEXEC is defined.
3551 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
3553         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3554         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3555         appropriate.
3556         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3557         non-blocking mode by using socket, paccept, and inotify_init1.
3559         * Versions.def (glibc): Add GLIBC_2.9.
3560         * io/Makefile (routines): Add dup3 and pipe2.
3561         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3562         * io/dup3.c: New file.
3563         * io/pipe2.c: New file.
3564         * posix/unistd.h: Declare dup3 and pipe2.
3565         * socket/Makefile (routines): Add paccept.
3566         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3567         * socket/paccept.c: New file.
3568         * socket/sys/socket.h: Declare paccept.
3569         * sysdeps/unix/syscalls.list: Add entry for dup3.
3570         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3571         epoll_create2 and inotify_init1.
3572         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3573         * sysdeps/unix/sysv/linux/paccept.c: New file.
3574         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3575         possible.
3576         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3577         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3578         inotify_init1, and pipe2 entries.
3579         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3580         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3581         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3582         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3583         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3584         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3585         SOCK_NONBLOCK.
3586         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3587         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3588         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3589         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3590         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3591         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3592         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3593         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3594         EPOLL_NONBLOCK.  Declare epoll_create2.
3595         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3596         EFD_NONBLOCK.
3597         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3598         IN_NONBLOCK.  Declare inotify_init1.
3599         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3600         SFD_NONBLOCK.
3601         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3602         TFD_NONBLOCK.
3604         * elf/elf.h: Define AT_EXECFN.
3605         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3606         LD_ORIGIN_PATH.
3607         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3608         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
3609         if __ASSUME_AT_EXECFN is defined.
3610         (_dl_aux_init): Handle AT_EXECFN.
3611         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3612         for 2.6.27 and up.
3613         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3614         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3615         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3616         _dl_execfn if available and avoid compatibility code if
3617         __ASSUME_AT_EXECFN is defined.
3619         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3620         _dl_discover_osversion only for older kernels.
3622 2008-07-22  Roland McGrath  <roland@frob.com>
3624         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3626 2008-07-21  Roland McGrath  <roland@frob.com>
3628         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3629         returned too much data out of line.
3631 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3633         * locale/setlocale.c (setname): Remove inline to avoid compiler
3634         warning.
3636         [BZ #6712]
3637         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3639 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3641         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3642         doesn't manage to write anything, fail.
3644         * malloc/hooks.c (__malloc_check_init): Remove printf.
3646 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3648         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3650 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3652         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3653         from inotify.
3654         (main_loop_epoll): Likewise.
3656 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3658         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3660         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3661         if DEBUG is defined.
3663         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3664         query.  Adjust buffer size computation for padding.
3666 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3668         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3669         * stdio-common/tst-setvbuf1.c: New file.
3670         * stdio-common/tst-setvbuf1.expect: New file.
3672         [BZ #6719]
3673         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3674         when selecting fully-buffered stream.
3675         Patch by Wang Xin <wxinee@gmail.com>.
3677 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3679         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3680         (__open_2): New function.
3681         (__open64_2): New alias to __open_2.
3682         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3683         (__openat_2): New function.
3684         (__openat64_2): New alias to __openat_2.
3686 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3688         [BZ #6723]
3689         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3691 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3693         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3694         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3695         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3696         __hurd_dfail.
3697         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3698         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3699         * sysdeps/mach/hurd/send.c (__send): Likewise.
3700         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3701         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3703 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3705         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3706         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3707         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3708         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3709         * hurd/get-host.c (_hurd_get_host_config): Likewise.
3710         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3712 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
3714         [BZ #6657]
3715         * time/strptime_l.c: Don't clear s.era_cnt after successful match
3716         of %EY.
3717         Patch by Petr Baudis.
3719 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
3721         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3722         Patch by Peter Jones <pjones@redhat.com>.
3724 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3726         [BZ #6654]
3727         * stdlib/canonicalize.c (__realpath): readlink can write too much
3728         into the buffer on platforms without PATH_MAX.
3730 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
3732         [BZ #6653]
3733         * posix/tst-regex.c (main): Rename to...
3734         (do_test): ... this. Remove cmdline option processing.
3735         (TIMEOUT): Define.
3736         (TEST_FUNCTION): Define.
3737         (CMDLINE_OPTIONS): Define.
3739 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3741         [BZ #5210]
3742         * configure.in: Add -Werror to -fstack-protector test to catch
3743         unsupported architectures.
3744         Patch by Gilles Esponasse <g.esp@free.fr>.
3746 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
3748         * stdlib/tst-setcontext.c: Set back_in_main before exit if
3749         getcontext returns ENOSYS.
3751 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
3753         * nscd/connections.c (main_loop_poll): Fix test for read error.
3754         (main_loop_epoll): Likewise.
3756 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
3758         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3759         better place so it is not called when nscd is used.
3761         * nscd/connections.c: Also recognize and handle changes to the
3762         resolver configuration file.
3764 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3766         * time/strftime.c: Pass reference to tzset_called around to handle
3767         recursive calls.
3769         [BZ #6612]
3770         * time/strftime.c (__strftime_internal): Call tzset() only
3771         when printing timezone-dependent values.
3772         Based on a patch by Petr Baudis <pasky@suse.cz>.
3774         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3775         unconditionally use second gaih_getanswer_slice result.
3777         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3778         (getaddrinfo): RES must always be non-NULL.
3780 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3782         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3783         cr[34] registers.
3784         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3785         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3786         Likewise.
3787         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3788         register.
3790 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3792         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3793         fields.
3794         * nscd/connections.c (inotify_fd): New variable.
3795         (nscd_init): Try to open an inotify descriptor.
3796         If successful, watch files for databases using inotify instead of
3797         having prune threads stat the files.
3798         (nscd_run_prune): Recognize clear_cache flag being set and call
3799         prune_cache appropriately.
3800         (main_loop_poll): Add inotify descriptor to wait set and handle the
3801         reported changes.
3802         (main_loop_epoll): Likewise.
3803         * nscd/cache.c (prune_cache): Don't stat files for databases if
3804         inotify is used.
3805         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3806         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3808         * nscd/grpcache.c (cache_addgr): Correctly compute size of
3809         fixed-size portion of the record.
3810         * nscd/servicescache.c (cache_addserv): Likewise.
3811         * nscd/pwdcache.c (cache_addpw): Likewise.
3812         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3814 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
3816         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3817         out we don't use uninitialized memory.
3819         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3820         the client.
3822 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
3824         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3825         ignore T_DNAME messages.
3826         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3828 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
3830         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3831         Avoid segfault if first GETC returns eof/'\0'/'\n'.
3833 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
3835         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3836         instead of portstr to nscd_getserv_r.  Patch by
3837         Roman Kagan <rkagan@mail.ru>.
3839 2008-05-26  Jim Meyering  <meyering@redhat.com>
3841         Remove more useless "if" tests before "free".
3842         * include/inline-hashtab.h (htab_delete): Likewise.
3843         * libio/freopen.c (freopen): Likewise.
3844         * libio/freopen64.c (freopen64): Likewise.
3845         * locale/programs/ld-collate.c (collate_read): Likewise.
3846         * misc/fstab.c (libc_freeres_fn): Likewise.
3847         * posix/glob.c (globfree): Likewise.
3849 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3851         * string/Makefile (strop-tests): Add memmem.
3852         * string/test-memmem.c: New file.
3853         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3854         (test_init): Size buf1 according to BUF1PAGES.
3856 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
3858         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3859         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3860         (CFLAGS-scanf17.c): New.
3861         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3862         * stdio-common/scanf15.c (main): Likewise.
3863         * stdio-common/scanf16.c: New file.
3864         * stdio-common/scanf17.c: New file.
3866 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3868         * resolv/res_send.c (send_dg): If we already have one of two
3869         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3870         use the one answer insted of failing.
3872 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
3874         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3875         being executed on PowerPC as the expected result exceeds IBM
3876         long double 128 __LDBL_MAX__.
3878 2008-05-21  Roland McGrath  <roland@redhat.com>
3880         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3882         * Makefile (check-data): Use $(abi-name) before other guesses.
3883         Look in $(add-ons) dirs before scripts/data/.
3884         * elf/Makefile (check-data): Likewise.
3886         * scripts/soversions.awk: Grok ABI line.
3887         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3888         Emit definition for abi-name variable.
3890 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3892         * string/endian.h: Define new fixed-size hto* and *toh macros only
3893         if [__USE_BSD].
3895         * iconvdata/Depend: Add localedata.
3897 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3899         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3901 2008-05-08  David S. Miller  <davem@davemloft.net>
3903         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3904         HIDDEN_JUMPTARGET.
3905         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3906         (__SYSCALL_CLOBBERS): Remove %g* registers.
3907         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3908         (__SYSCALL_CLOBBERS): Likewise.
3909         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3910         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3912 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3914         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3915         (CALL_ERRNO_LOCATION): Define.
3916         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3917         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3918         (CALL_ERRNO_LOCATION): Define.
3919         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3920         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3921         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3923 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3925         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3926         variable.
3928 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3930         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3931         (FIRST_FRAME_POINTER): Define.
3933 2008-05-09  David S. Miller  <davem@davemloft.net>
3935         * sysdeps/sparc/sparc64/backtrace.c: New file.
3937 2008-05-14  David S. Miller  <davem@davemloft.net>
3939         * sysdeps/sparc/machine-gmon.h: New file.
3940         * sysdeps/sparc/sparc-mcount.S: Likewise.
3941         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3942         sysdep_routines in gmon directory.
3944 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3946         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3948 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3950         * resolv/res_query.c (__libc_res_nquery): In case one of two
3951         answer was too short don't try to read that answer's header.
3953         * resolv/res_send.c (send_dg): In case of timeout and there are
3954         two queries and one has been answered, return value indicating
3955         success.
3957 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3959         * nscd/cache.c (cache_add): Take additional parameter specifying
3960         whether this is in response of a cache refill.  Check alignment
3961         of package data.  Revamp waking of pruning thread.
3962         (prune_cache): Small optimization.
3963         * nscd/nscd.h: Adjust cache_add prototypes.
3964         * nscd/aicache.c: Adjust cache_add calls.
3965         * nscd/grpcache.c: Likewise.
3966         * nscd/hstcache.c: Likewise.
3967         * nscd/initgrcache.c: Likewise.
3968         * nscd/pwdcache.c: Likewise.
3969         * nscd/servicescache.c: Likewise.
3970         * nscd/connections.c (restart): Really disable cache use before
3971         exec attempt.  If it fails, reenable cache.
3972         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3973         time to max to be able to notice concurrent cache additions.  Unlock
3974         prune_lock while performing gc.  Afterwards compute wakeup time with
3975         current wakeup_time value in mind.
3977 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3979         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3981         * nscd/mem.c (gc): Correctly determine highest used array element
3982         in mark.
3984         * nscd/mem.c (markrange): Add assert to check entries are all
3985         aligned.  Small cleanup in bitmap use.
3987         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3988         blockoff of type nscd_ssize_t.
3989         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3990         (mempoll_alloc): Record block offset and not address.
3992         * nscd/mem.c (gc): Fix test for stack overuse.
3994         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3995         more asserts.
3997         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3998         entry is available, believe it.
4000         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4001         no answers return NSS_STATUS_NOTFOUND.
4002         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4003         buffer does not have any content.
4005 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4007         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4009         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4010         lookup, don't assign canon unconditionally.
4012 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4014         * string/Makefile (distribute): Add str-two-way.h.
4016 2008-03-29  Eric Blake  <ebb9@byu.net>
4018         Rewrite string searches to O(n) rather than O(n^2).
4019         * string/str-two-way.h: New file.  For linear fixed-allocation
4020         string searching.
4021         * string/memmem.c: New implementation.
4022         * string/strstr.c: New implementation.
4023         * string/strcasestr.c: New implementation.
4025 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4027         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4028         opr.ctx_type.
4029         (calc_first): Initialize constraint field.
4030         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4031         Use search_duplicated_node to avoid loops.  Fix grammar.
4032         (duplicate_node): Merge constraint field for all node types.
4033         (calc_eclosure_iter): Look at constraint field for all node types.
4034         * posix/regex_internal.c (create_cd_newstate): Don't look at
4035         create_cd_newstate.
4037 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4039         [BZ #6428]
4040         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4042         [BZ #6442]
4043         * string/endian.h: Add macros for fixed-size endian conversion.
4044         * bits/byteswap.h: Allow inclusion from <endian.h>.
4045         * sysdeps/i386/bits/byteswap.h: Likewise.
4046         * sysdeps/ia64/bits/byteswap.h: Likewise.
4047         * sysdeps/s390/bits/byteswap.h: Likewise.
4048         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4049         * string/Makefile (tests): Add tst-endian.
4050         * string/tst-endian.c: New file.
4052         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4053         Patch by Reuben Thomas.
4055 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4057         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4059 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4061         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4063         [BZ #6461]
4064         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4065         Add missing braces.
4066         (BODY for __gconv_transform_internal_ascii): Likewise.
4068         [BZ #6472]
4069         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4070         to be treated like link-local addresses.
4071         (match_prefix): Don't treat IPv4 loopback address special when
4072         converting to v4 mapped addressed.
4074         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4075         if necessary.
4076         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4077         * posix/tst-rfc3484-2.c: Likewise.
4078         * posix/tst-rfc3484-3.c: Likewise.
4080         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4081         and SCTP.
4083         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4085         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4087         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4089 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4091         * po/lt.po: New file.  From Lituanian translation team.
4093 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4095         Introduce TLS descriptors for i386 and x86_64.
4096         * include/inline-hashtab.h: New file, copied from 2005's
4097         libiberty, with fix for memory leak imported afterwards by
4098         Glauber de Oliveira Costa.
4099         * elf/tlsdeschtab.h: New file.
4100         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4101         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4102         (CHECK_STATIC_TLS): Move to...
4103         * elf/dynamic-link.h: ... this file.
4104         (TRY_STATIC_TLS): New macro.
4105         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4106         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4107         R_386_TLS_DESC): Define.
4108         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4109         binutils.
4110         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4111         R_X86_64_TLSDESC): Define.
4112         (R_386_NUM, R_X86_64_NUM): Adjust.
4113         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4114         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4115         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4116         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4117         release tlsdesc_table.
4118         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4119         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4120         (elf_machine_rel): Handle R_386_TLS_DESC.
4121         (elf_machine_rela): Likewise.
4122         (elf_machine_lazy_rel): Likewise.
4123         (elf_machine_lazy_rela): Likewise.
4124         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4125         * sysdeps/i386/dl-tlsdesc.S: New file.
4126         * sysdeps/i386/dl-tlsdesc.h: New file.
4127         * sysdeps/i386/tlsdesc.c: New file.
4128         * sysdeps/i386/tlsdesc.sym: New file.
4129         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4130         tlsdesc_table.
4131         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4132         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4133         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4134         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4135         release tlsdesc_table.
4136         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4137         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4138         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4139         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4140         (elf_machine_rela): Likewise.
4141         (elf_machine_lazy_rel): Likewise.
4142         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4143         (__tls_get_addr): Do not declare for non-shared compiles.
4144         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4145         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4146         * sysdeps/x86_64/tlsdesc.c: New file.
4147         * sysdeps/x86_64/tlsdesc.sym: New file.
4148         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4149         tlsdesc_table for both 32- and 64-bit structs.
4151 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4153         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4154         its own function.  This reduces the frame setup costs and more.
4156 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4158         [BZ #3406]
4159         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4160         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4162 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4164         * io/openat.c (__openat_2): Also pass fd to __openat.
4165         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4166         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4168         * string/tester.c (test_memcmp): Add a few more tests.
4169         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4171 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4173         * nscd/cache.c (cache_add): Before returning with failure and this
4174         is the first use of the record, mark it as unusable.
4175         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4176         reporting a failure.
4177         * nscd/grpcache.c: Likewise
4178         * nscd/hstcache.c: Likewise.
4179         * nscd/initgrcache.c: Likewise.
4180         * nscd/pwdcache.c: Likewise.
4181         * nscd/servicescache.c: Likewise.
4183 2008-05-10  Roland McGrath  <roland@redhat.com>
4185         [BZ #6505]
4186         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4188 2008-05-08  David S. Miller  <davem@davemloft.net>
4190         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4192         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4193         (__ieee754_y0l): Likewise.
4194         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4195         (__ieee754_y1l): Likewise.
4196         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4197         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4198         frexpl and ldexpl.  math_private.h provides them and the latter
4199         is not even used.
4200         (__log1pl): Use __frexpl.
4202 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4204         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4205         prototypes.
4206         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4207         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4208         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4209         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4210         af==AF_UNSPEC.
4211         (_nss_nis_gethostbyname4_r): New function.
4212         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4213         Change to also handle af==AF_UNSPEC.
4214         (get_tablename): New function.  Use it to avoid duplication.
4215         (_nss_nisplus_gethostbyname4_r): New function.
4216         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4217         available.
4218         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4219         * nss/nss.h: Define struct gaih_addrtuple.
4220         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4221         af==AF_UNSPEC.
4222         (_nss_files_gethostbyname4_r): New function.
4223         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4224         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4225         calls.
4226         * resolv/res_query.c (__libc_res_nquery): Take two additional
4227         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4228         look up IPv4 and IPv6.
4229         Change all callers.
4230         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4231         for an additional query and answer buffer.  Pass to send_vc and
4232         send_dg.
4233         (send_vc): Send possibly two requests and receive two answers.
4234         (send_dg): Likewise.
4235         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4236         __libc_res_nquery.
4237         (_nss_dns_gethostbyname4_r): New function.
4238         (gaih_getanswer_slice): Likewise.
4239         (gaih_getanswer): Likewise.
4240         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4241         __libc_res_nquery call.
4242         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4243         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4244         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4245         available.
4247 2008-05-05  David S. Miller  <davem@davemloft.net>
4249         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4250         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4252 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4254         Fix termios bit macros.
4255         Move *DLY definitions where they belong, in termios.h.
4256         Add *[0-3] definitions.
4257         Fixes confusion between VT and FF.
4258         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4259         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4260         are already defined to avoid collision with termios.h.
4261         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4262         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4263         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4264         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4265         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4266         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4267         VTDLY, VT0, VT1): New macros.
4268         [__USE_GNU] (OLCUC): Change value of macro.
4269         [__USE_XOPEN] (OFILL): New macro.
4270         [__USE_BSD] (CRTSCTS): Change value.
4271         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4272         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4273         (B7200, B14400, B28800, B76800): New macros.
4275 2008-05-01  David S. Miller  <davem@davemloft.net>
4277         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4278         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4279         (gen-as-const-headers): Add it.
4280         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4281         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4282         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4283         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4285         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4286         six system call parameters.
4287         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4289 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4291         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4292         RUSAGE_LWP.
4293         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4294         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4296 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4298         * stdlib/tst-setcontext.c: Include unistd.h.
4300 2008-04-25  David S. Miller  <davem@davemloft.net>
4302         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4303         Pass "union semun" properly in to sys_ipc, it must be passed
4304         by value, not by reference.
4306 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4308         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4309         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4310         * nscd/connections.c (mem_in_flight): Likewise.
4312         * nscd/nscd.h (dbs): Make hidden.
4314         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4315         Avoid returning -1, return 0 instead.
4317 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4319         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4321 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4323         [BZ #5209]
4324         * sysdeps/unix/sysv/linux/times.c: New file.
4326         [BZ #5381]
4327         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4328         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4329         prototype.
4330         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4331         appropriate mem_in_flight element.
4332         (gc): Take allocations which have not yet been committed to the
4333         database into account.
4334         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4335         Reset mem_in_flight before returning.
4336         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4337         cue it up in mem_in_flight_list.
4338         * nscd/aicache.c: Adjust mempool_alloc call.
4339         * nscd/grpcache.c: Likewise.
4340         * nscd/hstcache.c: Likewise.
4341         * nscd/initgrcache.c: Likewise.
4342         * nscd/pwdcache.c: Likewise.
4343         * nscd/servicescache.c: Likewise.
4344         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4345         of -fpie.
4347         * nscd/connections.c (handle_request): Provide better error message
4348         in case SELinux forbids the service.
4350         * version.h (VERSION): Bump to 2.8.90.
4352 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4354         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4356 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4358         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4359         Also use for 32-bit.
4360         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4361         __nextafter instead of nextafter to avoid local PLT.
4362         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4363         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4365         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4367         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4368         __fe_nomask_env.
4369         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4370         <fenv_libc.h> instead of <fenv.h>.
4371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4374         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4376         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4377         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4378         function from fegetexcept and make old name weak alias.
4379         * include/fenv.h: Declare __fegetexcept.
4380         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4381         fegetexcept.
4382         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4383         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4384         to fetestexcept.
4385         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4386         instead of frexpl to avoid local PLT.
4387         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4388         ilogbl to avoid local PLT.
4389         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4390         instead of ldexpl to avoid local PLT.
4391         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4392         __roundl not roundl to avoid local PLT.
4393         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4394         local PLTs.  Use __sincosl instead of separate sinl and cosl
4395         calls.
4396         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4398         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4399         version for ppc64 to 2.4.21 since without it makecontext will fail.
4401         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4402         to the ABI in use.
4403         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4404         .__tls_get_addr.
4405         [__powerpc64__] (TLS_GD): Likewise.
4407 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4409         [BZ #4997]
4410         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4411         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4412         mantissa.
4413         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4414         Likewise.  Also account for when x is an odd number between 2^52
4415         and 2^53-1.
4416         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4417         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4418         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4419         detect aforementioned erroneous conditions.
4421 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4423         * configure.in: Check for -fno-section-anchors in addition to
4424         -fno-toplevel-reorder.
4426 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4428         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4430         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4431         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4432         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4433         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4434         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4435         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4437 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4439         [BZ #5443]
4440         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4441         * time/alt_digit.c: Likewise.
4442         * wcsmbs/wcsmbsload.c: Likewise.
4444 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4446         * version.h (VERSION): Bump to 2.8.
4448         * timzeone/asia: Update from tzdata2008b.
4449         * timezone/backward: Likewise.
4450         * timezone/europe: Likewise.
4451         * timezone/northamerica: Likewise.
4452         * timezone/southamerica: Likewise.
4453         * timezone/iso3166.tab: Likewise.
4454         * timezone/leapseconds: Likewise.
4455         * timezone/zone.tab: Likewise.
4456         * timezone/private.h: Update from tzcode2008a.
4457         * timezone/zdump.c: Likewise.
4458         * timezone/zic.c: Likewise.
4460 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4462         [BZ #5741]
4463         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4464         Define additonal Data Cache Block instruction macros.
4465         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4466         Replace dcbst with dcbf and sync with sync/isync.
4468 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4470         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4471         Always set ELF_RTYPE_CLASS_PLT.
4472         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4474 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4476         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4477         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4478         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4479         For ISA 2.01 and later replace mftb with mfspr 268.
4481 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4483         [BZ #5768]
4484         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4485         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4487 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4489         [BZ #5768]
4490         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4491         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4492         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4493         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4495 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4497         * stdlib/tst-makecontext.c (othervar): New variable.
4498         (cf): Test sign extending the argument to long.
4500 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4502         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4503         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4504         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4505         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4506         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4507         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4508         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4510 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4512         * elf/Makefile (tests): Substitute tests-vis-yes here.
4513         (tests-vis-yes): Delete.
4514         (modules-name, modules-vis-yes): Similarly.
4516 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4518         [BZ #4407]
4519         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4520         Preserve sign in signgamp when x is zero.
4522 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
4524         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4525         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4526         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4527         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4528         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4529         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4531 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4533         [BZ #4314]
4534         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4535         buffers.
4537         [BZ #5209]
4538         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4539         a reserved error value.
4541         * stdlib/tst-makecontext.c: Change parameter to cf to negative
4542         value to check for correct sign extension.
4544         [BZ #5436]
4545         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4546         Copy 64-bit parameter values even though this is not required in
4547         the standard.
4549         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4550         PC save.
4552 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
4554         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4555         PC save.
4557 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4559         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4561 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4563         [BZ #5998]
4564         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4565         in line-buffered stream failed.
4566         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4568 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
4570         [BZ #6024]
4571         * scripts/abi-versions.awk: If the version specified by
4572         --enable-oldest-abi is older than the first version for this
4573         architecture, use the default version.
4575         * locale/programs/ld-collate.c (collate_read): Ignore script lines
4576         as well when ignoring the whole category.
4578 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4580         [BZ #6042]
4581         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4582         ETHERTYPE_* definitions.
4583         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4585 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4587         * stdlib/mbtowc.c (__no_r_state): Remove.
4588         (mbtowc): New static state variable.  Use it instead of
4589         __no_r_state.
4590         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4591         (__wctomb_state): New hidden variable.
4592         (wctomb): Use __wctomb_state instead of __no_r_state.
4593         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4594         (__wctomb_state): New extern decl.
4595         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4597 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4599         [BZ #5475]
4600         * resolv/res_init.c: Handle scope IDs in resolv.conf.
4602 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4604         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4606 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
4608         * po/nl.po: Update from translation team.
4610 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
4612         [BZ #6007]
4613         * string/strfry.c: Handle empty strings again.
4615 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4617         [BZ #5443]
4618         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4619         before looking for translation.
4620         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4621         * locale/freelocale.c: Likewise.
4622         * locale/newlocale.c: Likewise.
4623         * locale/setlocale.c: Likewise.
4624         Based partially on a patch by ryo@np.css.fujitsu.com.
4626 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4628         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4629         acquiring wrlock.  Do conv_tab allocation while holding lock.
4630         * intl/Makefile: Add rules to build and run tst-gettext6.
4631         * intl/tst-gettext6.c: New test.
4632         * intl/tst-gettext6.sh: New file.
4634 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4636         * po/nl.po: Update from translation team.
4638         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4639         provided through st_blksize, try the default size before giving up.
4641 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4643         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4645         [BZ #5939]
4646         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4648         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4649         error message.  POSIX today does not require the messages to be in
4650         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4652         [BZ #5979]
4653         * sunrpc/auth_unix.c: Unify printed strings.
4654         * sunrpc/clnt_tcp.c: Likewise.
4655         * sunrpc/clnt_udp.c: Likewise.
4656         * sunrpc/clnt_unix.c: Likewise.
4657         * sunrpc/svc_tcp.c: Likewise.
4658         * sunrpc/svc_udp.c: Likewise.
4659         * sunrpc/svc_unix.c: Likewise.
4660         * sunrpc/xdr.c: Likewise.
4661         * sunrpc/xdr_array.c: Likewise.
4662         * sunrpc/xdr_rec.c: Likewise.
4663         * sunrpc/xdr_ref.c: Likewise.
4664         * locale/programs/ld-time.c (time_finish): Unify messages.
4665         * locale/programs/locfile.c (handle_copy): Fix typo.
4666         * nscd/nscd.c (options): Fix typo.
4668         [BZ #5995]
4669         * stdlib/strtod_l.c: Use correct sign for result in one more
4670         underflow case.
4671         Patch by Eric Blake <ebb9@byu.net>.
4673 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4675         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4676         and creat system calls.
4677         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4678         call.
4679         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4680         system calls.
4681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4682         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4683         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4685 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4687         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4688         <linux/limits.h> has defined it.
4689         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4690         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4691         headers.
4692         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4693         it instead of ARG_MAX.
4695 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
4697         * posix/gai.conf: Fix comment for scope nullbits.
4698         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4699         default to 128 bits for v4 mapped addresses.
4701 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4703         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4704         ptrace call to get the ieee_instruction_pointer from the kernel.
4705         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4706         ptrace call to set the ieee_instructtion_pointer.
4707         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4708         Add comment that ieee_instruction_pointer is always 0.
4710 2008-03-09  Andreas Jaeger  <aj@suse.de>
4712         [BZ #5857]
4713         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4714         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4715         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4717         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4718         (rint_test): Likewise.
4720 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
4722         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4723         call.
4724         (__nisfind_server): Similar for open readColdStartFile call.
4725         Patch partially by Jim Meyering.
4726         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4727         around internal_setent call.
4729         * po/vi.po: New Vietnamese translation.
4731         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4732         ADJ_OFFSET_SS_READ.
4734         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4735         remove CLONE_STOPPED.
4737 2008-02-10  Jim Meyering  <meyering@redhat.com>
4739         Remove useless "if" before "free":
4740         * elf/ldconfig.c (parse_conf_include): Likewise.
4741         * gmon/gmon.c (weak_alias): Likewise.
4742         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4743         * inet/rcmd.c (__validuser2_sa): Likewise.
4744         * intl/bindtextdom.c (set_binding_values): Likewise.
4745         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4746         * libio/genops.c (save_for_backup): Likewise.
4747         * libio/wgenops.c (save_for_wbackup): Likewise.
4748         * locale/programs/ld-collate.c (collate_read): Likewise.
4749         * locale/programs/linereader.c (get_string): Likewise.
4750         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4751         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4752         * resolv/res_debug.c (do_section): Likewise.
4753         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4754         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4755         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4756         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4757         * time/tzset.c (tzset_internal): Likewise.
4759 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
4761         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4762         of ASSEMBLER.
4764 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
4766         [BZ #5903]
4767         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4768         not stream for output file.  Open output file here.
4769         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4770         and output file name.
4771         (process_fd): Likewise.
4772         (process_file): Likewise.
4773         (main): Adjust callers of changed functions.
4774         * iconv/iconv_prog.h: Adjust prototype.
4776 2008-03-09  Andreas Jaeger  <aj@suse.de>
4778         [BZ #5753]
4779         * sysdeps/ia64/ieee754.h: Use protected namespace
4780         __BIG_ENDIAN/__LITTLE_ENDIAN.
4781         * sysdeps/ieee754/ieee754.h: Likewise.
4782         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4784 2008-03-08  Roland McGrath  <roland@frob.com>
4786         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4787         ignore a signal that came from a machine exception, treat it as a
4788         fatal core-dump signal instead.
4789         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4791         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4792         Clear DF bit in thread state's eflags.
4793         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4795 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
4797         [BZ #5774]
4798         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4799         of NAN(...) sequence.
4800         * stdlib/Makefile (tests): Add tst-strtod6.
4801         * stdlib/tst-strtod6.c: New file.
4803         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4805         [BZ #5762]
4806         * posix/getopt.c (_getopt_internal_r): Clarify error message by
4807         putting offending option character in quotes.  Clean up error
4808         messages.
4809         * po/be.po: Adjust msgstr in translation file.
4810         * po/bg.po: Likewise.
4811         * po/ca.po: Likewise.
4812         * po/cs.po: Likewise.
4813         * po/da.po: Likewise.
4814         * po/de.po: Likewise.
4815         * po/es.po: Likewise.
4816         * po/fr.po: Likewise.
4817         * po/hr.po: Likewise.
4818         * po/ko.po: Likewise.
4819         * po/nl.po: Likewise.
4820         * po/rw.po: Likewise.
4821         * po/sk.po: Likewise.
4822         * po/sv.po: Likewise.
4823         * po/tr.po: Likewise.
4824         * po/zh_CN.po: Likewise.
4825         * po/zh_TW.po: Likewise.
4827         [BZ #5760]
4828         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4829         Patch by Roland Bless <roland@bless.de>.
4831         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4832         .o file.
4833         * elf/Makefile (routines): Add dl-sysdep.
4834         (elide-routines.os): Likewise.
4836 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
4838         [BZ #5786]
4839         * elf/dl-sysdep.c: Undefine ROUND after use.
4840         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4841         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4842         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4843         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4844         to ...
4845         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4846         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4847         if necessary.
4848         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4850         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4851         _dl_tls_get_addr_soft element.
4852         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4853         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4854         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4855         GLRO.
4856         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4857         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4858         of internal_function.
4860         * stdlib/Makefile (aux): Add tens_in_limb.
4861         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4862         * stdlib/tens_in_limb.c: ...here.  New file.
4864         [BZ #5778]
4865         * sysdeps/unix/sysv/linux/pathconf.h: Declare
4866         __statfs_chown_restricted.
4867         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4868         for _PC_CHOWN_RESTRICTED.
4869         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4870         Implement __statfs_chown_restricted.
4871         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4872         _POSIX_CHOWN_RESTRICTED value to zero.
4873         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4874         defined to zero.
4876         * sysdeps/x86_64/rtld-memset.c: New file.
4878 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4880         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4882         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4883         Barcelona machine.  Make default fall through branch of
4884         __x86_64_preferred_memory_instruction check as the integer code path.
4886 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4888         * sysdeps/x86_64/cacheinfo.c
4889         (__x86_64_preferred_memory_instruction): New variable.
4890         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4892         * sysdeps/x86_64/memset.S: Rewrite.
4894 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4896         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4897         __obstack_printf_chk): New prototypes.
4898         (__vasprintf_chk, __vdprintf_chk,
4899         __obstack_vprintf_chk): Likewise.
4900         Add libc_hidden_proto.
4901         * libio/obprintf.c
4902         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4903         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4904         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4905         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4906         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4907         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4908         __obstack_vprintf_chk): New prototypes.
4909         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4910         obstack_vprintf): New inlines.
4911         * debug/dprintf_chk.c: New file.
4912         * debug/vdprintf_chk.c: New file.
4913         * debug/asprintf_chk.c: New file.
4914         * debug/vasprintf_chk.c: New file.
4915         * debug/obprintf_chk.c: New file.
4916         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4917         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4918         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4919         @@GLIBC_2.8.
4920         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4921         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4922         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4923         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4924         libc_hidden_proto.
4925         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4926         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4927         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4928         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4929         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4930         @@GLIBC_2.8.
4931         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4932         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4933         obstack_vprintf_chk.
4934         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4935         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4936         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4937         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4938         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4939         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4941 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4943         [BZ #5779]
4944         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4945         Patch by Roy Marples <roy@marples.name>.
4947         [BZ #5736]
4948         * malloc/malloc.c: Fix typo in comment.
4950         [BZ #5627]
4951         * locale/iso-639.def: Add Shuswap.
4953 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4955         [BZ #5790]
4956         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4957         overwrite *h_errnop/*errnop values from getanswer_r in case of
4958         failure.
4960 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4962         [BZ #5818]
4963         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4964         (verify_persistent_db): Remove one unnecessary test and add a new one
4965         for bad configuration.
4966         (nscd_init): Improve error reported when persistent database cannot
4967         be reused.
4968         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4969         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4970         .suggested_module and .max_db_size and case config file says the
4971         values are zero.
4972         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4974         [BZ #5854]
4975         * nis/ypclnt.c (yp_order): Fix handling of return value of
4976         do_ypcall_tr call.
4977         Patch by Jeff Moyer <jmoyer@redhat.com>.
4979         * po/fr.po: Update from translation team.
4981 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4982             Carlos O'Donell <carlos@systemhalted.org>
4984         [BZ #5012]
4985         * FAQ.in: Describe why glibc needs to be compiled with
4986         optimization.
4988 2008-02-19  Roland McGrath  <roland@redhat.com>
4990         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4992 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4994         [BZ #5737]
4995         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4996         __USE_MISC is defined.
4998 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5000         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5001         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5002         sys/timerfd.h.
5003         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5004         timerfd_gettime, timerfd_settime.
5005         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5006         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5008 2008-02-08  Roland McGrath  <roland@redhat.com>
5010         * elf/elf.h (NT_PPC_SPE): New macro.
5012 2008-02-06  Roland McGrath  <roland@redhat.com>
5014         * Makerules ($(common-objpfx)sysd-rules):
5015         Depend on $(sysdep-makeconfigs).
5017 2008-01-31  Roland McGrath  <roland@redhat.com>
5019         [BZ #5442]
5020         * configure.in: Use -print-file-name if it yields a directory,
5021         for each of include and include-fixed.
5022         * configure: Regenerated.
5024         * Makeconfig (sysd-rules-targets): New variable.
5025         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5026         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5028 2008-01-30  Roland McGrath  <roland@redhat.com>
5030         * manual/libc.texinfo: Update back-cover text.
5032         * elf/elf.h (NT_386_TLS): New macro.
5034 2008-01-29  Roland McGrath  <roland@redhat.com>
5036         * Makeconfig (sysd-rules-patterns): New variable.
5037         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5038         (check-inhibit-asm): New canned sequence, replaces ...
5039         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5040         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5041         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5042         (CFLAGS-rtld): Variable removed.
5044 2008-01-24  Roland McGrath  <roland@redhat.com>
5046         * configure.in: Let configure fragments set base_os.
5047         * configure: Regenerated.
5049 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5051         * po/ko.po: Update from translation team.
5053 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5055         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5057 2008-01-12  Andreas Jaeger  <aj@suse.de>
5059         [BZ #5040]
5060         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5061         Add EPOLLRDHUP.
5063 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5065         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5066         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5067         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5069 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5071         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5072         * elf/dl-close.c (_dl_close): Check for it.
5073         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5074         (_dl_allocate_static_tls): Likewise.
5075         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5076         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5077         to it.
5078         * elf/tst-tls16.c: New file.
5079         * elf/tst-tlsmod16a.c: New file.
5080         * elf/tst-tlsmod16b.c: New file.
5081         * elf/Makefile: Add rules to build and run tst-tls16.
5083 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5085         [BZ #5628]
5086         * bits/shm.h: Fix comment describing shmid_ds.
5087         * sysdeps/gnu/bits/shm.h: Likewise.
5088         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5089         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5090         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5091         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5092         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5093         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5094         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5095         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5096         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5098         [BZ #5607]
5099         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5100         prototypes.
5101         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5102         additional suffixes.
5103         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5104         Add optional functions mq_timedreceive and mq_timedsend.
5105         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5106         * conform/data/pthread.h-data: Fix prototype of
5107         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5108         * conform/data/semaphore.h-data: Allow time.h definitions.
5109         * conform/data/signal.h-data: Likewise.
5110         * conform/data/stdio.h-data: getw and putw are not required in v6.
5111         * conform/data/stdlib.h-data: Change setstate prototype.
5112         * conform/data/string.h-data: Fix strerror_r prototype.
5113         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5114         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5115         Fix readlink prototype.
5116         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5117         in6addr_loopback.
5118         * inet/netinet/in.h: Cleanup namespace.
5119         * posix/regex.h: Likewise.
5120         * resolv/netdb.h: Likewise.
5121         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5122         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5123         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5124         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5125         of names of in in6_addr.
5126         (default_precedence): Likewise.
5127         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5128         NULL definition.
5130 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5132         * conform/data/fmtmsg.h-data: Add missing allows.
5133         * conform/data/ftw.h-data: Likewise.
5134         * conform/data/inttypes.h-data: Likewise.
5135         * conform/data/math.h-data: Likewise.
5136         * conform/data/signal.h-data: Likewise.
5137         * conform/data/net/if.h-data: Likewise.
5138         * conform/data/netinet/in.h-data: Likewise.
5139         * conform/data/sys/socket.h-data: Likewise.
5141         [BZ #5614]
5142         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5143         (__strtok_r): Simplify.
5144         * string/tester.c (test_strtok_r): Add test case for futile search
5145         with single-character seach string.
5147 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5149         * po/ko.po: Update from translation team.
5151 2008-01-11  Andreas Jaeger  <aj@suse.de>
5153         [BZ #5600]
5154         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5155         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5156         kernel header.
5158 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5160         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5161         native interface lookup in all the relevant places.
5163 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5164             Ulrich Drepper  <drepper@redhat.com>
5166         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5167         field.  Use sockaddr_in6 for source_addr.
5168         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5169         (match_prefix): Likewise.
5170         (get_label): Likewise.
5171         (get_precedence): Likewise.
5172         (rfc3484_sort): Change to use indirect access to results array.
5173         Adjust to use of sockaddr_in6.  Replace service_order test with
5174         simple index comparison.
5175         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5176         service_order field.  Adjust qsort_t calls.  Access sorted result
5177         array indirectly through order array.
5178         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5179         * posix/tst-rfc3484-2.c: Likewise.
5180         * posix/tst-rfc3484-3.c: Likewise.
5182 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5184         [BZ #5541]
5185         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5186         pollfd structures.
5187         Patch by André Cruz.
5189         [BZ #5545]
5190         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5191         (clnt_spcreateerror): Likewise.
5193         [BZ #5553]
5194         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5195         (public_mEMALIGn): Likewise.
5196         Patch mostly by Daniel Jacobowitz.
5198 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5200         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5201         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5202         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5203         * stdlib/tst-makecontext2.c: New test.
5205 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5207         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5208         defined.
5209         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5210         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5211         transliteration hooks and REINIT_PARAMS afterwards.
5212         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5213         status.
5214         (REINIT_PARAMS): Define.
5215         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5216         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5217         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5218         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5219         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5220         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5221         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5222         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5223         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5224         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5225         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5226         * iconvdata/tst-iconv7.c: New test.
5228 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5230         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5232 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5234         [BZ #5112]
5235         * nscd/connections.c (restart): Fix condition.
5237 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5239         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5240         __ctype_toupper_loc): Add __THROW.
5242 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5244         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5245         recognition of interface family.
5247         * posix/getconf.c: Update copyright year.
5248         * nss/getent.c: Likewise.
5249         * iconv/iconvconfig.c: Likewise.
5250         * iconv/iconv_prog.c: Likewise.
5251         * elf/ldconfig.c: Likewise.
5252         * catgets/gencat.c: Likewise.
5253         * csu/version.c: Likewise.
5254         * elf/ldd.bash.in: Likewise.
5255         * elf/sprof.c (print_version): Likewise.
5256         * locale/programs/locale.c: Likewise.
5257         * locale/programs/localedef.c: Likewise.
5258         * nscd/nscd.c (print_version): Likewise.
5259         * debug/xtrace.sh: Likewise.
5260         * malloc/memusage.sh: Likewise.
5261         * malloc/mtrace.pl: Likewise.
5262         * debug/catchsegv.sh: Likewise.
5264 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5266         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5267         second lookup.
5269 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5271         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5272         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5274 2007-12-17  Roland McGrath  <roland@redhat.com>
5276         * inet/ether_line.c (ether_line): Remove unused variable.
5278 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5280         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5281         and winp.
5282         * login/openpty.c (openpty): Likewise.
5283         * login/pty.h (openpty, forkpty): Likewise.
5284         * manual/terminal.texi (openpty, forkpty): Likewise.
5286 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5288         * malloc/malloc.c (public_cALLOc): For arenas other than
5289         main_arena, count all bytes inside the mprotect_size range of the
5290         heap as uninitialized.
5292 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5294         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5295         executable stacks.
5297         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5298         mTRIm for all of them.
5299         (mTRIm): Additionally iterate over all free blocks and use madvise
5300         to free memory for all those blocks which contain at least one
5301         memory page.
5302         * malloc/tst-trim1.c: New file.
5303         * malloc/Makefile (tests): Add tst-trim1.
5305         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5307 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5309         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5310         First cast argument to long
5311         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5312         Return long.
5313         (__vdso_clock_gettime): Likewise.
5314         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5315         return long.
5317 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5319         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5320         * locale/nl_langinfo_l.c: Real implementation, copied from
5321         nl_langinfo.c.
5322         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5324 2007-12-01  Jim Meyering  <meyering@redhat.com>
5326         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5327         that would inhibit utf8-optimization of a regexp containing line-
5328         or buffer-anchors, e.g., `^', `$'.
5330 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5332         * time/bug-getdate1.c (do_test): Don't use century values which
5333         aren't valid on 32-bit systems.
5335 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5337         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5338         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5339         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5340         __strcat_g, __strncat_g): Add __asm__.
5342 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5344         [BZ #5477]
5345         * io/fchmodat.c: Fix typo in stub_warning use.
5346         Patch by Petr Salinger.
5348 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5350         * iconvdata/hp-thai8.c: New file.
5351         * iconvdata/Makefile: Add rules for hp-thai8.c.
5352         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5353         * iconvdata/gconv-modules: Likewise.
5355         [BZ #5464]
5356         * iconvdata/hp-greek8.c: New file.
5357         * iconvdata/Makefile: Add rules for hp-greek8.c.
5358         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5359         * iconvdata/gconv-modules: Likewise.
5361         [BZ #5463]
5362         * iconvdata/hp-turkish8.c: New file.
5363         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5364         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5365         * iconvdata/gconv-modules: Likewise.
5367         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5368         (shrink_heap): ... this new function.
5369         (heap_trim): Call shrink_heap instead of grow_heap.
5371         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5372         case don't call alloc_perturb.
5374 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5376         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5377         possible.
5378         * sysdeps/unix/sysv/linux/kernel-features.h
5379         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5380         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5382 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5384         [BZ #5424]
5385         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5386         * stdio-common/Makefile (tests): Add bug22.
5387         * stdio-common/bug22.c: New file.
5389         [BZ #5451]
5390         * time/getdate.c: Fix filling in default values.
5391         * time/bug-getdate1.c: New file.
5392         * time/Makefile: Add rules to build and run bug-getdate1.
5394         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5395         * iconvdata/ebcdic-es.c: Likewise.
5396         * iconvdata/ebcdic-es-a.c: Likewise.
5397         * iconvdata/ebcdic-uk.c: Likewise.
5398         * iconvdata/iso8859-16.c: Likewise.
5399         * iconvdata/viscii.c: Likewise.
5400         * iconvdata/iso8859-9e.c: Likewise.
5401         * iconvdata/Makefile: Adjust appropriately.
5403         [BZ #5428]
5404         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5405         __need_wint_t.
5407 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5409         [BZ #5427]
5410         * iconvdata/hp-roman9.c: New file.
5411         * iconvdata/Makefile: Add rules for hp-roman9.c.
5412         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5413         * iconvdata/gconv-modules: Likewise.
5415         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5416         * iconvdata/Makefile: Adjust appropriately.
5418         [BZ #5441]
5419         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5420         structure, it's allocated with alloca.
5421         * stdio-common/Makefile (tests): Add bug21.
5422         * stdio-common/bug21.c: New file.
5424 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5426         [BZ #5452]
5427         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5428         keyword for gcc's braced-groups.
5430 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5432         [BZ #5454]
5433         * inet/ether_line.c: Strip hostname of whitespaces.
5434         * inet/Makefile (tests): Add tst-ether_line.
5435         * inet/tst-ether_line.c: New file.
5437 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5439         [BZ #5439]
5440         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5442         [BZ #5435]
5443         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5445         * stdlib/tst-setcontext.c: Catch the case where the links gets
5446         messed up and we do not reach main again.
5448         * po/ca.po: Update from translation team.
5450 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5452         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5453         * posix/regex.h (REG_ENOSYS): Likewise.
5454         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5456 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5458         * nscd/nscd.h (MAX_STACK_USE): Define.
5459         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5460         (gc): Initialize stack_used based on allocation in prune_cache.
5461         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5462         Clear array before use.
5464         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5465         memory allocation failed.
5466         * nscd/hstcache.c (cache_addhst): Likewise.
5467         * nscd/grpcache.c (cache_addgr): Likewise.
5468         * nscd/servicescache.c (cache_addserv): Likewise.
5469         * nscd/pwdcache.c (cache_addpw): Likewise.
5470         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5472 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5475         and creat system calls.
5477         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5479 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5481         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5482         Add netiucv/iucv.h.
5483         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5484         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5485         protocol.
5486         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5487         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5488         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5490 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5492         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5493         strncat): Define as macros to avoid compile errors.
5495         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5496         creat entries.
5498 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5500         [BZ #5382]
5501         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5502         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5503         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5504         overflow it.
5505         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5507         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5508         Return zero in case the thread library is not NPTL.
5510         [BZ #5375]
5511         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5512         initializing interface list.
5514         [BZ #5378]
5515         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5516         use result of nss_getgrgid_r if nothing was found.  For other
5517         error return with a failure.
5518         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5520         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5521         macro name.
5523 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5525         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5526         (get_scope): For IPv4 scope, use scopes table.
5527         (fini): Free scopes table if necessary.
5528         (free_scopelist): New function.
5529         (scopecmp): New function.
5530         (gaiconf_init): Also handle scopev4 entries.
5531         * posix/tst-rfc3484.c (do_test): Initialize scopes.
5532         * posix/tst-rfc3484-2.c (do_test): Likewise.
5533         * posix/gai.conf: Document scopev4 defaults.
5534         * posix/Makefile (tests): Add tst-rfc3484-3.
5535         * posix/tst-rfc3484-3.c: New file.
5537         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5538         Teredo tunnels.
5539         * posix/gai.conf: Update for current default tables.
5541 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5543         * po/tr.po: Update from translation team.
5545 2007-11-18  Roland McGrath  <roland@frob.com>
5547         * manual/arith.texi (Remainder Functions): Spelling fix.
5548         From Shaun Silk <genix@mysoul.com.au>.
5550         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5552 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
5554         * po/zh_CN.po: Update from translation team.
5556         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5557         Add sys/signalfd.h and sys/eventfd.h.
5559 2007-11-15  Bruno Haible  <bruno@clisp.org>
5561         [BZ #5346]
5562         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5563         union.
5564         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5565         (DCIGETTEXT): Change the allocation of the 'search' variable so that
5566         it needs only fixed stack space. Delay the initialization of
5567         msgid_len until it is needed.
5569 2007-11-15  Andreas Jaeger  <aj@suse.de>
5571         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5572         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5574 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
5576         * po/ko.po: Update from translation team.
5578 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
5580         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5581         significantly.  The device type is also part of the ifinfomsg data.
5583         * po/sv.po: Update from translation team.
5584         * po/nl.po: Likewise.
5586         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5587         to wake up in 24 hours.
5589         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
5591 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
5593         * po/cs.po: Update from translation team.
5594         * po/pl.po: Likewise.
5596         * include/ifaddrs.h: Remove in6ai_temporary.
5597         (struct in6addrinfo): Add index element.
5598         Declare __check_native.
5599         * inet/Makefile (aux): Add check_native.
5600         * sysdeps/unix/sysv/linux/check_native.c: New file.
5601         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5602         IFA_F_TEMPORARY.  Pass back ifa_index.
5603         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5604         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
5605         call __check_native if necessary.
5606         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
5607         to sort addresses.  Pass information about the results.
5608         * posix/tst-rfc3484.c: Adjust for addition of index field and change
5609         of rfc3484_sort interface.
5610         * posix/tst-rfc3484-2.c: Likewise.
5612         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
5613         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5614         for _quicksort.
5615         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5616         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
5617         on as third parameter to compare function and _quicksort.
5618         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5619         to the compare function.
5620         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5621         * Versions.def: Add GLIBC_2.8 for libc.
5623         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5624         * posix/tst-rfc3484-2.c: Likewise.
5626         * include/kernel-features.h: Moved to...
5627         * sysdeps/mach/hurd/kernel-features.h: ...here.
5629 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5631         * sysdeps/i386/i586/memcpy_chk.S: New file.
5632         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5633         * sysdeps/i386/i586/memset_chk.S: Likewise.
5635 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5637         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5638         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5639         list of interfaces.  Also store prefix length.
5640         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5641         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5642         prefix if source and destination address are in the same subnet.
5643         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5644         Always look for matching record in in6ai list.
5645         Correct source_addr_len value for IPv6->IPv4 converted records.
5647 2007-11-11  Roland McGrath  <roland@frob.com>
5649         * include/kernel-features.h: New file.
5651 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5653         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5654         complications for 64-bit platforms.
5656         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5657         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5658         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5659         open64_2.
5660         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5661         entries.
5662         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5663         * sysdeps/wordsize-64/alphasort.c: New file.
5664         * sysdeps/wordsize-64/alphasort64.c: New file.
5665         * sysdeps/wordsize-64/fseeko.c: New file.
5666         * sysdeps/wordsize-64/fseeko64.c: New file.
5667         * sysdeps/wordsize-64/ftello.c: New file.
5668         * sysdeps/wordsize-64/ftello64.c: New file.
5669         * sysdeps/wordsize-64/ftw.c: New file.
5670         * sysdeps/wordsize-64/ftw64.c: New file.
5671         * sysdeps/wordsize-64/iofgetpos.c: New file.
5672         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5673         * sysdeps/wordsize-64/iofopen.c: New file.
5674         * sysdeps/wordsize-64/iofopen64.c: New file.
5675         * sysdeps/wordsize-64/iofsetpos.c: New file.
5676         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5677         * sysdeps/wordsize-64/lockf.c: New file.
5678         * sysdeps/wordsize-64/lockf64.c: New file.
5679         * sysdeps/wordsize-64/mkostemp.c: New file.
5680         * sysdeps/wordsize-64/mkostemp64.c: New file.
5681         * sysdeps/wordsize-64/mkstemp.c: New file.
5682         * sysdeps/wordsize-64/mkstemp64.c: New file.
5683         * sysdeps/wordsize-64/scandir.c: New file.
5684         * sysdeps/wordsize-64/scandir64.c: New file.
5685         * sysdeps/wordsize-64/tmpfile.c: New file.
5686         * sysdeps/wordsize-64/tmpfile64.c: New file.
5687         * sysdeps/wordsize-64/versionsort.c: New file.
5688         * sysdeps/wordsize-64/versionsort64.c: New file.
5689         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5690         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5691         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5692         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5693         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5694         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5695         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5696         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5697         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5698         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5699         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5700         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5702         * crypt/sha256-crypt.c: Fix a comment.
5703         * crypt/sha512-crypt.c: Likewise.
5705 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5707         * sysdeps/x86_64/memset.S: Add sfence after movnti.
5709 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
5711         [BZ #5277]
5712         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5713         because output buffer is too small break, don't loop.
5714         * iconvdata/Makefile (tests): Add bug-iconv6.
5715         * iconvdata/bug-iconv6.c: New file.
5717 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
5719         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5720         with size_t type.
5721         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5722         size_t.  Add casts where needed.
5724         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5725         old headers, don't call avc_has_perm if we don't have the
5726         permission information.
5728 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
5730         * elf/rtld.c (dl_main): Use the page size to find the map start.
5732 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
5734         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5735         Patch by Szymon Siwek <sls@poczta.wp.pl>.
5737         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5738         when the lookup call failed.
5740         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5741         Add prune_cond and wakeup_time.
5742         (CACHE_PRUNE_INTERNAL): Define.
5743         Update declarations of prune_cache and setup_thread.
5744         * nscd/connections.c (dbs): Update initializers.
5745         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5746         (nscd_init): Default number of threads is now 4.
5747         (invalidate_cache): Take lock before calling prune_cache.
5748         (handle_request): If SELinux forbids the request, say so.
5749         (readylist_cond): Use static initializer.
5750         (nscd_run_prune): New function.  Used only by pruning threads.
5751         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
5752         here.
5753         (fd_ready): Update nscd_run reference.
5754         (start_threads): No need to initialize readylist_cond.
5755         Start pruning threads separately.
5756         * nscd/nscd_setup_thread.c: Change return value type to int and always
5757         return 0.
5758         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5759         to int and return nonzero value if we can use the TID address hack.
5760         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5761         the database is later than the new entry's timeout, update the
5762         wakeup time and wake the cleanup thread.
5763         (prune_cache): Return seconds the next entry in the database is still
5764         valid.  Remove locking for pruning here.
5765         * nscd/nscd.conf: Document default number of threads.
5767 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
5769         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5770         stack is properly aligned for the target function.
5771         Correct unwind info.
5773         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5774         when using auditing libraries.
5776 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
5778         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5779         _nss_dns_getnetbyaddr2_r.
5780         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
5781         extra parameter to getanswer_r.
5782         (_nss_dns_getnetbyaddr_r): Now a wrapper around
5783         _nss_dns_getnetbyaddr2_r.
5785         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5786         gethstbynm3_r.
5787         * nscd/gethstbynm2_r.c: Remove.
5788         * nscd/gethstbynm3_r.c: New file.
5789         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5790         __gethostbyaddr_r.
5791         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
5792         __gethostbyaddr_r compatibility wrapper.
5793         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
5794         determining timeout of entry.
5795         (lookup): Take new parameter and pass it to __gethostbyname3_r and
5796         __gethostbyaddr2_r.
5797         (addhstbyX): Pass reference to variable for TTL to lookup and
5798         cache_addhst.
5799         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5800         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5801         and __nss_next2.  Remove __nss_services_lookup.
5802         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
5803         Add compat wrapper.
5804         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5805         __nss_next2.
5806         * nss/getXXent_r.c: Likewise.
5807         * nss/getnssent_r.c: Likewise.
5808         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
5809         does not exist in module, try the optional second name.
5810         (__nss_next2): New function.
5811         (__nss_next): Now wrapper around __nss_next2.
5812         * nss/nsswitch.h: Adjust __nss_lookup prototype.
5813         Declare __nss_next2.
5814         Adjust definition of db_lookup_function type.
5815         * nss/service-lookup.c: Define NO_COMPAT.
5816         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5817         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5818         * inet/ether_ntoh.c: Likewise.
5819         * sunrpc/netname.c: Likewise.
5820         * sunrpc/publickey.c: Likewise.
5821         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
5822         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5823         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5824         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5825         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5827         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5829         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5831 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
5833         [BZ #5204]
5834         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5835         * crypt/sha512c-test.c: Likewise.
5837         [BZ #5225]
5838         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5839         to keep track of end of %[ format string element.
5840         * stdio-common/Makefile (tests): Add bug20.
5841         * stdio-common/bug20.c: New file.
5843         [BZ #5222]
5844         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5845         path elements in counting mode.
5847 2007-10-27  Andreas Jaeger  <aj@suse.de>
5849         [BZ #5040]
5850         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5852         [BZ #3112]
5853         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5854         (__cleanup): Free shared library when exiting.
5855         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5856         (__cleanup): Free shared library when exiting.
5858 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5860         [BZ #2549]
5861         * math/libm-test.inc (check_float_internal): Support
5862         denormalized return.
5864 2007-10-23  Andreas Jaeger  <aj@suse.de>
5866         [BZ #5208]
5867         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5868         __LONG_LONG_PAIR to handle little endian byte order.
5869         Suggested by abhishekrai@google.com
5871 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
5873         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5875 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5877         * nscd/cache.c (prune_cache): Move test for modified file outside
5878         of locking.
5880 2007-10-21  Andreas Jaeger  <aj@suse.de>
5882         * manual/texinfo.tex: Update to latest version.
5884         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5886         * manual/arith.texi (Status bit operations): Fix formatting.
5888         * manual/errno.texi (Error Messages): Fix formatting.
5890         * manual/sysinfo.texi (System Parameters): Fix formatting.
5892         * manual/libc.texinfo: Update VERSION and UPDATED.
5894 2007-10-19  Roland McGrath  <roland@redhat.com>
5896         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5898 2007-10-06  David S. Miller  <davem@davemloft.net>
5900         * configure.in: Add sparcv9v2 and sparc64v2.
5901         * scripts/config.sub: Likewise.
5902         * configure: Regenerate.
5903         * elf/elf.h (HWCAP_SPARC_N2): New.
5904         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5905         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5906         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5907         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5908         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5909         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5910         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5912 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5914         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5915         even if the poll result indicates there is data to read.
5916         Patch by Jeff Moyer <jmoyer@redhat.com>.
5918 2007-10-18  Roland McGrath  <roland@redhat.com>
5920         * elf/elf.h (NT_PPC_VMX): New macro.
5922 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5924         * version.h (VERSION): Set to 2.7.90.
5926 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5928         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5929         weak_alias.
5931 2007-10-17  Roland McGrath  <roland@frob.com>
5933         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5934         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5936 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5938         * version.h (VERSION): Bump to 2.7.
5939         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5941         [BZ #5186]
5942         * time/tzset.c (__tz_convert): Don't force testing for a change of
5943         TZ if not called from localtime.  But then also see whether the
5944         file changed, in case __use_tzfile is set.
5946         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5947         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5948         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5949         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5950         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5951         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5952         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5953         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5955 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5957         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5958         and admin selects to be able to replace the gai.conf file, lock
5959         data structures around the qsort call.
5961 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5963         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5964         new memset.
5965         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5966         too high for the improvements.  Implement bzero unconditionally for
5967         use in libc.
5969 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5970             Jakub Jelinek  <jakub@redhat.com>
5972         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5973         even when time_t is 32-bit.
5974         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5975         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5976         always set after the search.
5978 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5980         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5981         unreachable code on 32-bit machines.
5983 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5985         [BZ #5184]
5986         * time/strftime_l.c: Include stdbool.h.
5987         (my_strftime): New wrapper, old function renamed to...
5988         (__strftime_internal): ... new function.  Add tzset_called
5989         argument, pass it down to recursive calls, don't call tzset ()
5990         if already true, set to true after call to tzset ().
5992 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5994         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5995         into account when copying TZ string.
5997 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5999         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6000         num_transition rather than num_transitions - 1.
6002 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6004         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6005         PIC indirect jump.
6007         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6008         a local label rather than HIDDEN_JUMPTARGET.
6010 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6012         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6013         (init_cacheinfo): Initialize it.
6014         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6015         Always define bzero.
6016         Remove non-glibc code.
6017         * sysdeps/x86_64/bzero.S: Make an empty file.
6019 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6021         * sysdeps/x86_64/cacheinfo.c
6022         (__x86_64_preferred_memory_instruction): New.
6023         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6025         * sysdeps/x86_64/memset.S: Rewrite.
6027 2007-10-15  Roland McGrath  <roland@redhat.com>
6029         * po/libc.pot: Regenerated.
6031 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6033         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6034         pointers.
6036         [BZ #3425]
6037         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6038         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6039         address record to T_A/T_AAAA requests.
6041 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6043         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6045         * posix/glob.c: Add some branch prediction throughout.
6047         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6048         read from nscd.
6050         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6051         service_order.
6052         (rfc3484_sort): Make sure that even if qsort doesn't support
6053         stable sorting out sorting here is stable by comparing service_order.
6054         (getaddrinfo): Initialize service_order.
6055         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6056         service_order field to sorting structure.
6057         * posix/tst-rfc3484-2.c (do_test): Likewise.
6059         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6060         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6061         __tzset_parse_tz and updating of daylight, timezone, tzname into
6062         update_vars.
6063         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6064         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6065         happens in __tz_compute.
6066         * time/tzfile.c (__tzfile_read): Also read TZ string.
6067         (find_transition): Fold into __tzfile_compute.
6068         (__tzfile_compute): For times beyond the last transition try to
6069         use the TZ string.
6070         * timezone/tst-timezone.c: Information in daylight and tzname does
6071         change for Asia/Tokyo timezone with more concrete information.
6072         Remove the test.
6074         * include/stdio.h: Add libc_hidden_proto for ftello.
6075         * libio/ftello.c: Add libc_hidden_def.
6077         [BZ #1140]
6078         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6079         on the specified time and not the last entries in the file.  Move
6080         code to determine tzname[] to...
6081         (find_transition): ...here.  Add ugly guess for times before the
6082         first transition.
6084 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6086         [BZ #3195]
6087         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6088         no entry.
6089         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6090         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6091         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6092         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6094         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6095         read mechanism when there are no group members and avoid no-op
6096         read syscall in this case.
6098         [BZ #3242]
6099         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6100         (__readall): If reading failed due to EAGAIN error wait a bit
6101         and possibly try again.
6102         (__readvall): Likewise.
6104 2007-10-13  Bruno Haible  <bruno@clisp.org>
6106         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6107         when we cannot recode the message.
6109 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6111         [BZ #4359]
6112         * libio/__freading.c (__freading): Don't return true for
6113         write-only streams.  For read/write streams, check whether we
6114         performed a read operation already.
6115         * libio/Makefile (tests): Add tst-ext2.
6116         * libio/tst-ext2.c: New file.
6118 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6120         * locale/programs/repertoire.c (repertoire_read): Always free
6121         memory for repertoire file name [Coverity CID 270].
6123         * elf/cache.c (save_aux_cache): Free memory allocated for
6124         temporary file name [Coverity CID 267].
6126 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6128         * misc/Makefile (headers): Add bits/error.h.
6130 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6132         * posix/fnmatch_loop.c: Take rule index returned as part of
6133         findidx return value into account when accessing weights.
6134         * posix/regcomp.c: Likewise.
6135         * posix/regexec.c: Likewise.
6137         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6138         (skip_to): Fix problems with parameter of elifdef/elifndef.
6140 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6142         * iconv/gconv_simple.c: Add some branch prediction.
6144 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6146         * locale/programs/ld-collate.c (collate_read): If ignore_content
6147         and nowtok is tok_define, eat any tok_eol tokens.
6149 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6151         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6152         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6154         * inet/netinet/in.h: Don't include bits/socket.h.
6155         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6156         macro.
6157         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6159 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6161         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6162         and tok_elifndef.
6163         * locale/programs/locfile-kw.gperf: Likewise.
6164         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6166 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6168         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6169         (__find_specwc): Change into __extern_always_inline function.
6170         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6171         (__parse_one_specmb): Remove ps argument.
6172         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6173         Adjust __find_specmb and __parse_one_specmb callers.
6174         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6175         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6176         Removed.
6177         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6178         caller.
6180 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6182         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6183         with some Pentium Ds.
6185 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6187         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6188         __read not read.
6189         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6190         __write not write.
6192 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6194         [BZ #181]
6195         * locale/C-time.c: Set week_1stday data to 19971201.
6196         * locale/programs/ld-time.c (time_finish): Default for
6197         first_workday is Monday.
6199         [BZ #2633]
6200         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6202         [BZ #5103]
6203         * posix/glob.c (glob): Recognize patterns starting \/.
6204         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6205         (main): Add test for pattern starting \/.
6207         * misc/error.h: Use __const instead of const.
6208         * misc/bits/error.h: Likewise.
6210 2007-10-07  Andreas Jaeger  <aj@suse.de>
6212         * include/bits/error.h: New file.
6214         * misc/bits/error.h (error_at_line): Fix prototype.
6216 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6218         [BZ #3924]
6219         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6220         more little bugs in creating the stack frame when pltexit has to
6221         be called.
6223         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6224         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6226         [BZ #4407]
6227         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6228         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6229         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6230         * math/libm-test.inc: Add test for this case.
6232         [BZ #5010]
6233         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6234         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6235         map service succeeded.
6236         (svc_is_mapped): New function.
6237         (svc_unregister): Use it before trying to unmap service.
6239 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6241         * timezone/zic.c: Update from tzcode2007h.
6243         [BZ #5063]
6244         * timezone/africa: Update from tzdata2007h.
6245         * timezone/antarctica: Likewise.
6246         * timezone/asia: Likewise.
6247         * timezone/australasia: Likewise.
6248         * timezone/europe: Likewise.
6249         * timezone/leapseconds: Likewise.
6250         * timezone/northamerica: Likewise.
6251         * timezone/southamerica: Likewise.
6252         * timzeone/zone.tab: Likewise.
6254         [BZ #5104]
6255         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6257         [BZ #5113]
6258         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6259         avoid warning with -Wconversion.
6260         (__strndup): Likewise.
6261         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6263         [BZ #5112]
6264         * nscd/connections.c (restart): Don't resync if database is
6265         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6267         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6268         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6270         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6271         evetnfd_read, eventfd_write.
6272         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6273         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6274         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6275         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6276         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6277         eventfd_write for GLIBC_2.7.
6279         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6280         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6281         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6282         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6284 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6286         * stdlib/msort.c: Include stdint.h.
6287         (struct msort_param): New type.
6288         (msort_with_tmp): Use struct msort_param pointer for unchanging
6289         parameters.  Add optimized handling for several common sizes
6290         and indirect sorting mode.
6291         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6292         sorting.
6293         Suggested by Belazougui Djamel .
6295         * stdlib/Makefile (tests): Add tst-qsort2.
6296         * stdlib/tst-qsort2.c: New test.
6298 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6300         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6301         for dup2 in case another thread races with the current one.  Retry
6302         in this case.
6304         * misc/error.h: Remove support for use outside of libc.  We have to
6305         include <features.h> now.  Include <bits/error.h> if possible.
6306         * misc/bits/error.h: New file.
6308 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6310         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6311         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6312         __extern_always_inline functions unconditionally, drop macros.
6314         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6315         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6316         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6318         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6319         add __artificial__ attribute.
6321 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6323         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6324         backward to forward direction.
6326         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6328         [BZ #645]
6329         * locale/programs/ld-collate.c (collate_finish): Compare against last
6330         used section which is known to have rules defined.
6331         (collate_read): After order_start, correctly record order of sections
6332         and queue sections up.
6334 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6336         [BZ #5071]
6337         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6338         the same number of pages.
6339         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6341         * locale/programs/ld-collate.c (collate_read): After initial copy
6342         statement, continue in state 0.
6344         * include/stdio_ext.h (__fsetlocking): Define as macro.
6346 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6348         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6349         of section order.
6351         * po/pt_BR.po: Fix typo.
6353 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6355         * iconvdata/Makefile (modules): Add ISO8859-9E.
6356         (distribute): Add iso8859-9e.c.
6357         (gen-8bit-gap-modules): Add iso8859-9e.
6358         * iconvdata/iso8859-9e.c: New file.
6359         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6360         * iconvdata/TESTS: Likewise.
6361         * iconvdata/tst-tables.sh: Likewise.
6363         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6365         * locale/iso-639.def: Add several new entries.
6367 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6369         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6370         void * pointers instead of struct link_map **.
6371         (_dl_scope_free): Change argument type to void *.
6372         * include/link.h (struct link_map): Change type of l_reldeps
6373         to struct link_map_reldeps, move l_reldepsact into that
6374         struct too.
6375         * elf/dl-deps.c: Include atomic.h.
6376         (_dl_map_object_deps): Only change l->l_initfini when it is
6377         fully populated, use _dl_scope_free for freeing it.  Optimize
6378         removal of libs from reldeps by using l_reserved flag, when
6379         some removal is needed, allocate a new list instead of
6380         reallocating and free the old with _dl_scope_free.  Adjust
6381         for l_reldeps and l_reldepsact changes.
6382         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6383         searching in l_initfini and l_reldeps without holding dl_load_lock.
6384         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6385         l_reldepsact changes.
6386         * elf/dl-close.c (_dl_close_worker): Likewise.
6387         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6389 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6391         * iconvdata/Makefile (modules): Add KOI8-RU.
6392         (distribute): Add koi8-ru.c.
6393         (gen-8bit-gap-modules): Add koi8-ru.
6394         * iconvdata/koi8-ru.c: New file.
6395         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6396         * iconvdata/TESTS: Likewise.
6397         * iconvdata/tst-tables.sh: Likewise.
6399         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6401 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6403         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6404         with __warning__/__error__ attributes.
6405         (__warnattr): Define.
6406         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6407         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6408         __warnattr.
6409         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6410         of __*_chk if compile time detectable overflow is found.
6411         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6412         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6413         with __warnattr.
6414         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6415         instead of __*_chk if compile time detectable overflow is found.
6416         (__gets_alias): Rename to...
6417         (__gets_warn): ... this.  Add __warnattr.
6418         (gets): Call __gets_warn instead of __gets_alias.
6419         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6420         aliases with __warnattr.
6421         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6422         time detectable overflow is found.
6423         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6424         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6425         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6426         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6427         __getdomainname_chk_warn): New aliases with __warnattr.
6428         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6429         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6430         __*_chk_warn instead of __*_chk if compile time detectable overflow
6431         is found.
6432         (__getgroups_chk): Rename argument to __listlen from listlen.
6433         (__getwd_alias): Rename to...
6434         (__getwd_warn): ... this.  Add __warnattr.
6435         (getwd): Call __getwd_warn instead of __getwd_alias.
6436         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6437         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6438         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6439         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6440         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6441         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6442         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6443         compile time detectable overflow is found.
6444         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6445         to use __*_chk or not.
6446         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6447         in comparisons which function should be called and in __*_chk*
6448         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6449         detectable overflow is found.
6450         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6451         __*_chk argument.
6452         * debug/tst-chk1.c (do_test): Add a few more tests.
6454 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6456         [BZ #5058]
6457         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6458         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6459         (_nl_unload_domain): Finalize conversions_lock.
6460         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6461         handling table of known conversions.
6463 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6465         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6466         close_not_cancel_no_status instead of close.
6468 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6470         [BZ #5028]
6471         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6472         nrules != 0 for multibyte chars.
6474 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6476         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6477         Provide better error message in case the type is unknown.
6479         [BZ #4963]
6480         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6481         * string/stratcliff.c: Make usable to test wide char functions.
6482         * wcsmbs/wcsatcliff.c: New file.
6483         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6485         [BZ #4972]
6486         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6487         (distribute): Add mac-centraleurope.c.
6488         (gen-8bit-gap-modules): Add mac-centraleurope.
6489         * iconvdata/mac-centraleurope.c: New file.
6490         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6491         * iconvdata/TESTS: Likewise.
6492         * iconvdata/tst-tables.sh: Likewise.
6494         [BZ #5043]
6495         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6497 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6499         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6500         from __x86_64_core_cache_size_half.
6501         (init_cacheinfo): Compute shared cache size for AMD processors with
6502         shared L3 correctly.
6503         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6504         name change.
6505         Patch in large parts by Evandro Menezes.
6507 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6509         * elf/dl-lookup.c (add_dependency): Handle failing memory
6510         allocation for dependency list.  Remove unnecessary check.
6512         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6513         open/close when determining source addresses.
6515         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6516         sha512-crypt, and sha512.
6517         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6518         (distribute): Add sha256.h and sha512.h.
6519         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6520         and call the appropriate code.
6521         * crypt/sha256-crypt.c: New file.
6522         * crypt/sha256.c: New file.
6523         * crypt/sha256.h: New file.
6524         * crypt/sha256c-test.c: New file.
6525         * crypt/sha256test.c: New file.
6526         * crypt/sha512-crypt.c: New file.
6527         * crypt/sha512.c: New file.
6528         * crypt/sha512.h: New file.
6529         * crypt/sha512c-test.c: New file.
6530         * crypt/sha512test.c: New file.
6532 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
6534         * misc/bits/syslog.h (syslog): Remove extraneous argument from
6535         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6536         __syslog_chk.
6538 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
6540         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6541         %as in fscanf format strings.
6543         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6544         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6545         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6546         Likewise.
6547         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6548         Likewise.
6550         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6551         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6552         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6553         * elf/dl-sym.c (do_sym): Likewise.
6554         * include/link.h (struct link_map): Add l_serial field.
6555         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6556         * elf/dl-lookup.c (add_dependency): Add flags argument.
6557         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6558         flags, use THREAD_GSCOPE_RESET_FLAG before and
6559         THREAD_GSCOPE_SET_FLAG after
6560         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6561         Don't dereference map until it has been found on some list.
6562         If map->l_serial changed, return -1.
6564 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
6566         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6567         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6568         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6569         libc_hidden_proto.
6570         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6571         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6572         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6573         add libc_hidden_proto.
6574         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6575         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6576         conformance requested.
6577         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6578         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6579         conformance requested.
6580         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6581         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6582         conformance requested.
6583         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6584         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6585         ISO C99 or POSIX conformance requested.
6586         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6587         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6588         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6589         and __isoc99_vsscanf@@GLIBC_2.7.
6590         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6591         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6592         (tests): Add scanf14.
6593         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6594         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6595         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6596         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6597         CFLAGS-isoc99_scanf.c): Add $(exceptions).
6598         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6599         from using internal headers.
6600         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6601         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6602         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6603         and __isoc99_vswscanf@@GLIBC_2.7.
6604         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6605         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6606         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6607         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6608         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6609         * stdio-common/isoc99_scanf.c: New file.
6610         * stdio-common/isoc99_vsscanf.c: New file.
6611         * stdio-common/isoc99_vscanf.c: New file.
6612         * stdio-common/isoc99_vfscanf.c: New file.
6613         * stdio-common/isoc99_fscanf.c: New file.
6614         * stdio-common/isoc99_sscanf.c: New file.
6615         * wcsmbs/isoc99_fwscanf.c: New file.
6616         * wcsmbs/isoc99_vswscanf.c: New file.
6617         * wcsmbs/isoc99_swscanf.c: New file.
6618         * wcsmbs/isoc99_wscanf.c: New file.
6619         * wcsmbs/isoc99_vwscanf.c: New file.
6620         * wcsmbs/isoc99_vfwscanf.c: New file.
6621         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6622         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6623         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6624         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6625         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6626         * stdio-common/scanf14.c: New test.
6627         * stdio-common/scanf15.c: New test.
6628         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6629         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6630         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6631         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6632         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6633         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6634         __nldbl___isoc99_scanf@@GLIBC_2.7,
6635         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6636         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6637         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6638         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6639         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6640         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6641         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6642         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6643         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6644         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6645         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6646         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6647         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6648         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6649         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6650         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6651         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6652         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6653         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6654         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6655         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6656         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6657         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6658         functions.
6659         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6660         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6661         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6662         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6663         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6664         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6665         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6666         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6667         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6668         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6669         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6670         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6672         * stdio-common/Makefile (tests): Add scanf13.
6673         (scanf13-ENV): New.
6674         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6675         m modifier followed by l.
6676         (STRING_ARG): Add width argument.
6677         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6678         <case L_('C')>: Handle %mlc and %mC.
6679         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6680         arguments.
6681         * stdio-common/scanf13.c: New test.
6683         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6684         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6686 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6688         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6689         type and __THROW marker of splice, vmsplice, and tee.
6690         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6691         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6692         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6693         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6694         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6695         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6696         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6697         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6698         as cancellation points.
6700 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
6702         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6703         parse more than three parts of the version number.
6705 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
6707         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6708         modifier.  Patch by Jakub Jelinek.
6710 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
6712         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6713         call_fallocate in misc subdir.
6714         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6715         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6716         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6717         instead of __fallocate64.
6718         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6720 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
6722         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6723         * rt/Makefile (headers): Add bits/mqueue2.h.
6724         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6725         optimizing with GCC and __va_arg_pack_len is defined.
6726         * rt/bits/mqueue2.h: New file.
6727         * rt/mq_open.c (__mq_open): Renamed from mq_open.
6728         (mq_open): New strong_alias.
6729         (__mq_open_2): New function.
6730         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6731         (mq_open): New strong_alias.
6732         (__mq_open_2): New function.
6733         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6734         * Versions.def (librt): Add GLIBC_2.7 version.
6735         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6736         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6738         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6739         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6740         is defined rather than when not C++.
6741         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6742         __openat64_alias): New redirects.
6743         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6744         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6745         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6746         (open, open64, openat, openat64): Rewrite as __extern_always_inline
6747         functions instead of function-like macros.
6749 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6751         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6752         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6753         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6755 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
6757         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6758         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6760 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
6762         * inet/tst-network.c: Increment ERRORS for failing tests.
6764 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
6766         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6767         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6768         implement as __extern_always_inline function.
6769         (vsyslog): Define as __extern_always_inline function unconditionally.
6770         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6771         When __va_arg_pack is defined, implement as __extern_always_inline
6772         functions.
6773         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6774         __extern_always_inline functions unconditionally.
6775         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6776         bits/stdio2.h will be included.
6777         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6778         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6779         implement as __extern_always_inline functions.
6780         (vswprintf, vwprintf, vfwprintf): Define as
6781         __extern_always_inline functions unconditionally.
6782         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6784 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
6786         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6787         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6788         attribute.
6789         * include/features.h (__USE_EXTERN_INLINES): Define only when
6790         __extern_inline is defined.
6791         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6792         is defined instead of when not __cplusplus.
6793         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6794         is defined instead of when not __cplusplus.
6795         * socket/sys/socket.h: Include bits/socket2.h when
6796         __extern_always_inline is defined instead of when not __cplusplus.
6797         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6798         is defined instead of when not __cplusplus.
6799         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6800         is defined instead of when not __cplusplus.
6801         * string/string.h: Include bits/string3.h when __extern_always_inline
6802         is defined instead of when not __cplusplus.
6803         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6804         is defined instead of when not __cplusplus.
6805         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6806         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6807         is not defined.
6808         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6809         defined __extern_always_inline instead of !defined __cplusplus.
6810         * libio/bits/stdio-ldbl.h: Likewise.
6811         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6812         * misc/bits/syslog.h (syslog): Don't define for C++.
6813         (vsyslog): Use __extern_always_inline function for C++ instead of
6814         a macro.
6815         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6816         whenever that macro is defined.
6817         (vprintf): Don't provide the inline for C++.
6818         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6819         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6820         define the macros for C++.
6821         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6822         __extern_always_inline functions for C++.
6823         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6824         stat64, lstat64, fstat64, fstatat64): Don't define if not
6825         __USE_EXTERN_INLINES.
6826         * wcsmbs/bits/wchar2.h: Fix #error message.
6827         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6828         (vswprintf, vwprintf, vfwprintf): Define using
6829         __extern_always_inline functions for C++.
6830         * string/bits/string3.h: Don't #undef macros if __cplusplus.
6831         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6832         strncpy, strcat, strncat): Define as __extern_always_inline
6833         functions instead of macros for C++.
6834         * math/bits/cmathcalls.h: Guard __extern_inline routines with
6835         defined __extern_inline.
6836         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6837         to __extern_inline whenever that macro is defined.
6838         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6839         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6840         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6841         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6842         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6843         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6844         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6845         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6846         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6847         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6848         prototypes.  Only provide __extern_inline routines if
6849         __USE_EXTERN_INLINES.
6850         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6851         tests.
6852         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6853         For now avoid some *printf tests in C++.  Skip all testing
6854         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6855         is not.
6856         * debug/tst-chk4.cc: New file.
6857         * debug/tst-chk5.cc: New file.
6858         * debug/tst-chk6.cc: New file.
6859         * debug/tst-lfschk4.cc: New file.
6860         * debug/tst-lfschk5.cc: New file.
6861         * debug/tst-lfschk6.cc: New file.
6862         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6863         prototypes in C++.
6864         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6865         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6866         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6868 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
6870         * po/cs.po: Update from translation team.
6872 2007-09-11  Roland McGrath  <roland@redhat.com>
6874         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6875         compiling.
6877 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6879         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6881 2007-09-05  Roland McGrath  <roland@redhat.com>
6883         * manual/signal.texi (Signaling Another Process): Typo fix.
6884         From Karl Berry <karl@freefriends.org>.
6886 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6888         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6889         zero if not defined.
6890         (make_request): Recognize optimistic addresses and treat them like
6891         deprecated addresses.
6892         Reported by Neil Horman <nhorman@redhat.com>.
6894 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6896         * nscd/connections.c (send_ro_fd): Also transfer file size.
6897         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6898         file size don't call fstat.
6900         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6901         ahead and map the file.  This should always be correct and we can
6902         catch problems later.
6904 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6906         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6907         prototypes.
6908         (__fread_alias, __fread_unlocked_alias): New aliases.
6909         (fread): New extern inline.
6910         (fread_unlocked): Likewise.  Undef macro before definition of
6911         the inline function.
6912         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6913         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6914         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6915         and __fread_unlocked_chk@@GLIBC_2.7.
6916         * debug/fread_chk.c: New file.
6917         * debug/fread_u_chk.c: New file.
6918         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6920 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6922         * sysdeps/unix/sysv/linux/syscalls.list
6923         (personality): Change caller to EXTRA.
6925 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6927         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6928         to keep gcc quiet.
6929         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6931         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6932         NDEBUG is defined.
6934         * Makerules: Use -p option with mkdir.
6936         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6937         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6938         (_xdr_directory_obj): Likewise.
6939         (xdr_entry_obj): Likewise.
6940         (xdr_group_obj): Likewise.
6941         (xdr_link_obj): Likewise.
6942         (xdr_table_obj): Likewise.
6943         (_xdr_nis_result): Likewise.
6944         (_xdr_ns_request): Likewise.
6945         (_xdr_ib_request): Likewise.
6946         (_xdr_nis_taglist): Likewise.
6947         (xdr_cback_data): Likewise.
6948         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6949         (xdr_ypresp_maplist): Likewise.
6951         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6953         * posix/regex_internal.h: Prevent some declarations and definitions
6954         to be seen when used in tests.
6956         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6957         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6959         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6961         * config.make.in (datarootdir): Add to shut up configure.
6963         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6964         associativity for fully-associative caches.
6966         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6967         requests.  Fill on more associativity values for L2.
6968         Patch mostly by Evandro Menezes.
6970 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6972         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6973         (_libc_vdso_platform_setup): Avoid using exported variable by using
6974         alias.
6976         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6978         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6979         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6980         defined.
6982 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6984         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6985         align stack for call if pltexit is to be used.
6987         [BZ #3924]
6988         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6989         align for function call in case pltexit has to be called later.
6991         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6992         implicit atomic operation when storing function pointer.
6993         (_dl_runtime_profile): Likewise.
6995 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6997         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6998         NIS_NOTFOUND.
7000 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7002         [BZ #4566]
7003         * string/strtok.c: Fix typo in comment.
7005         [BZ #4582]
7006         * debug/segfault.c: Fix typos in comments.
7008         [BZ #4588]
7009         * stdio-common/tempnam.c: Fix comment, it is not checked that
7010         TMPDIR points to a writable directory.
7012         [BZ #4726]
7013         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7014         memory allocated for the name server address.
7016         [BZ #4946]
7017         * nscd/connections.c (handle_request): Using sendfile always
7018         requires that mmap is used for the database.
7019         Patch by Petr Baudis <pasky@suse.cz>.
7021         [BZ #4905]
7022         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7023         suddenly has two or more addresses, ignore it and remove the old
7024         entry.
7026         [BZ #4814]
7027         * resolv/res_hconf.c: Prepare for compiling outside libc.
7028         * nscd/res_hconf.c: New file.
7029         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7030         the new file.
7031         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7032         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7034         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7036         [BZ #4925]
7037         * debug/pcprofiledump.c: Turn on internationalization by calling
7038         setlocale.  Patch mostly by Benno Schulenberg.
7040         [BZ #4936]
7041         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7042         the state.
7043         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7044         * iconvdata/bug-iconv5.c: New file.
7046 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7048         [BZ #4896]
7049         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7050         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7051         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7052         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7053         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7054         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7055         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7056         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7058 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7060         [BZ #4937]
7061         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7062         lookup loop.  Suggested by John Reiser.
7064 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7066         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7068 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7070         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7071         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7072         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7073         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7074         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7075         to...
7076         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7078 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7080         * po/nl.po: Update from translation team.
7082 2007-08-16  Andreas Jaeger  <aj@suse.de>
7084         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7085         Reported by Peter Festner <peter.festner@ewetel.net>.
7087 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7089         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7091 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7093         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7094         to check for undefined symbols.
7096         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7097         If the syscall fails, set errno to the actual returned error number
7098         rather than EINVAL.
7099         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7100         arguments are incorrect, set errno to EINVAL, if the syscall
7101         fails, set errno to the actual returned error number.
7103         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7104         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7106         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7107         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7108         file.
7109         (ASI_PNF, ASI_BLK_P): Don't define.
7110         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7111         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7112         file.
7113         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7114         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7115         file.
7117 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7119         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7120         FE_UNDERFLOW on Niagara CPUs.
7122         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7123         exceptions.
7125 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7127         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7128         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7129         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7130         flush should be used or not inside of the function.
7131         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7133         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7134         __thread_start): Use HIDDEN_JUMPTARGET.
7135         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7136         __thread_start): Likewise.
7137         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7139         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7140         Add libc_hidden_proto.
7141         (STRTOF): Add libc_hidden_proto.
7142         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7143         (strtold_l, wcstold_l): Use them as second argument for
7144         long_double_symbol.
7146 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7148         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7150 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7152         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7154 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7156         * po/bg.po: New file.  From the translation team.
7158 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7160         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7161         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7162         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7163         when each feature was introduced.
7165         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7166         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7167         (CHECK_HASH): New macro.
7168         (PREPARE_VERSION): Use it.
7170         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7171         prototype if not __ASSUME_PSELECT.
7172         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7173         prototype if not __ASSUME_PPOLL.
7175         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7177         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7178         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7179         is defined.
7181 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7183         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7184         (_libc_vdso_platform_setup): If vDSO is not available point
7185         __vdso_gettimeofday to the vsyscall.
7186         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7187         __vdso_gettimeofday instead of vsyscall.
7189 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7191         * nscd/servicescache.c: Include kernel-features.h.
7192         * nscd/gai.c: Likewise.
7193         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7194         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7195         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7196         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7197         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7198         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7199         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7200         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7201         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7203 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7205         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7206         and _dl_get_origin defines anymore.
7208         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7209         Build fix for systems which might lack POSIX timer support.
7211         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7212         (_libc_vdso_platform_setup): Mangle function pointers before storing
7213         them.
7214         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7215         Demangle vdso pointer before use.
7216         (INTERNAL_VSYSCALL): Likewise.
7218         * elf/cache.c (primes): Mark as const.
7219         Noted by Roland McGrath.
7221 2007-08-01  Andreas Jaeger  <aj@suse.de>
7222             Jakub Jelinek  <jakub@redhat.com>
7224         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7225         (options): Add option.
7226         (parse_opt): Handle option.
7227         (manual_link): Adjust process_file caller.  Call implicit_soname.
7228         (search_dir): Formatting.  Use and populate auxiliary cache.
7229         (main): Load and save auxiliary cache.
7230         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7231         stat64 from fstat64 to caller.
7232         (implicit_soname): New function.
7233         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7234         leave *soname as NULL.
7235         * elf/cache.c: Include libgen.h.
7236         (print_entry, print_cache, compare, save_cache, add_to_cache):
7237         Formatting and cleanups.
7238         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7239         aux_cache_file): New structures.
7240         (AUX_CACHEMAGIC): Define.
7241         (primes): New array.
7242         (aux_hash_size, aux_hash): New variables.
7243         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7244         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7245         load_aux_cache, save_aux_cache): New functions.
7246         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7247         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7248         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7249         (process_file): Adjust prototype.
7251 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7253         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7254         with __need_size_t.
7256 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7258         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7259         r_found_version structure as second parameter.
7260         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7261         (_dl_vdso_vsym): Change type of second parameter accordingly.
7262         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7263         (_libc_vdso_platform_setup): Adjust.
7264         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7265         (_libc_vdso_platform_setup): Likewise.
7267         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7268         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7269         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7270         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7271         * csu/libc-start.c: Pretty printing.
7272         Use VDSO_SETUP if defined.
7273         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7274         and let generic code call into _libc_vdso_platform_setup.
7275         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7276         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7277         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7278         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7279         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7280         for GLIBC_PRIVATE.
7281         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7282         (sysdep_rountines): Add dl-vdso.
7284         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7285         of routines.
7287         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7288         attribute_hidden to __vdso_gettimeofday prototype.
7290 2007-08-12  Roland McGrath  <roland@redhat.com>
7292         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7293         From: Karl Berry <karl@freefriends.org>.
7295 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7297         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7298         an atime update for the files we read.
7300 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7302         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7304         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7305         instead of mkstemp.
7307         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7308         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7309         * misc/mkostemp.c: New file.
7310         * misc/mkostemp64.c: New file.
7311         * stdlib/stdlib.h: Declare the new functions.
7312         * sysdeps/posix/tempname.c: Add new parameter which is added to
7313         the flags for open.  Remove __GT_BIGFILE handling.
7314         * stdio-common/tempname.c: Likewise.
7315         * include/stdio.h: Adjust __gen_tempname prototype.
7316         Renumber __GT_* constants.
7317         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7318         * misc/mkdtemp.c: Likewise.
7319         * misc/mkstemp.c: Likewise.
7320         * misc/mkstemp64.c: Likewise.
7321         * misc/mktemp.c: Likewise.
7322         * stdio-common/tempnam.c: Likewise.
7323         * stdio-common/tmpfile.c: Likewise.
7324         * stdio-common/tmpfile64.c: Likewise.
7325         * stdio-common/tmpnam.c: Likewise.
7326         * stdio-common/tmpnam_r.c: Likewise.
7328 2007-08-10  Roland McGrath  <roland@frob.com>
7330         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7331         New macros.
7332         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7333         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7335 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7337         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7338         possible.
7339         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7340         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7341         * nss/nss_files/files-have_o_cloexec.c: New file.
7343         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7344         available.
7346 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7348         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7349         ___new_wcstold_l): New weak aliases.
7350         (strtold_l, wcstold_l): Use them as second argument for
7351         long_double_symbol.
7353 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7355         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7356         register in test for error.
7358         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7359         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7361         * po/sv.po: Update from translation team.
7363 2007-08-06  Roland McGrath  <roland@redhat.com>
7365         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7366         Remove __strto*_l inlines.
7367         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7368         * stdlib/strtod.c: Add libc_hidden_def.
7369         * stdlib/strtod_l.c: Likewise.
7370         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7371         for __new_strtold and __new_wcstold.
7372         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7373         __STRTOF, STRTOF.
7374         * stdlib/strtol.c: Add libc_hidden_def.
7375         * stdlib/strtol_l.c: Likewise.
7376         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7377         strtoq.
7379         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7381         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7382         * scripts/data/localplt-generic.data: ... here.
7383         * elf/Makefile (check-data): Get generic file if no other.
7384         ($(objpfx)check-localplt.out): Make target unconditional.
7386         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7387         Use ElfW(Nhdr).
7389 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7391         * po/zh_CN.po: Updated translation from translation team.
7393 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7396         Don't use CGOTSETUP and CGOTRESTORE macros.
7398 2007-08-04  Roland McGrath  <roland@redhat.com>
7400         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7402 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7404         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7405         __extension__ around the whole statement expression.
7407 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7409         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7410         elements during initialization.
7412         * po/pl.po: Updated translation from translation team.
7413         * po/tr.po: Likewise.
7414         * po/nl.po: Likewise.
7416 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7418         * rt/aio.h: Add __nonnull attributes.
7420 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7422         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7423         * stdlib/Makefile (tests): Add tst-strtod5.
7424         (tst-strtod5-ENV): New.
7425         * stdlib/tst-strtod5.c: New file.
7427         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7428         failed.
7429         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7430         on failure.
7432         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7433         allocated.
7435 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7437         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7438         numbers.
7440 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7442         * io/Makefile (aux): Add have_o_cloexec.
7443         * include/fcntl.h: Declare __have_o_cloexec.
7444         * io/have_o_cloexec.c: New file.
7445         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7446         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7447         fcntl call if not necessary.
7448         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7449         of local variable.
7451         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7452         Avoid memset, add explicit initialization.
7453         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7454         to the end and change into zero-sized array.
7455         Move lock member to fill a hole on 64-bit platforms.
7457         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7458         inline functions.
7459         * include/stdlib.h: Add __strto*_internal prototypes here.
7460         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7461         inline functions.
7462         * include/wchar.h: Add __wcsto*_internal prototypes.
7463         * sysdeps/generic/inttypes.h: No need to protect the declaration
7464         of the __strto*_internal and __wcsto*_internal members here.
7466         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7468 2007-08-02  Roland McGrath  <roland@redhat.com>
7470         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7471         $(inst_bindir)/getconf if possible.
7473         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7474         (generated): Add it.
7475         ($(inst_libexecdir)/getconf): Use it.
7477 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7479         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7480         /proc is faster and sufficient.  /sys is still needed for
7481         __get_nprocs_conf.
7483 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7485         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7486         syscall as __fallocate64.
7487         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7488         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7490 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7492         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7493         value.
7495         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7496         if off_t is different rank from size_t.
7498         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7499         uw_frame_state_for): Avoid type punning warnings.
7500         * sysdeps/generic/unwind-dw2-fde-glibc.c
7501         (_Unwind_IteratePhdrCallback): Likewise.
7502         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7503         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7504         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7505         pointers.
7507 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7509         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7510         total processors using sysfs.
7511         (__get_nprocs): Use sysfs to determine which processors are online.
7513 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7515         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7516         syscall arguments count.
7518         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7520 2007-07-30  Roland McGrath  <roland@redhat.com>
7522         * manual/libc.texinfo: Update copyrights, formatting magic, and
7523         @dircategory.  From Karl Berry <karl@freefriends.org>.
7525 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
7527         [BZ #4860]
7528         * io/Makefile (headers): Add bits/fcntl2.h.
7530         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7531         using gcc builtin.
7532         (__CPU_EQUAL_S): Likewise.
7534         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7535         (tests): Add tst-cpuset.
7536         * posix/sched_cpualloc.c: New file.
7537         * posix/sched_cpufree.c: New file.
7538         * posix/tst-cpuset.c: New file.
7539         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7540         GLIBC_2.7.
7541         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7542         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7543         macros.  Define CPU_*_S macros.
7545 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7547         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7548         entry.
7550         [BZ #4858]
7551         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7552         #.0g and value rounded to 1.0.
7553         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7555 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
7557         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7558         for int_frac_digits and frac_digits.
7560         * login/logout.c (logout): Avoid aliasing violation.
7561         * login/logwtmp.c (logwtmp): Likewise.
7563         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7565         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7566         to avoid warning.
7567         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7568         warning.
7569         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7570         warning.
7571         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7572         to avoid warnings.
7574         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7575         void **.
7576         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7578         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7579         char * to avoid warning.
7580         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7582         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7584         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7585         allocate_arrays): Cast second argument to charmap_find_symbol
7586         to char * to avoid warnings.
7588         * locale/programs/repertoire.c (repertoire_new_char): Change
7589         from_nr, to_nr and cnt to unsigned long, adjust printf format
7590         string.
7592         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7593         Cast second argument to new_element to char * to avoid warnings.
7595         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7597         * intl/gettextP.h (struct loaded_domain): Change plural to const
7598         struct expression *.
7599         * intl/plural-eval.c (plural_eval): Change first argument to
7600         const struct expression *.
7601         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7602         argument to const struct expression **.
7603         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7604         prototypes.
7605         * intl/loadmsgcat (_nl_unload_domain): Cast away const
7606         in call to __gettext_free_exp.
7608         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7609         unitialized wstring/wpattern var warnings.
7611         * posix/runtests.c (struct a_test): Make data field const char *.
7613         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7614         vars if not LDBL_MANT_DIG >= 106.
7616         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7618         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7619         __find_specmb to avoid warning.
7621         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7623         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7624         to avoid warnings.
7626         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7627         initializer.
7629         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7630         tv var when it will be actually used.
7632         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7633         to avoid warnings.
7635         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7636         char array resp. pointer.
7637         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7638         char array.
7639         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7640         to const unsigned char **.
7641         (ucs4_to_cns11643): Change second argument to unsigned char *.
7642         * iconvdata/euc-tw.c (BODY): Change endp type to
7643         const unsigned char *.
7644         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7645         to unsigned char *.
7646         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7647         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7648         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7649         types to unsigned char pointers/arrays instead of char.
7650         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7651         to unsigned char *.
7652         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7653         * iconvdata/jis0212.h: Include assert.h.
7654         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7655         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7656         of trying to handle that.
7657         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7658         shut up a warning.
7659         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7660         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7661         two dimensional const unsigned char arrays.
7662         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7663         Initialize endp to inptr to shut up a warning.
7665 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7667         [BZ #4772]
7668         * time/strptime_l.c (__strptime_internal): Silently ignore
7669         strftime modifiers and field width in recursive calls.
7671         * include/time.h (enum ptime_locale_status): Remove.
7672         (__strptime_internal): Remove decided and era_cnt arguments,
7673         add statep argument.
7674         * time/strptime_l.c (__strptime_internal): Remove decided
7675         and era_cnt arguments, add statep argument.  Don't recompute
7676         any fields in recursive calls, only update caller's tm
7677         and state, if recursive call fails, don't change tm nor
7678         any state.
7679         (get_alt_number): Adjust.
7680         (recursive): Adjust caller.
7681         (strptime): Likewise.
7682         * time/strptime.c (strptime): Likewise.
7684 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7686         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7687         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7688         if from and to charsets are the same.
7689         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7690         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7691         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7693 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7695         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7696         Don't define wint_t when __need_mbstate_t unless it
7697         is necessary.
7698         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7699         in the typedef if possible.
7700         * wctype/wctype.h (wint_t): Define by including
7701         wchar.h with __need_wint_t instead of including stddef.h
7702         with __need_wint_t and as fallback definining it ourselves.
7703         * iconv/gconv.h (__need_wint_t): Define before including
7704         wchar.h.
7705         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7706         or _GLIBCPP_USE_WCHAR_T.
7707         (__need_wchar_t): Don't define
7708         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7709         (__need_wint_t): Don't define before including stddef.h,
7710         define before including wchar.h only if _LIBC or
7711         _GLIBCPP_USE_WCHAR_T.
7712         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7713         * sysdeps/mach/hurd/_G_config.h: Likewise.
7714         * sysdeps/generic/_G_config.h: Likewise.
7715         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7716         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7717         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7718         if _LIBC or _GLIBCPP_USE_WCHAR_T.
7720 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7722         * sysdeps/posix/posix_fallocate64.c: Undefine
7723         __posix_fallocate64_l64 before alias handling.
7724         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7725         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7726         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7727         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7729         * io/tst-posix_fallocate.c: Include <fcntl.h>.
7731 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
7733         * locale/programs/ld-collate.c (atwc): New variable.
7734         (add_to_tablewc): New toplevel function, moved from collate_output.
7735         (collate_output): Remove add_to_tablewc nested function.
7737         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7738         (name_insert): New function.
7739         (write_output): Remove hash_table and hash_size vars and name_insert
7740         nested function.
7742 2007-07-24  Roland McGrath  <roland@redhat.com>
7744         * Makerules (install-others-programs-nosubdir): New target.
7745         (install-no-libc.a-nosubdir): Depend on it.
7747         * iconv/Makefile (install-others-programs): Set this instead of
7748         install-others.
7749         * login/Makefile (install-others-programs): Likewise.
7750         * posix/Makefile (install-others-programs): Likewise.
7752         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7753         dependencies.
7755 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
7757         * io/Makefile (tests): Add tst-posix_fallocate.
7758         * io/tst-posix_fallocate.c: New file.
7760         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7761         __ASSUME_FALLOCATE.
7763 2007-07-22  Roland McGrath  <roland@frob.com>
7765         * hurd/getdport.c: Add missing copyright year update.
7767         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7768         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7770 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
7772         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7774         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7775         O_CLOEXEC is needed.
7776         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7777         Avoid additional fcntl to set O_CLOEXEC if not needed.
7778         * nis/nss_compat/compat-initgroups.c: Likewise.
7779         * nis/nss_compat/compat-pwd.c: Likewise.
7780         * nis/nss_compat/compat-spwd.c: Likewise.
7782 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7784         [BZ #3665]
7785         * manual/errno.texi: Change ECANCELED value to 119.
7787         [BZ #4610]
7788         * mach/lock-intern.h: Include <sys/cdefs.h>.
7790         [BZ #4178]
7791         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7792         reading A.
7794         [BZ #4126]
7795         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7796         to __sigsuspend.
7798         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7800 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
7802         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7803         `__ASSEMBLER__'.
7804         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7806 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
7808         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7809         descriptor received from nscd.
7811         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7813         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7814         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7815         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7816         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7817         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7818         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7820 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7822         [BZ #4816]
7823         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7825         [BZ #4813]
7826         * login/forkpty.c (forkpty): Close master and slave fds on
7827         fork failure.  Patch by
7828         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7830 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
7832         * include/features.h (__USE_ISOC95): New define.
7833         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7834         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7835         for -std=iso9899:199409.
7836         * CONFORMANCE: Remove comments about unsupported AMD1.
7838 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7840         * sysdeps/ia64/sched_cpucount.c: New file.
7841         * sysdeps/powerpc/sched_cpucount.c: New file.
7843         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7844         __BEGIN_DECLS/__END_DECLS around the prototype.
7845         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
7846         pointer to const cpu_set_t.
7848         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7849         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7850         __need_size_t and include stddef.h.
7851         * sysvipc/sys/msg.h: Likewise.
7852         * posix/sched.h: Likewise.
7853         * hurd/hurd/signal.h (__need_size_t): Define.
7855         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7856         neither does signal.h in pedantic ISO C namespaces.  stdio.h
7857         no longer defines wint_t or wchar_t.
7859         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7860         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7861         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7862         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7863         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7864         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7865         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7866         * debug/printf_chk.c (__printf_chk): Likewise.
7867         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7868         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7870         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7871         Define.
7873         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7874         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7876 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7878         [BZ #4792]
7879         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7880         * malloc/malloc.h (realloc): Likewise.
7882         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7883         if one of proc_file_chain streams has that fileno.
7884         * stdio-common/Makefile (tests): Add tst-popen2.
7885         * stdio-common/tst-popen2.c: New test.
7887 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7889         * elf/ldconfig.c: Allow GPLv2 or any later version.
7890         * elf/readlib.c: Likewise.
7891         * elf/chroot_canon.c: Likewise.
7892         * elf/cache.c: Likewise.
7893         * nscd/mem.c: Likewise.
7894         * nscd/getpwuid_r.c: Likewise.
7895         * nscd/grpcache.c: Likewise.
7896         * nscd/aicache.c: Likewise.
7897         * nscd/getsrvbynm_r.c: Likewise.
7898         * nscd/nscd.c: Likewise.
7899         * nscd/servicescache.c: Likewise.
7900         * nscd/getsrvbypt_r.c: Likewise.
7901         * nscd/initgrcache.c: Likewise.
7902         * nscd/gethstbyad_r.c: Likewise.
7903         * nscd/gethstbynm2_r.c: Likewise.
7904         * nscd/getgrnam_r.c: Likewise.
7905         * nscd/nscd_setup_thread.c: Likewise.
7906         * nscd/getpwnam_r.c: Likewise.
7907         * nscd/gai.c: Likewise.
7908         * nscd/connections.c: Likewise.
7909         * nscd/dbg_log.c: Likewise.
7910         * nscd/cache.c: Likewise.
7911         * nscd/hstcache.c: Likewise.
7912         * nscd/nscd_conf.c: Likewise.
7913         * nscd/getgrgid_r.c: Likewise.
7914         * nscd/pwdcache.c: Likewise.
7915         * catgets/gencat.c: Likewise.
7916         * locale/programs/linereader.h: Likewise.
7917         * locale/programs/locarchive.c: Likewise.
7918         * locale/programs/ld-paper.c: Likewise.
7919         * locale/programs/locfile-kw.h: Likewise.
7920         * locale/programs/ld-address.c: Likewise.
7921         * locale/programs/xmalloc.c: Likewise.
7922         * locale/programs/ld-time.c: Likewise.
7923         * locale/programs/localedef.c: Likewise.
7924         * locale/programs/simple-hash.c: Likewise.
7925         * locale/programs/xstrdup.c: Likewise.
7926         * locale/programs/ld-numeric.c: Likewise.
7927         * locale/programs/locfile-kw.gperf: Likewise.
7928         * locale/programs/ld-collate.c: Likewise.
7929         * locale/programs/charmap-kw.gperf: Likewise.
7930         * locale/programs/charmap.h: Likewise.
7931         * locale/programs/charmap-kw.h: Likewise.
7932         * locale/programs/config.h: Likewise.
7933         * locale/programs/locfile.c: Likewise.
7934         * locale/programs/ld-ctype.c: Likewise.
7935         * locale/programs/charmap.c: Likewise.
7936         * locale/programs/ld-messages.c: Likewise.
7937         * locale/programs/repertoire.h: Likewise.
7938         * locale/programs/locale.c: Likewise.
7939         * locale/programs/ld-name.c: Likewise.
7940         * locale/programs/linereader.c: Likewise.
7941         * locale/programs/locfile.h: Likewise.
7942         * locale/programs/3level.h: Likewise.
7943         * locale/programs/ld-monetary.c: Likewise.
7944         * locale/programs/ld-measurement.c: Likewise.
7945         * locale/programs/charmap-dir.c: Likewise.
7946         * locale/programs/ld-identification.c: Likewise.
7947         * locale/programs/localedef.h: Likewise.
7948         * locale/programs/charmap-dir.h: Likewise.
7949         * locale/programs/repertoire.c: Likewise.
7950         * locale/programs/simple-hash.h: Likewise.
7951         * locale/programs/ld-telephone.c: Likewise.
7952         * locale/programs/locale-spec.c: Likewise.
7953         * locale/programs/locfile-token.h: Likewise.
7954         * posix/getconf.c: Likewise.
7955         * iconv/dummy-repertoire.c: Likewise.
7956         * iconv/iconv_charmap.c: Likewise.
7957         * iconv/iconvconfig.c: Likewise.
7958         * iconv/iconv_prog.c: Likewise.
7959         * malloc/memusagestat.c: Likewise.
7960         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7962 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7964         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7965         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7966         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7967         check for the first argument.
7969 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7971         [BZ #4775]
7972         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7973         (__tgmath_real_type): Fix if expr is const int or other const
7974         qualified integral type.
7975         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7976         expressions and handle const qualified arguments.
7977         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7978         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7979         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7980         statement expressions.
7981         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7982         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7983         (__TGMATH_UNARY_IMAG): Define.
7984         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7985         * math/Makefile (tests): Add test-tgmath2.
7986         (CFLAGS-test-tgmath2.c): Add.
7987         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7988         count_cfloat, count_cldouble): New variables.
7989         (NCCALLS): Define.
7990         (main): Check number of complex calls as well.
7991         (F(compile_test)): Add complex tests and tests with const qualified
7992         arguments.
7993         (y, z, ccount): Define.
7994         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7995         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7996         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7997         F(cproj)): New functions.
7998         * math/test-tgmath2.c: New test.
8000 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8002         [BZ #4776]
8003         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8004         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8005         instead output ".".
8006         * dlfcn/Makefile (distribute): Add glreflib3.c.
8007         (module-names): Add glreflib3.
8008         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8009         glreflib1.so.
8010         (LDFLAGS_glreflib3.so): New.
8011         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8012         glreflib1.so.
8013         * dlfcn/glreflib3.c: New file.
8015         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8016         returned -1, return NULL.
8017         * intl/explodename.c (_nl_explode_name): Return -1 if
8018         _nl_normalize_codeset failed.
8020 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8022         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8023         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8024         and avoid branch misspredicts for > 31 bytes memset case.
8025         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8026         Remove toc ref to __cache_line_size.
8028         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8029         to get ISA-V2.0 branch hints.
8030         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8031         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8032         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8033         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8034         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8035         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8036         Remove toc ref to __cache_line_size.
8038         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8039         Include math_ldbl_opt.h.
8041 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8043         [BZ #4773]
8044         * time/strptime_l.c (__strptime_internal): Implement greedy
8045         matching of weekday and month names.
8047 2007-07-09  Roland McGrath  <roland@redhat.com>
8049         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8050         (ELF_NOTE_ABI): Use it.
8051         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8053 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8055         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8056         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8058 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8060         [BZ #4745]
8061         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8062         in loop to look for conversion specifier to avoid testing of
8063         wrong errno value.
8064         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8065         * stdio-common/bug18.c: New file.
8066         * stdio-common/bug18a.c: New file.
8067         * stdio-common/bug19.c: New file.
8068         * stdio-common/bug19a.c: New file.
8070 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8072         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8073         running awk script.
8075 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8077         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8078         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8079         Return NULL if mmap failed instead of asserting it does not.
8080         (calloc): Check for integer overflow.
8082         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8083         than LONG_MAX / 10.
8085 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8087         [BZ #4702]
8088         * nis/nss-default.c: Include errno.h.
8089         (init): Preserve errno.
8091 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8093         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8095 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8097         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8099 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8101         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8103 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8105         * sysdeps/s390/dl-procinfo.c: New file.
8106         * sysdeps/s390/dl-procinfo.h: New file.
8107         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8109 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8111         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8112         in PT_NOTE segments with multiple notes.
8113         * elf/readelflib.c (process_elf_file): Likewise.
8115 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8117         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8118         ISO C compliant.
8120 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8122         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8124 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8126         * include/link.h: Don't include rtld-lowlevel.h.
8127         (struct link_map): Remove l_scope_lock.
8128         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8129         (_dl_scope_free_list): New field (variable) in _rtld_global.
8130         (DL_LOOKUP_SCOPE_LOCK): Remove.
8131         (_dl_scope_free): New prototype.
8132         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8133         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8134         (_dl_profile_fixup): Likewise.
8135         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8136         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8137         THREAD_GSCOPE_RESET_FLAG around it.
8138         * elf/dl-close.c (_dl_close_worker): Don't use
8139         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8140         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8141         scopes were queued or if l_scope_mem has been abandoned.
8142         * elf/dl-open.c (_dl_scope_free): New function.
8143         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8144         * elf/dl-support.c (_dl_scope_free_list): New variable.
8145         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8146         Remove DL_LOOKUP_SCOPE_LOCK handling.
8147         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8148         handling.
8149         * elf/dl-object.c (_dl_new_object): Don't use
8150         __rtld_mrlock_initialize.
8152 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8154         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8155         to fill in holes
8156         (rtld_global_ro): Likewise.
8158 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8160         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8161         Move PT_LOAD checking to...
8162         (_dl_addr_inside_object): ... here, new function.
8163         * elf/dl-sym.c (do_sym): If not l_contiguous,
8164         call _dl_addr_inside_object.
8165         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8166         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8167         * elf/dl-open.c (dl_open_worker): Likewise.
8168         (_dl_addr_inside_object): New function if IS_IN_rtld.
8169         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8170         holes are present or are PROT_NONE protected.
8171         * include/link.h (struct link_map): Add l_contiguous field.
8172         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8174 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8175             Tomas Janousek  <tjanouse@redhat.com>
8176             Ulrich Drepper  <drepper@redhat.com>
8178         [BZ #4647]
8179         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8180         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8181         socket.
8182         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8183         unused member a bitmap.
8184         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8185         servers are configured.
8187 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8189         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8191 2007-06-17  Andreas Schwab  <schwab@suse.de>
8193         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8195 2007-06-16  Andreas Jaeger  <aj@suse.de>
8197         [BZ #4125]
8198         * sysdeps/unix/sysv/linux/sys/ptrace.h
8199         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8200         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8201         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8202         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8203         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8204         Define.
8205         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8206         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8207         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8208         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8210 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8212         [BZ #4599]
8213         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8214         determining whether there are IPv4/IPv6 addresses, ignore loopback
8215         addresses.
8217 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8219         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8220         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8221         as the return type.  Change type of "r" variable to CMPtype.
8222         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8223         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8224         * soft-fp/gedf2.c (__gedf2): Likewise.
8225         * soft-fp/gesf2.c (__gesf2): Likewise.
8226         * soft-fp/getf2.c (__getf2): Likewise.
8227         * soft-fp/ledf2.c (__ledf2): Likewise.
8228         * soft-fp/lesf2.c (__lesf2): Likewise.
8229         * soft-fp/letf2.c (__letf2): Likewise.
8230         * soft-fp/unorddf2 (__unorddf2): Likewise.
8231         * soft-fp/unordsf2 (__unordsf2): Likewise.
8232         * soft-fp/unordtf2 (__unordtf2): Likewise.
8234 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8236         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8237         make sure gcc doesn't mess around with this.
8239 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8241         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8243 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8245         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8246         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8247         at most once per _dl_close_worker.
8249 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8251         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8252         __sched_cpucount as const.
8253         * posix/sched_cpucount.c: Adjust.
8255         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8256         instruction for counting bits.
8257         * sysdeps/x86_64/sched_cpucount.c: New file.
8259 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8261         * configure.in: Avoid variable named BASH.
8262         * config.make.in: Likewise.
8263         Patch in part by Mike Frysinger.
8265 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8267         [BZ #4586]
8268         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8269         pseudo-zeros as zero.
8270         * sysdeps/x86_64/ldbl2mpn.c: New file.
8271         * sysdeps/ia64/ldbl2mpn.c: New file.
8273 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8275         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8276         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8277         Remove unreachable code at the end.
8279 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8281         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8282         ldbl-128ibm in comment.
8283         (fpclassifyl): Correct classification of denormals.
8284         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8285         return value for MIN denormal. Rewrite using long double math too
8286         correctly handle denormals and canonicalize the results.
8288 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8290         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8291         (__mpn_construct_long_double): Fix conversion where result ought
8292         to be smaller than __LDBL_MIN__, or the low double should be
8293         denormal.  Fix decision where to negate low double - honor round
8294         to even rules.
8295         * stdio-common/tst-sprintf2.c: Include string.h.
8296         (COMPARE_LDBL): Define.
8297         (TEST): Also test whether a string hexadecimal float representation
8298         can be parsed back to the number.
8299         (main): Add a couple of further tests.
8301 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8303         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8304         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8305         is non-zero, but smaller than 2 * __DBL_MIN__.
8306         * stdio-common/tst-sprintf2.c: New test.
8307         * stdio-common/Makefile (tests): Add tst-sprintf2.
8309         * math/test-misc.c (main): Don't run last batch of tests with
8310         IBM long double format.
8312 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8314         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8315         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8316         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8317         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8318         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8319         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8320         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8321         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8322         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8323         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8326         New file.
8327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8328         New file.
8329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8330         New file.
8331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8332         New file.
8333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8334         New file.
8335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8337         New file.
8338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8339         New file.
8340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8341         New file.
8342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8343         New file.
8344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8345         New file.
8347 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8349         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8350         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8351         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8352         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8353         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8354         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8355         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8356         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8358 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8360         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8361         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8362         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8363         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8364         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8365         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8366         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8367         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8369 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8371         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8372         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8373         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8374         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8376 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8378         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8379         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8381 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8383         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8384         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8385         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8386         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8388 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8390         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8391         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8393 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8395         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8396         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8398         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8399         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8400         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8401         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8403 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8405         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8406         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8407         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8408         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8410 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8412         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8413         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8414         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8415         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8416         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8417         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8419 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8421         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8422         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8423         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8424         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8426 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8428         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8429         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8430         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8431         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8432         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8433         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8434         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8435         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8436         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8437         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8438         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8439         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8440         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8441         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8442         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8443         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8445 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8447         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8448         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8450 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8452         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8453         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8455 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8457         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8458         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8459         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8460         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8461         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8462         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8463         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8464         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8465         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8466         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8468 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8470         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8472 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8474         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8475         branch miss-predicts. Ensure that cache line crossing does not impact
8476         dispatch grouping.
8478 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8480         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8481         "../../powerpc32/power4/memcopy.h".
8482         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8483         "../../powerpc32/power4/wordcopy.c".
8485 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8487         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8488         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8489         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8490         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8491         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8492         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8494 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8496         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8498 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8500         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8501         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8502         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8503         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8504         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8505         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8506         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8507         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8509 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8511         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8513 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8515         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8516         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8517         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8518         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8519         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8520         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8521         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8523 2007-05-29  Roland McGrath  <roland@redhat.com>
8525         * po/Makefile (po-sed-cmd): New variable.
8526         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8528 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
8530         * crypt/md5-crypt.c: Fix comment.
8532         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8533         of crashing.  When this is the case or if the reply is malformed,
8534         don't try to close the new file descriptor since it does not
8535         exist.
8536         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8538 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
8540         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8541         if __NR_utimensat is not defined.
8543 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
8545         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8547 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
8549         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8550         (open): Fix comment typos.  Don't call __open_2 if flags
8551         is a compile time constant without O_CREAT.
8552         (__open64_2): Add nonnull attribute.
8553         (open64): Fix comment typos.  Don't call __open64_2 if flags
8554         is a compile time constant without O_CREAT.
8555         (__openat_2): Add nonnull attribute, fix nonnull attribute
8556         on redirect.
8557         (openat): Fix comment typos.  Don't call __openat_2 if flags
8558         is a compile time constant without O_CREAT.
8559         (__openat64_2): Add nonnull attribute, fix nonnull attribute
8560         on redirect.
8561         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
8562         is a compile time constant without O_CREAT.
8564 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
8566         * Makerules (sysd-rules): Define PTW for ptw-* files.
8567         * Versions: Define GLIBC_2.7 for libc.
8568         * include/stdio.h: Declare __fortify_fail.
8569         * debug/fortify_fail.c: New file.
8570         * debug/Makefile (routines): Add fortify_fail.
8571         * debug/chk_fail.c: Use __fortify_fail.
8572         * debug/stack_chk_fail.c: Likewise.
8573         * io/Versions: Export __open_2, __open64_2, __openat_2, and
8574         __openat64_2 for GLIBC_2.7.
8575         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8576         * io/open.c: Define *_2 variant of function which checks for O_CREAT
8577         and fails if necessary.
8578         * io/open64.c: Likewise.
8579         * io/openat.c: Likewise.
8580         * io/openat64.c: Likewise.
8581         * sysdeps/unix/sysv/linux/open64.c: Likewise.
8582         * sysdeps/unix/sysv/linux/openat.c: Likewise.
8583         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8584         * io/bits/fcntl2.h: New file.
8585         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8586         __openat64_2.
8587         * include/bits/fcntl2.h: New file.
8588         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8589         Add open_2.
8590         * sysdeps/unix/sysv/linux/open_2.c: New file.
8592 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
8594         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8595         as second parameter to handle_intel.
8597         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8598         the entry.
8600         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8601         handling to ...
8602         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
8603         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8604         cacheinfo.
8605         * sysdeps/x86_64/memcpy.S: Complete rewrite.
8606         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8607         Patch by Evandro Menezes <evandro.menezes@amd.com>.
8609         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8611 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
8613         [BZ #4525]
8614         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8615         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8616         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8618         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8620         [BZ #4514]
8621         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8622         reinitialize workend at the start of each do_positional format spec
8623         loop, free workstart before do_positional loops.
8624         (printf_unknown): Fix size of work_buffer.
8625         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8627         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8628         (public_sET_STATe): If ms->version < 3, put all chunks into
8629         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8630         chunks.
8632         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8633         * malloc/hooks.c: Likewise.
8634         * malloc/arena.c: Likewise.
8635         * malloc/malloc.c (do_check_malloc_state): Don't assert
8636         n_mmaps is not greater than n_mmaps_max.  This removes the need
8637         for the previous change.
8639         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8640         2007-05-07 commit.
8642 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8644         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8645         Define for kernel >= 2.6.22.
8647 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8649         * elf/dl-close.c (_dl_close_worker): When removing object from
8650         global scope, wait for all lookups to finish afterwards.
8651         * elf/dl-open.c (add_to_global): When global scope array must
8652         grow, allocate a new one and free old array only after all
8653         lookups finish.
8654         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8655         (_dl_lookup_symbol_x): Likewise.
8656         * elf/dl-support.c: Define _dl_wait_lookup_done.
8657         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8658         _dl_wait_lookup_done.
8660         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8661         not overlapping with arena.
8663         * malloc/mcheck.c (reallochook): If size==0, free the block.
8665         * rt/tst-shm.c: Use fstat64 instead of fstat.
8667         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8668         __NR_sync_file_range is not defined.
8670 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8672         Dummy files to prevent stub versions from being used.
8673         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8674         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8675         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8676         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8678         * version.h (VERSION): Set to 2.6.90.
8680 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8682         * version.h (VERSION): Define to 2.6.
8683         * include/features.h (__GLIBC_MINOR__): Define to 6.
8685         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8687         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8688         sizes.
8690 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8692         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8693         number of mmaps.  n_mmaps_max is the target.
8694         * malloc/hooks.c: Likewise.
8695         * malloc/arena.c: Likewise.
8697 2007-05-12  Andreas Jaeger  <aj@suse.de>
8699         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8700         getpid.
8702 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
8704         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8705         adding new variables.
8707         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8708         optimize.  Completely extend global scope array before making the
8709         new entries visible.
8711 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
8713         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8714         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8715         tst-getcpu.
8717         * include/link.h: Move l_version and l_nversion members around to
8718         fill gaps.
8720         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8722         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8723         (__sched_setaffinity_new): If syscall was successful and
8724         RESET_VGETCPU_CACHE is defined, use it before returning.
8725         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8727         * io/sys/stat.h: Make sure struct timespec is defined for
8728         __USE_ATFILE.
8730         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8731         UTIME_OMIT.
8732         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8733         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8734         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8735         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8736         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8737         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8738         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8739         * io/sys/stat.h: Declare utimensat, futimens.
8740         * io/utimensat.c: New file.
8741         * io/futimens.c: New file.
8742         * sysdeps/unix/sysv/linux/utimensat.c: New file.
8743         * sysdeps/unix/sysv/linux/futimens.c: New file.
8744         * io/Makefile (routines): Add utimensat, futimens.
8745         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8746         * sysdeps/unix/sysv/linux/lutimes.c: New file.
8747         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8748         available.
8750         * include/sys/cdefs.h: Redefine __nonnull so that test for
8751         incorrect parameters in the libc code itself are not omitted.
8753 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
8755         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8756         exception in addition to inexact when asked to raise only FE_INEXACT.
8758         [BZ #3427]
8759         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8760         in *envp.
8762 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8764         [BZ #4403]
8765         * string/strfry.c (strfry): Make result more random.
8767 2007-05-07  Richard Henderson  <rth@redhat.com>
8769         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8770         if __NO_LONG_DOUBLE_MATH.
8771         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8772         available in the compiler, add .arch directive to the assembly.
8774 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
8776         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8777         compat_symbol to GLIBC_2_1.
8778         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8779         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8780         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8781         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8782         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8783         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8784         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8785         libc, not libm.
8786         (__isnanl): New compat_symbol.
8788 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8789             Jakub Jelinek  <jakub@redhat.com>
8791         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8792         (new_heap): Initialize mprotect_size.
8793         (grow_heap): When growing, only mprotect from mprotect_size till
8794         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
8795         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8797 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
8798             Peter Bergner  <bergner@us.ibm.com>
8800         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8801         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
8802         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8803         * sysdeps/powerpc/fpu/fe_mask.c: New file.
8804         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8805         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8806         Call __fe_mask_env() if all FP exceptions disabled.
8807         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8808         from old FPSCR to new fenv to propagate DFP rounding modes.
8809         Call __fe_mask_env() if FP exceptions previously enabled.
8810         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8811         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
8812         transitioning from all exceptions disabled to any exception enabled
8813         or visa versa.
8814         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8815         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
8816         when transitioning from all exceptions disabled to any exception
8817         enabled or visa versa.
8818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8825 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8827         [BZ #4465]
8828         * posix/unistd.h: Remove __THROW from fdatasync.
8830 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
8832         [BZ #4465]
8833         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8835 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8837         * stdio-common/vfprintf.c (process_string_arg): Optimize
8838         ridiculous precision in wide char code printing multi-byte string.
8839         Reported by Jim Meyering <jim@meyering.net>.
8841         [BZ #4131]
8842         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8843         boundaries to work around systems with overlapping binary loading.
8844         Based on a patch by Suzuki <suzuki@in.ibm.com>.
8846 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
8848         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8849         __mbsnrtowcs after last change.
8851         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8852         (get_ident): Likewise.
8854 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8856         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8857         with setting the sticky bit.
8858         * math/test-misc.c (main): Add more truncation tests.
8860 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
8862         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8863         double in the function declaration.
8864         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8865         double in the function declaration.
8866         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8867         float in the function declaration.
8868         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8869         float in the function declaration.
8871         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8872         denormal operands.  Do not generate FP_EX_DENORM exception.
8873         (FP_UNPACK_RAW_EP): Ditto.
8874         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8875         undefined _FP_UNPACK_RAW_E.
8876         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8877         undefined _FP_UNPACK_RAW_EP.
8878         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8879         undefined _FP_PACK_RAW_E.
8880         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8881         undefined _FP_PACK_RAW_EP.
8883         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8884         _FP_FRAC_COPY_2.
8885         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8886         _FP_FRAC_COPY_4.
8888 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8889             Jakub Jelinek  <jakub@redhat.com>
8891         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8892         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8893         this case.
8894         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8896 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8898         * math/test-misc.c (main): Add tests for rounding long double
8899         values close to smallest double denormalized value to double.
8901 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8903         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8904         condition for truncating to 0.  Set sticky bit for such
8905         truncation.
8907 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8909         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8910         fixed length array for ignore.
8912 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8914         [BZ #4438]
8915         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8916         stack for large precisions.
8917         * stdio-common/test-vfprintf.c (main): Add test for large
8918         precision.
8920 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8922         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8923         for exponent 0.
8924         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8926         [BZ #4439]
8927         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8928         account in the size check.
8929         * resolv/tst-inet_ntop.c: New test.
8930         * resolv/Makefile (tests): Add tst-inet_ntop.
8932 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8933             Jakub Jelinek  <jakub@redhat.com>
8935         [BZ #4349]
8936         * malloc/malloc.c: Keep separate list for first blocks on the bin
8937         lists with a given size.  This helps skipping over list elements
8938         we know won't fit in two places.
8939         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8941 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8943         [BZ #4102]
8944         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8945         label to Teredo tunnel addresses 2001://32.
8947 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8949         * locale/programs/ld-collate.c (collate_read): Allow order_start
8950         after copy.
8952         * locale/programs/ld-collate.c (collate_read): Fix printing of
8953         error message.
8955         [BZ #3213]
8956         * locale/C-translit.h.in: Add entry for U2044.
8958         [BZ #4342]
8959         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8960         hexa-decimal floats without exponent.
8961         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8963 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8965         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8966         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8967         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8968         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8969         GLIBC_2.6.
8970         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8971         Add sched_getcpu.
8973 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8975         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8976         of 0 after the out_fail label.
8978 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8980         [BZ #4406]
8981         * iconv/gconv_charset.h (strip): Allow ':'.
8982         * iconv/iconv_open.c (iconv_open): Adjust comment.
8984 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8986         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8987         version.
8989 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8991         [BZ #4381]
8992         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8993         alignment of buffer and tmp_buffer.
8994         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8995         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8996         alignment of buffer.
8997         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8998         bigger than INT_MAX.
8999         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9000         h_errnop arguments.  Fail if buflen is too small.
9001         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9003 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9005         [BZ #4405]
9006         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9007         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9009 2007-04-22  Roland McGrath  <roland@redhat.com>
9011         * elf/elf.h (NT_PRXFPREG): New macro.
9013 2007-04-19  Andreas Jaeger  <aj@suse.de>
9015         [BZ #3905]
9016         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9017         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9018         Added.
9020 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9022         * include/sys/mman.h: Mark madvise hidden.
9023         * misc/madvise.c: Add libc_hidden_def.
9025 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9027         * nis/nis_domain_of.c (__nis_domain_of): New function.
9028         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9029         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9030         * nis/nis_call.c (rec_dirsearch): Likewise.
9031         (first_shoot): Likewise.  Remove search_parent_first argument.
9032         (struct nis_server_cache): Rename search_parent_first field
9033         to search_parent.
9034         (nis_server_cache_search, nis_server_cache_add): Rename
9035         search_parent_first argument to search_parent.
9036         (__nisfind_server): Likewise.  If search_parent, call
9037         __nis_domain_of.
9039 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9041         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9043 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9045         [BZ #4368]
9046         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9048 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9050         [BZ #4364]
9051         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9053 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9055         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9056         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9057         current number of locales in SUPPORTED.
9058         (create_archive): Initialize serial.
9059         (enlarge_archive): Preserve aliases rather than duplicating
9060         their locrecs.
9062 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9064         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9065         after _IO_un_link, not before it.
9067         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9068         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9069         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9071 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9073         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9074         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9075         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9076         Remove __THROW.
9077         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9078         _IO_file_xsgetn_maybe_mmap): Likewise.
9079         * libio/oldfileops.c (old_do_write): Likewise.
9080         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9081         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9082         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9083         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9084         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9085         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9086         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9087         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9088         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9089         _IO_file_underflow, _IO_file_underflow_mmap,
9090         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9091         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9092         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9093         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9094         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9095         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9096         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9097         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9098         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9099         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9100         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9101         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9102         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9103         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9104         _IO_adjust_column_internal, _IO_default_uflow_internal,
9105         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9106         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9107         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9108         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9109         _IO_file_close_it_internal, _IO_file_underflow_internal,
9110         _IO_file_overflow_internal, _IO_file_attach_internal,
9111         _IO_file_fopen_internal, _IO_file_sync_internal,
9112         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9113         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9114         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9115         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9116         _IO_seekpos_unlocked): Likewise.
9117         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9118         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9120 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9122         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9123         argument in xmalloc size computation.
9125 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9127         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9128         math_opt_barrier and math_force_eval macros.
9130 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9132         [BZ #3306]
9133         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9134         * sysdeps/i386/fpu/math_private.h: New file.
9135         * sysdeps/x86_64/fpu/math_private.h: New file.
9136         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9137         math_force_eval macros.  Use "+m" constraint on asm rather than
9138         "=m" and "m".
9139         * math/s_nextafter.c (__nextafter): Likewise.
9140         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9141         Likewise.
9142         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9143         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9144         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9145         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9146         math_opt_barrier and math_force_eval macros.
9147         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9148         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9149         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9150         (__nexttoward): Use math_opt_barrier and
9151         math_force_eval macros.  Use "+m" constraint on asm rather than
9152         "=m" and "m".  Only use asm to force double result if
9153         FLT_EVAL_METHOD is 2.
9154         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9155         (__nexttowardf): Use math_opt_barrier and
9156         math_force_eval macros.  Use "+m" constraint on asm rather than
9157         "=m" and "m".  Only use asm to force double result if
9158         FLT_EVAL_METHOD is not 0.
9159         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9160         (__nexttowardf): Use math_opt_barrier and
9161         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9162         x to float using asm.
9163         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9164         (__nldbl_nexttowardf): Use math_opt_barrier and
9165         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9166         x to float using asm.
9167         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9168         (__nexttowardf): Use math_opt_barrier and math_force_eval
9169         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9170         * math/bug-nextafter.c (zero, inf): New variables.
9171         (main): Add new tests.
9172         * math/bug-nexttoward.c (zero, inf): New variables.
9173         (main): Add new tests.
9175 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9177         [BZ #3427]
9178         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9179         exceptions both in SW and MXCSR.
9180         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9181         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9182         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9183         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9184         in MXCSR if SSE is available.
9185         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9186         and ldsodefs.h.
9187         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9188         Fix comment typo.
9189         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9190         Return 0 rather than 1.
9191         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9192         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9193         * math/test-fenv.c (feholdexcept_tests): New function.
9194         (main): Call it.
9196 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9198         [BZ #3427]
9199         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9200         in SW.
9202 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9204         [BZ #4344]
9205         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9206         Reported by David Anderson <davea42@earthlink.net>.
9208 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9210         * posix/sys/wait.h: Remove unnecessary forward declaration.
9212 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9214         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9215         with obj->do_servers after first_shoot.
9217 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9219         * posix/Makefile (routines): Add sched_cpucount.
9220         (tests): Add tst-cpucount.
9221         * posix/sched_cpucount.c: New file.
9222         * posix/tst-cpucount.c: New file.
9223         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9224         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9225         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9226         * posix/sched.h: Define CPU_COUNT.
9228 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9230         * posix/fnmatch.c (STRUCT): Define.
9231         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9232         * posix/fnmatch_loop.c (struct STRUCT): New type.
9233         (FCT): Add ends argument.  If ends != NULL and normal * is
9234         seen in the pattern, store current pattern and string pointers
9235         and return.  Adjust recursive calls.
9236         (EXT): Adjust FCT callers.
9237         (STRUCT): Undef at the end of the file.
9238         * posix/Makefile (tests): Add tst-fnmatch2.
9239         * posix/tst-fnmatch2.c: New test.
9241 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9243         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9244         and 1 on failure.
9246         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9247         Change last argument to unsigned int.
9249 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9251         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9253 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9255         * config.h.in (HAVE_LIBCAP): Add.
9256         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9257         sys/capabilities.h.
9258         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9259         free_caps.  Cast away const from 4th cap_set_flag argument.
9261 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9263         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9264         GLIBC_2.6.
9265         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9266         Add sync_file_range.
9267         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9269 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9271         * sysdeps/powerpc/bits/atomic.h
9272         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9273         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9274         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9275         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9276         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9277         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9278         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9279         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9280         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9281         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9282         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9283         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9284         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9285         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9286         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9287         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9288         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9289         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9290         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9291         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9293 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9295         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9296         (__cache_line_size): Define the variable here.  Add
9297         attribute_hidden, remove weak_extern.
9298         (__libc_start_main): Set __cache_line_size
9299         unconditionally.
9300         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9301         (__cache_line_size): Define the variable here.  Add
9302         attribute_hidden, remove weak_extern.
9303         (DL_PLATFORM_AUXV): Set __cache_line_size
9304         unconditionally.
9305         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9306         weak_extern, add attribute_hidden.
9307         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9308         defined in ld.so.
9309         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9310         definition.
9311         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9313 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9315         [BZ #4276]
9316         * timezone/africa: Update from tzdata2007d.
9317         * timezone/asia: Likewise.
9318         * timezone/australasia: Likewise.
9319         * timezone/backward: Likewise.
9320         * timezone/europe: Likewise.
9321         * timezone/iso3166.tab: Likewise.
9322         * timezone/leapseconds: Likewise.
9323         * timezone/northamerica: Likewise.
9324         * timezone/southamerica: Likewise.
9325         * timezone/zone.tab: Likewise.
9327         * timezone/private.h: Update from tzcode2007d.
9328         * timezone/zdump.c: Likewise.
9329         * timezone/zic.c: Likewise.
9331 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9333         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9334         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9335         variables.
9336         (nis_server_cache_search, nis_server_cache_add): New functions.
9337         (__nisfind_server): Use them.  Add dbp and flags argument, if
9338         call __nisbind_create.
9339         (__nisbind_create): Add server_used and current_ep arguments,
9340         only call __nis_findfastest if server_used is ~0.
9341         (__do_niscall2, __prepare_niscall): Adjust callers.
9342         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9343         ckey_cache_euid, ckey_cache_lock): New variables.
9344         (get_ckey): New function.
9345         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9346         __pmap_getnisport.  Save __pmap_getnisport result in
9347         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9348         key.
9349         * nis/nis_lookup.c (nis_lookup): Likewise.
9350         * nis/nis_table.c (nis_list): Likewise.
9351         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9352         prototypes.
9354         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9355         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9356         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9357         _nss_nisplus_getservbyport_r): Likewise.
9358         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9359         _nss_nisplus_getnetbyaddr_r): Likewise.
9360         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9361         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9362         _nss_nisplus_getntohost_r): Likewise.
9363         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9364         _nss_nisplus_getrpcbynumber_r): Likewise.
9366 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9368         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9369         * configure: Rebuilt.
9371         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9372         bit-fields.
9373         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9375 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9377         [BZ #2831]
9378         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9379         bit-fields.
9381 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9383         * nscd/gai.c: Include alloca.h.
9384         (__libc_use_alloca): Define.
9386 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9388         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9389         smaller scopes.
9390         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9391         (DL_DST_REQUIRED): Adjust user.
9393         * include/dlfcn.h (struct link_map): New forward decl.
9395         * inet/getnameinfo.c: Include stddef.h.
9396         (getnameinfo): Use offsetof.
9398         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9400         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9402         * string/strerror_l.c: Include stdlib.h.
9404         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9405         * config.make.in (gnu89-inline-CFLAGS): New variable.
9406         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9407         -std=gnu99.
9408         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9409         * argp/argp.h: Use it.
9410         * bits/mathinline.h: Likewise.
9411         * bits/sigset.h: Likewise.
9412         * bits/string.h: Likewise.
9413         * ctype/ctype.h: Likewise.
9414         * hurd/hurd.h: Likewise.
9415         * hurd/hurd/fd.h: Likewise.
9416         * hurd/hurd/port.h: Likewise.
9417         * hurd/hurd/signal.h: Likewise.
9418         * hurd/hurd/threadvar.h: Likewise.
9419         * hurd/hurd/userlink.h: Likewise.
9420         * io/sys/stat.h: Likewise.
9421         * libio/bits/stdio.h: Likewise.
9422         * libio/bits/stdio2.h: Likewise.
9423         * mach/lock-intern.h: Likewise.
9424         * mach/mach/mig_support.h: Likewise.
9425         * math/bits/cmathcalls.h: Likewise.
9426         * posix/bits/unistd.h: Likewise.
9427         * socket/bits/socket2.h: Likewise.
9428         * stdlib/bits/stdlib.h: Likewise.
9429         * stdlib/stdlib.h: Likewise.
9430         * string/argz.h: Likewise.
9431         * string/bits/string2.h: Likewise.
9432         * string/bits/string3.h: Likewise.
9433         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9434         * sysdeps/generic/inttypes.h: Likewise.
9435         * sysdeps/generic/machine-lock.h: Likewise.
9436         * sysdeps/generic/machine-sp.h: Likewise.
9437         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9438         * sysdeps/i386/i486/bits/string.h: Likewise.
9439         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9440         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9441         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9442         * sysdeps/mach/i386/machine-lock.h: Likewise.
9443         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9444         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9445         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9446         * sysdeps/s390/bits/string.h: Likewise.
9447         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9448         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9449         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9450         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9451         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9452         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9453         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9454         * wcsmbs/bits/wchar2.h: Likewise.
9455         * wcsmbs/wchar.h: Likewise.
9456         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9457         __extern_inline definition.
9459 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9461         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9462         NULL.
9464         [BZ #3919]
9465         * math/libm-test.inc (log_test): Test -Inf and NaN.
9466         (log10_test, log1p_test, log2_test): Test -Inf.
9467         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9468         FE_INVALID when argument is qNaN.
9469         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9470         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9471         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9472         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9473         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9474         testb $4, %ah and jump if non-zero.
9475         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9476         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9478         [BZ #4101]
9479         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9480         ancestors with the same depths.
9481         Patch by Niels Moeller <nisse@lysator.liu.se>.
9482         (filter_doc): Don't crash if argp is NULL.
9483         * argp/Makefile (tests): Add tst-argp2.
9484         * argp/tst-argp2.c: New test.
9486         [BZ #4130]
9487         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9488         open_not_cancel_2.
9489         (updwtmp_file): Likewise.
9491         [BZ #4181]
9492         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9493         (inet6_opt_append): Don't check extlen is big enough if extbuf
9494         is NULL.
9495         (inet6_opt_finish): Likewise.
9496         * inet/Makefile (tests): Add test-inet6_opt.
9497         * inet/test-inet6_opt.c: New test.
9499         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9500         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9501         NLMSG_ERR.  Instead use a page sized buffer.
9502         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9503         buffer.
9505 2007-03-14  Richard Henderson  <rth@redhat.com>
9507         * sysdeps/alpha/fpu/s_llround.c: New file.
9508         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9509         * sysdeps/alpha/fpu/s_lround.c: New file.
9510         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9511         * sysdeps/alpha/fpu/s_round.c: New file.
9512         * sysdeps/alpha/fpu/s_roundf.c: New file.
9513         * sysdeps/alpha/fpu/s_trunc.c: New file.
9514         * sysdeps/alpha/fpu/s_truncf.c: New file.
9516         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9517         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9518         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9519         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9520         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9521         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9523         * sysdeps/alpha/fpu/s_fmax.S: New file.
9524         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9525         * sysdeps/alpha/fpu/s_fmin.S: New file.
9526         * sysdeps/alpha/fpu/s_fminf.S: New file.
9527         * sysdeps/alpha/fpu/s_isnan.c: New file.
9528         * sysdeps/alpha/fpu/s_isnanf.c: New file.
9529         * sysdeps/alpha/fpu/s_llrint.c: New file.
9530         * sysdeps/alpha/fpu/s_llrintf.c: New file.
9531         * sysdeps/alpha/fpu/s_lrint.c: New file.
9532         * sysdeps/alpha/fpu/s_lrintf.c: New file.
9533         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9534         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9536         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9537         (__fdimf, fdimf, __fdim, fdim): Remove.
9538         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9539         (__isnanf, __isnan, __isnanl): New.
9541 2007-03-13  Richard Henderson  <rth@redhat.com>
9543         * sysdeps/ieee754/ldbl-128/Makefile: New file.
9545 2007-03-13  Richard Henderson  <rth@redhat.com>
9547         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9548         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9549         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9550         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9551         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9552         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9554 2007-03-13  Richard Henderson  <rth@redhat.com>
9556         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9557         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9558         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9559         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9560         Move to dl-auxv.h; initialize instead of extern weak.
9561         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9562         weak symbol.
9563         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9564         Extern instead of initialized.
9566 2007-03-13  Richard Henderson  <rth@redhat.com>
9568         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9569         __sigsuspend_nocancel.
9571 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
9573         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9574         172.16/12 address range.
9576 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
9578         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9579         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9580         message.
9582 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
9584         [BZ #4069]
9585         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9586         earlier.
9587         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9589         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9590         for x qNaN and y either +-inf or non-integer value.
9591         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9592         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9593         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9595 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
9597         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9598         from sysdep_headers.
9600 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
9602         * time/tzfile.c (find_transition): Instead of a linear search try to
9603         guess the transition index, use a linear search if the result is at
9604         most 10 transitions away from the guess or binary search otherwise.
9606 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
9608         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9609         memory reallocation.
9611 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
9613         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9614         and fix some typos.
9615         Optimize use of TOLOWER.
9617         [BZ #3325]
9618         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9619         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9620         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9622         [BZ #3458]
9623         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9624         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9626         [BZ #4076]
9627         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9628         (open_dir_stream): Likewise.
9629         * io/Makefile (tests): Add bug-ftw5.
9630         * io/bug-ftw5.c: New file.
9632         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9633         * nscd/servicescache.c (cache_addserv): Likewise.
9635         * nscd/grpcache.c (cache_addgr): In case a record changed on
9636         refresh, adjust key_copy.
9638         [BZ #4074]
9639         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9640         refresh, adjust key_copy.
9642         [BZ #4070]
9643         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9644         special cases.
9645         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9647 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9649         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9650         optimization.
9652         * stdio-common/vfscanf.c: Small cleanups throughout.
9654 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9656         [BZ #3325]
9657         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9658         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9659         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9660         Patch by Jared Casper <jaredcasper@gmail.com>.
9662         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9663         * sysdeps/unix/opendir.c: Likewise.
9664         * sysdeps/unix/readdir.c: Likewise.
9666         [BZ #2211]
9667         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9668         point numbers.
9669         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9671         * stdio-common/vfscanf.c: Fix problems in width accounting.
9672         * stdio-common/tst-sscanf.c (double_tests): New tests.
9673         (main): Hook them up.
9675         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9676         More simplifications of floating-point reader.
9678         * stdio-common/Makefile (tests): Add tst-swscanf.
9679         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9680         testing.
9681         * stdio-common/tst-swscanf.c: New file.
9683 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9685         [BZ #2633]
9686         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9687         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9688         Remove using for __jmp_buf_tag.
9689         * locale/locale.h (struct lconv): Also define in std namespace.
9690         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9692         [BZ #3842]
9693         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9694         using __libc_enable_secure.
9696         [BZ #3818]
9697         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9699         [BZ #3745]
9700         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9701         of names for ellipsises.
9703         [BZ #3348]
9704         * malloc/memusage.sh: Cleanups.
9705         * debug/xtrace.sh: Quoting and trap changes.
9707 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
9709         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9711         * locale/iso-3166.def: Update entry for Serbia.
9712         * locale/iso-4217.def: Define RSD, remove CSD.
9714         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9715         and 64-bit operations.
9717         [BZ #4040]
9718         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9719         16-bit operations.
9721         * nscd/nscd.c (parse_opt): One more conversion to use send instead
9722         of writev.
9724 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
9726         [BZ #3991]
9727         * assert/assert.h (assert): Simplify.
9728         (assert_perror): Likewise.
9729         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9731         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9732         reqdata.
9734         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9735         change: don't pass NULL in place of an integer.
9737 2007-02-02  Bruno Haible  <bruno@clisp.org>
9739         [BZ #3954]
9740         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9741         Add mapping for U+327E.
9742         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9743         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9744         mapping of 0xD9 0xE8.
9745         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9746         mapping of U+327E.
9747         Reported by Jungshik Shin <jungshik@google.com>.
9749         [BZ #3955]
9750         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9751         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9752         Reported by Jungshik Shin <jungshik@google.com>.
9754 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
9756         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9757         byte variants.
9759         [BZ #4040]
9760         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9761         byte variants.  Patch mostly be tom@tommay.net.
9763 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9765         [BZ #3996]
9766         * posix/glob.c (attribute_hidden): Define if not defined.
9767         (glob): Unescape dirname, filename or username when needed and not
9768         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9769         is NULL.  Handle unescaped [ in pattern without closing ].
9770         Don't pass GLOB_CHECK down to recursive glob for directories.
9771         (__glob_pattern_type): New function.
9772         (__glob_pattern_p): Implement using __glob_pattern_type.
9773         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9774         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9775         Remove unreachable code.
9776         * posix/globtest.sh: Add a couple of new tests.
9778 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
9780         * po/ru.po: Update from translation team.
9782 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
9784         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9785         to the list of i486+ CPUs.
9786         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9788 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
9790         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9791         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9792         references.
9794 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
9796         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9798         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9799         * resolv/res_mkquery.c: Define __res_nopt.
9800         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9801         try adding EDNS0 record.
9802         * resolv/res_send.c (send_dg): If request failed with FORMERR and
9803         EDNS0 record was send make sure we don't try it again.
9804         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9805         * include/resolv.h: Declare __res_nopt.
9807 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
9809         [BZ #3944]
9810         * time/strptime_l.c (__strptime_internal): Set have_mon for
9811         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
9812         have been computed from tm_yday and tm_year.  Don't crash
9813         in day_of_the_week or day_of_the_year if not have_mon
9814         and tm_mon contains bogus value.
9815         * time/Makefile (tests): Add tst-strptime3.
9816         * time/tst-strptime3.c: New test.
9818 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
9820         [BZ #3957]
9821         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9822         bit for RE_HAT_LISTS_NOT_NEWLINE.
9823         (build_charclass_op): Remove bogus comment.
9824         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9825         * posix/bug-regex27.c: New test.
9826         * posix/bug-regex28.c: New test.
9828 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
9830         * po/sv.po: Update from translation team.
9832 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
9834         * nscd/nscd_helper.c (open_socket): Minor size optimization.
9836 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
9838         * include/locale.h (__uselocale): Add libc_hidden_proto.
9839         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9841         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9842         gettimeofday.
9844 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
9846         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9847         returning.
9848         (PTR_DEMANGLE): Real definition now that it's not the same as
9849         PRT_MANGLE anymore.
9850         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9852         * string/strerror_l.c: New file.
9853         * string/Makefile (routines): Add strerror_l.
9854         * string/string.h: Declare strerror_l.
9855         * string/Versions: Export strerror_l for GLIBC_2.6.
9857 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
9859         * nscd/nscd_helper.c (open_socket): Now takes request type and key
9860         as parameter.  Construct request record.  Try sending request
9861         before the first poll use, it usually succeeds.  Adjust all
9862         callers.
9863         * nscd/nscd-client.h: Define MAXKEYLEN.
9864         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9866 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
9868         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9869         from return value.
9870         * nscd/nscd_helper.c: Include string.h.
9871         (__nscd_cache_search): Remove const qualifier from return value.
9872         On strict alignment architectures check hash entry and data head
9873         alignment.
9874         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9875         mmapped data during GC cycle contains garbage.  If
9876         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9877         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9878         dropped to 0.
9879         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9880         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9881         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9882         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9883         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9885 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9887         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9889 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9891         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9892         names not numbers in cfi_*.
9894 2007-01-26  Andreas Jaeger  <aj@suse.de>
9896         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9897         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9898         Correct values of PER_HPUX and PER_OSF4.
9900 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9902         * elf/dl-minimal.c: Undefine _itoa first.
9903         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9904         * malloc/mtrace.c: Revert last change.
9905         * posix/wordexp.c: Likewise.
9907 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9909         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9910         and __geode__ to the list of i486+ CPUs.
9911         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9913 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9915         * stdio-common/_itoa.c: Include <limits.h>.
9916         * stdio-common/_itowa.c: Likewise.
9918 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9920         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9921         platforms.
9922         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9923         64-bit platforms.
9924         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9925         possible.
9926         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9927         if possible.
9929         [BZ #3902]
9930         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9931         * stdio-common/Makefile (tests): Add bug17.
9932         * stdio-common/bug17.c: New file.
9934 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9936         * iconvdata/brf.c: New file.
9937         * iconvdata/testdata/BRF: New file.
9938         * iconvdata/testdata/BRF..UTF8: New file.
9939         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9940         * iconvdata/Makefile: Add rules to build BRF.
9941         * iconvdata/TESTS: Add BRF entry.
9942         * iconvdata/gconv-modules: Likewise.
9943         * iconvdata/tst-tables.sh: Likewise.
9945 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9947         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9948         type `long long int', not `long int'.
9949         (wcstoq): Likewise.
9951 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9953         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9954         of values on 64-bit platforms which are too large.
9956 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9957             Joe Kerian  <jkerian@us.us.ibm.com>
9959         [BZ #2749]
9960         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9961         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9962         (__copysignl): Use signbit() for comparison.
9963         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9964         SET_LDOUBLE_WORDS64.
9966         [BZ #2423, #2749]
9967         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9968         (__ceill): Remove calls to fegetround(), fesetround().
9969         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9970         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9971         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9973 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9975         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9977         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9979 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9981         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9982         demangle pointer.
9983         * csu/libc-start.c: Likewise.
9985 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9987         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9988         really work anyway.
9990 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9992         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9993         users.
9994         (handle_request): Remove unnecessary tests.
9996         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9998 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10000         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10001         workbits in semi-raw fraction.
10003         * math/test-misc.c: Add new tests.
10005 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10007         * math/basic-test.c: Include test-skeleton.c.
10008         (TEST_TRUNC): Define.
10009         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10010         (main): Rename to ...
10011         (do_test): ...this.  Run new tests.
10012         (TEST_FUNCTION): Define.
10014 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10015             Joe Kerian  <jkerian@us.us.ibm.com>
10017         [BZ #2749]
10018         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10019         handling for high words.
10020         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10021         and overflow for infinity.
10023 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10025         * nscd/connections.c (handle_request): Add a __builtin_expect.
10027         * nscd/connections.c (serv2db): Change type into structure which
10028         also says whether this is a request for data.  Renamed to
10029         servinfo.  All users changed.
10030         (handle_request): Much simpler test whether we should search the cache.
10032         * nscd/connections.c (handle_request): Fix thinko in selinux test
10033         invocation.
10035         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10036         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10037         it before getting dl_load_lock and then relock.
10038         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10039         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10040         case we unlocked the scope.
10041         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10042         _dl_lookup_symbol_x in case we locked the scope.
10043         (_dl_profile_fixup): Likewise.
10044         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10045         set DL_LOOKUP_SCOPE_LOCK.
10047 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10049         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10050         CFLAGS-getsrvbynpt_r.c.
10051         * nscd/getsrvbynm_r.c: New file.
10052         * nscd/getsrvbypt_r.c: New file.
10053         * nscd/nscd_getserv_r.c: New file.
10054         * nscd/servicescache.c: New file.
10055         * nscd/Makefile (routines): Add nscd_getserv_r.
10056         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10057         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10058         CFLAGS-getsrvbypt_r.c.
10059         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10060         table.  Add entries for services database.
10061         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10062         services database.
10063         (dbs): Add .reset_res and servdb initialization.
10064         (serv2db): Add entries for services database.
10065         (verify_persistent_db): Accept dbnr == servdb.
10066         (invalidate_cache): Rewrite database name recognition to use a table.
10067         Call res_init() if .reset_res is set for database.
10068         (handle_request): Add code to handle services database.
10069         * nscd/gai.c: Don't define __getservbyname_r.
10070         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10071         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10072         (serv_response_header): Define.
10073         (struct datahead): Add serv_response_header member.
10074         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10075         using table.
10076         * nscd/nscd.conf: Add entries for services database.
10077         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10078         Declare serv_iov_disabled.
10079         Declare addservbyname, readdservbyname, addservbyport, and
10080         readdservbyport.
10081         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10082         (find_db): Fix error message.
10083         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10084         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10085         * nscd/selinux.c (perms): Add entries for services database.
10086         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10087         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10089         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10090         * nscd/hstcache.c: Likewise.
10091         * nscd/pwdcache.c: Likewise.
10093         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10094         computation of keylen.
10096         * include/string.h: Only redefine strndupa if this is really for
10097         libc code.
10099 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10101         * nscd/nscd_gethst_r.c: Minor cleanups.
10103         * nscd/connections.c (handle_request): Check selinux permissions
10104         for all non-admin commands.
10106         * sysdeps/i386/i486/bits/atomic.h: Define
10107         atomic_compare_and_exchange_val_acq,
10108         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10109         using __sync_* built-ins for gcc >= 4.1.
10110         * sysdeps/x86_64/bits/atomic.h: Likewise.
10112         [BZ #3840]
10113         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10114         and .oS.d files.
10116 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10118         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10119         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10120         (do_test): Check errno and exit(0) if ENOSYS.
10122 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10124         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10125         thousands separators.
10126         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10127         * stdlib/tst-strtod4.c: New test.
10129         [BZ #3855]
10130         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10131         hexadecimal digit should accept just the initial 0.
10132         * stdlib/tst-strtod2.c (tests): New variable.
10133         (do_test): Run several tests rather than just one.
10135 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10137         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10138         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10140 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10142         * io/fts.c: Make sure fts_cur is always valid after return from
10143         fts_read.
10144         Patch by Miloslav Trmac <mitr@redhat.com>.
10146 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10148         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10149         (R_MIPS_NUM): Bump by 1.
10151 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10153         * posix/execvp.c: Include alloca.h.
10154         (allocate_scripts_argv): Renamed to...
10155         (scripts_argv): ... this.  Don't allocate buffer here nor count
10156         arguments.
10157         (execvp): Use alloca if possible.
10158         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10159         * posix/tst-vfork3.c: New test.
10161 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10163         * string/Makefile (tst-strxfrm2-ENV): Define.
10164         * stdlib/Makefile (tst-strtod3-ENV): Define.
10166 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10168         * posix/getconf.c: Update copyright year.
10169         * nss/getent.c: Likewise.
10170         * iconv/iconvconfig.c: Likewise.
10171         * iconv/iconv_prog.c: Likewise.
10172         * elf/ldconfig.c: Likewise.
10173         * catgets/gencat.c: Likewise.
10174         * csu/version.c: Likewise.
10175         * elf/ldd.bash.in: Likewise.
10176         * elf/sprof.c (print_version): Likewise.
10177         * locale/programs/locale.c: Likewise.
10178         * locale/programs/localedef.c: Likewise.
10179         * nscd/nscd.c (print_version): Likewise.
10180         * debug/xtrace.sh: Likewise.
10181         * malloc/memusage.sh: Likewise.
10182         * malloc/mtrace.pl: Likewise.
10183         * debug/catchsegv.sh: Likewise.
10185 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10187         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10188         attempts.
10190 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10192         * posix/wordexp.c: Remove some unnecessary tests.
10194 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10196         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10197         blacklist the group till after we look it up.
10199 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10201         * include/atomic.h (atomic_forced_read): New macro.
10203 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10205         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10207 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10209         * nss/getXXbyYY_r.c: Include atomic.h.
10210         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10211         add atomic_write_barrier () in between.
10213         * stdlib/Makefile (tests): Add tst-makecontext.
10214         * stdlib/tst-makecontext.c: New test.
10216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10217         (__makecontext): Don't realign uc_mcontext.uc_regs.
10219 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10221         * elf/dl-support.c: Include dl-procinfo.h.
10222         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10223         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10224         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10225         Define.
10226         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10227         hardcoded constants.
10228         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10229         PPC_PLATFORM_* macros for array designators.
10231 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10233         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10234         names to the beginning.
10235         (_dl_powerpc_platforms): Add "power6x".
10236         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10237         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10238         (_DL_PLATFORMS_COUNT): Increase.
10239         (_dl_string_platform): Handle power6x case.
10240         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10241         PPC_FEATURE_POWER6_EXT): Define.
10242         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10244 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10246         [BZ #3747]
10247         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10248         [-2^31 .. 2^31) range.
10249         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10250         targets.
10251         * stdlib/tst-rand48-2.c: New test.
10252         * stdlib/Makefile (tests): Add tst-rand48-2.
10254 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10256         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10258 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10260         * misc/tst-pselect.c (do_test): Make sure the helper process is
10261         terminating when the test is aborted.
10263 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10265         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10266         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10267         Handle relatime mount option.
10269         [BZ #2337]
10270         * libio/Makefile (tests): Add tst-setvbuf1.
10271         * libio/tst-setvbuf1.c: New file.
10273 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10275         [BZ #2337]
10276         * libio/genops.c (__uflow): Fix a typo.
10277         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10278         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10279         the narrow buffer size.
10281 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10283         [BZ #2337]
10284         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10285         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10286         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10287         in _flags.
10288         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10289         _IO_wstr_finish): Likewise.
10290         * libio/wmemstream.c (open_wmemstream): Likewise.
10291         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10292         even for wide streams.
10294 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10297         kernel-features.h.
10299 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10301         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10302         separators also if no non-zero digits found.
10303         * stdlib/Makefile (tests): Add tst-strtod3.
10305 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10307         [BZ #3632]
10308         * include/features.h: Fix comment about default value for
10309         _POSIX_C_SOURCE.
10311         [BZ #3664]
10312         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10313         empty parsed strings.
10314         * stdlib/Makefile (tests): Add tst-strtod2.
10315         * stdlib/tst-strtod2.c: New file.
10317         [BZ #3673]
10318         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10319         computation.
10320         * stdlib/Makefile (tests): Add tst-atof2.
10321         * stdlib/tst-atof2.c: New file.
10323         [BZ #3674]
10324         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10325         correctly if removing trailing zero of hex-float.
10326         * stdlib/Makefile (tests): Add tst-atof1.
10327         * stdlib/tst-atof1.c: New file.
10329 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10331         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10332         Start searching for next comma at p rather than rest.
10333         * misc/Makefile (tests): Add tst-mntent2.
10334         * misc/tst-mntent2.c: New test.
10336         * misc/getusershell.c (initshells): Check for integer overflows.
10337         Make strings buffer one bigger as fgets always succeeds when second
10338         argument is 1.  Don't use calloc for shells array.  Disallow
10339         / as shell.
10341 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10343         * malloc/memusage.c: Handle realloc with new size of zero and
10344         non-NULL pointer correctly.
10345         (me): Really write first record twice.
10346         (struct entry): Make format bi-arch safe.
10347         (dest): Write out more realloc statistics.
10348         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10350 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10352         * nis/nis_subr.c (nis_getnames): Revert last change.
10354 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10356         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10357         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10358         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10359         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10360         ENOTTY.
10361         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10362         * io/tst-ttyname_r.c: New test.
10364 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10366         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10368 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10370         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10371         jump table entries.
10373 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10375         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10376         `clone' function to ensure proper unwinding stop of gdb.
10377         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10379 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10381         * nscd/nscd.init: Remove obsolete and commented-out -S option
10382         handling.
10384 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10386         [BZ #3514]
10387         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10389         [BZ #3515]
10390         * manual/string.texi (strtok): Remove duplicate paragraph.
10392 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10394         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10395         libgcc not supporting `rflags' unwinding (register # >= 17).
10397 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10399         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10400         succeeded.
10402 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10403             Jakub Jelinek  <jakub@redhat.com>
10404             Jan Kratochvil  <jan.kratochvil@redhat.com>
10406         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10407         unwind information.
10408         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10409         'restore_rt' even in the 'signal' directory.
10410         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10412 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10414         [BZ #3559]
10415         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10416         malloc crashed.  Don't allocate memory unnecessarily in each
10417         loop.
10419 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10421         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10423 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10425         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10427 2006-11-18  Bruno Haible  <bruno@clisp.org>
10429         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10430         __sysconf only after having tried to call getgroups32.
10432 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10434         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10435         addresses for IPv4 queries if they can be mapped.
10437 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10439         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10440         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10441         (signmask): Add .size directive.
10442         (othermask): Add .type directive.
10444 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10446         * po/nl.po: Update from translation team.
10448         * timezone/zdump.c: Redo fix for BZ #3137.
10450 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10452         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10453         to first_unused after parsing :include: file.
10455 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10457         * timezone/africa: Update from tzdata2006o.
10458         * timezone/antarctica: Likewise.
10459         * timezone/asia: Likewise.
10460         * timezone/australasia: Likewise.
10461         * timezone/backward: Likewise.
10462         * timezone/europe: Likewise.
10463         * timezone/iso3166.tab: Likewise.
10464         * timezone/northamerica: Likewise.
10465         * timezone/southamerica: Likewise.
10466         * timezone/zone.tab: Likewise.
10468         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10469         on machines with 64-bit time_t.
10471         * timezone/checktab.awk: Update from tzcode2006o.
10472         * timezone/ialloc.c: Likewise.
10473         * timezone/private.h: Likewise.
10474         * timezone/scheck.c: Likewise.
10475         * timezone/tzfile.h: Likewise.
10476         * timezone/tzselect.ksh: Likewise.
10477         * timezone/zdump.c: Likewise.
10478         * timezone/zic.c: Likewise.
10480         [BZ #3483]
10481         * elf/ldconfig.c (main): Call setlocale and textdomain.
10482         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10484         [BZ #3480]
10485         * manual/argp.texi: Fix typos.
10486         * manual/charset.texi: Likewise.
10487         * manual/errno.texi: Likewise.
10488         * manual/filesys.texi: Likewise.
10489         * manual/lang.texi: Likewise.
10490         * manual/maint.texi: Likewise.
10491         * manual/memory.texi: Likewise.
10492         * manual/message.texi: Likewise.
10493         * manual/resource.texi: Likewise.
10494         * manual/search.texi: Likewise.
10495         * manual/signal.texi: Likewise.
10496         * manual/startup.texi: Likewise.
10497         * manual/stdio.texi: Likewise.
10498         * manual/sysinfo.texi: Likewise.
10499         * manual/syslog.texi: Likewise.
10500         * manual/time.texi: Likewise.
10501         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10503         [BZ #3465]
10504         * sunrpc/clnt_raw.c: Minimal message improvements.
10505         * sunrpc/pm_getmaps.c: Likewise.
10506         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10507         * nis/nis_print_group_entry.c: Likewise.
10508         * locale/programs/repertoire.c: Likewise.
10509         * locale/programs/charmap.c: Likewise.
10510         * malloc/memusage.sh: Likewise.
10511         * elf/dl-deps.c: Likewise.
10512         * locale/programs/ld-collate.c: Likewise.
10513         * libio/vswprintf.c: Likewise.
10514         * malloc/memusagestat.c: Likewise.
10515         * sunrpc/auth_unix.c: Likewise.
10516         * sunrpc/rpc_main.c: Likewise.
10517         * nscd/cache.c: Likewise.
10518         * locale/programs/repertoire.c: Unify output messages.
10519         * locale/programs/charmap.c: Likewise.
10520         * locale/programs/ld-ctype.c: Likewise.
10521         * locale/programs/ld-monetary.c: Likewise.
10522         * locale/programs/ld-numeric.c: Likewise.
10523         * locale/programs/ld-time.c: Likewise.
10524         * elf/ldconfig.c: Likewise.
10525         * nscd/selinux.c: Likewise.
10526         * elf/cache.c: Likewise.
10527         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10529         [BZ #3451]
10530         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10531         change atomic.
10532         (ceil): Likewise.
10534 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10536         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10537         if N is one bigger than return value.
10538         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10539         and l1 last arguments, if buf is defined, verify the return value
10540         equals to strlen (buf) and verify no byte beyond passed length
10541         is modified.
10543 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10545         * po/sv.po: Update from translation team.
10547 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10549         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10550         noinline attribute.
10552 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10554         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10555         noinline attribute.
10557         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10558         Use __new_sys_siglist instead of _sys_siglist_internal as
10559         second macro argument.
10560         (_old_sys_siglist): Use declare_symbol_alias macro instead of
10561         strong_alias.
10563 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10565         [BZ #3493]
10566         * posix/unistd.h (sysconf): Remove const attribute.
10568         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10569         temporary or deprecated addresses.
10570         Patch by Sridhar Samudrala <sri@us.ibm.com>.
10572         * string/Makefile (tests): Add tst-strxfrm2.
10573         * string/tst-strxfrm2.c: New file.
10575 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
10577         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10578         rather than r->r_brk.
10580 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
10582         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10583         optimization even if needed > n.
10585         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10586         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10587         return false, otherwise return true.
10588         (cache_rpath): Return decompose_rpath return value.
10590 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
10592         * include/libc-symbols.h (declare_symbol): Rename to...
10593         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
10594         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10595         .size directive.
10596         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10597         changes.
10598         * sysdeps/gnu/siglist.c: Likewise.
10600 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
10602         * sysdeps/powerpc/fpu/bits/mathinline.h
10603         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10604         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
10606 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
10608         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10609         Update handling of cache descriptor 0x49 for new models.
10610         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10611         Likewise.
10613 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
10615         * malloc/memusage.c (dest): Reset not_me back to false after
10616         printing statistics.
10618 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
10620         * configure.in: Work around ld --help change and avoid -z relro
10621         test completely if the architecture doesn't care about security.
10623 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10625         * po/sv.po: Update from translation team.
10627 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10629         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10630         generate compatibility version.
10632 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10634         * configure.in: Relax -z relro requirement a bit.
10636         * po/sv.po: Update from translation team.
10638 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10640         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10641         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10642         * elf/dl-close.c (_dl_close_worker): Likewise.
10643         * elf/dl-open.c (_dl_open_worker): Likewise.
10644         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10646 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10648         * configure.in: Require assembler support for visibility, compiler
10649         support for visibility and aliases, linker support for various -z
10650         options.
10651         * Makeconfig: Remove conditional code which now is unnecessary.
10652         * config.h.in: Likewise.
10653         * config.make.in: Likewise.
10654         * dlfcn/Makefile: Likewise.
10655         * elf/Makefile: Likewise.
10656         * elf/dl-load.c: Likewise.
10657         * elf/rtld.c: Likewise.
10658         * include/libc-symbols.h: Likewise.
10659         * include/stdio.h: Likewise.
10660         * io/Makefile: Likewise.
10661         * io/fstat.c: Likewise.
10662         * io/fstat64.c: Likewise.
10663         * io/fstatat.c: Likewise.
10664         * io/fstatat64.c: Likewise.
10665         * io/lstat.c: Likewise.
10666         * io/lstat64.c: Likewise.
10667         * io/mknod.c: Likewise.
10668         * io/mknodat.c: Likewise.
10669         * io/stat.c: Likewise.
10670         * io/stat64.c: Likewise.
10671         * libio/stdio.c: Likewise.
10672         * nscd/Makefile: Likewise.
10673         * stdlib/Makefile: Likewise.
10674         * stdlib/atexit.c: Likewise.
10675         * sysdeps/generic/ldsodefs.h: Likewise.
10676         * sysdeps/i386/dl-machine.h: Likewise.
10677         * sysdeps/i386/sysdep.h: Likewise.
10678         * sysdeps/i386/i686/memcmp.S: Likewise.
10679         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10680         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10681         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10683         * Makerules: USE_TLS support is now default.
10684         * tls.make.c: Likewise.
10685         * csu/Versions: Likewise.
10686         * csu/libc-start.c: Likewise.
10687         * csu/libc-tls.c: Likewise.
10688         * csu/version.c: Likewise.
10689         * dlfcn/dlinfo.c: Likewise.
10690         * elf/dl-addr.c: Likewise.
10691         * elf/dl-cache.c: Likewise.
10692         * elf/dl-close.c: Likewise.
10693         * elf/dl-iteratephdr.c: Likewise.
10694         * elf/dl-load.c: Likewise.
10695         * elf/dl-lookup.c: Likewise.
10696         * elf/dl-object.c: Likewise.
10697         * elf/dl-open.c: Likewise.
10698         * elf/dl-reloc.c: Likewise.
10699         * elf/dl-support.c: Likewise.
10700         * elf/dl-sym.c: Likewise.
10701         * elf/dl-sysdep.c: Likewise.
10702         * elf/dl-tls.c: Likewise.
10703         * elf/ldconfig.c: Likewise.
10704         * elf/rtld.c: Likewise.
10705         * elf/tst-tls-dlinfo.c: Likewise.
10706         * elf/tst-tls1.c: Likewise.
10707         * elf/tst-tls10.h: Likewise.
10708         * elf/tst-tls14.c: Likewise.
10709         * elf/tst-tls2.c: Likewise.
10710         * elf/tst-tls3.c: Likewise.
10711         * elf/tst-tls4.c: Likewise.
10712         * elf/tst-tls5.c: Likewise.
10713         * elf/tst-tls6.c: Likewise.
10714         * elf/tst-tls7.c: Likewise.
10715         * elf/tst-tls8.c: Likewise.
10716         * elf/tst-tls9.c: Likewise.
10717         * elf/tst-tlsmod1.c: Likewise.
10718         * elf/tst-tlsmod13.c: Likewise.
10719         * elf/tst-tlsmod13a.c: Likewise.
10720         * elf/tst-tlsmod14a.c: Likewise.
10721         * elf/tst-tlsmod2.c: Likewise.
10722         * elf/tst-tlsmod3.c: Likewise.
10723         * elf/tst-tlsmod4.c: Likewise.
10724         * elf/tst-tlsmod5.c: Likewise.
10725         * elf/tst-tlsmod6.c: Likewise.
10726         * include/errno.h: Likewise.
10727         * include/link.h: Likewise.
10728         * include/tls.h: Likewise.
10729         * locale/global-locale.c: Likewise.
10730         * locale/localeinfo.h: Likewise.
10731         * malloc/arena.c: Likewise.
10732         * malloc/hooks.c: Likewise.
10733         * malloc/malloc.c: Likewise.
10734         * resolv/Versions: Likewise.
10735         * sysdeps/alpha/dl-machine.h: Likewise.
10736         * sysdeps/alpha/libc-tls.c: Likewise.
10737         * sysdeps/generic/ldsodefs.h: Likewise.
10738         * sysdeps/generic/tls.h: Likewise.
10739         * sysdeps/i386/dl-machine.h: Likewise.
10740         * sysdeps/ia64/dl-machine.h: Likewise.
10741         * sysdeps/ia64/libc-tls.c: Likewise.
10742         * sysdeps/mach/hurd/fork.c: Likewise.
10743         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10744         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10745         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10746         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10747         * sysdeps/s390/libc-tls.c: Likewise.
10748         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10749         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10750         * sysdeps/sh/dl-machine.h: Likewise.
10751         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10752         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10753         * sysdeps/x86_64/dl-machine.h: Likewise.
10755         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10756         split out locking and parameter checking.
10757         (_dl_close): Call _dl_close_worker after locking and checking.
10758         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10759         _dl_close.
10760         * elf/Makefile: Add rules to build and run tst-thrlock.
10761         * elf/tst-thrlock.c:  New file.
10763         [BZ #3426]
10764         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10765         reality.
10767         [BZ #3429]
10768         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10769         we are sure we do not need it anymore for _dl_close.  Also move
10770         the asserts inside the lock region.
10771         Patch mostly by Suzuki <suzuki@in.ibm.com>.
10773 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
10775         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10776         argument.
10777         (_dl_lookup_symbol_x): Adjust caller.
10779         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10780         _ns_global_scope.
10781         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10783         * elf/dl-libc.c: Revert l_scope name changes.
10784         * elf/dl-load.c: Likewise.
10785         * elf/dl-object.c: Likewise.
10786         * elf/rtld.c: Likewise.
10787         * elf/dl-close.c (_dl_close): Likewise.
10788         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
10789         always use __rtld_mrlock_{change,done}.  Always free old scope list
10790         here if not l_scope_mem.
10791         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10792         change.  Never free scope list here.  Just __rtld_mrlock_lock before
10793         the lookup and __rtld_mrlock_unlock it after the lookup.
10794         * elf/dl-sym.c: Likewise.
10795         * include/link.h (struct r_scoperec): Remove.
10796         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10797         with l_scope_mem and l_scoperec_lock with l_scope_lock.
10799 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
10801         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10803 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10805         * configure.in: Disable building profile libraries by default.
10807 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10809         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10810         as signed longs, check for x_base + pos overflow.
10811         * sunrpc/Makefile (tests): Add tst-xdrmem2.
10812         * sunrpc/tst-xdrmem2.c: New test.
10814 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10816         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10817         _dl_lookup_symbol_x code.
10819 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10821         * elf/dl-runtime.c: Include sysdep-cancel.h.
10822         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10823         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
10824         instead of catomic_* macros.
10825         * elf/dl-sym.c: Include sysdep-cancel.h.
10826         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10827         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10828         * elf/dl-close.c: Include sysdep-cancel.h.
10829         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10830         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10831         * elf/dl-open.c: Include sysdep-cancel.h.
10832         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10833         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10835 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10837         [BZ #3313]
10838         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10839         fastbin rather than end of fastbin array.
10841 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10843         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10844         body macro.
10845         * sysdeps/x86_64/bits/atomic.h
10846         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10847         (catomic_decrement): Use correct body macro.
10849 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10851         * include/atomic.h: Add a unique prefix to all local variables
10852         in macros.
10853         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10855 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
10857         [BZ #3369]
10858         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10859         and 7.
10861 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
10863         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10865 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
10867         [BZ #3313]
10868         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10869         determine highest fast bin to consolidate, always look into all of
10870         them.
10871         (do_check_malloc_state): Only require for empty bins for large
10872         sizes in main arena.
10874         * libio/stdio.h: Add more __wur attributes.
10876         * elf/dl-minimal.c (realloc): Optimize last patch.
10878 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10880         [BZ #3352]
10881         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10882         and use memcpy() if it does.
10884 2006-11-12  Andreas Jaeger  <aj@suse.de>
10886         [BZ #2510]
10887         * manual/search.texi (Hash Search Function): Clarify.
10888         (Array Search Function): Clarify.
10890 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10892         [BZ #2830]
10893         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10894         shifting.
10895         * math/atest-exp2.c (read_mpn_hex): Likewise.
10896         * math/atest-sincos.c (main): Likewise.
10898 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10900         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10901         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10902         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10903         version GLIBC_2.6.
10904         * Versions.def: Add GLIBC_2.6 for libc.
10906         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10908         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10910 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10912         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10914         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10916         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10917         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10919 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10921         * include/atomic.c: Define catomic_* operations.
10922         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10923         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10924         * malloc/memusage.c: Likewise.
10925         * gmon/mcount.c: Likewise.
10926         * elf/dl-close.c: Likewise.
10927         * elf/dl-open.c: Likewise.
10928         * elf/dl-profile.c: Likewise.
10929         * elf/dl-sym.c: Likewise.
10930         * elf/dl-runtime.c: Likewise.
10931         * elf/dl-fptr.c: Likewise.
10932         * resolv/res_libc.c: Likewise.
10934 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10936         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10937         components which lack them.
10939         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10940         at least one entry consisting of the parameter concatenated with
10941         the domain.
10943 2006-10-10  Roland McGrath  <roland@frob.com>
10945         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10946         * sysdeps/mach/hurd/futimes.c: Likewise.
10947         * sysdeps/mach/hurd/lutimes.c: Likewise.
10949 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10950             Jakub Jelinek  <jakub@redhat.com>
10952         Implement reference counting of scope records.
10953         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10954         from the list in objects which remain.  Always allocate new scope
10955         record.
10956         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10957         don't resize, allocate a new one.
10958         * elf/dl-runtime.c: Update reference counters before using a scope
10959         array.
10960         * elf/dl-sym.c: Likewise.
10961         * elf/dl-libc.c: Adjust for l_scope name change.
10962         * elf/dl-load.c: Likewise.
10963         * elf/dl-object.c: Likewise.
10964         * elf/rtld.c: Likewise.
10965         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10966         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10967         Add l_scoperec_lock.
10968         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10969         * sysdeps/generic/rtld-lowlevel.h: New file.
10971         * include/atomic.h: Rename atomic_and to atomic_and_val and
10972         atomic_or to atomic_or_val.  Define new macros atomic_and and
10973         atomic_or which do not return values.
10974         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10975         Various cleanups.
10976         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10978         * po/sv.po: Update from translation team.
10980 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10982         * Versions.def: Add GLIBC_2.6 to libpthread.
10984         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10985         (versioned_symbol): Likewise.
10986         (compat_symbol): Likewise.
10988         * po/tr.po: Update from translation team.
10990 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10992         * nis/Banner: Removed.  It's been integral part forever and the
10993         author info is incomplete anyway.
10994         * libio/Banner: Likewise.
10996         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10997         code, make sure the nis_freeresult call doesn't crash and that the
10998         result is reported correctly.
11000 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11002         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11003         when callback is NULL.
11005         * nis/Versions (libnss_nisplus): Add
11006         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11007         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11008         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11009         _nss_create_tablename): Rename to...
11010         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11011         ... these.  No longer static.
11012         (internal_setgrent): Adjust users.
11013         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11014         Don't use locking around _nss_grp_create_tablename call.
11015         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11017 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11019         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11021 2006-10-06  Andreas Jaeger  <aj@suse.de>
11023         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11025 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11027         * po/pl.po: Update from translation team.
11029         * nscd/nscd.c (main): Fix typo in message.
11030         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11032 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11034         [BZ #3291]
11035         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11036         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11037         (__sigprocmask): Define.
11039 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11041         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11042         used.
11044 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11046         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11047         in oldtotal and newtotal calculation.
11048         * nscd/nscd-client.h (struct mapped_database): Add datasize
11049         field.
11050         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11051         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11052         increased.
11053         (__nscd_cache_search): Add checks to make sure we never reference
11054         data beyond the current mapping.
11056 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11058         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11059         variables const to avoid compiler warnings.
11061         * io/fts.c (fts_close): Remove redundant checks.
11062         (fts_build): Likewise.
11063         (fts_palloc): Likewise.
11065         * manual/message.texi (Advanced gettext functions,
11066         Using gettextized software): Fix typos.
11068 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11070         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11071         explain why there are no leaks.
11073 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11075         * libio/wmemstream.c: Include <wchar.h>.
11076         * libio/bug-wmemstream1.c: Likewise.
11077         * libio/tst-wmemstream1.c: Likewise.
11078         * libio/tst-wmemstream2.c: Likewise.
11080         * version.h (RELEASE): Bump to 2.5.
11081         * README: Regenerated.
11083         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11085         [BZ #3273]
11086         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11087         found no group members.
11088         Patch by Petr Baudis.
11090 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11092         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11093         assert bootstrap_map.l_tls_modid is zero.
11094         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11095         if USE___THREAD.
11097 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11099         * libio/stdio.h: Move open_wmemstream prototype to ...
11100         * wcsmbs/wchar.h: ... here.
11102 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11104         [BZ #3252]
11105         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11106         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11107         __{,l}chown to handle the rest.
11108         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11109         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11110         __{,l}chown to handle the rest.
11111         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11112         i386/fchownat.c.
11113         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11114         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11116         [BZ #3253]
11117         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11118         time, rather allocate increasingly bigger arrays of pointers, if
11119         possible with alloca, if too large with malloc.
11121 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11123         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11125         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11127 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11129         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11130         home addresses.
11131         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11132         IFA_F_HOMEADDRESS flag for interfaces.
11133         * include/ifaddrs.h (struct in6addrinfo): Define
11134         in6ai_homeaddress.
11136 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11138         [BZ #3225]
11139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11140         PTR_DEMANGLE3): Define.
11141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11142         PTR_DEMANGLE3): Likewise.
11143         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11144         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11145         Likewise.
11146         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11148 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11150         * po/libc.pot: Regenerated.
11151         * po/be.po: Updated.
11152         * po/ca.po: Likewise.
11153         * po/cs.po: Likewise.
11154         * po/da.po: Likewise.
11155         * po/de.po: Likewise.
11156         * po/el.po: Likewise.
11157         * po/en_GB.po: Likewise.
11158         * po/es.po: Likewise.
11159         * po/fi.po: Likewise.
11160         * po/fr.po: Likewise.
11161         * po/gl.po: Likewise.
11162         * po/hr.po: Likewise.
11163         * po/hu.po: Likewise.
11164         * po/ja.po: Likewise.
11165         * po/ko.po: Likewise.
11166         * po/nb.po: Likewise.
11167         * po/nl.po: Likewise.
11168         * po/pl.po: Likewise.
11169         * po/pt_BR.po: Likewise.
11170         * po/ru.po: Likewise.
11171         * po/rw.po: Likewise.
11172         * po/sk.po: Likewise.
11173         * po/sv.po: Likewise.
11174         * po/tr.po: Likewise.
11175         * po/zh_CN.po: Likewise.
11176         * po/zh_TW.po: Likewise.
11178         [BZ #3137]
11179         * iconv/iconv_prog.c (main): Fix spelling in error message.
11180         * iconv/iconvconfig.c (main): Likewise.
11181         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11182         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11183         * locale/programs/localedef.c (main): Likewise.
11184         * locale/programs/repertoire.c (repertoire_read): Likewise.
11185         * timezone/zdump.c (main): Likewise.
11186         * nscd/connections.c (handle_request): Fix spelling in log message.
11187         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11189 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11191         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11192         interfaces.
11194 2006-09-20  Andreas Jaeger  <aj@suse.de>
11196         * math/libm-test.inc (lrint_test_upward): Fix typo.
11198 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11200         [BZ #2592]
11201         * math/libm-test.inc (lrint_test_tonearest): New function.
11202         (lrint_test_towardzero): New function.
11203         (lrint_test_downward): New function.
11204         (lrint_test_upward): New function.
11205         (main): Run these new tests.
11206         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11207         of values near to 0.
11208         (two52): Use double not long double.
11209         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11210         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11211         (two23): Use float not double.
11212         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11213         (two23): Use float not double.
11214         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11215         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11216         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11217         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11219 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11221         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11222         Cast sp to unsigned long to avoid compiler warning.
11223         Use __makecontext_ret function instead of a trampoline on the stack.
11224         (__makecontext_ret): New function.
11225         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11227 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11229         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11230         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11231         bits.
11233 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11235         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11236         sure no reference to the unloaded map's search list remains in the
11237         dependency's scope.
11239 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11241         * elf/Makefile: Add rules to build and run unload7 test.
11242         * elf/unload7.c: New test.
11243         * elf/unload7mod1.c: New file.
11244         * elf/unload7mod2.c: New file.
11246 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11248         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11249         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11250         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11251         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11252         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11253         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11254         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11255         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11256         PTRACE_GETEVENTMSG): Likewise.
11257         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11258         values.
11260 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11262         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11263         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11264         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11265         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11267 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11269         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11270         write '\0' to the fd.
11271         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11272         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11273         Change regs to unsigned long pointer from unsigned int, fix fscr
11274         offset.
11276 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11278         * io/Makefile (CFLAGS-fstatat.c): Set.
11279         (CFLAGS-fstatat64.c): Likewise.
11280         (CFLAGS-mknodat.c): Likewise.
11282         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11283         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11284         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11285         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11287 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11288             Steven Munroe  <sjmunroe@us.ibm.com>
11290         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11291         names to the beginning.  Rename "cell" to "cellbe".
11292         (_dl_powerpc_platforms): New.
11293         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11294         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11295         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11296         (_DL_HWCAP_PLATFORM): Define to new mask.
11297         (_dl_platform_string, _dl_string_platform): New functions.
11298         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11299         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11301 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11303         [BZ #2526]
11304         * README.libm: Fix a thinko in sqrt algorithm description.
11306         [BZ #3143]
11307         * manual/string.texi (argz_delete): Fix prototype.
11308         Patch by <alpt@freaknet.org>.
11310 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11312         [BZ #3138]
11313         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11314         * io/tst-fcntl.c (do_prepare): Likewise.
11315         * posix/tst-exec.c (do_prepare): Likewise.
11316         * posix/tst-preadwrite.c (do_prepare): Likewise.
11317         * posix/tst-spawn.c (do_prepare): Likewise.
11318         * posix/tst-truncate.c (do_prepare): Likewise.
11319         * rt/tst-aio.c (do_prepare): Likewise.
11320         * rt/tst-aio64.c (do_prepare): Likewise.
11321         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11322         size_t.
11324 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11326         [BZ #2821]
11327         * time/mktime.c (guess_time_tm): Fix overflow detection.
11328         * time/Makefile (tests): Add bug-mktime1.
11329         * time/bug-mktime1.c: New file.
11331         [BZ #3189, #3188]
11332         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11333         (mremap): Likewise.
11335 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11337         [BZ #1006]
11338         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11339         Ensure relocation doesn't clobber any bits outside of the
11340         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11341         R_SPARC_HI22 and R_SPARC_H44.
11343         [BZ #2775]
11344         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11345         (long) (MINSIZE + nb - old_size) is positive.
11347         * malloc/arena.c (grow_heap): When growing bail even if new_size
11348         is negative.
11350         [BZ #3155]
11351         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11352         stack below r1.
11354 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11356         * posix/regex_internal.c (re_string_reconstruct): Handle
11357         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11358         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11359         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11360         re_string_context_at.
11361         * posix/Makefile: Add rules to build and run bug-regex26 test.
11362         * posix/bug-regex26.c: New test.
11364         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11365         rather than col_sym_free.  Move seqp declaration earlier.
11367         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11369 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11371         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11372         decl before first goto out.
11374 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11376         * Makerules (shlib.lds): If have-hash-style, put .hash section
11377         at the end of the RO segment.
11379 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11381         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11382         style hash table format is used.
11384 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11386         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11387         randomization rather than before.
11388         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11390 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11392         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11394         * malloc/malloc.c (_int_malloc): Use full list insert and not
11395         shortcut which assumes the list is empty for large requests
11396         too.
11398         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11400 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11402         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11403         and offout arguments to the prototype.
11404         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11405         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11406         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11407         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11408         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11409         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11410         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11411         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11413 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11415         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11417         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11418         dlopen parameters.
11420 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11422         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11423         only if herrno is NETDB_INTERNAL.  Handle errors other than
11424         ERANGE outside of the loops, handle TRY_AGAIN.
11426         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11427         if other's ctype category was missing.
11428         * locale/programs/ld-collate.c (collate_read): Return if
11429         copy_locale's collate category is missing.
11431 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11433         [BZ #2684]
11434         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11435         arenas if allocation failed.
11436         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11438 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11440         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11441         waste bins[0..1].
11442         (malloc_state): Reduce bins size by 2.
11443         (_int_malloc): Fix test for large enough buffer for early termination.
11444         When no unsorted block matches perfectly and an exiting block has
11445         to be split, use full list insert and not shortcut which assumes
11446         the list is empty.
11448         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11449         failure.
11451 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11453         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11454         do anything.
11456         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11457         symbol require exact match (these are PLTs).
11458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11459         (_dl_ppc64_addr_sym_match): Likewise.
11461         [BZ #2683]
11462         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11463         If symbol has a value use it.
11464         * elf/tst-dladdr1.c: New file.
11465         * elf/Makefile: Add rules to build and run tst-addr1.
11467 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11469         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11470         keeps failing and heap growth or new heap creation isn't
11471         successful either.
11472         * malloc/tst-malloc.c (main): Add new tests.
11474 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11476         [BZ #2734]
11477         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11478         as in the x86-64 code to use bswap.
11480 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11482         [BZ #2680]
11483         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11484         __USE_UNIX98.
11485         * posix/bits/unistd.h: Likewise.
11487 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11489         [BZ #2751]
11490         * string/strchr.c: Add cast to avoid warning.
11492 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11494         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11495         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11496         limit is needed to avoid the exploding of the address space
11497         requirement for secondary heaps.
11498         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11499         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11501 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11503         [BZ #3018]
11504         * Makerules (depfiles): Handle extra-test-objs the same as
11505         extra-objs.
11506         (common-mostlyclean): Likewise.
11507         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11508         instead.
11509         * elf/Makefile (extra-objs): Likewise.
11510         * stdlib/Makefile (extra-objs): Likewise.
11512 2006-08-14  Eric Blake  <ebb9@byu.net>
11514         [BZ #3044]
11515         * misc/error.h: Assume C89 or better.
11516         * misc/error.c: Likewise.
11518 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11520         [BZ #3040]
11521         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11522         __ASSUME_ATFCTS is defined.
11524 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
11526         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11527         to sort in each call.
11529         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11530         is empty simply return and use next service.
11531         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11533         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
11534         tells us when not finding a charmap file is an error.
11535         * locale/programs/charmap.h: Adjust charmap_read prototype.
11536         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11537         cannot find a charmap.
11538         * locale/programs/localedef.c (main): Adjust charmap_read call.
11540 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
11542         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11543         sysdeps/posix/pause.c implementation instead.
11545 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
11547         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11548         to EPERM.
11550 2006-08-13  Andreas Schwab  <schwab@suse.de>
11552         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11553         Don't clobber caller's LRSAVE.
11554         (_dl_prof_resolve): Likewise.
11556 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
11558         [BZ #1996]
11559         * libio/memstream.c (open_memstream): Allocate initial buffer with
11560         calloc.
11561         * libio/wmemstream.c (open_wmemstream): Likewise.
11562         * libio/strops.c: Pretty printing.
11563         (_IO_str_overflow): Clear uninitialized part of the new buffer.
11564         (enlarge_userbuf): New function.
11565         (_IO_str_seekoff): Call it if seek position is larger than current
11566         buffer.
11567         * libio/wstrops.c: Likewise.
11568         * libio/vasprintf.c: Add comment as to why we do not have to use
11569         calloc instead of malloc to allocate initial buffer.
11570         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11571         * libio/bug-memstream1.c: New file.
11572         * libio/bug-wmemstream1.c: New file.
11574 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11576         * libio/wstrops.c: Remove dead macro definitions and comments.
11577         * libio/strops.c: Likewise.
11579         [BZ #2764]
11580         * login/utmpname.c (__utmpname): Remove unnecessary test.
11582 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
11584         [BZ #2832]
11585         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11586         0s from integers.
11588 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11590         [BZ #2987]
11591         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11592         for CPU clocks.
11593         * sysdeps/unix/clock_settime.c: Add support for platform-specific
11594         setting of CPU clocks.
11596 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11598         [BZ #2841]
11599         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11600         since C99 requires the result to promote to 'int' when uint_least8_t
11601         and uint_least16_t promote to 'int'.
11603 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11605         [BZ #3013]
11606         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11607         lenght of one output field, correct bitmask creation.
11608         * locale/programs/ld-time.c: Add alignment.
11610         [BZ #2997]
11611         * misc/error.c: Add space between program name and message if file
11612         name is missing.
11614 2006-08-03  Eric Blake  <ebb9@byu.net>
11616         [BZ #2998]
11617         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11619 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11621         * malloc/memusagestat.c: Silence warnings.
11623         * malloc/malloc.c: Dynamically size mmap treshold if the program
11624         frees mmaped blocks.
11625         Patch by Valerie Henson and Arjan van de Ven.
11627 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11629         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11630         __USE_GNU.
11632         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11633         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11634         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11635         Only provide var definitions in strtol_l (or for *ull*
11636         in strtoll_l).
11638         * stdio-common/bug16.c (tests): New array.
11639         (do_tests): Allow the first hexadecimal digit
11640         to be 1, 2, 4 or 8.  Do 3 additional tests.
11642         * sysdeps/s390/fpu/libm-test-ulps: Update.
11644         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11645         fchownat syscall if available.
11646         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11647         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11648         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11650 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11652         * nis/nis_xdr.c: Avoid some function calls.
11654 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11655             Ulrich Drepper  <drepper@redhat.com>
11657         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11658         short cut if only one name component is stripped away.
11660 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11662         * nis/nis_call.c: Minor cleanups throughout.
11663         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11664         (first_shoot): Add search_parent_first parameter.  Only if it is set
11665         search parent server first.
11666         If directory for table found through cold start cache is not the same
11667         as referenced in the cache, don't use it.
11668         (__nisfind_server): Take additional parameter.  Pass it on to
11669         first_shoot.
11670         (__prepare_niscall): Adjust __nisfind_server call.
11671         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11672         * nis/nis_table.c: Adjust __nisfind_server call.
11673         * nis/nis_lookup.c: Likewise.
11674         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11676 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11678         [BZ #2182]
11679         * math/s_cacosh.c: Return values from positive branch.
11680         * math/s_cacoshf.c: Likewise.
11681         * math/s_cacoshl.c: Likewise.
11683         [BZ #2883]
11684         * sysvipc/sys/msg.h: Change return value to ssize_t.
11685         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11686         * sysvipc/msgrcv.c: Likewise.
11687         * include/sys/msg.h: Likewise.
11689         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11690         test introduced in patch for bz #661.
11691         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11692         element for NEWGROUPS.
11694         [BZ #2908]
11695         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11696         'f', use '1' as leading digit not '\1'.
11697         * stdio-common/Makefile (tests): Add bug16.
11698         * stdio-common/bug16.c: New file.
11700         [BZ #2914]
11701         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11702         and don't try to open it.  The patch introducing the macro
11703         contained a bug and used the same file name as the new file
11704         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
11705         this out completely.
11707         [BZ #2926]
11708         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11709         Patch by Jerry James <Jerry.James@usu.edu>.
11711         * rt/Makefile (tests): Add tst-clock2.
11712         * rt/tst-clock2.c: New file.
11714         [BZ #2978]
11715         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11716         function and its parameters and pass it to new thread.
11717         (__gai_notify): Add support for alternative waiting for completion.
11718         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11719         waiting for completion.
11720         * resolv/getaddrinfo_a.c: Likewise.
11721         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11722         waiting for completion is used.
11723         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11724         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11725         * resolv/gai_error.c: Likewise.
11726         * resolv/gai_sigqueue.c: Likewise.
11728 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
11730         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11731         errno to EBADF and return MACH_PORT_NULL.
11733 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
11735         [BZ #2980]
11736         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11738 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
11740         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11741         walk them instead of the symbol table.
11743 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
11745         [BZ #2098]
11746         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11747         status of NSS calls, not the number of returned entries.
11749         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11750         request_key, keyctl.
11752 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11754         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11756 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
11758         * elf/tst-auditmod1.c: Fix typo in #error.
11760 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11762         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11764         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11766 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11768         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11769         that the directory is empty even on non-POSIX filesystems.
11771 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11773         * elf/dl-open.c (dl_open_worker): Add branch prediction.
11775         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11776         the backend NSS module.  If backend setgrent call failed, don't have
11777         internal_setgrent fail.  Just remember this until it is needed.
11778         * nis/nss_compat/compat-pwd.c: Likewise.
11779         * nis/nss_compat/compat-spwd.c: Likewise.
11781 2006-07-30  Roland McGrath  <roland@redhat.com>
11783         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11784         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11785         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11786         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11788         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11789         (nanosleep_not_cancel): New macro.
11790         (sigsuspend_not_cancel): new macro.
11791         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11792         (do_sigsuspend): Define as inline.
11793         (__sigsuspend): Always use do_sigsuspend.
11794         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11795         * include/signal.h: Declare __sigsuspend_nocancel.
11796         * sysdeps/posix/pause.c
11797         [! NO_CANCELLATION] (__pause_nocancel): New function.
11799         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11800         * include/time.h (__nanosleep_nocancel): Likewise.
11802 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
11804         * locale/programs/localedef.c (add_to_readlist): Rename local
11805         variables to avoid confusion.
11807         * locale/programs/charmap.c (charmap_read): Emit error message if
11808         charmap couldn't be found or read.
11810 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
11812         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11813         __ASSUME_FUTEX_LOCK_PI.
11814         * include/time.h: Declare __nanosleep_nocancel.
11815         * include/unistd.h: Declare __pause_nocancel.
11817         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11818         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
11819         get the __stack_chk_fail_local definition when it's needed.
11821 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
11823         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11824         * dlfcn/bug-atexit3.c: New file.
11825         * dlfcn/bug-atexit3-lib.cc: New file.
11827         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11828         used when the namespace is not the base namespace.
11830 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
11832         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11833         (__new_exitfn): Bump it in every successful call.
11834         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11835         more exit handlers, call them right away.
11836         * stdlib/exit.h: Declare __new_exitfn_called.
11838 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
11840         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11841         calling registered handler.
11843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11844         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11845         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11846         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11847         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11848         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11849         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11850         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11852 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
11854         * elf/dl-lookup.c (dl_new_hash): New functions.
11855         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11856         value here.  Compute new-style hash value.  Pass new hash value
11857         and reference to variable with the old value to do_lookup_x.
11858         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11859         old-style hash table.
11860         (_dl_debug_bindings): Pass new hash value and reference to variable
11861         with the old value to do_lookup_x.
11862         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11863         new-style hash value and change old-style hash value parameter to
11864         be a reference.  Reoganize functions to determine whether
11865         new-style hash table is available.  Only fall back on old-style
11866         table.  If old-style hash value is needed, compute it here.
11867         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11868         entry.
11869         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11870         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
11871         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11872         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11873         * Makeconfig: If linker supports --hash-style option add it to all
11874         linker command lines to build DSOs.
11875         * config.make.in: Define have-hash-style.
11876         * configure.in: Test whether linker supports --hash-style option.
11878         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11879         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11881 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11883         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11884         auditing.
11886         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11887         RPATH of main map twice.
11889 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11891         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11892         look further, return original strings.
11893         (_nl_find_msg): Do not return found translation if the conversion
11894         failed.  Either signal the string is unusable or that something went
11895         wrong and the original should be used.
11897 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11899         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11901 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11903         [BZ #2766]
11904         * misc/insremque.c (insque): Handle prev == NULL.
11905         * misc/Makefile (tests): Add tst-insremque.
11906         * misc/tst-insremque.c: New test.
11908 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11910         [BZ #2792]
11911         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11912         conflict with DL_DST_REQUIRED.
11914 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11916         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11917         match what Solaris does.
11919 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11921         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11922         local_setegid instead of seteuid and setegid.
11923         * sysdeps/generic/local-setxid.h: New file.
11924         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11926         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11928         * string/Makefile (tests): Add bug-envz1.
11929         * string/bug-envz1.c: New file.
11931 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11933         * posix/regex_internal.c (re_string_skip_chars): If no character has
11934         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11935         to the byte which couldn't be converted.
11936         (re_string_reconstruct): Don't clear valid_raw_len before calling
11937         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11938         tip_context using re_string_context_at.
11939         * posix/Makefile: Add rules to build and run bug-regex25 test.
11940         * posix/bug-regex25.c: New test.
11942 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11944         [BZ #2703]
11945         * string/envz.c (envz_strip): Correct erroneously reversed src
11946         and dest parameters to memmove() invocation.
11948 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11950         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11951         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11952         to make sure the database has been already invalidated.
11953         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11954         after the cache has been invalidated.  Use pthread_mutex_lock rather
11955         than pthread_mutex_trylock if fd != -1.
11956         * nscd/connections.c (invalidate_cache): Add fd argument, write
11957         response to fd if not calling prune_cache, pass fd to prune_cache.
11958         (handle_request): Adjust invalidate_cache caller.
11959         (nscd_run): Pass -1 as fd to prune_cache.
11961 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11963         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11964         the correct place.
11966 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11968         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11969         * nscd/cache.c (prune_cache): Take prunelock before starting the
11970         work.  Just return in case it is already taken.
11971         * nscd/connections.c (dbs): Initialize .prunelock.
11973 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11975         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11976         copying.  No need to allocate new array for group members.  Just
11977         move the pointers and update the size.
11979         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11980         Avoid memory leak in case realloc fails.  Simplification for
11981         better code generation.
11983         Avoid deprecation warning because of libc_hidden_proto for
11984         inet6_option_alloc.
11985         * inet/inet6_option.c (option_alloc): Renamed from
11986         inet6_option_alloc.  Made static.
11987         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11988         (inet6_option_append): Call option_alloc.
11989         * include/netinet/in.h: Remove libc_hidden_proto for
11990         inet6_option_alloc.
11992         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11993         for cleanup when cb!=NULL [Coverity CID 233].
11995 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11997         [BZ #2693]
11998         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11999         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12000         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12001         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12002         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12003         and inet6_rth_getaddr.
12004         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12005         array.
12006         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12007         Mark inet6_option_* interfaces as deprecated.
12008         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12009         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12010         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12011         inet6_rth_segments, and inet6_rth_getaddr.
12012         * inet/inet6_opt.c: New file.
12013         * inet/inet6_rth.c: New file.
12015         * inet/netinet/icmp6.h: Pretty printing.
12017         [BZ #2683]
12018         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12020 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12022         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12023         doing it all here.  When server does not know the answer do not
12024         fail immediate, try parent first.
12026         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12027         overflow test.
12029 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12031         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12032         from __do_niscall.
12033         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12034         and exported.
12035         (__follow_path): New function.  Split out from nis_list.
12036         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12037         _xdr_nis_result.
12038         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12039         _xdr_nis_result.
12040         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12041         and __follow_path.
12042         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12043         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12044         from libnsl for version GLIBC_PRIVATE.
12045         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12046         Remove entry parameter from _nss_nisplus_parse_pwent and
12047         _nss_nisplus_parse_grent.
12048         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12049         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12050         again.  Rewrite getpwent handling to not use nis_first_entry and
12051         nis_next_entry.  Roll out own niscall handling.
12052         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12054         * sunrpc/xdr_rec.c: Fix typo in comment.
12056 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12058         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12059         handling.
12061         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12062         to allocate memory for my_pollfd.  Better initialization of
12063         cb_is_running.  Use TEMP_FAILURE_RETRY.
12065         * malloc/memusage.sh (memusageso): Add quotes.
12066         (memusagestat): Likewise.
12067         * debug/xtrace.sh (pcprofileso): Likewise.
12068         (pcprofiledump): Likewise.
12069         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12070         replacement.
12071         * malloc/Makefile ($(objpfx)memusage): Likewise.
12073         * nis/nis_callback.c (__nis_create_callback): Calls to
12074         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12075         asprintf call fails.
12077         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12078         no uninitialized memory is passed to sendto.
12080 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12082         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12083         of snprintf+strdup.  Handle OOM.
12084         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12085         cb->serv together.  Remove now obsolete free calls.
12086         (__nis_destroy_callback): Remove now obsolete free call.
12088 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12090         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12091         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12092         and ULA respectively). Set precedence for IPv4 address to 10 as
12093         defined in RFC3484 for preferring IPv6.
12094         * posix/gai.conf: Update to match the new default tables.
12096 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12098         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12099         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12100         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12101         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12103         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12104         Removed.
12105         (init_nss_interface): Remove initialization of these variables.
12107 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12109         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12110         nis_free_directory forward to avoid duplication.
12112 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12114         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12115         rec_dirsearch returning NULL.
12116         (first_shoot): Handle __nis_finddirectory returning NULL.
12117         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12119         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12120         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12122 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12124         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12125         pid changed.
12127 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12129         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12131         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12132         * nscd/nscd_getgr_r.c: Likewise.
12134         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12136         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12137         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12139         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12141         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12143         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12145         * include/rpc/auth.h: Mark xdr_des_block_internal and
12146         xdr_opaque_auth_internal as hidden.
12148         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12149         hidden.
12151         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12153         * misc/getusershell.c (okshells): Don't use static initializers,
12154         do it dynamically.
12156         * stdlib/fmtmsg.c (keywords): Change type of len element to
12157         uint32_t to not waste space on 64bit machines.
12159         * locale/setlocale.c: Change _nl_category_names into a string.
12160         Add new _nl_category_name_idxs.  Change all users.
12161         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12162         Declare _nl_category_name_idxs.
12163         * locale/findlocale.c: Adjust for _nl_category_names change.
12164         * locale/loadlocale.c: Likewise.
12165         * locale/newlocale.c: Likewise.
12166         * intl/dcigettext.c: Likewise.
12168         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12169         (add_alias2): ...here.  New function.
12170         (__gconv_read_conf): Simplify builtin alias handling.
12171         (builtin_aliases): Convert to string to avoid relocations.
12172         * iconv/gconv_builtin.h: Add comment about correct formatting.
12174 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12176         * resolv/res_debug.c (loc_ntoa): Make error const.
12178 2006-05-14  Andreas Schwab  <schwab@suse.de>
12180         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12182 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12184         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12185         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12186         sizeof (cpu_set_t).
12188 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12190         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12192         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12194         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12195         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12197         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12198         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12200         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12201         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12202         xdr_cback_data.
12204         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12205         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12206         xdr_ypupdate_args.
12208         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12209         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12211         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12212         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12214         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12215         * include/rpcsvc/nis_callback.h: New file.
12217         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12218         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12220         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12221         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12223         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12224         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12226         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12227         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12229         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12230         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12231         xdr_ypdelete_args.
12233         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12234         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12236         * nis/nis_error.c: Remove table of strings.  Use position
12237         independent mechanism.
12238         * nis/nis_error.h: New file.
12240 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12242         * locale/programs/ld-time.c (time_finish): If wide era name or
12243         format aren't provided, set both wname and wformat to L"".
12245 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12247         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12248         results if the call was succesful.
12250         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12252         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12253         as hidden.
12255 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12257         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12259 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12261         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12262         caller makes sure this is not the case.
12263         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12265 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12267         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12268         calls.
12270         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12271         [Coverity CID 229, 230]
12273         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12274         DGETTEXT calls.
12275         (hol_help): Likewise.  [Coverity CID 226, 227]
12277         * string/argz-replace.c (__argz_replace): Unconditionally call
12278         free on SRC.  [Coverity CID 225]
12280         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12281         the return value of __nis_default_owner and __nis_default_group,
12282         it has been especially allocated.  [Coverity CID 224]
12284         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12285         searchgroup and searchowner.  Significantly simplified.
12286         (__nis_default_owner): Remove duplication.  Do not locally copy the
12287         string before duplicating it.
12288         (__nis_default_group): Likewise.
12290         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12291         we must clear the variable before calling __nisfind_server.
12293         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12294         nis_getnames.  [Coverity CID 223]
12296         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12297         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12299         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12300         allocate memory for the input to add_bytes.  [Coverity CID 221]
12302         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12303         was allocated here.  [Coverity CID 219, 220]
12305         * posix/getconf.c (print_all): Free confstr data after printing.
12306         [Coverity CID 218]
12308         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12309         list allocation fails.  [Coverity CID 215]
12311         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12312         [Coverity CID 213]
12314         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12315         string is NULL.  [Coverity CID 212]
12316         * argp/Makefile: Add rules to build and run bug-argp1.
12317         * argp/bug-argp1.c: New file.
12319         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12320         end of string.
12321         * stdlib/canonicalize.c (__realpath): Likewise.
12323         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12324         pointer.  [Coverity CID 206]
12326         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12327         in statically linked code.
12328         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12329         statically built code, be prepared to have no link map.
12330         [Coverity CID 205]
12332         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12333         dgettext calls. [Coverity CID 204]
12335         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12336         the one user.
12337         (uparam_names): Reduce size.  Avoid relative relocations.
12338         Moved to read-only segment.
12339         (fill_in_uparams): Update for new layout.
12341         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12342         assumed to always be != NULL. [Coverity CID 202]
12344         * argp/argp-help.c (hol_entry_help): Remove some dead code
12345         [Coverity CID 200].
12347         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12348         away a few more unconditional yperr2nss calls.
12349         (_nss_nis_getservbyname_r): Likewise.
12351 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12353         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12354         architectures.
12356         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12357         that unused memory passed to sendto is nevertheless initialized.
12359         [BZ #2499]
12360         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12361         possibly unaligned memory accesses.
12363         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12364         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12365         and __putlong respectively.  Correct buffer overflow check for
12366         NS_NOTIFY_OP.
12368         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12370         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12371         (send_dg): Rewrite error handling to be more compact and avoid
12372         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12374         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12376         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12377         instead of ns_get16.
12378         (res_queriesmatch): Likewise.  Minor optimization.
12380         [BZ #2499]
12381         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12382         __libc_res_nsend might reallocate the buffer for the answer.  In
12383         this case we have to reload the HP pointer.
12385 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12387         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12388         some branch prediction hints.
12390         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12391         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12392         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12393         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12394         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12395         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12396         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12397         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12399 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12401         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12402         by a GOT relocation to make Scrt1.o position independent.
12403         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12405         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12406         six system call parameters.
12407         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12409 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12411         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12412         malloc&bzero.
12414         * sunrpc/svc_udp.c (BZERO): Remove definition.
12415         (CALLOC): Define.
12416         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12418         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12419         (des_SPtrans): Use uint32_t type.
12420         (des_skb): Likewise.
12422         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12424 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12426         [BZ #2509]
12427         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12428         on 32-bit arches.
12430 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12432         * locale/programs/ld-address.c (address_finish): Fix one more
12433         place where the iso639 array might be accessed beyond the limits.
12435 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12437         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12438         filling it for the first time.
12440         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12441         Adjust all callers.
12442         Free res object content before returning.
12444         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12446         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12447         client->cl_auth.
12449         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12450         cleanup for initial thread, just the free call on TVP.
12452         * nscd/gai.c (__getline): Define.
12455 See ChangeLog.16 for earlier changes.