Avoid warnings in test cases.
[glibc/pb-stable.git] / ChangeLog
blob7bc9fc348f02472d3606e24c6c90a96b289e23cc
1 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
3         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
4         structure before copying it to avoid warning.
5         * posix/tst-rfc3484-2.c (do_test): Likewise.
6         * posix/tst-rfc3484-3.c (do_test): Likewise.
8         [BZ #10416]
9         * include/unistd.h: Make header file suitable for C++ test cases.
10         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
12         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
13         stack alignment in the exit code.
15         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
16         potentially be zero.
18         * elf/tst-unique1.c: Extend test to check for unloading DSO with
19         unique symbol definition.
20         Patch by Jakub Jelinek.
21         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
22         make sure the object with the definition cannot be unloaded.  Adjust
23         a few types.
24         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
25         the unique symbol hash table should not be const.
27 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
29         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
30         unnecesary variables.  Comment fixes.
32 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
34         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
35         Use NONASCII_CASE information provided by the locale to determine
36         whether optimized string load function can be used.  Minor cleanups.
38 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
40         * string/strcasestr.c (STRCASESTR): New macro.
41         (__strcasestr): Renamed to ..
42         (STRCASESTR): ...this.
43         * string/strstr.c (STRSTR): New macro.
44         (strstr): Renamed to ..
45         (STRSTR): ...this.
46         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47         strstr-c strcasestr-c
48         (CFLAGS-strstr.c): New.
49         (CFLAGS-strcasestr.c): Likewise.
50         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
51         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
52         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
53         * sysdeps/x86_64/multiarch/strstr.c: New file.
55 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
57         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
58         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
59         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
60         _NL_CTYPE_NONASCII_CASE.
61         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
62         field.
63         (ctype_finish): Check whether there are any 8-bit characters outside
64         the range ASCII has or whether the mapping isn't the same as for
65         ASCII (±0x20).  Set nonascii_case appropriately.
66         (ctype_output): Add output handler for nonascii_case.
68 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
70         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
71         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
73 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
75         [BZ #10360]
76         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
77         0xffff in the EDNS0 record.
79 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
81         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
82         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
83         is written before the list head update.
84         Patch by Andreas Schwab <aschwab@redhat.com>.
86 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
87             Jakub Jelinek  <jakub@redhat.com>
89         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
90         corruption thread-safe.
92 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
94         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
95         overrides atomic_compare_and_exchange_val_rel, define to
96         atomic_compare_and_exchange_val_rel by default, otherwise default
97         to catomic_compare_and_exchange_val_acq.
98         (catomic_compare_and_exchange_bool_rel): If arch overrides
99         atomic_compare_and_exchange_bool_rel, define to
100         atomic_compare_and_exchange_bool_rel by default.
101         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
102         Use catomic_compare_and_exchange_val_rel instead of
103         catomic_compare_and_exchange_val_acq.
105 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
107         * sysdeps/generic/ldsodefs.h: Add prototype for
108         _dl_higher_prime_number.
109         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
111         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
112         restoring of ymm registers a bit.
114 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
116         * sysdeps/x86_64/memcmp.S: New file.
118 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
120         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
121         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
122         pointers in writable memory.
124 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
126         * config.h.in: Add HAVE_AVX_SUPPORT entry.
127         * config.make.in: Add config-cflags-avx entry.
128         * configure.in: Substitute libc_cv_cc_avx.
129         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
130         * elf/tst-audit4.c: New file.
131         * elf/tst-audit5.c: New file.
132         * elf/tst-auditmod4a.c: New file.
133         * elf/tst-auditmod4b.c: New file.
134         * elf/tst-auditmod5a.c: New file.
135         * elf/tst-auditmod5b.c: New file.
136         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
137         link-defines.sym.
138         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
139         (La_x86_64_vector): Likewise.
140         (La_x86_64_regs): Append lr_vector.
141         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
142         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
143         saving and restoring SSE registers to ...
144         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
145         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
146         <link-defines.h>.
147         (_dl_runtime_profile): Use LR_SIZE to allocate space for
148         La_x86_64_regs.  Allocate extra space and jump to memory at
149         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
150         (save_and_restore_vector_sse): New.
151         (save_and_restore_vector_avx): Likewise.
152         (check_avx): Likewise.
153         (save_and_restore_vector): Likewise.
154         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
155         HAVE_AVX_SUPPORT.
156         * sysdeps/x86_64/link-defines.sym: New file.
158 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
160         * elf/do-lookup.h: Removed after folding content into...
161         * elf/dl-lookup.c: ...here.
163         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
165 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
167         * configure.in: Check for gnu_unique_symbol symbol type.
168         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
169         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
170         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
171         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
172         change.
173         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
174         unique symbol table.
175         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
176         for first namespace.
177         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
178         unique symbol hash table.
179         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
180         * elf/tst-unique1.c: New file.
181         * elf/tst-unique1mod1.c: New file.
182         * elf/tst-unique1mod2.c: New file.
183         * elf/tst-unique2.c: New file.
184         * elf/tst-unique2mod1.c: New file.
185         * elf/tst-unique2mod2.c: New file.
187 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
189         * elf/elf.h (STB_GNU_UNIQUE): Define.
191         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
192         from...
193         * include/inline-hashtab.h: ...here.
194         (htab_expand): Adjust for renamed function.  Correct memory handling.
196 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
198         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
200 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
202         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
203         (PPC_FEATURE_HAS_VSX): Likewise.
205 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
207         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
208         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
210         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
211         aligned to 16 byte boundaries.
212         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
213         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
214         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
216 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
218         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
219         * config.make.in (config-cflags-sse4): New variable.
220         * configure.in: Substitute libc_cv_cc_sse4.
221         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
222         HAVE_SSE4_SUPPORT.
223         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
224         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
225         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
226         * sysdeps/x86_64/multiarch/strcspn.S: New file.
227         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
228         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
229         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
230         * sysdeps/x86_64/multiarch/strspn.S: New file.
232 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
234         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
235         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
236         (tests): Add tst-audit3 for x86_64.
237         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
238         ($(objpfx)tst-audit3): Define.
239         ($(objpfx)tst-audit3.out): Define.
240         (tst-audit3-ENV): Define.
241         * elf/tst-audit3.c: New file.
242         * elf/tst-auditmod3a.c: New file.
243         * elf/tst-auditmod3b.c: New file.
244         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
245         and restore xmm6.
247         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
248         (__stpncpy): Renamed to ...
249         (STPNCPY): This.
250         (stpncpy): Create alias only if STPNCPY is not defined.
251         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
252         defined.
253         (strncpy): Renamed to ...
254         (STRNCPY): This.
255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
256          stpncpy-c strncpy-c for string.
257         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
258         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
259         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
260         * sysdeps/x86_64/multiarch/strcpy.S: New file.
261         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
262         * sysdeps/x86_64/multiarch/strncpy.S: New file.
264 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
266         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
267         adding to fast bin list.
269 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
271         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
272         inet_makeaddr.  This worked only with class-based networks.
273         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
274         Likewise.
276         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
277         recognize all types.
278         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
279         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
280         be in host byte order.
282 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
284         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
285         (MODEL_OFFSET): Define.
286         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
287         family and model.
288         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
289         out common code into new function get_common_indeces. Determine
290         extended family and model for Intel processors.
292 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
294         * resolv/resolv.h: Define RES_SNGLKUPREOP.
295         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
296         option.
297         * resolv/res_send.c (reopen): New function.  Broken out of...
298         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
299         fallback mechanism.  If single-request fails switch to
300         single-request-reopen mode which opens a new socket for the second
301         request.
303 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
305         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
306         (CHECK_SP): Use it.
308 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
310         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
311         for saved registers.
312         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
313         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
314         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
316 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
318         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
320 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
322         * po/id.po: Update from translation team.
324         * po/bg.po: Update from translation team.
326 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
328         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
329         defined.
330         (strncmp): Renamed to STRNCMP.
331         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
332         strncmp-c for string.
333         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
334         * sysdeps/x86_64/multiarch/strcmp.S: New file.
335         * sysdeps/x86_64/multiarch/strncmp.S: New file.
336         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
338 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
340         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
341         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
342         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
343         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
344         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
345         ifuncmain7static.c.
346         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
347         ifuncmain7static, and ifuncmain7picstatic.
348         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
349         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
350         $(objpfx)ifuncmain7pie.out.
351         (modules-names): Add ifuncmod5 ifuncmod6
352         (ifuncmod5.so-no-z-defs): Define.
353         (ifuncmod6.so-no-z-defs): Define.
354         (CFLAGS-ifuncmain5pic.c): Define.
355         (CFLAGS-ifuncmain5picstatic.c): Define.
356         (CFLAGS-ifuncmain5staticpic.c): Define.
357         (CFLAGS-ifuncdep5pic.c): Define.
358         (CFLAGS-ifuncmain7pic.c): Define.
359         (CFLAGS-ifuncmain7picstatic.c): Define.
360         (CFLAGS-ifuncmain1staticpie.c): Define.
361         (CFLAGS-ifuncmain5pie.c): Define.
362         (CFLAGS-ifuncmain6pie.c): Define.
363         (CFLAGS-ifuncmain7pie.c): Define.
364         ($(objpfx)ifuncmain1staticpie.out): Define.
365         ($(objpfx)ifuncmain1staticpie): Define.
366         ($(objpfx)ifuncmain5pie.out): Define.
367         ($(objpfx)ifuncmain5pie): Define.
368         ($(objpfx)ifuncmain6pie.out): Define.
369         ($(objpfx)ifuncmain6pie): Define.
370         ($(objpfx)ifuncmain5): Define.
371         ($(objpfx)ifuncmain5pic): Define.
372         ($(objpfx)ifuncmain5static): Define.
373         ($(objpfx)ifuncmain5staticpic): Define.
374         ($(objpfx)ifuncmain5picstatic): Define.
375         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
376         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
377         ifuncmain6pie.out.
378         * elf/b/elf/ifuncmain1staticpie.c: New file.
379         * elf/ifuncdep5.c: New file.
380         * elf/ifuncdep5pic.c: New file.
381         * elf/ifuncmain5.c: New file.
382         * elf/ifuncmain5pic.c: New file.
383         * elf/ifuncmain5picstatic.c: New file.
384         * elf/ifuncmain5pie.c: New file.
385         * elf/ifuncmain5static.c: New file.
386         * elf/ifuncmain5staticpic.c: New file.
387         * elf/ifuncmain6pie.c: New file.
388         * elf/ifuncmain7.c: New file.
389         * elf/ifuncmain7pic.c: New file.
390         * elf/ifuncmain7picstatic.c: New file.
391         * elf/ifuncmain7pie.c: New file.
392         * elf/ifuncmain7static.c: New file.
393         * elf/ifuncmod5.c: New file.
394         * elf/ifuncmod6.c: New file.
396 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
398         [BZ #10085]
399         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
400         (nss_endgrent): New variable.
401         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
402         fields. Change type of files to bool and adjust all users.
403         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
404         (internal_endgrent): Call nss_endgrent if necessary.
405         (add_group): New function.  Broken out of...
406         (check_and_add_group): ...here.
407         (getgrent_next_nss): Remove test that any callback is available.
408         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
409         callback.  If there is no blacklist we can trust the results returned
410         by the initgroups_dyn callback.  In case there is a callback and we
411         find a group entry for the group ID but it doesn't contain the
412         correct member, switch to the slow mode and use getgrent_r.
413         (internal_getgrent_r): When we see a +: entry, determine whether
414         there is any callback and which we can use the initgroups_dyn
415         callback.
417 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
419         * malloc/malloc.c (_int_malloc): Add some consistency checks.
420         (_int_free): Likewise.
422         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
423         AF_IEEE802154.
424         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
425         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
426         and ARPHRD_IEEE802154_PHY.
428         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
429         relative to generic Linux version.
431 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
433         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
434         ($(objpfx)ifuncmain1vispie): Likewise.
436 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
438         * login/Makefile: Build pt_chown as PIE.
440 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
442         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
443         a format string.
444         * elf/sln.c (usage): Likewise.
445         * malloc/memusage.sh (do_help): Likewise.
446         * nss/getent.c (more_help): Likewise.
447         * posix/getconf.c (main): Likewise.
448         * sunrpc/rpcinfo.c (usage): Likewise.
449         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
451 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
453         * login/programs/pt_chown.c: Use libcap to drop privileges other than
454         those needed.
455         * login/Makefile: If necessary link pt_chown with -lcap.
456         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
457         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
459 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
461         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
462         comparisons.
463         * string/test-memchr.c (do_random_tests): Test very large lengths
464         as well.
466 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
468         * Makeconfig (+link-pie): Define.
469         (+prectorS): Define.
470         (+postctorS): Define.
471         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
472         * nscd/Makefile ($(objpfx)nscd): Likewise.
474 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
476         [BZ #10107]
477         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
478         with cmplwi.
479         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
481 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
483         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
484         into ...
485         * sysdeps/unix/grantpt.c: ...here.
487 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
489         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
490         chmod if it is necessary.
492         [BZ #10166]
493         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
494         when the slave device is in devpts or devfs.
496         [BZ #10183]
497         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
499         [BZ #10195]
500         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
501         of nd_opt_home_agent_info_preference to uint16_t.
502         Patch by Arnaud Ebalard <arno@natisbad.org>.
504         [BZ #10207]
505         * nss/getent.c: Add support for printing gshadow data.
507         [BZ #10203]
508         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
509         not just the currently used one and those which follow.
510         Patch by Joe Landers <jlanders@vmware.com>.
512         [BZ #10196]
513         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
514         * libio/Makefile: Run tst-fgetwc with necessary envvar.
515         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
517         [BZ #10217]
518         * stdlib/abort.c: Define variable __abort_msg.
519         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
520         * include/stdlib.h: Declare __abort_msg.
521         * assert/assert-perr.c: Don't free buffer for message immediately.
522         Store atomically in __abort_msg and free old buffer if necessary.
523         * assert/assert.c: Likewise.
524         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
525         store pointer in __abort_msg, and possibly free old string.
526         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
528         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
530         [BZ #10211]
531         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
532         handle leap seconds if they are available.
533         Patch by Akinori Hattori <hattya@gentoo.org>.
535         * timezone/tzselect.ksh: Update from tzcode2009i.
536         * timezone/zdump.c: Likewise.
537         * timezone/zic.c: Likewise.
539         * timezone/africa: Update from tzdata2009i.
540         * timezone/antarctica: Likewise.
541         * timezone/asia: Likewise.
542         * timezone/australasia: Likewise.
543         * timezone/backward: Likewise.
544         * timezone/etcetera: Likewise.
545         * timezone/europe: Likewise.
546         * timezone/factory: Likewise.
547         * timezone/iso3166.tab: Likewise.
548         * timezone/leapseconds: Likewise.
549         * timezone/northamerica: Likewise.
550         * timezone/pacificnew: Likewise.
551         * timezone/solar87: Likewise.
552         * timezone/solar88: Likewise.
553         * timezone/solar89: Likewise.
554         * timezone/southamerica: Likewise.
555         * timezone/systemv: Likewise.
556         * timezone/yearistype: Likewise.
557         * timezone/zone.tab: Likewise.
559 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
561         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
562         STT_GNU_IFUNC symbol or in 8 into type_class.
564         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
565         instead of Elf64_Addr.
567 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
569         * po/sv.po: Update from translation team.
571         [BZ #10229]
572         * misc/sys/select.h (__NFDBITS): Expression should have type int.
573         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
574         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
575         the C version.
577 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
579         * Versions.def: Add GLIBC_2.11 for libpthread.
581 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
583         * resolv/res_send.c (send_dg): Remember we switched to
584         single-request mode.
586 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
588         * dlfcn/dlfcn.h: Remove comma at end of enum.
589         Patch by J.H.M. Dassen <rdassen@redhat.com>.
591         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
592         parsing mode string.
594 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
596         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
598         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
600         * sysdeps/x86_64/multiarch/strlen.S: New file.
601         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
602         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
603         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
604         content.
606         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
607         is defined.
609 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
611         * sysdeps/x86_64/strlen.S: Minor optimizations.
613 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
615         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
616         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
617         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
618         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
619         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
620         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
621         ifuncmain3.c, ifuncmod3.c,.
622         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
623         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
624         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
625         ifuncmain4picstatic.
626         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
627         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
628         ifuncmain3, ifuncmain4.
629         (tests): Depend on $(objpfx)ifuncmain1pie.out and
630         $(objpfx)ifuncmain1vispie.out.
631         (modules-names): Add ifuncmod1 ifuncmod3.
632         (generated): Add ifuncmain1pie ifuncmain1pie.out
633         ifuncmain1vispie ifuncmain1vispie.out.
634         Define rules to build and run the tests.
635         * elf/ifuncdep1.c: New file.
636         * elf/ifuncdep1pic.c: New file.
637         * elf/ifuncdep2.c: New file.
638         * elf/ifuncdep2pic.c: New file.
639         * elf/ifuncmain1.c: New file.
640         * elf/ifuncmain1pic.c: New file.
641         * elf/ifuncmain1picstatic.c: New file.
642         * elf/ifuncmain1pie.c: New file.
643         * elf/ifuncmain1static.c: New file.
644         * elf/ifuncmain1staticpic.c: New file.
645         * elf/ifuncmain1vis.c: New file..
646         * elf/ifuncmain1vispic.c: New file..
647         * elf/ifuncmain1vispie.c: New file.
648         * elf/ifuncmain2.c: New file.
649         * elf/ifuncmain2pic.c: New file.
650         * elf/ifuncmain2picstatic.c: New file.
651         * elf/ifuncmain2static.c: New file.
652         * elf/ifuncmain3.c: New file.
653         * elf/ifuncmain4.c: New file.
654         * elf/ifuncmain4picstatic.c: New file.
655         * elf/ifuncmain4static.c: New file.
656         * elf/ifuncmod1.c: New file.
657         * elf/ifuncmod3.c: New file.
659 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
661         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
663 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
665         [BZ #10221]
666         * posix/Makefile (routines): Add execvpe.
667         * posix/Versions: Export execvpe for GLIBC_2.11.
668         * posix/execvp.c: Now only a wrapper.  Move code to...
669         * posix/execvpe.c: ...here.  New file.
670         * posix/unistd.h: Declare execvpe.
672 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
674         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
675         for STT_GNU_IFUNC handling for efficiency.
676         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
678         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
679         _exit.
680         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
682 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
684         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
685         for !SHARED.
687 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
689         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
690         is not defined.
691         (__rela_iplt_start): New declaration.
692         (__rela_iplt_end): Likewise.
693         (__rel_iplt_start): Likewise.
694         (__rel_iplt_end): Likewise.
695         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
696         * elf/elf.h (R_386_IRELATIVE): New macro.
697         (R_X86_64_IRELATIVE): New macro.
698         (R_386_NUM): Updated.
699         (R_X86_64_NUM): Likewise.
700         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
701         (libc_ifunc_hidden_def): New macro.
702         * sysdeps/generic/dl-irel.h: New file.
703         * sysdeps/i386/dl-irel.h: New file.
704         * sysdeps/x86_64/dl-irel.h: New file.
705         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
706         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
707         Handle R_386_IRELATIVE.
708         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
709         (elf_machine_lazy_rela): Likewise.
710         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
711         R_X86_64_IRELATIVE.
712         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
714 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
716         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
717         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
718         are no differences.  If an architecture has bits in CPUID index 1
719         meaning different things the values for the COMMON_CPUID_INDEX_1
720         index must not be set.
721         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
722         (HAS_POPCOUNT): ...this.  New macro.
723         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
724         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
725         to set the value for Intel and AMD architectures.
726         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
727         INTEL_CPUID_INDEX_1.
728         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
729         change.
731 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
733         * configure.in: Move AC_CANONICAL_HOST before first use of $host
734         and $build.
736 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
738         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
739         (__expm1l): Set errno to ERANGE on overflow.
740         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
741         (__tanl): Set errno to EDOM for ±Inf.
742         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
743         (__cosl): Set errno to EDOM for ±Inf.
744         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
745         (__sinl): Set errno to EDOM for ±Inf.
747         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
748         defined, use it.
749         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
750         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
751         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
753 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
755         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
756         code accessing it.
757         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
759 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
761         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
762         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
763         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
764         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
766         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
767         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
768         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
769         defined.
770         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
771         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
773 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
775         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
776         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
777         is, either do nothing at all if __ASSUME_ACCEPT4, or
778         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
779         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
780         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
781         define.
782         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
783         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
784         internal_accept4 in socket directory.
786 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
788         * sysdeps/ia64/configure.in: New file.
790 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
792         [BZ #10162]
793         * sysdeps/ia64/memchr.S: Use speculative load.
795         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
796         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
797         use it.
799         * sysdeps/i386/__longjmp.S: Add .text.
800         * sysdeps/x86_64/__longjmp.S: Likewise.
802 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
804         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
805         __ASSUME_ACCEPT4 for IA-64.
807 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
809         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
811         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
812         (SOCKOP_accept4): Define.
814 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
816         Sun approved the change of the license.
817         * sunrpc/auth_des.c: Replace license text.
818         * sunrpc/auth_none.c: Likewise.
819         * sunrpc/auth_unix.c: Likewise.
820         * sunrpc/authdes_prot.c: Likewise.
821         * sunrpc/authuxprot.c: Likewise.
822         * sunrpc/bindrsvprt.c: Likewise.
823         * sunrpc/clnt_gen.c: Likewise.
824         * sunrpc/clnt_perr.c: Likewise.
825         * sunrpc/clnt_raw.c: Likewise.
826         * sunrpc/clnt_simp.c: Likewise.
827         * sunrpc/clnt_tcp.c: Likewise.
828         * sunrpc/clnt_udp.c: Likewise.
829         * sunrpc/clnt_unix.c: Likewise.
830         * sunrpc/des_crypt.c: Likewise.
831         * sunrpc/des_soft.c: Likewise.
832         * sunrpc/get_myaddr.c: Likewise.
833         * sunrpc/getrpcport.c: Likewise.
834         * sunrpc/key_call.c: Likewise.
835         * sunrpc/key_prot.c: Likewise.
836         * sunrpc/openchild.c: Likewise.
837         * sunrpc/pm_getmaps.c: Likewise.
838         * sunrpc/pm_getport.c: Likewise.
839         * sunrpc/pmap_clnt.c: Likewise.
840         * sunrpc/pmap_prot.c: Likewise.
841         * sunrpc/pmap_prot2.c: Likewise.
842         * sunrpc/pmap_rmt.c: Likewise.
843         * sunrpc/rpc/auth.h: Likewise.
844         * sunrpc/rpc/auth_unix.h: Likewise.
845         * sunrpc/rpc/clnt.h: Likewise.
846         * sunrpc/rpc/des_crypt.h: Likewise.
847         * sunrpc/rpc/key_prot.h: Likewise.
848         * sunrpc/rpc/netdb.h: Likewise.
849         * sunrpc/rpc/pmap_clnt.h: Likewise.
850         * sunrpc/rpc/pmap_prot.h: Likewise.
851         * sunrpc/rpc/pmap_rmt.h: Likewise.
852         * sunrpc/rpc/rpc.h: Likewise.
853         * sunrpc/rpc/rpc_des.h: Likewise.
854         * sunrpc/rpc/rpc_msg.h: Likewise.
855         * sunrpc/rpc/svc.h: Likewise.
856         * sunrpc/rpc/svc_auth.h: Likewise.
857         * sunrpc/rpc/types.h: Likewise.
858         * sunrpc/rpc/xdr.h: Likewise.
859         * sunrpc/rpc_clntout.c: Likewise.
860         * sunrpc/rpc_cmsg.c: Likewise.
861         * sunrpc/rpc_common.c: Likewise.
862         * sunrpc/rpc_cout.c: Likewise.
863         * sunrpc/rpc_dtable.c: Likewise.
864         * sunrpc/rpc_hout.c: Likewise.
865         * sunrpc/rpc_main.c: Likewise.
866         * sunrpc/rpc_parse.c: Likewise.
867         * sunrpc/rpc_parse.h: Likewise.
868         * sunrpc/rpc_prot.c: Likewise.
869         * sunrpc/rpc_sample.c: Likewise.
870         * sunrpc/rpc_scan.c: Likewise.
871         * sunrpc/rpc_scan.h: Likewise.
872         * sunrpc/rpc_svcout.c: Likewise.
873         * sunrpc/rpc_tblout.c: Likewise.
874         * sunrpc/rpc_util.c: Likewise.
875         * sunrpc/rpc_util.h: Likewise.
876         * sunrpc/rpcinfo.c: Likewise.
877         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
878         * sunrpc/rpcsvc/key_prot.x: Likewise.
879         * sunrpc/rpcsvc/klm_prot.x: Likewise.
880         * sunrpc/rpcsvc/mount.x: Likewise.
881         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
882         * sunrpc/rpcsvc/rex.x: Likewise.
883         * sunrpc/rpcsvc/rstat.x: Likewise.
884         * sunrpc/rpcsvc/rusers.x: Likewise.
885         * sunrpc/rpcsvc/sm_inter.x: Likewise.
886         * sunrpc/rpcsvc/spray.x: Likewise.
887         * sunrpc/rpcsvc/yppasswd.x: Likewise.
888         * sunrpc/rtime.c: Likewise.
889         * sunrpc/svc.c: Likewise.
890         * sunrpc/svc_auth.c: Likewise.
891         * sunrpc/svc_authux.c: Likewise.
892         * sunrpc/svc_raw.c: Likewise.
893         * sunrpc/svc_run.c: Likewise.
894         * sunrpc/svc_simple.c: Likewise.
895         * sunrpc/svc_tcp.c: Likewise.
896         * sunrpc/svc_udp.c: Likewise.
897         * sunrpc/svc_unix.c: Likewise.
898         * sunrpc/svcauth_des.c: Likewise.
899         * sunrpc/xcrypt.c: Likewise.
900         * sunrpc/xdr.c: Likewise.
901         * sunrpc/xdr_array.c: Likewise.
902         * sunrpc/xdr_float.c: Likewise.
903         * sunrpc/xdr_mem.c: Likewise.
904         * sunrpc/xdr_rec.c: Likewise.
905         * sunrpc/xdr_ref.c: Likewise.
906         * sunrpc/xdr_sizeof.c: Likewise.
907         * sunrpc/xdr_stdio.c: Likewise.
909         * po/da.po: Update from translation team.
911 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
913         * sysdeps/sh/____longjmp_chk.S: New file.
914         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
915         * sysdeps/sh/sh4/__longjmp.S: Likewise.
917 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
918             Ulrich Drepper  <drepper@redhat.com>
920         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
921         (__nscd_cache_search): Assume each entry in the
922         hash chain needs one hashentry and half of datahead.  Use
923         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
925 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
927         * posix/sys/wait.h: Fix typos.  Pretty printing.
928         * stdlib/stdlib.h: Likewise.  Correct comments.
930         [BZ #10159]
931         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
933         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
934         patch.
936 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
938         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
939         Use it if we absolutely cannot reach any more correct list elements
940         because that many do not fit into the currently mapped database.
942 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
944         * nscd/nscd_helper.c: Include stddef.h.
945         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
946         in a couple of places.  Return NULL if trail is not less than
947         datasize, don't consider dataheads with length smaller than
948         offsetof (struct datahead, data) + datalen.
949         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
950         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
951         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
952         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
953         * nscd/nscd_getai.c (__nscd_getai): Likewise.
954         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
955         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
957         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
958         Rename ...
959         (fallocate64): ... to this.
960         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
961         Rename ...
962         (fallocate64): ... to this.
963         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
964         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
965         fallocate64@@GLIBC_2.10.
966         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
967         fallocate64@@GLIBC_2.11.
968         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
970         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
971         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
973         * nscd/selinux.c (nscd_avc_destroy): Removed.
974         * nscd/selinux.h (nscd_avc_destroy): Likewise.
975         * nscd/nscd.c (termination_handler): Don't call
976         nscd_avc_destroy.
978 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
980         * include/atomic.h: Formatting.
981         (catomic_compare_and_exchange_val_acq): Don't define if already
982         defined by bits/atomic.h.
984 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
986         * math/libm-test.inc (expm1_test): Add test for range error.
988         * Versions.def: Add GLIBC_2.11 for libc.
989         * debug/Makefile (routines): Add longjmp_chk.
990         Add rules to build and run tst-longjmp_chk.
991         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
992         * debug/longjmp_chk.c: New file.
993         * debug/tst-longjmp_chk.c: New file.
994         * include/bits/setjmp2.: New file.
995         * include/stdio.h: Mark __fortify_fail as internal_function.
996         * setjmp/Makefile (headers): Add bits/setjmp2.h.
997         * setjmp/bits/setjmp2.h: New file.
998         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
999         of the aliases.
1000         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1001         defined.
1002         * sysdeps/i386/____longjmp_chk.S: New file.
1003         * sysdeps/x86_64/____longjmp_chk.S: New file.
1004         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1005         * sysdeps/x86_64/__longjmp.S: Likewise.
1007         * version.h: Bump for 2.11 development.
1009         * elf/check-execstack.c: New file.
1010         * elf/Makefile: Add rules to build and run check-execstack.
1012 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1014         * version.h (VERSION): Bump to 2.10.1.
1016         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1017         compatibility functions.
1018         * nss/getXXent_r.c: Likewise.
1019         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1020         * gshadow/getsgnam_r.c: Likewise.
1021         * gshadow/Version: Remove duplicate entries.
1023         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1024         for recent processor.
1025         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1026         Likewise.
1028 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1030         * version.h (VERSION): Bump for 2.10 release.
1031         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1033         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1034         same place we add ASFLAGS-config.
1036 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1038         [BZ #10128]
1039         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1040         or FORMERR and the other NOERROR, don't raise an error.
1042 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1044         [BZ #10118]
1045         * Makeconfig (+asflags): New variable based upon ASFLAG or
1046         asflags-cpu.
1047         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1048         * config.make.in (asflags-cpu): Add variable based upon
1049         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1050         the assembler.
1051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1052         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1053         recognizes power6 instruction set due to passing -mcpu=power6 from
1054         --with-cpu=power6 when compiling .S files.
1055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1056         Likewise.
1057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1058         Likewise.
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1060         Likewise.
1062 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1064         * string/stratcliff.c (do_test): Test for zero length
1065         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1066         at the end of the page.
1068 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1070         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1072         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1073         count is zero.
1075         * po/da.po: Update from translation team.
1077 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1079         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1080         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1082 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1084         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1085         and READ_IMPLIES_EXEC.
1087 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1089         * po/da.po: Update from translation team.
1091 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1093         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1094         comment change.
1096 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1098         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1099         to MAP_ANON in PROT_NONE mmap64 call.
1100         (open_archive): Likewise.
1101         (file_data_available_p): Use mmap64 instead of mremap.
1102         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1103         Attempt to reserve address space after mmap64 region.
1105 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1107         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1108         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1109         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1111         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1112         atanh should set ERANGE.
1114         [BZ #10087]
1115         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1116         result of lookup to make call to implement STT_GNU_IFUNC.
1117         (_dl_profile_fixup): Likewise.
1118         Patch by H.J. Lu <hjl.tools@gmail.com>.
1120         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1121         warning.
1123         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1124         from definition.
1126         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1127         label if it is not used.
1129         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1130         of gmon_hist_hdr and gmon_hdr structures and use them.
1131         * elf/sprof.c: Likewise.
1133         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1134         warning.
1136         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1138         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1139         to avoid cast.
1141         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1142         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1143         to avoid warnings.
1144         (iruserok_af): Use ss_family instead of casts.
1146         * gmon/gmon.c (write_hist): Define real-type variant of
1147         gmon_hist_hdr structure and use it.
1148         (write_gmon): Likewise for gmon_hdr.
1150         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1151         function if we are not going to define it.
1152         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1154         * inet/inet6_option.c (option_alloc): Add temporary variable to
1155         avoid warning.
1157         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1158         name of VTable element.
1159         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1160         * libio/iovsscanf.c: Likewise.
1161         * libio/vasprintf.c: Likewise.
1162         * libio/vsnprintf.c: Likewise.
1163         * stdio-common/isoc99_vsscanf.c: Likewise.
1164         * stdlib/strfmon_l.c: Likewise.
1165         * debug/vasprintf_chk.c: Likewise.
1166         * debug/vsnprintf_chk.c: Likewise.
1167         * debug/vsprintf_chk.c: Likewise.
1169         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1170         function pointers.
1172 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1174         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1176 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1178         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1180         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1181         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1182         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1183         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1184         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1185         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1186         * math/libm-test.inc: Add tests for errno after tan calls with
1187         ±Inf.
1189         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1190         errno value vor pow(+-0,neg).
1191         * math/libm-test.inc (pow_test): Add tests for errno value for
1192         pole errors.
1194         * math/w_fmod.c: Also handle x=±Inf as error.
1195         * math/w_fmodf.c: Likewise.
1196         * math/w_fmodl.c: Likewise.
1197         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1198         x=±Inf or y=0.
1200         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1201         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1202         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1203         * sysdeps/i386/fpu/s_sin.S: Likewise.
1204         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1205         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1206         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1207         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1208         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1209         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1210         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1211         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1212         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1213         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1214         ±Inf.
1216         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1217         ERANGE for underflows.
1218         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1220         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1221         the 2001 revision.
1223         * libio/tst-widetext.input: Remove surrogates.
1225         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1227         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1228         for lgamma should set errno to ERANGE, not EDOM.
1229         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1231 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1233         [BZ #10093]
1234         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1235         UTF-16 surrogates.
1237         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1238         space when temporarily mapping the whole content of the old file.
1240         [BZ #10100]
1241         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1242         not zero.
1244 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1246         * iconvdata/sjis.c (BODY): Don't advance inptr before
1247         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1248         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1249         two byte chars.
1251 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1253         * locale/locarchive.h (struct locarhandle): Rename len field to
1254         mmaped and add new reserved field.
1255         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1256         (create_archive): Reserve address space and then map file into it.
1257         (open_archive): Likewise.
1258         (file_data_available_p): New function.
1259         (compare_from_file): New function.
1260         (close_archive): Adjust to member name changes.
1261         (add_locale): Before comparing locale data, check it is mapped.
1262         Otherwise fall back to reading from the file.
1264 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1266         * stdio-common/psiginfo.c: Include <errno.h>.
1268 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1270         [BZ #9920]
1271         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1272         to get consistency between 32 and 64 bit architectures.
1274         [BZ #10052]
1275         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1276         directory for dummy syscall rules.
1277         Patch by Chris Steinbroner <hesh@pobox.com>.
1279 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1281         [BZ #10092]
1282         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1283         MNT_EXPIRE.
1285 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1287         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1288         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1290 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1292         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1293         data from vector to temporary buffer and call PWRITEV after it
1294         instead of vice versa.
1295         * sysdeps/posix/preadv.c: Fix up comment.
1296         * misc/preadv.c: Likewise.
1297         * misc/preadv64.c: Likewise.
1298         * misc/pwritev.c: Likewise.
1299         * misc/pwritev64.c: Likewise.
1300         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1302 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1304         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1306         * shadow/Makefile (tests): Add tst-shadow.
1307         * shadow/tst-shadow.c: New file.
1309         [BZ #9955]
1310         * gshadow/Makefile: New file.
1311         * gshadow/Versions: New file.
1312         * gshadow/fgetsgent.c: New file.
1313         * gshadow/fgetsgent_r.c: New file.
1314         * gshadow/getsgent.c: New file.
1315         * gshadow/getsgent_r.c: New file.
1316         * gshadow/getsgnam.c: New file.
1317         * gshadow/getsgnam_r.c: New file.
1318         * gshadow/gshadow.h: New file.
1319         * gshadow/putsgent.c: New file.
1320         * gshadow/sgetsgent.c: New file.
1321         * gshadow/sgetsgent_r.c: New file.
1322         * gshadow/tst-gshadow.c: New file.
1323         * include/gshadow.h: New file.
1324         * Makeconfig (all-subdirs): Add gshadow.
1325         * Makefile (installed-headers): Add gshadow/gshadow.h.
1326         * nss/Makefile (databases): Add sgrp.
1327         * nss/Versions: Add gshadow functions as private exports.
1328         * nss/nsswitch.conf: Add gshadow entry.
1329         * nss/sgrp-lookup.c: New file.
1330         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1331         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1332         * nss/nss_files/files-sgrp.c: New file.
1333         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1334         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1336 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1338         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1339         * stdio-common/reg-modifier.c: Likewise.
1341 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1343         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1344         is no FPU.
1346 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1348         [BZ #10086]
1349         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1350         headers up to 2.6.30.
1352         * po/ca.po: Update from translation team.
1354 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1356         [BZ #10069]
1357         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1358         an object that uses static TLS if the TLS modid is higher than the
1359         reserve we always allocate.  At least for multi-threaded code.
1361 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1363         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1364         Numerically stable check for valid width.
1366         * locale/programs/locarchive.c (open_archive): Map the entire file
1367         and not just the administrative data.
1368         (add_locale): When we find a hash sum match compare the content
1369         to be sure.
1371         * malloc/malloc.c (malloc_info): Output address space information.
1373 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1375         * malloc/malloc.c (malloc_info): Also output system memory information.
1377         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1378         architectures have preadv/pwritev in 2.6.30.
1380         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1381         * sysdeps/posix/readv.c: Likewise.
1382         Reported by Markus Armbruster <armbru@redhat.com>.
1384         * malloc/hooks.c (top_check): Force hook value into register.
1386 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1388         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1389         calls to _dl_relocate_object.
1391 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1393         [BZ #9957]
1394         * malloc/malloc.c (force_reg): Define.
1395         (sYSMALLOc): Load hook variable into variable
1396         before test and force into register.
1397         (sYSTRIm): Likewise.
1398         (public_mALLOc): Force hook value into register.
1399         (public_fREe): Likewise.
1400         (public_rEALLOc): Likewise.
1401         (public_mEMALIGn): Likewise.
1402         (public_vALLOc): Likewise.
1403         (public_pVALLOc): Likewise.
1404         (public_cALLOc): Likewise.
1405         (__posix_memalign): Likewise.
1406         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1407         before test and force into register.
1408         * malloc/hooks.c (top_check): Likewise.
1409         (public_sET_STATe): Pretty printing.
1411         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1412         in case we only receive one reply in single-request mode.
1414 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1416         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1417         are dlopened in statically linked program even for __LM_ID_CALLER.
1419 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1421         * resolv/res_send.c (send_dg): Don't switch into single-request
1422         mode if we already are in it.
1424 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1426         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1427         are always at least 4 bytes in the returned line.
1429 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1431         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1432         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1433         instead of 8K.  Stop searching in /proc/stat after hitting first
1434         line not starting with cpu.
1435         (next_line): Truncate too long
1436         lines at buffer size * 3/4 instead of pretending there were line
1437         breaks inside of large lines.
1439 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1441         * sysdeps/x86_64/mp_clz_tab.c: New file.
1443 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1444             Ulrich Drepper  <drepper@redhat.com>
1446         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1447         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1448         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1450 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1452         * sysdeps/sh/libc-tls.c: New file.
1454         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1456 2009-04-14  Roland McGrath  <roland@redhat.com>
1458         * elf/elf.h: Add various missing ARM constants, to match binutils.
1460 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1462         Optimizations from GMP.
1463         * sysdeps/x86_64/add_n.S: New file.
1464         * sysdeps/x86_64/addmul_1.S: New file.
1465         * sysdeps/x86_64/lshift.S: New file.
1466         * sysdeps/x86_64/mul_1.S: New file.
1467         * sysdeps/x86_64/rshift.S: New file.
1468         * sysdeps/x86_64/sub_n.S: New file.
1469         * sysdeps/x86_64/submul_1.S: New file.
1471 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
1473         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1474         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1475         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1476         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1478 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1480         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1481         preadv/pwritev.
1483 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
1485         * sysdeps/x86-64/strrchr.S: New file.
1487 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
1489         * stdio-common/printf.h (struct printf_info): Add user element.
1490         New types printf_arginfo_size_function, printf_va_arg_function.
1491         Declare register_printf_specifier, register_printf_modifier,
1492         register_printf_type.
1493         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1494         (union printf_arg): Add pa_user element.
1495         Adjust __printf_arginfo_table type.
1496         Add __printf_va_arg_table, __printf_modifier_table,
1497         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1498         declarations.
1499         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1500         If registered arginfo call failed try normal specifier.
1501         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1502         function.
1503         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1504         * stdio-common/Versions: Export register_printf_modifier,
1505         register_printf_type, and register_printf_specifier for GLIBC_2.10.
1506         * stdio-common/reg-modifier.c: New file.
1507         * stdio-common/reg-type.c: New file.
1508         * stdio-common/reg-printf.c (__register_printf_specifier): New
1509         function.  Mostly the old __register_printf_function function but
1510         uses locking and type of third parameter changed.
1511         (__register_printf_function): Implement using
1512         __register_printf_specifier.
1513         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1514         calls to arginfo functions.  Allocate enough memory for user-defined
1515         types.  Call new va_arg functions to get user-defined types.
1516         Try installed handlers even for existing format specifiers first.
1518 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
1520         * sysdeps/x86_64/rawmemchr.S: New file.
1522         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1523         Simplified code and possible copy problem fixed.
1525         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1526         function if it is not defined.  Add some necessary casts.
1527         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1529         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1530         have preadv/pwritev in 2.6.30.
1532 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
1534         * malloc/malloc.c (malloc_info): New function.
1535         * malloc/malloc.h: Declare it.
1536         * malloc/Versions: Export malloc_info for GLIBC_2.10.
1538         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1539         to avoid PLT slot.
1541         * malloc/malloc.c (_int_realloc): Add parameter with old block
1542         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
1543         Adjust all callers.
1544         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1546 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
1548         * sysdeps/x86_64/strchrnul.S: New file.
1550         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1551         depending libcrypt on -lfreebl3.
1553         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1554         preadv/pwritev in 2.6.30.
1556         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1557         instead of __strcasecmp.
1559         * string/stratcliff.c (do_test): Add memchr tests..
1560         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1561         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1562         first read quad word.
1564 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1566         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1567         * string/tst-svc.input: Add new test case.
1568         * string/tst-svc.expect: Adjust.
1569         * string/Makefile: Don't ignore tst-svc error.
1571         * sysdeps/x86_64/memchr.S: New file.
1573         * resolv/resolv.h (RES_SNGLKUP): Define.
1574         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1575         * resolv/res_send.c (send_dg): If we sent two requests at once and
1576         only get one reply before timeout switch to mode where we send the
1577         second request only after the first answer has been received.
1579 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1581         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1582         * sysdeps/x86_64/strchr.S: Likewise.
1584 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1586         * configure.in: We need to test for the compiler earlier.
1588         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1589         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1590         GLIBC_2.10.
1591         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1592         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1593         and pwritev.
1594         * misc/preadv.c: New file.
1595         * misc/preadv64.c: New file.
1596         * misc/pwritev.c: New file.
1597         * misc/pwritev64.c: New file.
1598         * sysdeps/posx/preadv.c: New file.
1599         * sysdeps/posx/preadv64.c: New file.
1600         * sysdeps/posx/pwritev.c: New file.
1601         * sysdeps/posx/pwritev64.c: New file.
1602         * sysdeps/unix/sysv/linux/preadv.c: New file.
1603         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1604         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1605         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1606         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1607         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1609         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1610         compatibility code.
1611         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1613         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1614         __ASSUME_COMPLETE_READV_WRITEV.
1615         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1616         with modern kernels.
1617         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1619         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1620         to free a possible malloced buffer in case of cancellation.
1621         * sysdeps/posix/writev.c: Likewise for write.
1623 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1625         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1627         * configure.in: Recognize --enable-nss-crypt.
1628         * config.make.in: Add nss-crypt entry.
1629         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1630         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1631         and include path for NSS directory to compiler for md5-crypt,
1632         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1633         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1634         function implementation, use NSS.  Introduce wrappers around the
1635         hash function calls.  Little code size optimization.
1636         * crypt/sha256-crypt.c: Likewise.
1637         * crypt/sha512-crypt.c: Likewise.
1638         * scripts/check-local-headers.sh: Ignore nss3 directory.
1640         * configure.in: Rename pic_default to libc_cv_pic_default.
1641         * config.make.in: Likewise.
1643 2009-04-01  Roland McGrath  <roland@redhat.com>
1645         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1646         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1647         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1648         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1649         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1650         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1651         (R_SPARC_NUM): Update.
1652         From Dave Miller <davem@davemloft.net>.
1654 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
1656         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1658 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
1660         * elf/dl-open.c: Keep track of used name spaces and only iterate over
1661         those which are used.
1662         * elf/dl-addr.c: Likewise.
1663         * elf/dl-caller.c: Likewise.
1664         * elf/dl-fini.c: Likewise.
1665         * elf/dl-iteratephdr.c: Likewise.
1666         * elf/dl-libc.c: Likewise.
1667         * elf/dl-load.c: Likewise.
1668         * elf/dl-support.c: Likewise.
1669         * elf/dl-sym.c: Likewise.
1670         * elf/rtld.c: Likewise.
1671         * sysdeps/generic/ldsodefs.h: Likewise.
1673         * elf/dl-load.c: Remove support for systems without MAP_ANON.
1674         * elf/dl-minimal.c: Likewise.
1675         * elf/dl-misc.c: Likewise.
1676         * elf/rtld.c: Likewise.
1677         * sysdeps/generic/ldsodefs.h: Likewise.
1679 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
1681         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1682         Avoid reuse of complex expression.
1684         * po/fr.po: Update from translation team.
1686 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1688         * include/dirent.h: Yet more changes to match sort function type
1689         change.
1690         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1691         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1692         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1694 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
1696         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1698 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1700         * nscd/connections.c (restart): Try to preserve the process name
1701         by reading the /proc/self/exe symlink and using the return name.
1702         Patch by Jeff Bastian <jbastian@redhat.com>.
1704 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
1706         [BZ #9733]
1707         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1708         if we are not loading a new audit library.
1709         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1710         Only use profiling trampoline for auditing if we are not relocating
1711         an audit library.
1712         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1713         * elf/rtld.c: Likewise.
1714         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1716         * elf/rtld.c (dl_main): Extend help message for --audit option.
1718         [BZ #9759]
1719         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1720         alphasort64, versionsort, and versionsort64 to POSIX 2008.
1721         * dirent/alphasort.c: Adjust implementation to type change.
1722         * dirent/alphasort64.c: Likewise.
1723         * dirent/scandir.c: Likewise.
1724         * dirent/versionsort.c: Likewise.
1725         * dirent/versionsort64.c: Likewise.
1726         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1727         declaration.
1728         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1729         declaration.
1731         [BZ #9880]
1732         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1733         correctly.  Set segleft member in output as required.
1734         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1735         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1737         [BZ #9881]
1738         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1739         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1740         * inet/Makefile (tests): Add tst-inet6_rth.
1741         * inet/tst-inet6_rth.c: New file.
1743         [BZ #5807]
1744         * string/strlen.c (strlen): Fix omission in the expression to test
1745         for NUL bytes.
1747 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1749         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1751         * elf/dl-runtime.c (reloc_offset): Define.
1752         (reloc_index): Define.
1753         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1754         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
1755         computing index from reloc_offset.
1756         (_dl_call_pltexit): Likewise.
1757         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1758         the relocation index to _dl_fixup.
1759         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1760         _dl_call_pltexit.
1761         * sysdeps/x86_64/dl-runtime.c: New file.
1763         [BZ #9893]
1764         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1765         alignment of La_x86_64_regs.  Store xmm parameters.
1766         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1768         [BZ #9913]
1769         * string/strverscmp.c (__strverscmp): Fix case of different digits
1770         in fractional part of string.
1771         Patch by Jingyu Liu <jyliu@fortinet.com>.
1772         * string/Makefile (tests): Add tst-svc2.
1773         * string/tst-svc2.c: New file.
1775         * string/strverscmp.c (__strverscmp): Optimize size of tables.
1777         * locale/iso-639.def: Add Min Nan.
1779 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1781         [BZ #9948]
1782         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1784 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1786         * elf/dl-sysdep.c (auxvars): Compress data structure.
1788         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1789         STT_GNU_IFUNC handling.
1790         (elf_machine_rela): Likewise.
1792 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
1794         * config.h.in (USE_MULTIARCH): Define.
1795         * configure.in: Handle --enable-multi-arch.
1796         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1797         (_dl_fixup_profile): Likewise.
1798         * elf/do-lookup.c (dl_lookup_x): Likewise.
1799         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1800         * elf/elf.h (STT_GNU_IFUNC): Define.
1801         * include/libc-symbols.h (libc_ifunc): Define.
1802         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1803         framework in init-arch.h to get CPUID values.
1804         * sysdeps/x86_64/multiarch/Makefile: New file.
1805         * sysdeps/x86_64/multiarch/init-arch.c: New file.
1806         * sysdeps/x86_64/multiarch/init-arch.h: New file.
1807         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1809         * config.make.in (experimental-malloc): Define.
1810         * configure.in: Handle --enable-experimental-malloc.
1811         * malloc/Makefile: Handle experimental-malloc flag.
1812         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1813         * malloc/arena.c: Likewise.
1814         * malloc/hooks.c: Likewise.
1815         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1817 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1819         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1820         prediction.  A few size optimizations.
1822 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1824         * time/tzset.c: Optimize a bit for size.
1826 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1828         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1829         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1831         * elf/sprof.c: Avoid warning about multi-line comment.
1833 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1835         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1836         DST name.
1837         * time/tst-posixtz.c: Add tests for quoted timezone names.
1839 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1841         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1842         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1843         200809L instead of 200112L.
1844         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1845         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1847         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1848         instead of __quick_exit_funcs to __run_exit_handlers.
1849         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1850         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1851         (__cxa_at_quick_exit): Remove attribute_hidden.
1852         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1853         to __run_exit_handlers.
1854         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1855         attribute_hidden.
1857 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1859         * po/id.po: Update from translation team.
1861 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1864         .machine push; .machine "power6" and .machine pop around mtfsf
1865         insns outside of _ARCH_PWR6 define.
1866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1868         Likewise.
1869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1870         Likewise.
1871         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1872         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1873         relax_fenv_state): Likewise.
1875 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1877         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1878         cxa_at_quick_exit.
1879         (static-only-routines): Add at_quick_exit.
1880         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1881         GLIBC_2.10.
1882         * stdlib/quick_exit.c: New file.
1883         * stdlib/at_quick_exit.c: New file.
1884         * stdlib/cxa_at_quick_exit.c: New file.
1885         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1886         it appropriately.
1887         (__internal_atexit): New function.
1888         (__new_exitfn): Now takes parameter to point to the list to use.
1889         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1890         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1891         (exit): ...here.  Just call __run_exit_handlers appropriately.
1892         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1893         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1894         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1895         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1897         * po/id.po: Update from translation team.
1899 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1901         * po/ru.po: Update from translation team.
1903 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1905         * po/nl.po: Update from translation team.
1907 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1909         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1910         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1911         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1912         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1913         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1914         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1915         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1917         * po/pl.po: Update from translation team.
1919 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1921         [BZ #7083]
1922         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1923         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1924         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1925         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1926         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1927         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1928         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1929         for GLIBC_2.10.
1930         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1931         Add fallocate and fallocate64.
1933         * io/fcntl.h: Pretty printing.
1935 2009-03-02  Richard Guenther  <rguenther@suse.de>
1937         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1938         attribute also for non-C99 inline semantics variant.
1940 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1942         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1943         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1944         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1945         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1947         Likewise.
1948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1949         Likewise.
1951 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1953         * po/cs.po: Update from translation team.
1955 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1957         * po/bg.po: Update from translation team.
1958         * po/sv.po: Likewise.
1959         * po/fi.po: Likewise.
1960         * po/vi.po: Likewise.
1962 2009-02-27  Roland McGrath  <roland@redhat.com>
1964         * Makeconfig (%.v.i): Depend on Makeconfig.
1965         Exclude % lines from initial #-comment removal.
1967 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1969         * po/ko.po: Update from translation team.
1971 2009-02-26  Roland McGrath  <roland@redhat.com>
1973         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1974         avoids unused warning.
1976 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1977             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1979         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1980         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1981         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1982         and asm/user.h.  Include asm/ptrace.h.
1983         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1984         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1985         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1986         Undefine.
1987         (start_thread): Don't undefine.
1988         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1989         Define.
1991 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1993         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1994         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1995         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1996         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1997         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1998         200112L to 200809L.
1999         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2000         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2001         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2002         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2003         _SC_THREAD_ROBUST_PRIO_PROTECT.
2004         * posix/unistd.h: fexecve is in POSIX 2008.
2005         * time/time.h: strftime_l is in POSIX 2008.
2006         * io/sys/stat.h: futimens is in POSIX 2008.
2007         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2008         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2009         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2010         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2011         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2012         open_memstream, and vdprintf are in POSIX 2008.
2014 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2016         * include/features.h: Define macros for XPG7/POSIX 2008.
2017         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2018         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2019         POSIX 2008.
2020         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2021         * locale/xlocale.h: Define locale_t type.
2022         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2023         in POSIX 2008.  Don't define locale_t here.
2024         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2025         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2026         UTIME_OMIT only with __USE_ATFILE.
2027         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2028         * stdio-common/psiginfo.c: New file.
2029         * stdio-common/psiginfo-data.h: New file.
2030         * stdio-common/psiginfo-define.h: New file.
2031         * stdio-common/Makefile (routines): Add psiginfo.
2032         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2033         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2034         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2035         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2036         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2037         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2038         * io/sys/stat.h: Move mknodat definition into same conditional as
2039         mknod.
2040         * time/sys/time.h: futimesat is not among the functions accepted
2041         into the POSIX standard.
2043         * include/features.h: If no feature selection given and we select
2044         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2045         * posix/Versions: Export __posix_getopt.
2046         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2047         Use it to alternatively initialize __posixly_correct.
2048         (_getopt_internal_r): Take addition parameter.  Pass on to
2049         _getopt_initialize.
2050         (_getopt_internal): Take addition parameter.  Pass on to
2051         _getopt_internal_r.
2052         (getopt): Pass additional zero to _getopt_internal.
2053         (__posix_getopt): New function.
2054         * posix/getopt.h: Add redirection for getopt.
2055         * posix/getopt1.c (getopt_long): Pass additional zero to
2056         _getopt_internal.
2057         (getopt_long_only): Likewise.
2058         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2059         (_getopt_long_only_r): Likewise.
2060         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2061         _getopt_internal_r.
2063 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2065         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2066         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2067         * sysdeps/posix/sysconf.c (__sysconf): Handle
2068         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2069         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2071 2009-02-24  Roland McGrath  <roland@redhat.com>
2073         [BZ #9895]
2074         * README.template: Reworded not to use substituted version number.
2075         Renamed to ...
2076         * README: ... here (no longer generated).
2077         * Makefile (README): Target removed.
2079 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2081         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2082         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2083         instead.
2085         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2087         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2089 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2091         * po/bg.po: Update from translation team.
2093 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2095         * stdlib/monetary.h: Uglify function parameter names.
2096         * sunrpc/rpc/pmap_clnt.h: Likewise.
2097         * sunrpc/rpc/svc.h: Likewise.
2098         * sunrpc/rpc/xdr.h: Likewise.
2099         * sunrpc/rpc/clnt.h: Likewise.
2100         * resolv/netdb.h: Likewise.
2101         * resolv/arpa/nameser.h: Likewise.
2102         * resolv/resolv.h: Likewise.
2103         * argp/argp.h: Likewise.
2104         * locale/langinfo.h: Likewise.
2105         * io/sys/stat.h: Likewise.
2106         * posix/spawn.h: Likewise.
2107         * nis/rpcsvc/nislib.h: Likewise.
2108         * malloc/obstack.h: Likewise.
2109         * sysdeps/ia64/bits/link.h: Likewise.
2110         * sysdeps/i386/bits/link.h: Likewise.
2111         * sysdeps/s390/bits/link.h: Likewise.
2112         * sysdeps/powerpc/bits/link.h: Likewise.
2113         * sysdeps/x86_64/bits/link.h: Likewise.
2114         * sysdeps/sparc/bits/link.h: Likewise.
2115         * sysdeps/sh/bits/link.h: Likewise.
2116         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2117         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2118         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2119         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2121 2008-12-01  Fredrik Unger  <fred@tree.se>
2123         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2124         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2125         _FP_UNPACK_RAW_2, fix up first argument.
2127 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2129         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2130         (GET_NPROCS_PARSER): Change parameters and use next_line.
2131         (__get_nprocs): Rewrite to not use stdio routines.
2132         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2133         Change parameters and use next_line.
2135 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2137         [BZ #5381]
2138         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2139         Change mempool_alloc prototype.
2140         * nscd/mem.c (gc): Don't handle mem_in_flight.
2141         (mempool_alloc): Third parameter now only indicates whether this is the
2142         first call (to allocate data) or not.  If it is, get db rdlock.
2143         Release it on error.  Don't handle mem_in_flight.
2144         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2145         Adjust third parameter of mempool_alloc calls.
2146         Nothing to do here in case mempool_alloc fails.
2147         Avoid local variable shadowing parameter.  No need to get db rdlock
2148         before calling cache_add.
2149         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2150         no mem_in_flight array anymore.
2151         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2152         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2153         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2154         in case mempool_alloc fails. No need to get db rdlock before calling
2155         cache_add.
2156         * nscd/hstcache.c (cache_addhst): Likewise.
2157         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2158         * nscd/servicescache.c (cache_addserv): Likewise.
2159         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2161 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2163         * po/lt.po: Update from translation team.
2165 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2167         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2168         defined, allow additional data to be added using the optional
2169         MORE_ELF_HEADER_DATA macro.
2170         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2171         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2173 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2175         * include/atomic.h: Define catomic_and if not already defined.
2176         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2177         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2179 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2181         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2182         Change all callers.
2183         (_int_realloc): Likewise.  Third argument is now padded size
2184         All _int_* functions are now static.
2186         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2187         * malloc/arena.c: Likewise.
2188         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2189         functions.
2191         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2192         easily.
2194         * malloc/malloc.c: Add branch prediction for use of the hooks.
2196         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2198 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2200         [BZ #7095]
2201         * bits/confname.h: Add SUSv7 macros for getconf environments.
2202         * bits/environments.h: Likewise.
2203         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2204         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2205         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2206         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2207         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2208         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2209         * posix/getconf.c: Likewise.
2210         * posix/sysconf.c: Likewise.
2211         * sysdeps/posix/sysconf.c: Likewise.
2212         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2213         environments.
2215 2009-01-16  Petr Baudis  <pasky@suse.cz>
2217         [BZ #9753]
2218         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2219         even if we currently have zero nscount.
2221 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2223         [BZ #9781]
2224         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2225         the input line is too long.
2227         * po/Makefile (libc.pot): Add f_print as function taking c-format
2228         parameter.
2230         * debug/xtrace.sh: Unify translatable messages.
2231         * elf/ldd.bash.in: Likewise.
2232         * elf/sprof.c: Likewise.
2233         * locale/programs/locale.c: Likewise.
2234         * malloc/memusage.sh: Likewise.
2235         * nss/getent.c: Likewise.
2237 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2239         * debug/pcprofiledump.c (print_version,
2240         argp_program_version_hook): New function.
2241         * elf/ldconfig.c (more_help): New function.
2242         (argp): Use it.
2243         * elf/sln.c (usage): New function.
2244         (main): Support --help and --version.
2245         * malloc/memusagestat.c (print_version): New function.
2246         (argp_program_version_hook): New variable.
2247         * nscd/nscd.c (more_help): New function.
2248         (argp): Use it.
2249         * posix/getconf.c (main): Send --version output to stdout.
2250         Support --help.
2251         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2252         arguments.  All callers changed.
2253         (print_version): New function.
2254         (parseargs): Support --help and --version.
2255         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2256         changed.
2257         (print_version): New function.
2258         (main): Use getopt_long.  Support --help and --version.
2259         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2260         --version.
2262 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2264         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2265         (update_data): Fix handling of wrapping back
2266         to the beginning of the buffer.
2268         [BZ #9823]
2269         * stdio-common/psignal.c (psignal): Fix test for empty string.
2271 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2273         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2274         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2275         move _null_auth to .rodata.
2277         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2278         value of 24.
2280         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2282         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2283         today than when the original code was written.  Use larger
2284         buffers.  This also makes it unnecessary to have stat information,
2285         if this causes extra efforts.
2286         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2287         __alloc_dir.
2289 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2291         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2292         is set.
2293         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2294         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2295         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2296         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2297         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2298         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2300 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2302         * po/ru.po: Update from translation team.
2304 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2306         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2307         Add _tid slot to maintain consistency with kernel.
2309 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2311         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2312         incomplete characters at end of input buffer.
2313         * libio/Makefile (tests): Add tst-fgetwc.
2314         * libio/tst-fgetwc.c: New file.
2315         * libio/tst-fgetwc.input: New file.
2317 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2319         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2321 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2323         [BZ #9793]
2324         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2325         *OUTBUFSTART unless the whole output fit into the buffer.
2326         * iconv/Makefile (tests): Add tst-iconv4.
2327         * iconv/tst-iconv4.c: New file.
2329 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2331         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2332         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2334 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2336         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2337         newer linker scripts.
2339 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2341         [BZ #7040]
2342         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2343         inotify_rm_watch should have type int.
2345 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2347         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2348         Make aligned_restore_vmx a local symbol.
2349         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2350         Likewise.
2352 2009-01-30  Andreas Jaeger  <aj@suse.de>
2354         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2355         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2356         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2357         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2358         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2359         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2360         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2362 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2364         [BZ #9726]
2365         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2366         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2368 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2370         [BZ #9726]
2371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2372         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2374         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2376 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2378         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2379         memcpy instead of memcmp.
2380         (_dl_setup_pointer_guard): Likewise.
2382 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2384         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2385         manipulated brk, use malloc_printerr.
2386         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2387         requests.
2389 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2391         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2392         rindex): For C++ add inlines so that they can be recognized as
2393         builtins.
2394         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2396 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2397             Jakub Jelinek  <jakub@redhat.com>
2399         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2400         * wcsmbs/wchar.h: Likewise.
2402 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2404         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2405         (stackinfo_sub_sp): Define.
2407 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2409         [BZ #9750]
2410         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2411         * include/alloca.h (alloca_account): Define.
2412         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2413         (stackinfo_sub_sp): Define.
2415         * nscd/connections.c (nscd_init): If database file access fails
2416         check whether this is due to permission problems and bail in that
2417         case.
2419         [BZ #9741]
2420         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2421         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2423 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2425         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2426         Add "t" to clobber list.
2427         (INTERNAL_SYSCALL_NCS): Likewise.
2429 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2431         * nss/getent.c (print_networks): Don't print comma between aliases.
2433 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2435         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2437         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2438         the hash table.
2439         * misc/Makefile (tests): Add bug-hsearch1.
2440         * misc/bug-hsearch1.c: New file.
2442 2009-01-22  Roland McGrath  <roland@redhat.com>
2444         * Makeconfig (%.v.i): Strip trailing # comments,
2445         not only whole-line comments.
2447 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2449         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2450         one parameter.  If non-NULL use it to initialize return value.
2451         (_dl_setup_pointer_guard): New function.
2452         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2453         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2454         * elf/rtld.c (security_init): Pass _dl_random to
2455         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2456         pointer_chk_guard.
2457         * elf/dl-sysdep.c (_dl_random): New variable.
2458         (_dl_sysdep_start): Handle AT_RANDOM.
2459         (_dl_show_auxv): Likewise.
2460         * elf/dl-support.c (_dl_random): New variable.
2461         (_dl_aux_init): Handle AT_RANDOM.
2462         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2463         to _dl_setup_stack_chk_guard.
2465         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2467 2009-01-10  Roland McGrath  <roland@redhat.com>
2469         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2471 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2473         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2475         [BZ #9706]
2476         * nss/nss_files/files-parse.c (strtou32): New function.
2477         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2478         across 32-bit and 64-bit platforms.
2479         (INT_FIELD_MAYBE_NULL): Likewise.
2481 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
2483         [BZ #9720]
2484         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2485         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2486         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2487         Likewise.
2489 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
2491         [BZ #697]
2492         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2493         being NULL also if there are no backreferences.
2494         * posix/rxspencer/tests: Add testcases.
2496 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
2498         [BZ #9697]
2499         * posix/bug-regex17.c: Add testcases.
2500         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2501         handling.
2503 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2505         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2506         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2507         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2508         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2509         for elf subdir.
2510         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2511         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2512         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2513         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2514         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2515         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2517 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
2519         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2520         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2521         re_string_skip_chars, re_string_reconstruct): Likewise.
2522         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2524 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
2526         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2527         adjust the buffer alignment.
2529 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2531         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2532         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2533         net/route.h.
2535         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2536         flavor to description only when flavor is not NULL.
2538         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2539         mutex after SIGIO/SIGURG lookup loop.
2541 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2543         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2545 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
2547         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2548         handling.
2550 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
2552         * sysdeps/unix/sysv/linux/kernel-features.h
2553         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2555         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2556         if no output is written.
2558         * version.h: Bump to 2.10 development.
2560         * posix/getconf.c: Update copyright year.
2561         * nss/getent.c: Likewise.
2562         * iconv/iconvconfig.c: Likewise.
2563         * iconv/iconv_prog.c: Likewise.
2564         * elf/ldconfig.c: Likewise.
2565         * catgets/gencat.c: Likewise.
2566         * csu/version.c: Likewise.
2567         * elf/ldd.bash.in: Likewise.
2568         * elf/sprof.c (print_version): Likewise.
2569         * locale/programs/locale.c: Likewise.
2570         * locale/programs/localedef.c: Likewise.
2571         * nscd/nscd.c (print_version): Likewise.
2572         * debug/xtrace.sh: Likewise.
2573         * malloc/memusage.sh: Likewise.
2574         * malloc/mtrace.pl: Likewise.
2575         * debug/catchsegv.sh: Likewise.
2577 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2579         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2580         script.
2582 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2584         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2585         gethostbyname4_r function call succeeded, just leave the loop.
2587         [BZ #9694]
2588         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2589         very end.
2590         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2591         * wctype/Makefile (tests): Add bug-wctypeh.
2592         * wctype/bug-wctypeh.c: New file.
2594         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2595         LOCALDOMAIN is defined.
2596         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2598         * sysdeps/x86_64/bits/select.h: New file.
2600         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2602 2008-12-21  Bruno Haible  <bruno@clisp.org>
2604         [BZ #9677]
2605         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2606         if no output is written.
2608 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2610         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2611         libc internal symbol __dup2 to avoid access through the PLT.
2613 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2615         [BZ #6545]
2616         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2617         available only for __USE_GNU.
2619         * inet/Makefile (tests): Add tst-getni2.
2620         * inet/tst-getni2.c: New file.
2622         [BZ #7080]
2623         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2624         NULL when NI_NAMEREQD is set.
2625         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2626         * inet/Makefile (tests): Add tst-getni1.
2627         * inet/tst-getni1.c: New file.
2629 2008-12-03  Petr Baudis  <pasky@suse.cz>
2631         [BZ #7067]
2632         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2633         instead of prune_lock.
2634         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2635         * nscd/nscd.h (database_dyn): Add prune_run_cache.
2637 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
2639         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2640         use.
2642         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2643         handling.
2645         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2646         after reading name server list.
2648         [BZ #7058]
2649         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2650         handling for host name aliases.
2652 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
2654         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2655         instead of doing things manually.
2657 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
2659         * posix/regex_internal.h (build_wcs_upper_buffer):
2660         Return type is reg_error_t.
2662 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
2664         * posix/globtest.sh: Use mktemp to create temporary file and
2665         directory.
2667         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2668         sets correctly.
2669         (__CPU_CLR_S): Likewise.
2670         (__CPU_ISSET_S): Likewise.
2672 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
2673             Ulrich Drepper  <drepper@redhat.com>
2675         * scripts/firstversion.awk: Use custom comparison function to compare
2676         version numbers.
2677         * scripts/versions.awk: Use sort invocation which can handle
2678         multi-digit sub-version numbers.
2680 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
2682         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2683         * locale/iso-639.def: Add Chhattisgarhi entry.
2685 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
2687         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2688         ESRCH return value.
2689         (_nss_dns_gethostbyname4_r): Likewise.
2690         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2691         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2692         gethostbyname4_r, we don't have a separate IPv6 status, so copy
2693         the no_data variable.
2695         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2696         information at the correct index.
2698         * socket/sys/socket.h: Declare accept4.
2699         * socket/accept4.c: New file.
2700         * sysdeps/unix/sysv/linux/accept4.c: New file.
2701         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2702         * socket/Makefile (routines): Add accept4.
2703         * socket/Versions: Export accept4 with version GLIBC_2.10.
2704         * socket/paccept.c: Removed.
2705         * sysdeps/unix/sysv/linux/paccept.c: Removed.
2706         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2707         * Versions.def: Define GLIBC_2.10 for libc.
2708         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2710         * nscd/connections.c: Use accept4.
2712         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2714 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
2716         * resolv/res_send.c (send_dg): Create sockets with non-blocking
2717         flag already set.
2719         * stdlib/setenv.c (unsetenv): Don't search environment if it does
2720         not exist.
2721         * stdlib/Makefile (tests): Add tst-unsetenv1.
2722         * stdlib/tst-unsetenv1.c: New file.
2724 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
2726         * login/utmp_file.c (file_writable): New variable.
2727         (setutent_file): Don't try to open file for writing.
2728         (pututline_file): Before writing, make descriptor writable if
2729         necessary.
2731 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
2733         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2734         to IPv4 or IPv6 if an interface has been found.
2736 2008-11-26  Roland McGrath  <roland@redhat.com>
2738         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2739         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2741         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2742         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2743         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2745         * elf/elf.h (NT_386_IOPERM): New macro.
2746         (NT_PPC_VSX): New macro.
2748 2008-11-25  Roland McGrath  <roland@redhat.com>
2750         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2751         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2752         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2753         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2754         Subdirectories moved to ports repository.
2755         * configure.in (base_machine): Remove alpha case.
2757 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
2759         * sysdeps/mach/strerror_l.c: New file.
2761 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
2763         [BZ #6411]
2764         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2765         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2766         magic numbers.
2767         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2768         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2769         (relax_fenv_state): Same as above.
2770         (FPSCR_29): Reserve bit in ISA 2.05.
2771         (FPSCR_NI): Provide define for compat.
2772         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2773         magic numbers.
2774         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2775         magic numbers.
2776         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
2777         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2778         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2779         access to hwcap to account for hwcap size increase to uint64_t.
2780         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2781         Likewise.
2782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2783         (*setcontext): Likewise.
2784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2785         New file.
2786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2787         New file.
2788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2789         (*setcontext): dynamically select mtfsf insn based on
2790         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2791         increase to uint64_t.
2792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2793         (*swapcontext): dynamically select mtfsf insn based on
2794         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
2795         increase to uint64_t.
2796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2797         New file.
2798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2799         New file.
2800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2801         (*setcontext): dynamically select mtfsf insn based on
2802         PPC_FEATURE_HAS_DFP.
2803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2804         (*swapcontext): dynamically select mtfsf insn based on
2805         PPC_FEATURE_HAS_DFP.
2807 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
2809         * version.h: Bump for 2.9 release.
2810         * include/features.h (__GLIBC_MINOR__): Bump to 9.
2812         [BZ #7029]
2813         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2814         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2815         all the rounding.
2817 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2819         [BZ #7009]
2820         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2821         unknown request types for now.
2823 2008-11-11  Roland McGrath  <roland@redhat.com>
2825         * sysdeps/x86_64/configure: New file.
2827         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2828         * configure: Regenerated.
2830 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2832         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2833         correct instruction to remove the stack frame.
2835 2008-11-03  Michael Matz  <matz@suse.de>
2837         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2838         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2840 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2842         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2843         Remove.
2845         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2846         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2847         of the thread variable instead of void *.
2848         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2849         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2850         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2851         __libc_tsd_define arguments.
2852         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2853         __libc_tsd_address arguments.  Remove union hack.
2854         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2855         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2856         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2857         Adjust __libc_tsd_{set,get} arguments.
2858         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2859         __libc_tsd_define arguments.
2860         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2861         arguments.
2862         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2863         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2864         (LOCALE): Adjust __libc_tsd_define arguments.
2865         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2866         arguments.
2867         (LOCALE): Adjust __libc_tsd_define arguments.
2868         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2869         arguments.
2870         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2871         arguments.
2873 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2875         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2876         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2878 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2880         [BZ #6966]
2881         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2883 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2884             Ulrich Drepper  <drepper@redhat.com>
2886         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2887         definition for GCC 3.1 and later.
2889 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2891         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2892         refetch dtv, as it might have changed.
2893         * elf/Makefile: Add rules to build and run tst-tls18.
2894         * elf/tst-tls18.c: New test.
2895         * elf/tst-tlsmod18a.c: New file.
2897 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2899         [BZ #6875]
2900         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2902 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2904         [BZ #6867]
2905         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2907         [BZ #6919]
2908         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2909         Fix length of copy operation.
2911 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2913         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2914         and fix its calling convention.
2916 2008-10-07  Andreas Schwab  <schwab@suse.de>
2918         [BZ #6942]
2919         * resolv/res_send.c (send_vc): Fix last change.
2920         (send_dg): Align here as well.
2922 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2924         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2925         return value in case rlimit is RLIM_INFINITY.
2927         [BZ #6947]
2928         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2929         for UL_SETFSIZE.
2930         * resource/Makefile (tests): Add bug-ulimit1.
2931         * resource/bug-ulimit1.c: New file.
2933         [BZ #6974]
2934         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2935         without dot.  Properly terminate the string with a null byte.
2936         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2938         [BZ #6980]
2939         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2940         negative sizees.
2941         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2942         negative __size.
2944         [BZ #6995]
2945         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2947 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2949         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2950         abort if there is no initgroups_dyn function.
2952         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2953         result if any of the queries really provided an answer.
2955 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2957         * po/lt.po: Update from translation team.
2959 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2961         * po/id.po: Update from translation team.
2963 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2965         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2966         Fix tests for existence of second reply.
2968 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2970         * po/id.po: New file.
2971         Contributed by the Indonesian translation team.
2973 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2975         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2976         initialization.
2978 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2980         * elf/Makefile: Add rules to build and run tst-tls17.
2981         * elf/tst-tls17.c: New test.
2982         * elf/tst-tlsmod17a.c: New file.
2983         * elf/tst-tlsmod17b.c: Likewise.
2985 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2987         * stdlib/divmod_1.c: Use correct type for dummy variable.
2988         * stdlib/mod_1.c: Likewise.
2990 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2992         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2994 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2996         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2997         __nonnull order for C++.
2998         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2999         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3001 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3003         * stdlib/longlong.h: Update from GCC.
3005 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3006             David S. Miller  <davem@davemloft.net>
3008         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3009         make sure any registers used with 64-bit 'branch-on-register'
3010         instructions have their top 32-bits clear.
3011         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3012         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3014 2008-09-18  Andreas Schwab  <schwab@suse.de>
3016         [BZ #6942]
3017         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3018         Properly handle partial reads.
3020 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3022         * elf/elf.h (STO_MIPS_PLT): New.
3023         (R_MIPS_COPY): New.
3024         (R_MIPS_JUMP_SLOT): New.
3025         (R_MIPS_NUM): Redefine to 128.
3026         (DT_MIPS_PLTGOT): New.
3027         (DT_MIPS_RWPLT): New.
3028         (DT_MIPS_NUM): Redefine to 0x35.
3030 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3032         * timezone/africa: Update from tzdata2008f.
3033         * timezone/asia: Likewise.
3034         * timezone/australasia: Likewise.
3035         * timezone/europe: Likewise.
3036         * timezone/leapseconds: Likewise.
3037         * timezone/northamerica: Likewise.
3038         * timezone/southamerica: Likewise.
3039         * timezone/zone.tab: Likewise.
3041 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3043         * nscd/connections.c: Disable use of paccept for now.
3045 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3047         * socket/Versions: Remove paccept export for GLIBC_2.9.
3048         * socket/Makefile (routines): Remove paccept.
3049         * socket/sys/socket.h: Remove paccept declaration.
3051         * po/sv.po: Update from translation team.
3053 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3055         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3056         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3058 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3060         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3061         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3063 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3065         * sunrpc/rpc/svc.h: Declare svcfd_create.
3066         Patch by Michael Solberg <msolberg@redhat.com>.
3068 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3069             Ulrich Drepper  <drepper@redhat.com>
3071         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3072         _int_valloc fails.
3073         (public_pVALLOc): Likewise.
3075 2008-09-02  Andreas Jaeger  <aj@suse.de>
3077         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3078         commit.
3080 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3082         [BZ #6860]
3083         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3085 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3087         * Makefile (check-data): Check data directory in add-ons.
3088         * elf/Makefile (check-data): Likewise.
3090 2008-08-18  Roland McGrath  <roland@redhat.com>
3092         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3093         * configure: Regenerated.
3094         * config.make.in (cflags-cpu): New substituted variable.
3095         (with-cpu): Variable removed.
3096         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3098 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3100         [BZ #6845]
3101         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3102         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3103         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3104         redundant.  Functions which call floating point assembler operations
3105         should go into a sysdeps powerpc/fpu directory.
3107 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3109         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3110         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3112 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3114         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3116         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3117         change related to AT_EXECFN.  We cannot use that string.
3118         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3119         _dl_execfn member.
3120         * elf/dl-support.c: Remove _dl_execfn variable.
3121         (_dl_aux_init): Remove handling of AT_EXECFN.
3122         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3123         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3125 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3127         [BZ #6544]
3128         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3129         byte gets added to writes and seeks from the end use the length of
3130         the buffer and not the currently terminating NUL byte.
3132         [BZ #6634]
3133         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3134         Set to true if locking failed.
3135         (getutid_r_file): Adjust caller.
3136         (pututline_file): Likewise.  Return NULL in this case.
3137         Patch mostly by halesh.s@gmail.com.
3139 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3141         [BZ #6589]
3142         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3143         Define.
3144         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3146 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3148         [BZ #6839]
3149         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3150         macro since it is now available in elf/dynamic-link.h.
3152 2008-08-12  Roland McGrath  <roland@frob.com>
3154         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3155         in case used outside of libc.
3156         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3158 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3160         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3161         directly instead of going through dn_comp.
3163 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3165         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3166         Fix asm constraints.
3168 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3170         [BZ #6790]
3171         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3172         (IPV6_PMTUDISC_PROBE): Likewise.
3174 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3176         [BZ #6791]
3177         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3179 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3180             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3182         [BZ #6817]
3183         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3184         Added the members 'vsx' and 'arch_2_06'.
3185         (_dl_powerpc_platforms): Add the member 'power7'.
3186         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3187         to reflect the changes required by VSX and ISA 2.06.
3188         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3189         'power7'.
3190         Defined PPC_PLATFORM_POWER7.
3191         (_dl_string_platform): Add support for POWER7.
3192         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3193         capability and ISA 2.06.
3195 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3197         [BZ #6824]
3198         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3199         macro to detect use of 128 bit long double.
3200         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3202 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3204         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3206         [BZ #5794]
3207         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3208         parameters.
3209         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3210         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3212 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3214         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3215         guaranteed to be large enough to read inotify event.  Ignore
3216         EAGAIN error.  Better error message.  Add branch predicition.
3217         (main_loop_epoll): Likewise.
3219 2008-08-02  Roland McGrath  <roland@frob.com>
3221         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3222         Add memory clobbers.
3224 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3226         * manual/arith.texi: Avoid @strong{Note:}.
3227         * manual/creature.texi: Likewise.
3228         * manual/filesys.texi: Likewise.
3229         * manual/math.texi: Likewise.
3230         * manual/memory.texi: Likewise.
3231         * manual/resource.texi: Likewise.
3232         * manual/syslog.texi: Likewise.
3233         * manual/time.texi: Likewise.
3235         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3236         to prevent warning.
3238 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3240         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3241         new epoll_create1 interface.
3242         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3243         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3244         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3246         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3247         (NS_GET32): Likewise.
3249         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3250         syscalls, too.
3252         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3253         use the AT_EXECFN value if it is no absolute path.
3254         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3255         __ASSUME_AT_EXECFN.
3257         * Versions.def: Add GLIBC_2.9 to libresolv.
3258         * include/resolv.h: Remove hidden proto declarations for __ns_*
3259         functions.  Add them for __dn_count_labels and __p_secstodate.
3260         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3261         Define ns_msg_getflags macro here.
3262         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3263         and __p_secstodate.
3264         * resolv/Versions: Export functions from <arpa/nameser.h> from
3265         libresolv in version GLIBC_2.9.
3266         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3267         hidden definitions.
3268         * resolv/ns_netint.c: Likewise.
3269         * resolv/ns_parse.c: Likewise.
3270         * resolv/ns_print.c: Likewise.
3271         * resolv/ns_samedomain.c: Likewise.
3272         * resolv/ns_ttl.c: Likewise.
3273         * resolv/arpa/nameser_compat.h: Likewise.
3274         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3275         function calls.
3276         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3277         instead of ns_get16.
3278         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3279         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3280         (gaih_getanswer_slice): Likewise.
3281         * resolv/Makefile (libresolv-routines): Add ns_date.
3282         * resolv/ns_date.c: New file.
3284         * elf/Makefile (check-localplt.out): Also check libresolv and
3285         libcrypt.
3287 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3289         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3290         __ASSUME_O_CLOEXEC.
3292 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3294         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3295         buffer passed to NSS functions.
3297         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3299         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3300         Define.
3302         * misc/syslog.c (openlog_internal): Fix compile problem.
3304 2008-07-28  Roland McGrath  <roland@redhat.com>
3306         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3308 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3310         * io/ftw.c (add_object): Remove inline to avoid warning.
3312         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3314         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3315         Use it instead of locally defined resplen2 variable.
3316         (res_nsend): Adjust for __libc_res_nsend interface change.
3317         (send_vc): Initialize *resplen2 if necessary.  Read length of
3318         package into an appropriately aligned variable.  Store converted length
3319         in new variable and use it appropriately.
3320         Add branch prediction help.
3321         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3322         and pass it on to __libc_res_nsend.  Adjust all callers.
3323         (__libc_res_nsearch): Likewise.
3324         (__libc_res_nqeurydomain): Likewise.
3325         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3326         change.
3327         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3328         Define resplen2 variable and pass it to __libc_res_nsearch and then
3329         to gaih_getanswer.
3330         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3331         Add branch prediction.
3332         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3333         (gaih_getanswer): Don't decode second slice if first one failed due
3334         to a too small buffer.  Don't let not found status of second
3335         decoder shadow results of the first.
3336         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3337         and __libc_res_nquery interface changes
3338         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3339         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3340         __libc_res_nsearch, and __libc_res_nsend.
3341         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3342         change.
3343         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3344         __libc_res_nsearch interface changes.
3346 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3348         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3350         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3351         file descriptors with close-on-exec set.
3352         (exec_comm_child): Fix the case where the write end of the pipe is
3353         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3355         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3356         * io/pipe2.c: Likewise.
3357         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3358         instead of __ASSUME_PACCEPT.
3359         * include/unistd.h: Declare __have_pipe2.
3360         * libio/iopopen.c: Implement "e" flag.
3361         * libio/Makefile (tests): Add tst-popen1.
3362         * libio/tst-popen1.c: New file.
3364         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3365         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3367 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3369         [BZ #6771]
3370         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3371         success call of _IO_SEEKOFF or calls which failed because the
3372         descriptor is for a pipe.
3374         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3375         magic number.
3377         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3379         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3380         F_SETFD use if we know fopen set the flag.
3382         * login/utmp_file.c (setutent_file): Minor optimization in case
3383         O_CLOEXEC is available.
3385 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3387         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3388         * elf/Makefile: Use pie-ccflag variable.
3389         * nscd/Makefile: Likewise.
3390         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3392 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3394         [BZ #6724]
3395         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3396         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3397         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3398         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3399         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3400         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3401         utmp32, utmpx32 and login32.
3402         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3403         versions of struct utmp functions to libc and libutil.
3404         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3405         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3406         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3407         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3408         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3409         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3410         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3411         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3412         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3413         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3414         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3415         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3416         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3417         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3418         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3419         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3420         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3421         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3422         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3423         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3424         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3425         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3427 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3429         * scripts/gen-as-const.awk: Generate more widely usable code by
3430         using 64-bit arithmetic.
3432         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3433         the same treatment as narrow output code in last patch.
3435         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3437         [BZ #6763]
3438         * elf/dl-load.c (local_strdup): Remove inline.
3439         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3440         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3441         part of the object.
3443         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3445 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3447         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3448         the new syscalls, too.
3450         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3451         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3453         [BZ #6698]
3454         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3455         parameter for end of buffer.  If temporary copy is too large use
3456         malloc.
3457         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3458         interface change.
3459         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3460         string rewrite when allocating buffer.
3462         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3463         syscalls, too.
3465         * nscd/connections.c (nscd_init): Clean up fcntl call.
3467         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3468         SOCK_NONBLOCK if possible.
3470         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3471         SOCK_CLOEXEC if available.
3473         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3474         __libc_clntudp_bufcreate_internal.
3475         * include/sys/socket.h: Declare __have_sock_cloexec.
3476         * socket/Makefile (aux): Add have_sock_cloexec.
3477         * socket/have_sock_cloexec.c: New file.
3478         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3479         __libc_clntudp_bufcreate.
3480         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3481         which takes an additional parameter.  Create socket with non-blocking
3482         mode and close-on-exec flag set, if wanted.
3483         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3484         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3485         instead of clntudp_create.  The socket has already the close-on-exec
3486         flag set if SOCK_CLOEXEC is defined.
3488 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
3490         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3491         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3492         appropriate.
3493         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3494         non-blocking mode by using socket, paccept, and inotify_init1.
3496         * Versions.def (glibc): Add GLIBC_2.9.
3497         * io/Makefile (routines): Add dup3 and pipe2.
3498         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3499         * io/dup3.c: New file.
3500         * io/pipe2.c: New file.
3501         * posix/unistd.h: Declare dup3 and pipe2.
3502         * socket/Makefile (routines): Add paccept.
3503         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3504         * socket/paccept.c: New file.
3505         * socket/sys/socket.h: Declare paccept.
3506         * sysdeps/unix/syscalls.list: Add entry for dup3.
3507         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3508         epoll_create2 and inotify_init1.
3509         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3510         * sysdeps/unix/sysv/linux/paccept.c: New file.
3511         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3512         possible.
3513         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3514         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3515         inotify_init1, and pipe2 entries.
3516         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3517         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3518         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3519         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3520         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3521         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3522         SOCK_NONBLOCK.
3523         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3524         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3525         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3526         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3527         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3528         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3529         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3530         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3531         EPOLL_NONBLOCK.  Declare epoll_create2.
3532         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3533         EFD_NONBLOCK.
3534         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3535         IN_NONBLOCK.  Declare inotify_init1.
3536         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3537         SFD_NONBLOCK.
3538         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3539         TFD_NONBLOCK.
3541         * elf/elf.h: Define AT_EXECFN.
3542         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3543         LD_ORIGIN_PATH.
3544         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3545         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
3546         if __ASSUME_AT_EXECFN is defined.
3547         (_dl_aux_init): Handle AT_EXECFN.
3548         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3549         for 2.6.27 and up.
3550         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3551         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3552         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3553         _dl_execfn if available and avoid compatibility code if
3554         __ASSUME_AT_EXECFN is defined.
3556         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3557         _dl_discover_osversion only for older kernels.
3559 2008-07-22  Roland McGrath  <roland@frob.com>
3561         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3563 2008-07-21  Roland McGrath  <roland@frob.com>
3565         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3566         returned too much data out of line.
3568 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3570         * locale/setlocale.c (setname): Remove inline to avoid compiler
3571         warning.
3573         [BZ #6712]
3574         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3576 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3578         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3579         doesn't manage to write anything, fail.
3581         * malloc/hooks.c (__malloc_check_init): Remove printf.
3583 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3585         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3587 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3589         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3590         from inotify.
3591         (main_loop_epoll): Likewise.
3593 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3595         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3597         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3598         if DEBUG is defined.
3600         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3601         query.  Adjust buffer size computation for padding.
3603 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3605         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3606         * stdio-common/tst-setvbuf1.c: New file.
3607         * stdio-common/tst-setvbuf1.expect: New file.
3609         [BZ #6719]
3610         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3611         when selecting fully-buffered stream.
3612         Patch by Wang Xin <wxinee@gmail.com>.
3614 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3616         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3617         (__open_2): New function.
3618         (__open64_2): New alias to __open_2.
3619         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3620         (__openat_2): New function.
3621         (__openat64_2): New alias to __openat_2.
3623 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3625         [BZ #6723]
3626         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3628 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3630         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3631         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3632         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3633         __hurd_dfail.
3634         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3635         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3636         * sysdeps/mach/hurd/send.c (__send): Likewise.
3637         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3638         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3640 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3642         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3643         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3644         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3645         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3646         * hurd/get-host.c (_hurd_get_host_config): Likewise.
3647         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3649 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
3651         [BZ #6657]
3652         * time/strptime_l.c: Don't clear s.era_cnt after successful match
3653         of %EY.
3654         Patch by Petr Baudis.
3656 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
3658         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3659         Patch by Peter Jones <pjones@redhat.com>.
3661 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3663         [BZ #6654]
3664         * stdlib/canonicalize.c (__realpath): readlink can write too much
3665         into the buffer on platforms without PATH_MAX.
3667 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
3669         [BZ #6653]
3670         * posix/tst-regex.c (main): Rename to...
3671         (do_test): ... this. Remove cmdline option processing.
3672         (TIMEOUT): Define.
3673         (TEST_FUNCTION): Define.
3674         (CMDLINE_OPTIONS): Define.
3676 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3678         [BZ #5210]
3679         * configure.in: Add -Werror to -fstack-protector test to catch
3680         unsupported architectures.
3681         Patch by Gilles Esponasse <g.esp@free.fr>.
3683 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
3685         * stdlib/tst-setcontext.c: Set back_in_main before exit if
3686         getcontext returns ENOSYS.
3688 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
3690         * nscd/connections.c (main_loop_poll): Fix test for read error.
3691         (main_loop_epoll): Likewise.
3693 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
3695         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3696         better place so it is not called when nscd is used.
3698         * nscd/connections.c: Also recognize and handle changes to the
3699         resolver configuration file.
3701 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3703         * time/strftime.c: Pass reference to tzset_called around to handle
3704         recursive calls.
3706         [BZ #6612]
3707         * time/strftime.c (__strftime_internal): Call tzset() only
3708         when printing timezone-dependent values.
3709         Based on a patch by Petr Baudis <pasky@suse.cz>.
3711         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3712         unconditionally use second gaih_getanswer_slice result.
3714         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3715         (getaddrinfo): RES must always be non-NULL.
3717 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3719         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3720         cr[34] registers.
3721         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3722         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3723         Likewise.
3724         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3725         register.
3727 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3729         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3730         fields.
3731         * nscd/connections.c (inotify_fd): New variable.
3732         (nscd_init): Try to open an inotify descriptor.
3733         If successful, watch files for databases using inotify instead of
3734         having prune threads stat the files.
3735         (nscd_run_prune): Recognize clear_cache flag being set and call
3736         prune_cache appropriately.
3737         (main_loop_poll): Add inotify descriptor to wait set and handle the
3738         reported changes.
3739         (main_loop_epoll): Likewise.
3740         * nscd/cache.c (prune_cache): Don't stat files for databases if
3741         inotify is used.
3742         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3743         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3745         * nscd/grpcache.c (cache_addgr): Correctly compute size of
3746         fixed-size portion of the record.
3747         * nscd/servicescache.c (cache_addserv): Likewise.
3748         * nscd/pwdcache.c (cache_addpw): Likewise.
3749         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3751 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
3753         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3754         out we don't use uninitialized memory.
3756         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3757         the client.
3759 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
3761         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3762         ignore T_DNAME messages.
3763         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3765 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
3767         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3768         Avoid segfault if first GETC returns eof/'\0'/'\n'.
3770 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
3772         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3773         instead of portstr to nscd_getserv_r.  Patch by
3774         Roman Kagan <rkagan@mail.ru>.
3776 2008-05-26  Jim Meyering  <meyering@redhat.com>
3778         Remove more useless "if" tests before "free".
3779         * include/inline-hashtab.h (htab_delete): Likewise.
3780         * libio/freopen.c (freopen): Likewise.
3781         * libio/freopen64.c (freopen64): Likewise.
3782         * locale/programs/ld-collate.c (collate_read): Likewise.
3783         * misc/fstab.c (libc_freeres_fn): Likewise.
3784         * posix/glob.c (globfree): Likewise.
3786 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3788         * string/Makefile (strop-tests): Add memmem.
3789         * string/test-memmem.c: New file.
3790         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3791         (test_init): Size buf1 according to BUF1PAGES.
3793 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
3795         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3796         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3797         (CFLAGS-scanf17.c): New.
3798         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3799         * stdio-common/scanf15.c (main): Likewise.
3800         * stdio-common/scanf16.c: New file.
3801         * stdio-common/scanf17.c: New file.
3803 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3805         * resolv/res_send.c (send_dg): If we already have one of two
3806         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3807         use the one answer insted of failing.
3809 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
3811         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3812         being executed on PowerPC as the expected result exceeds IBM
3813         long double 128 __LDBL_MAX__.
3815 2008-05-21  Roland McGrath  <roland@redhat.com>
3817         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3819         * Makefile (check-data): Use $(abi-name) before other guesses.
3820         Look in $(add-ons) dirs before scripts/data/.
3821         * elf/Makefile (check-data): Likewise.
3823         * scripts/soversions.awk: Grok ABI line.
3824         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3825         Emit definition for abi-name variable.
3827 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3829         * string/endian.h: Define new fixed-size hto* and *toh macros only
3830         if [__USE_BSD].
3832         * iconvdata/Depend: Add localedata.
3834 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3836         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3838 2008-05-08  David S. Miller  <davem@davemloft.net>
3840         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3841         HIDDEN_JUMPTARGET.
3842         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3843         (__SYSCALL_CLOBBERS): Remove %g* registers.
3844         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3845         (__SYSCALL_CLOBBERS): Likewise.
3846         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3847         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3849 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3851         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3852         (CALL_ERRNO_LOCATION): Define.
3853         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3854         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3855         (CALL_ERRNO_LOCATION): Define.
3856         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3857         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3858         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3860 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3862         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3863         variable.
3865 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3867         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3868         (FIRST_FRAME_POINTER): Define.
3870 2008-05-09  David S. Miller  <davem@davemloft.net>
3872         * sysdeps/sparc/sparc64/backtrace.c: New file.
3874 2008-05-14  David S. Miller  <davem@davemloft.net>
3876         * sysdeps/sparc/machine-gmon.h: New file.
3877         * sysdeps/sparc/sparc-mcount.S: Likewise.
3878         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3879         sysdep_routines in gmon directory.
3881 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3883         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3885 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3887         * resolv/res_query.c (__libc_res_nquery): In case one of two
3888         answer was too short don't try to read that answer's header.
3890         * resolv/res_send.c (send_dg): In case of timeout and there are
3891         two queries and one has been answered, return value indicating
3892         success.
3894 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3896         * nscd/cache.c (cache_add): Take additional parameter specifying
3897         whether this is in response of a cache refill.  Check alignment
3898         of package data.  Revamp waking of pruning thread.
3899         (prune_cache): Small optimization.
3900         * nscd/nscd.h: Adjust cache_add prototypes.
3901         * nscd/aicache.c: Adjust cache_add calls.
3902         * nscd/grpcache.c: Likewise.
3903         * nscd/hstcache.c: Likewise.
3904         * nscd/initgrcache.c: Likewise.
3905         * nscd/pwdcache.c: Likewise.
3906         * nscd/servicescache.c: Likewise.
3907         * nscd/connections.c (restart): Really disable cache use before
3908         exec attempt.  If it fails, reenable cache.
3909         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3910         time to max to be able to notice concurrent cache additions.  Unlock
3911         prune_lock while performing gc.  Afterwards compute wakeup time with
3912         current wakeup_time value in mind.
3914 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3916         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3918         * nscd/mem.c (gc): Correctly determine highest used array element
3919         in mark.
3921         * nscd/mem.c (markrange): Add assert to check entries are all
3922         aligned.  Small cleanup in bitmap use.
3924         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3925         blockoff of type nscd_ssize_t.
3926         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3927         (mempoll_alloc): Record block offset and not address.
3929         * nscd/mem.c (gc): Fix test for stack overuse.
3931         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3932         more asserts.
3934         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3935         entry is available, believe it.
3937         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3938         no answers return NSS_STATUS_NOTFOUND.
3939         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3940         buffer does not have any content.
3942 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3944         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3946         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3947         lookup, don't assign canon unconditionally.
3949 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3951         * string/Makefile (distribute): Add str-two-way.h.
3953 2008-03-29  Eric Blake  <ebb9@byu.net>
3955         Rewrite string searches to O(n) rather than O(n^2).
3956         * string/str-two-way.h: New file.  For linear fixed-allocation
3957         string searching.
3958         * string/memmem.c: New implementation.
3959         * string/strstr.c: New implementation.
3960         * string/strcasestr.c: New implementation.
3962 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3964         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3965         opr.ctx_type.
3966         (calc_first): Initialize constraint field.
3967         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3968         Use search_duplicated_node to avoid loops.  Fix grammar.
3969         (duplicate_node): Merge constraint field for all node types.
3970         (calc_eclosure_iter): Look at constraint field for all node types.
3971         * posix/regex_internal.c (create_cd_newstate): Don't look at
3972         create_cd_newstate.
3974 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3976         [BZ #6428]
3977         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3979         [BZ #6442]
3980         * string/endian.h: Add macros for fixed-size endian conversion.
3981         * bits/byteswap.h: Allow inclusion from <endian.h>.
3982         * sysdeps/i386/bits/byteswap.h: Likewise.
3983         * sysdeps/ia64/bits/byteswap.h: Likewise.
3984         * sysdeps/s390/bits/byteswap.h: Likewise.
3985         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3986         * string/Makefile (tests): Add tst-endian.
3987         * string/tst-endian.c: New file.
3989         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3990         Patch by Reuben Thomas.
3992 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3994         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3996 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3998         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4000         [BZ #6461]
4001         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4002         Add missing braces.
4003         (BODY for __gconv_transform_internal_ascii): Likewise.
4005         [BZ #6472]
4006         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4007         to be treated like link-local addresses.
4008         (match_prefix): Don't treat IPv4 loopback address special when
4009         converting to v4 mapped addressed.
4011         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4012         if necessary.
4013         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4014         * posix/tst-rfc3484-2.c: Likewise.
4015         * posix/tst-rfc3484-3.c: Likewise.
4017         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4018         and SCTP.
4020         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4022         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4024         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4026 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4028         * po/lt.po: New file.  From Lituanian translation team.
4030 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4032         Introduce TLS descriptors for i386 and x86_64.
4033         * include/inline-hashtab.h: New file, copied from 2005's
4034         libiberty, with fix for memory leak imported afterwards by
4035         Glauber de Oliveira Costa.
4036         * elf/tlsdeschtab.h: New file.
4037         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4038         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4039         (CHECK_STATIC_TLS): Move to...
4040         * elf/dynamic-link.h: ... this file.
4041         (TRY_STATIC_TLS): New macro.
4042         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4043         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4044         R_386_TLS_DESC): Define.
4045         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4046         binutils.
4047         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4048         R_X86_64_TLSDESC): Define.
4049         (R_386_NUM, R_X86_64_NUM): Adjust.
4050         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4051         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4052         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4053         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4054         release tlsdesc_table.
4055         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4056         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4057         (elf_machine_rel): Handle R_386_TLS_DESC.
4058         (elf_machine_rela): Likewise.
4059         (elf_machine_lazy_rel): Likewise.
4060         (elf_machine_lazy_rela): Likewise.
4061         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4062         * sysdeps/i386/dl-tlsdesc.S: New file.
4063         * sysdeps/i386/dl-tlsdesc.h: New file.
4064         * sysdeps/i386/tlsdesc.c: New file.
4065         * sysdeps/i386/tlsdesc.sym: New file.
4066         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4067         tlsdesc_table.
4068         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4069         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4070         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4071         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4072         release tlsdesc_table.
4073         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4074         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4075         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4076         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4077         (elf_machine_rela): Likewise.
4078         (elf_machine_lazy_rel): Likewise.
4079         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4080         (__tls_get_addr): Do not declare for non-shared compiles.
4081         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4082         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4083         * sysdeps/x86_64/tlsdesc.c: New file.
4084         * sysdeps/x86_64/tlsdesc.sym: New file.
4085         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4086         tlsdesc_table for both 32- and 64-bit structs.
4088 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4090         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4091         its own function.  This reduces the frame setup costs and more.
4093 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4095         [BZ #3406]
4096         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4097         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4099 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4101         * io/openat.c (__openat_2): Also pass fd to __openat.
4102         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4103         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4105         * string/tester.c (test_memcmp): Add a few more tests.
4106         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4108 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4110         * nscd/cache.c (cache_add): Before returning with failure and this
4111         is the first use of the record, mark it as unusable.
4112         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4113         reporting a failure.
4114         * nscd/grpcache.c: Likewise
4115         * nscd/hstcache.c: Likewise.
4116         * nscd/initgrcache.c: Likewise.
4117         * nscd/pwdcache.c: Likewise.
4118         * nscd/servicescache.c: Likewise.
4120 2008-05-10  Roland McGrath  <roland@redhat.com>
4122         [BZ #6505]
4123         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4125 2008-05-08  David S. Miller  <davem@davemloft.net>
4127         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4129         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4130         (__ieee754_y0l): Likewise.
4131         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4132         (__ieee754_y1l): Likewise.
4133         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4134         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4135         frexpl and ldexpl.  math_private.h provides them and the latter
4136         is not even used.
4137         (__log1pl): Use __frexpl.
4139 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4141         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4142         prototypes.
4143         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4144         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4145         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4146         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4147         af==AF_UNSPEC.
4148         (_nss_nis_gethostbyname4_r): New function.
4149         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4150         Change to also handle af==AF_UNSPEC.
4151         (get_tablename): New function.  Use it to avoid duplication.
4152         (_nss_nisplus_gethostbyname4_r): New function.
4153         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4154         available.
4155         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4156         * nss/nss.h: Define struct gaih_addrtuple.
4157         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4158         af==AF_UNSPEC.
4159         (_nss_files_gethostbyname4_r): New function.
4160         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4161         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4162         calls.
4163         * resolv/res_query.c (__libc_res_nquery): Take two additional
4164         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4165         look up IPv4 and IPv6.
4166         Change all callers.
4167         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4168         for an additional query and answer buffer.  Pass to send_vc and
4169         send_dg.
4170         (send_vc): Send possibly two requests and receive two answers.
4171         (send_dg): Likewise.
4172         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4173         __libc_res_nquery.
4174         (_nss_dns_gethostbyname4_r): New function.
4175         (gaih_getanswer_slice): Likewise.
4176         (gaih_getanswer): Likewise.
4177         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4178         __libc_res_nquery call.
4179         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4180         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4181         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4182         available.
4184 2008-05-05  David S. Miller  <davem@davemloft.net>
4186         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4187         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4189 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4191         Fix termios bit macros.
4192         Move *DLY definitions where they belong, in termios.h.
4193         Add *[0-3] definitions.
4194         Fixes confusion between VT and FF.
4195         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4196         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4197         are already defined to avoid collision with termios.h.
4198         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4199         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4200         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4201         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4202         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4203         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4204         VTDLY, VT0, VT1): New macros.
4205         [__USE_GNU] (OLCUC): Change value of macro.
4206         [__USE_XOPEN] (OFILL): New macro.
4207         [__USE_BSD] (CRTSCTS): Change value.
4208         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4209         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4210         (B7200, B14400, B28800, B76800): New macros.
4212 2008-05-01  David S. Miller  <davem@davemloft.net>
4214         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4215         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4216         (gen-as-const-headers): Add it.
4217         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4218         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4219         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4220         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4222         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4223         six system call parameters.
4224         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4226 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4228         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4229         RUSAGE_LWP.
4230         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4231         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4233 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4235         * stdlib/tst-setcontext.c: Include unistd.h.
4237 2008-04-25  David S. Miller  <davem@davemloft.net>
4239         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4240         Pass "union semun" properly in to sys_ipc, it must be passed
4241         by value, not by reference.
4243 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4245         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4246         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4247         * nscd/connections.c (mem_in_flight): Likewise.
4249         * nscd/nscd.h (dbs): Make hidden.
4251         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4252         Avoid returning -1, return 0 instead.
4254 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4256         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4258 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4260         [BZ #5209]
4261         * sysdeps/unix/sysv/linux/times.c: New file.
4263         [BZ #5381]
4264         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4265         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4266         prototype.
4267         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4268         appropriate mem_in_flight element.
4269         (gc): Take allocations which have not yet been committed to the
4270         database into account.
4271         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4272         Reset mem_in_flight before returning.
4273         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4274         cue it up in mem_in_flight_list.
4275         * nscd/aicache.c: Adjust mempool_alloc call.
4276         * nscd/grpcache.c: Likewise.
4277         * nscd/hstcache.c: Likewise.
4278         * nscd/initgrcache.c: Likewise.
4279         * nscd/pwdcache.c: Likewise.
4280         * nscd/servicescache.c: Likewise.
4281         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4282         of -fpie.
4284         * nscd/connections.c (handle_request): Provide better error message
4285         in case SELinux forbids the service.
4287         * version.h (VERSION): Bump to 2.8.90.
4289 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4291         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4293 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4295         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4296         Also use for 32-bit.
4297         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4298         __nextafter instead of nextafter to avoid local PLT.
4299         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4300         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4302         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4304         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4305         __fe_nomask_env.
4306         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4307         <fenv_libc.h> instead of <fenv.h>.
4308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4311         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4313         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4314         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4315         function from fegetexcept and make old name weak alias.
4316         * include/fenv.h: Declare __fegetexcept.
4317         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4318         fegetexcept.
4319         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4320         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4321         to fetestexcept.
4322         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4323         instead of frexpl to avoid local PLT.
4324         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4325         ilogbl to avoid local PLT.
4326         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4327         instead of ldexpl to avoid local PLT.
4328         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4329         __roundl not roundl to avoid local PLT.
4330         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4331         local PLTs.  Use __sincosl instead of separate sinl and cosl
4332         calls.
4333         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4335         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4336         version for ppc64 to 2.4.21 since without it makecontext will fail.
4338         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4339         to the ABI in use.
4340         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4341         .__tls_get_addr.
4342         [__powerpc64__] (TLS_GD): Likewise.
4344 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4346         [BZ #4997]
4347         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4348         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4349         mantissa.
4350         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4351         Likewise.  Also account for when x is an odd number between 2^52
4352         and 2^53-1.
4353         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4354         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4355         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4356         detect aforementioned erroneous conditions.
4358 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4360         * configure.in: Check for -fno-section-anchors in addition to
4361         -fno-toplevel-reorder.
4363 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4365         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4367         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4368         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4369         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4370         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4371         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4372         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4374 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4376         [BZ #5443]
4377         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4378         * time/alt_digit.c: Likewise.
4379         * wcsmbs/wcsmbsload.c: Likewise.
4381 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4383         * version.h (VERSION): Bump to 2.8.
4385         * timzeone/asia: Update from tzdata2008b.
4386         * timezone/backward: Likewise.
4387         * timezone/europe: Likewise.
4388         * timezone/northamerica: Likewise.
4389         * timezone/southamerica: Likewise.
4390         * timezone/iso3166.tab: Likewise.
4391         * timezone/leapseconds: Likewise.
4392         * timezone/zone.tab: Likewise.
4393         * timezone/private.h: Update from tzcode2008a.
4394         * timezone/zdump.c: Likewise.
4395         * timezone/zic.c: Likewise.
4397 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4399         [BZ #5741]
4400         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4401         Define additonal Data Cache Block instruction macros.
4402         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4403         Replace dcbst with dcbf and sync with sync/isync.
4405 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4407         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4408         Always set ELF_RTYPE_CLASS_PLT.
4409         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4411 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4413         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4414         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4415         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4416         For ISA 2.01 and later replace mftb with mfspr 268.
4418 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4420         [BZ #5768]
4421         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4422         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4424 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4426         [BZ #5768]
4427         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4428         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4429         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4430         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4432 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4434         * stdlib/tst-makecontext.c (othervar): New variable.
4435         (cf): Test sign extending the argument to long.
4437 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4439         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4440         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4441         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4442         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4443         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4444         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4445         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4447 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4449         * elf/Makefile (tests): Substitute tests-vis-yes here.
4450         (tests-vis-yes): Delete.
4451         (modules-name, modules-vis-yes): Similarly.
4453 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4455         [BZ #4407]
4456         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4457         Preserve sign in signgamp when x is zero.
4459 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
4461         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4462         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4463         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4464         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4465         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4466         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4468 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4470         [BZ #4314]
4471         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4472         buffers.
4474         [BZ #5209]
4475         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4476         a reserved error value.
4478         * stdlib/tst-makecontext.c: Change parameter to cf to negative
4479         value to check for correct sign extension.
4481         [BZ #5436]
4482         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4483         Copy 64-bit parameter values even though this is not required in
4484         the standard.
4486         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4487         PC save.
4489 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
4491         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4492         PC save.
4494 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4496         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4498 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4500         [BZ #5998]
4501         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4502         in line-buffered stream failed.
4503         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4505 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
4507         [BZ #6024]
4508         * scripts/abi-versions.awk: If the version specified by
4509         --enable-oldest-abi is older than the first version for this
4510         architecture, use the default version.
4512         * locale/programs/ld-collate.c (collate_read): Ignore script lines
4513         as well when ignoring the whole category.
4515 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4517         [BZ #6042]
4518         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4519         ETHERTYPE_* definitions.
4520         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4522 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4524         * stdlib/mbtowc.c (__no_r_state): Remove.
4525         (mbtowc): New static state variable.  Use it instead of
4526         __no_r_state.
4527         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4528         (__wctomb_state): New hidden variable.
4529         (wctomb): Use __wctomb_state instead of __no_r_state.
4530         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4531         (__wctomb_state): New extern decl.
4532         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4534 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4536         [BZ #5475]
4537         * resolv/res_init.c: Handle scope IDs in resolv.conf.
4539 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4541         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4543 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
4545         * po/nl.po: Update from translation team.
4547 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
4549         [BZ #6007]
4550         * string/strfry.c: Handle empty strings again.
4552 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4554         [BZ #5443]
4555         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4556         before looking for translation.
4557         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4558         * locale/freelocale.c: Likewise.
4559         * locale/newlocale.c: Likewise.
4560         * locale/setlocale.c: Likewise.
4561         Based partially on a patch by ryo@np.css.fujitsu.com.
4563 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4565         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4566         acquiring wrlock.  Do conv_tab allocation while holding lock.
4567         * intl/Makefile: Add rules to build and run tst-gettext6.
4568         * intl/tst-gettext6.c: New test.
4569         * intl/tst-gettext6.sh: New file.
4571 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4573         * po/nl.po: Update from translation team.
4575         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4576         provided through st_blksize, try the default size before giving up.
4578 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4580         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4582         [BZ #5939]
4583         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4585         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4586         error message.  POSIX today does not require the messages to be in
4587         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4589         [BZ #5979]
4590         * sunrpc/auth_unix.c: Unify printed strings.
4591         * sunrpc/clnt_tcp.c: Likewise.
4592         * sunrpc/clnt_udp.c: Likewise.
4593         * sunrpc/clnt_unix.c: Likewise.
4594         * sunrpc/svc_tcp.c: Likewise.
4595         * sunrpc/svc_udp.c: Likewise.
4596         * sunrpc/svc_unix.c: Likewise.
4597         * sunrpc/xdr.c: Likewise.
4598         * sunrpc/xdr_array.c: Likewise.
4599         * sunrpc/xdr_rec.c: Likewise.
4600         * sunrpc/xdr_ref.c: Likewise.
4601         * locale/programs/ld-time.c (time_finish): Unify messages.
4602         * locale/programs/locfile.c (handle_copy): Fix typo.
4603         * nscd/nscd.c (options): Fix typo.
4605         [BZ #5995]
4606         * stdlib/strtod_l.c: Use correct sign for result in one more
4607         underflow case.
4608         Patch by Eric Blake <ebb9@byu.net>.
4610 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4612         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4613         and creat system calls.
4614         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4615         call.
4616         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4617         system calls.
4618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4619         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4620         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4622 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4624         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4625         <linux/limits.h> has defined it.
4626         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4627         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4628         headers.
4629         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4630         it instead of ARG_MAX.
4632 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
4634         * posix/gai.conf: Fix comment for scope nullbits.
4635         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4636         default to 128 bits for v4 mapped addresses.
4638 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4640         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4641         ptrace call to get the ieee_instruction_pointer from the kernel.
4642         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4643         ptrace call to set the ieee_instructtion_pointer.
4644         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4645         Add comment that ieee_instruction_pointer is always 0.
4647 2008-03-09  Andreas Jaeger  <aj@suse.de>
4649         [BZ #5857]
4650         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4651         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4652         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4654         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4655         (rint_test): Likewise.
4657 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
4659         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4660         call.
4661         (__nisfind_server): Similar for open readColdStartFile call.
4662         Patch partially by Jim Meyering.
4663         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4664         around internal_setent call.
4666         * po/vi.po: New Vietnamese translation.
4668         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4669         ADJ_OFFSET_SS_READ.
4671         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4672         remove CLONE_STOPPED.
4674 2008-02-10  Jim Meyering  <meyering@redhat.com>
4676         Remove useless "if" before "free":
4677         * elf/ldconfig.c (parse_conf_include): Likewise.
4678         * gmon/gmon.c (weak_alias): Likewise.
4679         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4680         * inet/rcmd.c (__validuser2_sa): Likewise.
4681         * intl/bindtextdom.c (set_binding_values): Likewise.
4682         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4683         * libio/genops.c (save_for_backup): Likewise.
4684         * libio/wgenops.c (save_for_wbackup): Likewise.
4685         * locale/programs/ld-collate.c (collate_read): Likewise.
4686         * locale/programs/linereader.c (get_string): Likewise.
4687         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4688         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4689         * resolv/res_debug.c (do_section): Likewise.
4690         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4691         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4692         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4693         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4694         * time/tzset.c (tzset_internal): Likewise.
4696 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
4698         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4699         of ASSEMBLER.
4701 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
4703         [BZ #5903]
4704         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4705         not stream for output file.  Open output file here.
4706         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4707         and output file name.
4708         (process_fd): Likewise.
4709         (process_file): Likewise.
4710         (main): Adjust callers of changed functions.
4711         * iconv/iconv_prog.h: Adjust prototype.
4713 2008-03-09  Andreas Jaeger  <aj@suse.de>
4715         [BZ #5753]
4716         * sysdeps/ia64/ieee754.h: Use protected namespace
4717         __BIG_ENDIAN/__LITTLE_ENDIAN.
4718         * sysdeps/ieee754/ieee754.h: Likewise.
4719         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4721 2008-03-08  Roland McGrath  <roland@frob.com>
4723         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4724         ignore a signal that came from a machine exception, treat it as a
4725         fatal core-dump signal instead.
4726         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4728         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4729         Clear DF bit in thread state's eflags.
4730         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4732 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
4734         [BZ #5774]
4735         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4736         of NAN(...) sequence.
4737         * stdlib/Makefile (tests): Add tst-strtod6.
4738         * stdlib/tst-strtod6.c: New file.
4740         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4742         [BZ #5762]
4743         * posix/getopt.c (_getopt_internal_r): Clarify error message by
4744         putting offending option character in quotes.  Clean up error
4745         messages.
4746         * po/be.po: Adjust msgstr in translation file.
4747         * po/bg.po: Likewise.
4748         * po/ca.po: Likewise.
4749         * po/cs.po: Likewise.
4750         * po/da.po: Likewise.
4751         * po/de.po: Likewise.
4752         * po/es.po: Likewise.
4753         * po/fr.po: Likewise.
4754         * po/hr.po: Likewise.
4755         * po/ko.po: Likewise.
4756         * po/nl.po: Likewise.
4757         * po/rw.po: Likewise.
4758         * po/sk.po: Likewise.
4759         * po/sv.po: Likewise.
4760         * po/tr.po: Likewise.
4761         * po/zh_CN.po: Likewise.
4762         * po/zh_TW.po: Likewise.
4764         [BZ #5760]
4765         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4766         Patch by Roland Bless <roland@bless.de>.
4768         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4769         .o file.
4770         * elf/Makefile (routines): Add dl-sysdep.
4771         (elide-routines.os): Likewise.
4773 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
4775         [BZ #5786]
4776         * elf/dl-sysdep.c: Undefine ROUND after use.
4777         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4778         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4779         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4780         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4781         to ...
4782         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4783         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4784         if necessary.
4785         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4787         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4788         _dl_tls_get_addr_soft element.
4789         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4790         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4791         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4792         GLRO.
4793         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4794         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4795         of internal_function.
4797         * stdlib/Makefile (aux): Add tens_in_limb.
4798         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4799         * stdlib/tens_in_limb.c: ...here.  New file.
4801         [BZ #5778]
4802         * sysdeps/unix/sysv/linux/pathconf.h: Declare
4803         __statfs_chown_restricted.
4804         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4805         for _PC_CHOWN_RESTRICTED.
4806         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4807         Implement __statfs_chown_restricted.
4808         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4809         _POSIX_CHOWN_RESTRICTED value to zero.
4810         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4811         defined to zero.
4813         * sysdeps/x86_64/rtld-memset.c: New file.
4815 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4817         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4819         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4820         Barcelona machine.  Make default fall through branch of
4821         __x86_64_preferred_memory_instruction check as the integer code path.
4823 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4825         * sysdeps/x86_64/cacheinfo.c
4826         (__x86_64_preferred_memory_instruction): New variable.
4827         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4829         * sysdeps/x86_64/memset.S: Rewrite.
4831 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4833         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4834         __obstack_printf_chk): New prototypes.
4835         (__vasprintf_chk, __vdprintf_chk,
4836         __obstack_vprintf_chk): Likewise.
4837         Add libc_hidden_proto.
4838         * libio/obprintf.c
4839         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4840         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4841         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4842         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4843         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4844         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4845         __obstack_vprintf_chk): New prototypes.
4846         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4847         obstack_vprintf): New inlines.
4848         * debug/dprintf_chk.c: New file.
4849         * debug/vdprintf_chk.c: New file.
4850         * debug/asprintf_chk.c: New file.
4851         * debug/vasprintf_chk.c: New file.
4852         * debug/obprintf_chk.c: New file.
4853         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4854         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4855         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4856         @@GLIBC_2.8.
4857         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4858         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4859         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4860         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4861         libc_hidden_proto.
4862         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4863         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4864         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4865         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4866         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4867         @@GLIBC_2.8.
4868         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4869         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4870         obstack_vprintf_chk.
4871         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4872         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4873         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4874         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4875         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4876         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4878 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4880         [BZ #5779]
4881         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4882         Patch by Roy Marples <roy@marples.name>.
4884         [BZ #5736]
4885         * malloc/malloc.c: Fix typo in comment.
4887         [BZ #5627]
4888         * locale/iso-639.def: Add Shuswap.
4890 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4892         [BZ #5790]
4893         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4894         overwrite *h_errnop/*errnop values from getanswer_r in case of
4895         failure.
4897 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4899         [BZ #5818]
4900         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4901         (verify_persistent_db): Remove one unnecessary test and add a new one
4902         for bad configuration.
4903         (nscd_init): Improve error reported when persistent database cannot
4904         be reused.
4905         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4906         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4907         .suggested_module and .max_db_size and case config file says the
4908         values are zero.
4909         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4911         [BZ #5854]
4912         * nis/ypclnt.c (yp_order): Fix handling of return value of
4913         do_ypcall_tr call.
4914         Patch by Jeff Moyer <jmoyer@redhat.com>.
4916         * po/fr.po: Update from translation team.
4918 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4919             Carlos O'Donell <carlos@systemhalted.org>
4921         [BZ #5012]
4922         * FAQ.in: Describe why glibc needs to be compiled with
4923         optimization.
4925 2008-02-19  Roland McGrath  <roland@redhat.com>
4927         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4929 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4931         [BZ #5737]
4932         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4933         __USE_MISC is defined.
4935 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4937         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4938         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4939         sys/timerfd.h.
4940         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4941         timerfd_gettime, timerfd_settime.
4942         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4943         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4945 2008-02-08  Roland McGrath  <roland@redhat.com>
4947         * elf/elf.h (NT_PPC_SPE): New macro.
4949 2008-02-06  Roland McGrath  <roland@redhat.com>
4951         * Makerules ($(common-objpfx)sysd-rules):
4952         Depend on $(sysdep-makeconfigs).
4954 2008-01-31  Roland McGrath  <roland@redhat.com>
4956         [BZ #5442]
4957         * configure.in: Use -print-file-name if it yields a directory,
4958         for each of include and include-fixed.
4959         * configure: Regenerated.
4961         * Makeconfig (sysd-rules-targets): New variable.
4962         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4963         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4965 2008-01-30  Roland McGrath  <roland@redhat.com>
4967         * manual/libc.texinfo: Update back-cover text.
4969         * elf/elf.h (NT_386_TLS): New macro.
4971 2008-01-29  Roland McGrath  <roland@redhat.com>
4973         * Makeconfig (sysd-rules-patterns): New variable.
4974         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4975         (check-inhibit-asm): New canned sequence, replaces ...
4976         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4977         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4978         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4979         (CFLAGS-rtld): Variable removed.
4981 2008-01-24  Roland McGrath  <roland@redhat.com>
4983         * configure.in: Let configure fragments set base_os.
4984         * configure: Regenerated.
4986 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4988         * po/ko.po: Update from translation team.
4990 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4992         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4994 2008-01-12  Andreas Jaeger  <aj@suse.de>
4996         [BZ #5040]
4997         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4998         Add EPOLLRDHUP.
5000 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5002         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5003         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5004         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5006 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5008         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5009         * elf/dl-close.c (_dl_close): Check for it.
5010         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5011         (_dl_allocate_static_tls): Likewise.
5012         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5013         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5014         to it.
5015         * elf/tst-tls16.c: New file.
5016         * elf/tst-tlsmod16a.c: New file.
5017         * elf/tst-tlsmod16b.c: New file.
5018         * elf/Makefile: Add rules to build and run tst-tls16.
5020 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5022         [BZ #5628]
5023         * bits/shm.h: Fix comment describing shmid_ds.
5024         * sysdeps/gnu/bits/shm.h: Likewise.
5025         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5026         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5027         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5028         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5029         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5030         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5031         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5032         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5033         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5035         [BZ #5607]
5036         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5037         prototypes.
5038         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5039         additional suffixes.
5040         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5041         Add optional functions mq_timedreceive and mq_timedsend.
5042         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5043         * conform/data/pthread.h-data: Fix prototype of
5044         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5045         * conform/data/semaphore.h-data: Allow time.h definitions.
5046         * conform/data/signal.h-data: Likewise.
5047         * conform/data/stdio.h-data: getw and putw are not required in v6.
5048         * conform/data/stdlib.h-data: Change setstate prototype.
5049         * conform/data/string.h-data: Fix strerror_r prototype.
5050         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5051         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5052         Fix readlink prototype.
5053         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5054         in6addr_loopback.
5055         * inet/netinet/in.h: Cleanup namespace.
5056         * posix/regex.h: Likewise.
5057         * resolv/netdb.h: Likewise.
5058         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5059         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5060         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5061         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5062         of names of in in6_addr.
5063         (default_precedence): Likewise.
5064         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5065         NULL definition.
5067 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5069         * conform/data/fmtmsg.h-data: Add missing allows.
5070         * conform/data/ftw.h-data: Likewise.
5071         * conform/data/inttypes.h-data: Likewise.
5072         * conform/data/math.h-data: Likewise.
5073         * conform/data/signal.h-data: Likewise.
5074         * conform/data/net/if.h-data: Likewise.
5075         * conform/data/netinet/in.h-data: Likewise.
5076         * conform/data/sys/socket.h-data: Likewise.
5078         [BZ #5614]
5079         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5080         (__strtok_r): Simplify.
5081         * string/tester.c (test_strtok_r): Add test case for futile search
5082         with single-character seach string.
5084 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5086         * po/ko.po: Update from translation team.
5088 2008-01-11  Andreas Jaeger  <aj@suse.de>
5090         [BZ #5600]
5091         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5092         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5093         kernel header.
5095 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5097         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5098         native interface lookup in all the relevant places.
5100 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5101             Ulrich Drepper  <drepper@redhat.com>
5103         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5104         field.  Use sockaddr_in6 for source_addr.
5105         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5106         (match_prefix): Likewise.
5107         (get_label): Likewise.
5108         (get_precedence): Likewise.
5109         (rfc3484_sort): Change to use indirect access to results array.
5110         Adjust to use of sockaddr_in6.  Replace service_order test with
5111         simple index comparison.
5112         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5113         service_order field.  Adjust qsort_t calls.  Access sorted result
5114         array indirectly through order array.
5115         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5116         * posix/tst-rfc3484-2.c: Likewise.
5117         * posix/tst-rfc3484-3.c: Likewise.
5119 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5121         [BZ #5541]
5122         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5123         pollfd structures.
5124         Patch by André Cruz.
5126         [BZ #5545]
5127         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5128         (clnt_spcreateerror): Likewise.
5130         [BZ #5553]
5131         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5132         (public_mEMALIGn): Likewise.
5133         Patch mostly by Daniel Jacobowitz.
5135 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5137         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5138         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5139         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5140         * stdlib/tst-makecontext2.c: New test.
5142 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5144         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5145         defined.
5146         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5147         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5148         transliteration hooks and REINIT_PARAMS afterwards.
5149         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5150         status.
5151         (REINIT_PARAMS): Define.
5152         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5153         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5154         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5155         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5156         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5157         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5158         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5159         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5160         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5161         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5162         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5163         * iconvdata/tst-iconv7.c: New test.
5165 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5167         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5169 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5171         [BZ #5112]
5172         * nscd/connections.c (restart): Fix condition.
5174 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5176         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5177         __ctype_toupper_loc): Add __THROW.
5179 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5181         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5182         recognition of interface family.
5184         * posix/getconf.c: Update copyright year.
5185         * nss/getent.c: Likewise.
5186         * iconv/iconvconfig.c: Likewise.
5187         * iconv/iconv_prog.c: Likewise.
5188         * elf/ldconfig.c: Likewise.
5189         * catgets/gencat.c: Likewise.
5190         * csu/version.c: Likewise.
5191         * elf/ldd.bash.in: Likewise.
5192         * elf/sprof.c (print_version): Likewise.
5193         * locale/programs/locale.c: Likewise.
5194         * locale/programs/localedef.c: Likewise.
5195         * nscd/nscd.c (print_version): Likewise.
5196         * debug/xtrace.sh: Likewise.
5197         * malloc/memusage.sh: Likewise.
5198         * malloc/mtrace.pl: Likewise.
5199         * debug/catchsegv.sh: Likewise.
5201 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5203         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5204         second lookup.
5206 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5208         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5209         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5211 2007-12-17  Roland McGrath  <roland@redhat.com>
5213         * inet/ether_line.c (ether_line): Remove unused variable.
5215 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5217         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5218         and winp.
5219         * login/openpty.c (openpty): Likewise.
5220         * login/pty.h (openpty, forkpty): Likewise.
5221         * manual/terminal.texi (openpty, forkpty): Likewise.
5223 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5225         * malloc/malloc.c (public_cALLOc): For arenas other than
5226         main_arena, count all bytes inside the mprotect_size range of the
5227         heap as uninitialized.
5229 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5231         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5232         executable stacks.
5234         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5235         mTRIm for all of them.
5236         (mTRIm): Additionally iterate over all free blocks and use madvise
5237         to free memory for all those blocks which contain at least one
5238         memory page.
5239         * malloc/tst-trim1.c: New file.
5240         * malloc/Makefile (tests): Add tst-trim1.
5242         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5244 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5246         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5247         First cast argument to long
5248         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5249         Return long.
5250         (__vdso_clock_gettime): Likewise.
5251         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5252         return long.
5254 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5256         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5257         * locale/nl_langinfo_l.c: Real implementation, copied from
5258         nl_langinfo.c.
5259         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5261 2007-12-01  Jim Meyering  <meyering@redhat.com>
5263         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5264         that would inhibit utf8-optimization of a regexp containing line-
5265         or buffer-anchors, e.g., `^', `$'.
5267 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5269         * time/bug-getdate1.c (do_test): Don't use century values which
5270         aren't valid on 32-bit systems.
5272 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5274         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5275         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5276         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5277         __strcat_g, __strncat_g): Add __asm__.
5279 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5281         [BZ #5477]
5282         * io/fchmodat.c: Fix typo in stub_warning use.
5283         Patch by Petr Salinger.
5285 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5287         * iconvdata/hp-thai8.c: New file.
5288         * iconvdata/Makefile: Add rules for hp-thai8.c.
5289         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5290         * iconvdata/gconv-modules: Likewise.
5292         [BZ #5464]
5293         * iconvdata/hp-greek8.c: New file.
5294         * iconvdata/Makefile: Add rules for hp-greek8.c.
5295         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5296         * iconvdata/gconv-modules: Likewise.
5298         [BZ #5463]
5299         * iconvdata/hp-turkish8.c: New file.
5300         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5301         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5302         * iconvdata/gconv-modules: Likewise.
5304         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5305         (shrink_heap): ... this new function.
5306         (heap_trim): Call shrink_heap instead of grow_heap.
5308         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5309         case don't call alloc_perturb.
5311 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5313         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5314         possible.
5315         * sysdeps/unix/sysv/linux/kernel-features.h
5316         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5317         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5319 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5321         [BZ #5424]
5322         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5323         * stdio-common/Makefile (tests): Add bug22.
5324         * stdio-common/bug22.c: New file.
5326         [BZ #5451]
5327         * time/getdate.c: Fix filling in default values.
5328         * time/bug-getdate1.c: New file.
5329         * time/Makefile: Add rules to build and run bug-getdate1.
5331         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5332         * iconvdata/ebcdic-es.c: Likewise.
5333         * iconvdata/ebcdic-es-a.c: Likewise.
5334         * iconvdata/ebcdic-uk.c: Likewise.
5335         * iconvdata/iso8859-16.c: Likewise.
5336         * iconvdata/viscii.c: Likewise.
5337         * iconvdata/iso8859-9e.c: Likewise.
5338         * iconvdata/Makefile: Adjust appropriately.
5340         [BZ #5428]
5341         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5342         __need_wint_t.
5344 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5346         [BZ #5427]
5347         * iconvdata/hp-roman9.c: New file.
5348         * iconvdata/Makefile: Add rules for hp-roman9.c.
5349         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5350         * iconvdata/gconv-modules: Likewise.
5352         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5353         * iconvdata/Makefile: Adjust appropriately.
5355         [BZ #5441]
5356         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5357         structure, it's allocated with alloca.
5358         * stdio-common/Makefile (tests): Add bug21.
5359         * stdio-common/bug21.c: New file.
5361 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5363         [BZ #5452]
5364         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5365         keyword for gcc's braced-groups.
5367 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5369         [BZ #5454]
5370         * inet/ether_line.c: Strip hostname of whitespaces.
5371         * inet/Makefile (tests): Add tst-ether_line.
5372         * inet/tst-ether_line.c: New file.
5374 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5376         [BZ #5439]
5377         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5379         [BZ #5435]
5380         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5382         * stdlib/tst-setcontext.c: Catch the case where the links gets
5383         messed up and we do not reach main again.
5385         * po/ca.po: Update from translation team.
5387 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5389         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5390         * posix/regex.h (REG_ENOSYS): Likewise.
5391         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5393 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5395         * nscd/nscd.h (MAX_STACK_USE): Define.
5396         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5397         (gc): Initialize stack_used based on allocation in prune_cache.
5398         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5399         Clear array before use.
5401         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5402         memory allocation failed.
5403         * nscd/hstcache.c (cache_addhst): Likewise.
5404         * nscd/grpcache.c (cache_addgr): Likewise.
5405         * nscd/servicescache.c (cache_addserv): Likewise.
5406         * nscd/pwdcache.c (cache_addpw): Likewise.
5407         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5409 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5412         and creat system calls.
5414         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5416 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5418         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5419         Add netiucv/iucv.h.
5420         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5421         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5422         protocol.
5423         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5424         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5425         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5427 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5429         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5430         strncat): Define as macros to avoid compile errors.
5432         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5433         creat entries.
5435 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5437         [BZ #5382]
5438         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5439         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5440         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5441         overflow it.
5442         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5444         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5445         Return zero in case the thread library is not NPTL.
5447         [BZ #5375]
5448         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5449         initializing interface list.
5451         [BZ #5378]
5452         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5453         use result of nss_getgrgid_r if nothing was found.  For other
5454         error return with a failure.
5455         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5457         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5458         macro name.
5460 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5462         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5463         (get_scope): For IPv4 scope, use scopes table.
5464         (fini): Free scopes table if necessary.
5465         (free_scopelist): New function.
5466         (scopecmp): New function.
5467         (gaiconf_init): Also handle scopev4 entries.
5468         * posix/tst-rfc3484.c (do_test): Initialize scopes.
5469         * posix/tst-rfc3484-2.c (do_test): Likewise.
5470         * posix/gai.conf: Document scopev4 defaults.
5471         * posix/Makefile (tests): Add tst-rfc3484-3.
5472         * posix/tst-rfc3484-3.c: New file.
5474         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5475         Teredo tunnels.
5476         * posix/gai.conf: Update for current default tables.
5478 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5480         * po/tr.po: Update from translation team.
5482 2007-11-18  Roland McGrath  <roland@frob.com>
5484         * manual/arith.texi (Remainder Functions): Spelling fix.
5485         From Shaun Silk <genix@mysoul.com.au>.
5487         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5489 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
5491         * po/zh_CN.po: Update from translation team.
5493         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5494         Add sys/signalfd.h and sys/eventfd.h.
5496 2007-11-15  Bruno Haible  <bruno@clisp.org>
5498         [BZ #5346]
5499         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5500         union.
5501         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5502         (DCIGETTEXT): Change the allocation of the 'search' variable so that
5503         it needs only fixed stack space. Delay the initialization of
5504         msgid_len until it is needed.
5506 2007-11-15  Andreas Jaeger  <aj@suse.de>
5508         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5509         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5511 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
5513         * po/ko.po: Update from translation team.
5515 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
5517         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5518         significantly.  The device type is also part of the ifinfomsg data.
5520         * po/sv.po: Update from translation team.
5521         * po/nl.po: Likewise.
5523         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5524         to wake up in 24 hours.
5526         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
5528 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
5530         * po/cs.po: Update from translation team.
5531         * po/pl.po: Likewise.
5533         * include/ifaddrs.h: Remove in6ai_temporary.
5534         (struct in6addrinfo): Add index element.
5535         Declare __check_native.
5536         * inet/Makefile (aux): Add check_native.
5537         * sysdeps/unix/sysv/linux/check_native.c: New file.
5538         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5539         IFA_F_TEMPORARY.  Pass back ifa_index.
5540         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5541         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
5542         call __check_native if necessary.
5543         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
5544         to sort addresses.  Pass information about the results.
5545         * posix/tst-rfc3484.c: Adjust for addition of index field and change
5546         of rfc3484_sort interface.
5547         * posix/tst-rfc3484-2.c: Likewise.
5549         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
5550         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5551         for _quicksort.
5552         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5553         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
5554         on as third parameter to compare function and _quicksort.
5555         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5556         to the compare function.
5557         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5558         * Versions.def: Add GLIBC_2.8 for libc.
5560         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5561         * posix/tst-rfc3484-2.c: Likewise.
5563         * include/kernel-features.h: Moved to...
5564         * sysdeps/mach/hurd/kernel-features.h: ...here.
5566 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5568         * sysdeps/i386/i586/memcpy_chk.S: New file.
5569         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5570         * sysdeps/i386/i586/memset_chk.S: Likewise.
5572 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5574         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5575         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5576         list of interfaces.  Also store prefix length.
5577         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5578         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5579         prefix if source and destination address are in the same subnet.
5580         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5581         Always look for matching record in in6ai list.
5582         Correct source_addr_len value for IPv6->IPv4 converted records.
5584 2007-11-11  Roland McGrath  <roland@frob.com>
5586         * include/kernel-features.h: New file.
5588 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5590         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5591         complications for 64-bit platforms.
5593         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5594         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5595         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5596         open64_2.
5597         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5598         entries.
5599         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5600         * sysdeps/wordsize-64/alphasort.c: New file.
5601         * sysdeps/wordsize-64/alphasort64.c: New file.
5602         * sysdeps/wordsize-64/fseeko.c: New file.
5603         * sysdeps/wordsize-64/fseeko64.c: New file.
5604         * sysdeps/wordsize-64/ftello.c: New file.
5605         * sysdeps/wordsize-64/ftello64.c: New file.
5606         * sysdeps/wordsize-64/ftw.c: New file.
5607         * sysdeps/wordsize-64/ftw64.c: New file.
5608         * sysdeps/wordsize-64/iofgetpos.c: New file.
5609         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5610         * sysdeps/wordsize-64/iofopen.c: New file.
5611         * sysdeps/wordsize-64/iofopen64.c: New file.
5612         * sysdeps/wordsize-64/iofsetpos.c: New file.
5613         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5614         * sysdeps/wordsize-64/lockf.c: New file.
5615         * sysdeps/wordsize-64/lockf64.c: New file.
5616         * sysdeps/wordsize-64/mkostemp.c: New file.
5617         * sysdeps/wordsize-64/mkostemp64.c: New file.
5618         * sysdeps/wordsize-64/mkstemp.c: New file.
5619         * sysdeps/wordsize-64/mkstemp64.c: New file.
5620         * sysdeps/wordsize-64/scandir.c: New file.
5621         * sysdeps/wordsize-64/scandir64.c: New file.
5622         * sysdeps/wordsize-64/tmpfile.c: New file.
5623         * sysdeps/wordsize-64/tmpfile64.c: New file.
5624         * sysdeps/wordsize-64/versionsort.c: New file.
5625         * sysdeps/wordsize-64/versionsort64.c: New file.
5626         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5627         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5628         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5629         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5630         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5631         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5632         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5633         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5634         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5635         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5636         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5637         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5639         * crypt/sha256-crypt.c: Fix a comment.
5640         * crypt/sha512-crypt.c: Likewise.
5642 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5644         * sysdeps/x86_64/memset.S: Add sfence after movnti.
5646 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
5648         [BZ #5277]
5649         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5650         because output buffer is too small break, don't loop.
5651         * iconvdata/Makefile (tests): Add bug-iconv6.
5652         * iconvdata/bug-iconv6.c: New file.
5654 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
5656         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5657         with size_t type.
5658         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5659         size_t.  Add casts where needed.
5661         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5662         old headers, don't call avc_has_perm if we don't have the
5663         permission information.
5665 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
5667         * elf/rtld.c (dl_main): Use the page size to find the map start.
5669 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
5671         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5672         Patch by Szymon Siwek <sls@poczta.wp.pl>.
5674         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5675         when the lookup call failed.
5677         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5678         Add prune_cond and wakeup_time.
5679         (CACHE_PRUNE_INTERNAL): Define.
5680         Update declarations of prune_cache and setup_thread.
5681         * nscd/connections.c (dbs): Update initializers.
5682         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5683         (nscd_init): Default number of threads is now 4.
5684         (invalidate_cache): Take lock before calling prune_cache.
5685         (handle_request): If SELinux forbids the request, say so.
5686         (readylist_cond): Use static initializer.
5687         (nscd_run_prune): New function.  Used only by pruning threads.
5688         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
5689         here.
5690         (fd_ready): Update nscd_run reference.
5691         (start_threads): No need to initialize readylist_cond.
5692         Start pruning threads separately.
5693         * nscd/nscd_setup_thread.c: Change return value type to int and always
5694         return 0.
5695         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5696         to int and return nonzero value if we can use the TID address hack.
5697         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5698         the database is later than the new entry's timeout, update the
5699         wakeup time and wake the cleanup thread.
5700         (prune_cache): Return seconds the next entry in the database is still
5701         valid.  Remove locking for pruning here.
5702         * nscd/nscd.conf: Document default number of threads.
5704 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
5706         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5707         stack is properly aligned for the target function.
5708         Correct unwind info.
5710         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5711         when using auditing libraries.
5713 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
5715         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5716         _nss_dns_getnetbyaddr2_r.
5717         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
5718         extra parameter to getanswer_r.
5719         (_nss_dns_getnetbyaddr_r): Now a wrapper around
5720         _nss_dns_getnetbyaddr2_r.
5722         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5723         gethstbynm3_r.
5724         * nscd/gethstbynm2_r.c: Remove.
5725         * nscd/gethstbynm3_r.c: New file.
5726         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5727         __gethostbyaddr_r.
5728         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
5729         __gethostbyaddr_r compatibility wrapper.
5730         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
5731         determining timeout of entry.
5732         (lookup): Take new parameter and pass it to __gethostbyname3_r and
5733         __gethostbyaddr2_r.
5734         (addhstbyX): Pass reference to variable for TTL to lookup and
5735         cache_addhst.
5736         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5737         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5738         and __nss_next2.  Remove __nss_services_lookup.
5739         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
5740         Add compat wrapper.
5741         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5742         __nss_next2.
5743         * nss/getXXent_r.c: Likewise.
5744         * nss/getnssent_r.c: Likewise.
5745         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
5746         does not exist in module, try the optional second name.
5747         (__nss_next2): New function.
5748         (__nss_next): Now wrapper around __nss_next2.
5749         * nss/nsswitch.h: Adjust __nss_lookup prototype.
5750         Declare __nss_next2.
5751         Adjust definition of db_lookup_function type.
5752         * nss/service-lookup.c: Define NO_COMPAT.
5753         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5754         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5755         * inet/ether_ntoh.c: Likewise.
5756         * sunrpc/netname.c: Likewise.
5757         * sunrpc/publickey.c: Likewise.
5758         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
5759         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5760         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5761         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5762         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5764         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5766         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5768 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
5770         [BZ #5204]
5771         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5772         * crypt/sha512c-test.c: Likewise.
5774         [BZ #5225]
5775         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5776         to keep track of end of %[ format string element.
5777         * stdio-common/Makefile (tests): Add bug20.
5778         * stdio-common/bug20.c: New file.
5780         [BZ #5222]
5781         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5782         path elements in counting mode.
5784 2007-10-27  Andreas Jaeger  <aj@suse.de>
5786         [BZ #5040]
5787         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5789         [BZ #3112]
5790         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5791         (__cleanup): Free shared library when exiting.
5792         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5793         (__cleanup): Free shared library when exiting.
5795 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5797         [BZ #2549]
5798         * math/libm-test.inc (check_float_internal): Support
5799         denormalized return.
5801 2007-10-23  Andreas Jaeger  <aj@suse.de>
5803         [BZ #5208]
5804         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5805         __LONG_LONG_PAIR to handle little endian byte order.
5806         Suggested by abhishekrai@google.com
5808 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
5810         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5812 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5814         * nscd/cache.c (prune_cache): Move test for modified file outside
5815         of locking.
5817 2007-10-21  Andreas Jaeger  <aj@suse.de>
5819         * manual/texinfo.tex: Update to latest version.
5821         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5823         * manual/arith.texi (Status bit operations): Fix formatting.
5825         * manual/errno.texi (Error Messages): Fix formatting.
5827         * manual/sysinfo.texi (System Parameters): Fix formatting.
5829         * manual/libc.texinfo: Update VERSION and UPDATED.
5831 2007-10-19  Roland McGrath  <roland@redhat.com>
5833         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5835 2007-10-06  David S. Miller  <davem@davemloft.net>
5837         * configure.in: Add sparcv9v2 and sparc64v2.
5838         * scripts/config.sub: Likewise.
5839         * configure: Regenerate.
5840         * elf/elf.h (HWCAP_SPARC_N2): New.
5841         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5842         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5843         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5844         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5845         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5846         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5847         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5849 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5851         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5852         even if the poll result indicates there is data to read.
5853         Patch by Jeff Moyer <jmoyer@redhat.com>.
5855 2007-10-18  Roland McGrath  <roland@redhat.com>
5857         * elf/elf.h (NT_PPC_VMX): New macro.
5859 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5861         * version.h (VERSION): Set to 2.7.90.
5863 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5865         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5866         weak_alias.
5868 2007-10-17  Roland McGrath  <roland@frob.com>
5870         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5871         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5873 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5875         * version.h (VERSION): Bump to 2.7.
5876         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5878         [BZ #5186]
5879         * time/tzset.c (__tz_convert): Don't force testing for a change of
5880         TZ if not called from localtime.  But then also see whether the
5881         file changed, in case __use_tzfile is set.
5883         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5884         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5885         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5887         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5889         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5890         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5892 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5894         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5895         and admin selects to be able to replace the gai.conf file, lock
5896         data structures around the qsort call.
5898 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5900         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5901         new memset.
5902         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5903         too high for the improvements.  Implement bzero unconditionally for
5904         use in libc.
5906 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5907             Jakub Jelinek  <jakub@redhat.com>
5909         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5910         even when time_t is 32-bit.
5911         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5912         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5913         always set after the search.
5915 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5917         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5918         unreachable code on 32-bit machines.
5920 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5922         [BZ #5184]
5923         * time/strftime_l.c: Include stdbool.h.
5924         (my_strftime): New wrapper, old function renamed to...
5925         (__strftime_internal): ... new function.  Add tzset_called
5926         argument, pass it down to recursive calls, don't call tzset ()
5927         if already true, set to true after call to tzset ().
5929 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5931         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5932         into account when copying TZ string.
5934 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5936         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5937         num_transition rather than num_transitions - 1.
5939 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5941         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5942         PIC indirect jump.
5944         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5945         a local label rather than HIDDEN_JUMPTARGET.
5947 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5949         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5950         (init_cacheinfo): Initialize it.
5951         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5952         Always define bzero.
5953         Remove non-glibc code.
5954         * sysdeps/x86_64/bzero.S: Make an empty file.
5956 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5958         * sysdeps/x86_64/cacheinfo.c
5959         (__x86_64_preferred_memory_instruction): New.
5960         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5962         * sysdeps/x86_64/memset.S: Rewrite.
5964 2007-10-15  Roland McGrath  <roland@redhat.com>
5966         * po/libc.pot: Regenerated.
5968 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5970         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5971         pointers.
5973         [BZ #3425]
5974         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5975         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5976         address record to T_A/T_AAAA requests.
5978 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5980         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5982         * posix/glob.c: Add some branch prediction throughout.
5984         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5985         read from nscd.
5987         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5988         service_order.
5989         (rfc3484_sort): Make sure that even if qsort doesn't support
5990         stable sorting out sorting here is stable by comparing service_order.
5991         (getaddrinfo): Initialize service_order.
5992         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5993         service_order field to sorting structure.
5994         * posix/tst-rfc3484-2.c (do_test): Likewise.
5996         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5997         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5998         __tzset_parse_tz and updating of daylight, timezone, tzname into
5999         update_vars.
6000         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6001         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6002         happens in __tz_compute.
6003         * time/tzfile.c (__tzfile_read): Also read TZ string.
6004         (find_transition): Fold into __tzfile_compute.
6005         (__tzfile_compute): For times beyond the last transition try to
6006         use the TZ string.
6007         * timezone/tst-timezone.c: Information in daylight and tzname does
6008         change for Asia/Tokyo timezone with more concrete information.
6009         Remove the test.
6011         * include/stdio.h: Add libc_hidden_proto for ftello.
6012         * libio/ftello.c: Add libc_hidden_def.
6014         [BZ #1140]
6015         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6016         on the specified time and not the last entries in the file.  Move
6017         code to determine tzname[] to...
6018         (find_transition): ...here.  Add ugly guess for times before the
6019         first transition.
6021 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6023         [BZ #3195]
6024         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6025         no entry.
6026         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6027         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6028         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6029         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6031         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6032         read mechanism when there are no group members and avoid no-op
6033         read syscall in this case.
6035         [BZ #3242]
6036         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6037         (__readall): If reading failed due to EAGAIN error wait a bit
6038         and possibly try again.
6039         (__readvall): Likewise.
6041 2007-10-13  Bruno Haible  <bruno@clisp.org>
6043         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6044         when we cannot recode the message.
6046 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6048         [BZ #4359]
6049         * libio/__freading.c (__freading): Don't return true for
6050         write-only streams.  For read/write streams, check whether we
6051         performed a read operation already.
6052         * libio/Makefile (tests): Add tst-ext2.
6053         * libio/tst-ext2.c: New file.
6055 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6057         * locale/programs/repertoire.c (repertoire_read): Always free
6058         memory for repertoire file name [Coverity CID 270].
6060         * elf/cache.c (save_aux_cache): Free memory allocated for
6061         temporary file name [Coverity CID 267].
6063 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6065         * misc/Makefile (headers): Add bits/error.h.
6067 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6069         * posix/fnmatch_loop.c: Take rule index returned as part of
6070         findidx return value into account when accessing weights.
6071         * posix/regcomp.c: Likewise.
6072         * posix/regexec.c: Likewise.
6074         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6075         (skip_to): Fix problems with parameter of elifdef/elifndef.
6077 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6079         * iconv/gconv_simple.c: Add some branch prediction.
6081 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6083         * locale/programs/ld-collate.c (collate_read): If ignore_content
6084         and nowtok is tok_define, eat any tok_eol tokens.
6086 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6088         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6089         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6091         * inet/netinet/in.h: Don't include bits/socket.h.
6092         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6093         macro.
6094         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6096 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6098         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6099         and tok_elifndef.
6100         * locale/programs/locfile-kw.gperf: Likewise.
6101         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6103 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6105         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6106         (__find_specwc): Change into __extern_always_inline function.
6107         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6108         (__parse_one_specmb): Remove ps argument.
6109         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6110         Adjust __find_specmb and __parse_one_specmb callers.
6111         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6112         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6113         Removed.
6114         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6115         caller.
6117 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6119         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6120         with some Pentium Ds.
6122 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6124         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6125         __read not read.
6126         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6127         __write not write.
6129 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6131         [BZ #181]
6132         * locale/C-time.c: Set week_1stday data to 19971201.
6133         * locale/programs/ld-time.c (time_finish): Default for
6134         first_workday is Monday.
6136         [BZ #2633]
6137         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6139         [BZ #5103]
6140         * posix/glob.c (glob): Recognize patterns starting \/.
6141         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6142         (main): Add test for pattern starting \/.
6144         * misc/error.h: Use __const instead of const.
6145         * misc/bits/error.h: Likewise.
6147 2007-10-07  Andreas Jaeger  <aj@suse.de>
6149         * include/bits/error.h: New file.
6151         * misc/bits/error.h (error_at_line): Fix prototype.
6153 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6155         [BZ #3924]
6156         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6157         more little bugs in creating the stack frame when pltexit has to
6158         be called.
6160         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6161         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6163         [BZ #4407]
6164         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6165         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6166         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6167         * math/libm-test.inc: Add test for this case.
6169         [BZ #5010]
6170         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6171         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6172         map service succeeded.
6173         (svc_is_mapped): New function.
6174         (svc_unregister): Use it before trying to unmap service.
6176 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6178         * timezone/zic.c: Update from tzcode2007h.
6180         [BZ #5063]
6181         * timezone/africa: Update from tzdata2007h.
6182         * timezone/antarctica: Likewise.
6183         * timezone/asia: Likewise.
6184         * timezone/australasia: Likewise.
6185         * timezone/europe: Likewise.
6186         * timezone/leapseconds: Likewise.
6187         * timezone/northamerica: Likewise.
6188         * timezone/southamerica: Likewise.
6189         * timzeone/zone.tab: Likewise.
6191         [BZ #5104]
6192         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6194         [BZ #5113]
6195         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6196         avoid warning with -Wconversion.
6197         (__strndup): Likewise.
6198         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6200         [BZ #5112]
6201         * nscd/connections.c (restart): Don't resync if database is
6202         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6204         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6205         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6207         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6208         evetnfd_read, eventfd_write.
6209         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6210         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6211         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6212         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6213         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6214         eventfd_write for GLIBC_2.7.
6216         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6217         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6218         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6219         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6221 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6223         * stdlib/msort.c: Include stdint.h.
6224         (struct msort_param): New type.
6225         (msort_with_tmp): Use struct msort_param pointer for unchanging
6226         parameters.  Add optimized handling for several common sizes
6227         and indirect sorting mode.
6228         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6229         sorting.
6230         Suggested by Belazougui Djamel .
6232         * stdlib/Makefile (tests): Add tst-qsort2.
6233         * stdlib/tst-qsort2.c: New test.
6235 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6237         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6238         for dup2 in case another thread races with the current one.  Retry
6239         in this case.
6241         * misc/error.h: Remove support for use outside of libc.  We have to
6242         include <features.h> now.  Include <bits/error.h> if possible.
6243         * misc/bits/error.h: New file.
6245 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6247         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6248         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6249         __extern_always_inline functions unconditionally, drop macros.
6251         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6252         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6253         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6255         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6256         add __artificial__ attribute.
6258 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6260         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6261         backward to forward direction.
6263         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6265         [BZ #645]
6266         * locale/programs/ld-collate.c (collate_finish): Compare against last
6267         used section which is known to have rules defined.
6268         (collate_read): After order_start, correctly record order of sections
6269         and queue sections up.
6271 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6273         [BZ #5071]
6274         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6275         the same number of pages.
6276         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6278         * locale/programs/ld-collate.c (collate_read): After initial copy
6279         statement, continue in state 0.
6281         * include/stdio_ext.h (__fsetlocking): Define as macro.
6283 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6285         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6286         of section order.
6288         * po/pt_BR.po: Fix typo.
6290 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6292         * iconvdata/Makefile (modules): Add ISO8859-9E.
6293         (distribute): Add iso8859-9e.c.
6294         (gen-8bit-gap-modules): Add iso8859-9e.
6295         * iconvdata/iso8859-9e.c: New file.
6296         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6297         * iconvdata/TESTS: Likewise.
6298         * iconvdata/tst-tables.sh: Likewise.
6300         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6302         * locale/iso-639.def: Add several new entries.
6304 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6306         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6307         void * pointers instead of struct link_map **.
6308         (_dl_scope_free): Change argument type to void *.
6309         * include/link.h (struct link_map): Change type of l_reldeps
6310         to struct link_map_reldeps, move l_reldepsact into that
6311         struct too.
6312         * elf/dl-deps.c: Include atomic.h.
6313         (_dl_map_object_deps): Only change l->l_initfini when it is
6314         fully populated, use _dl_scope_free for freeing it.  Optimize
6315         removal of libs from reldeps by using l_reserved flag, when
6316         some removal is needed, allocate a new list instead of
6317         reallocating and free the old with _dl_scope_free.  Adjust
6318         for l_reldeps and l_reldepsact changes.
6319         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6320         searching in l_initfini and l_reldeps without holding dl_load_lock.
6321         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6322         l_reldepsact changes.
6323         * elf/dl-close.c (_dl_close_worker): Likewise.
6324         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6326 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6328         * iconvdata/Makefile (modules): Add KOI8-RU.
6329         (distribute): Add koi8-ru.c.
6330         (gen-8bit-gap-modules): Add koi8-ru.
6331         * iconvdata/koi8-ru.c: New file.
6332         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6333         * iconvdata/TESTS: Likewise.
6334         * iconvdata/tst-tables.sh: Likewise.
6336         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6338 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6340         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6341         with __warning__/__error__ attributes.
6342         (__warnattr): Define.
6343         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6344         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6345         __warnattr.
6346         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6347         of __*_chk if compile time detectable overflow is found.
6348         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6349         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6350         with __warnattr.
6351         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6352         instead of __*_chk if compile time detectable overflow is found.
6353         (__gets_alias): Rename to...
6354         (__gets_warn): ... this.  Add __warnattr.
6355         (gets): Call __gets_warn instead of __gets_alias.
6356         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6357         aliases with __warnattr.
6358         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6359         time detectable overflow is found.
6360         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6361         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6362         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6363         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6364         __getdomainname_chk_warn): New aliases with __warnattr.
6365         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6366         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6367         __*_chk_warn instead of __*_chk if compile time detectable overflow
6368         is found.
6369         (__getgroups_chk): Rename argument to __listlen from listlen.
6370         (__getwd_alias): Rename to...
6371         (__getwd_warn): ... this.  Add __warnattr.
6372         (getwd): Call __getwd_warn instead of __getwd_alias.
6373         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6374         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6375         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6376         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6377         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6378         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6379         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6380         compile time detectable overflow is found.
6381         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6382         to use __*_chk or not.
6383         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6384         in comparisons which function should be called and in __*_chk*
6385         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6386         detectable overflow is found.
6387         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6388         __*_chk argument.
6389         * debug/tst-chk1.c (do_test): Add a few more tests.
6391 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6393         [BZ #5058]
6394         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6395         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6396         (_nl_unload_domain): Finalize conversions_lock.
6397         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6398         handling table of known conversions.
6400 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6402         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6403         close_not_cancel_no_status instead of close.
6405 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6407         [BZ #5028]
6408         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6409         nrules != 0 for multibyte chars.
6411 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6413         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6414         Provide better error message in case the type is unknown.
6416         [BZ #4963]
6417         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6418         * string/stratcliff.c: Make usable to test wide char functions.
6419         * wcsmbs/wcsatcliff.c: New file.
6420         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6422         [BZ #4972]
6423         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6424         (distribute): Add mac-centraleurope.c.
6425         (gen-8bit-gap-modules): Add mac-centraleurope.
6426         * iconvdata/mac-centraleurope.c: New file.
6427         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6428         * iconvdata/TESTS: Likewise.
6429         * iconvdata/tst-tables.sh: Likewise.
6431         [BZ #5043]
6432         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6434 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6436         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6437         from __x86_64_core_cache_size_half.
6438         (init_cacheinfo): Compute shared cache size for AMD processors with
6439         shared L3 correctly.
6440         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6441         name change.
6442         Patch in large parts by Evandro Menezes.
6444 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6446         * elf/dl-lookup.c (add_dependency): Handle failing memory
6447         allocation for dependency list.  Remove unnecessary check.
6449         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6450         open/close when determining source addresses.
6452         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6453         sha512-crypt, and sha512.
6454         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6455         (distribute): Add sha256.h and sha512.h.
6456         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6457         and call the appropriate code.
6458         * crypt/sha256-crypt.c: New file.
6459         * crypt/sha256.c: New file.
6460         * crypt/sha256.h: New file.
6461         * crypt/sha256c-test.c: New file.
6462         * crypt/sha256test.c: New file.
6463         * crypt/sha512-crypt.c: New file.
6464         * crypt/sha512.c: New file.
6465         * crypt/sha512.h: New file.
6466         * crypt/sha512c-test.c: New file.
6467         * crypt/sha512test.c: New file.
6469 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
6471         * misc/bits/syslog.h (syslog): Remove extraneous argument from
6472         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6473         __syslog_chk.
6475 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
6477         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6478         %as in fscanf format strings.
6480         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6481         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6482         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6483         Likewise.
6484         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6485         Likewise.
6487         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6488         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6489         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6490         * elf/dl-sym.c (do_sym): Likewise.
6491         * include/link.h (struct link_map): Add l_serial field.
6492         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6493         * elf/dl-lookup.c (add_dependency): Add flags argument.
6494         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6495         flags, use THREAD_GSCOPE_RESET_FLAG before and
6496         THREAD_GSCOPE_SET_FLAG after
6497         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6498         Don't dereference map until it has been found on some list.
6499         If map->l_serial changed, return -1.
6501 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
6503         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6504         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6505         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6506         libc_hidden_proto.
6507         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6508         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6509         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6510         add libc_hidden_proto.
6511         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6512         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6513         conformance requested.
6514         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6515         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6516         conformance requested.
6517         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6518         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6519         conformance requested.
6520         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6521         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6522         ISO C99 or POSIX conformance requested.
6523         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6524         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6525         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6526         and __isoc99_vsscanf@@GLIBC_2.7.
6527         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6528         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6529         (tests): Add scanf14.
6530         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6531         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6532         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6533         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6534         CFLAGS-isoc99_scanf.c): Add $(exceptions).
6535         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6536         from using internal headers.
6537         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6538         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6539         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6540         and __isoc99_vswscanf@@GLIBC_2.7.
6541         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6542         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6543         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6544         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6545         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6546         * stdio-common/isoc99_scanf.c: New file.
6547         * stdio-common/isoc99_vsscanf.c: New file.
6548         * stdio-common/isoc99_vscanf.c: New file.
6549         * stdio-common/isoc99_vfscanf.c: New file.
6550         * stdio-common/isoc99_fscanf.c: New file.
6551         * stdio-common/isoc99_sscanf.c: New file.
6552         * wcsmbs/isoc99_fwscanf.c: New file.
6553         * wcsmbs/isoc99_vswscanf.c: New file.
6554         * wcsmbs/isoc99_swscanf.c: New file.
6555         * wcsmbs/isoc99_wscanf.c: New file.
6556         * wcsmbs/isoc99_vwscanf.c: New file.
6557         * wcsmbs/isoc99_vfwscanf.c: New file.
6558         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6559         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6560         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6561         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6562         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6563         * stdio-common/scanf14.c: New test.
6564         * stdio-common/scanf15.c: New test.
6565         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6566         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6567         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6568         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6569         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6570         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6571         __nldbl___isoc99_scanf@@GLIBC_2.7,
6572         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6573         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6574         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6575         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6576         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6577         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6578         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6579         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6580         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6581         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6582         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6583         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6584         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6585         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6586         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6587         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6588         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6589         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6590         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6591         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6592         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6593         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6594         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6595         functions.
6596         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6597         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6598         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6599         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6600         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6601         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6602         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6603         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6604         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6605         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6606         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6607         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6609         * stdio-common/Makefile (tests): Add scanf13.
6610         (scanf13-ENV): New.
6611         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6612         m modifier followed by l.
6613         (STRING_ARG): Add width argument.
6614         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6615         <case L_('C')>: Handle %mlc and %mC.
6616         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6617         arguments.
6618         * stdio-common/scanf13.c: New test.
6620         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6621         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6623 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6625         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6626         type and __THROW marker of splice, vmsplice, and tee.
6627         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6628         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6629         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6630         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6631         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6632         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6633         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6634         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6635         as cancellation points.
6637 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
6639         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6640         parse more than three parts of the version number.
6642 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
6644         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6645         modifier.  Patch by Jakub Jelinek.
6647 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
6649         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6650         call_fallocate in misc subdir.
6651         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6652         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6653         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6654         instead of __fallocate64.
6655         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6657 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
6659         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6660         * rt/Makefile (headers): Add bits/mqueue2.h.
6661         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6662         optimizing with GCC and __va_arg_pack_len is defined.
6663         * rt/bits/mqueue2.h: New file.
6664         * rt/mq_open.c (__mq_open): Renamed from mq_open.
6665         (mq_open): New strong_alias.
6666         (__mq_open_2): New function.
6667         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6668         (mq_open): New strong_alias.
6669         (__mq_open_2): New function.
6670         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6671         * Versions.def (librt): Add GLIBC_2.7 version.
6672         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6673         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6675         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6676         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6677         is defined rather than when not C++.
6678         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6679         __openat64_alias): New redirects.
6680         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6681         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6682         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6683         (open, open64, openat, openat64): Rewrite as __extern_always_inline
6684         functions instead of function-like macros.
6686 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6688         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6689         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6690         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6692 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
6694         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6695         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6697 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
6699         * inet/tst-network.c: Increment ERRORS for failing tests.
6701 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
6703         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6704         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6705         implement as __extern_always_inline function.
6706         (vsyslog): Define as __extern_always_inline function unconditionally.
6707         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6708         When __va_arg_pack is defined, implement as __extern_always_inline
6709         functions.
6710         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6711         __extern_always_inline functions unconditionally.
6712         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6713         bits/stdio2.h will be included.
6714         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6715         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6716         implement as __extern_always_inline functions.
6717         (vswprintf, vwprintf, vfwprintf): Define as
6718         __extern_always_inline functions unconditionally.
6719         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6721 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
6723         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6724         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6725         attribute.
6726         * include/features.h (__USE_EXTERN_INLINES): Define only when
6727         __extern_inline is defined.
6728         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6729         is defined instead of when not __cplusplus.
6730         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6731         is defined instead of when not __cplusplus.
6732         * socket/sys/socket.h: Include bits/socket2.h when
6733         __extern_always_inline is defined instead of when not __cplusplus.
6734         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6735         is defined instead of when not __cplusplus.
6736         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6737         is defined instead of when not __cplusplus.
6738         * string/string.h: Include bits/string3.h when __extern_always_inline
6739         is defined instead of when not __cplusplus.
6740         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6741         is defined instead of when not __cplusplus.
6742         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6743         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6744         is not defined.
6745         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6746         defined __extern_always_inline instead of !defined __cplusplus.
6747         * libio/bits/stdio-ldbl.h: Likewise.
6748         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6749         * misc/bits/syslog.h (syslog): Don't define for C++.
6750         (vsyslog): Use __extern_always_inline function for C++ instead of
6751         a macro.
6752         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6753         whenever that macro is defined.
6754         (vprintf): Don't provide the inline for C++.
6755         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6756         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6757         define the macros for C++.
6758         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6759         __extern_always_inline functions for C++.
6760         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6761         stat64, lstat64, fstat64, fstatat64): Don't define if not
6762         __USE_EXTERN_INLINES.
6763         * wcsmbs/bits/wchar2.h: Fix #error message.
6764         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6765         (vswprintf, vwprintf, vfwprintf): Define using
6766         __extern_always_inline functions for C++.
6767         * string/bits/string3.h: Don't #undef macros if __cplusplus.
6768         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6769         strncpy, strcat, strncat): Define as __extern_always_inline
6770         functions instead of macros for C++.
6771         * math/bits/cmathcalls.h: Guard __extern_inline routines with
6772         defined __extern_inline.
6773         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6774         to __extern_inline whenever that macro is defined.
6775         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6776         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6777         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6778         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6779         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6780         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6781         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6782         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6783         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6784         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6785         prototypes.  Only provide __extern_inline routines if
6786         __USE_EXTERN_INLINES.
6787         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6788         tests.
6789         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6790         For now avoid some *printf tests in C++.  Skip all testing
6791         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6792         is not.
6793         * debug/tst-chk4.cc: New file.
6794         * debug/tst-chk5.cc: New file.
6795         * debug/tst-chk6.cc: New file.
6796         * debug/tst-lfschk4.cc: New file.
6797         * debug/tst-lfschk5.cc: New file.
6798         * debug/tst-lfschk6.cc: New file.
6799         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6800         prototypes in C++.
6801         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6802         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6803         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6805 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
6807         * po/cs.po: Update from translation team.
6809 2007-09-11  Roland McGrath  <roland@redhat.com>
6811         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6812         compiling.
6814 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6816         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6818 2007-09-05  Roland McGrath  <roland@redhat.com>
6820         * manual/signal.texi (Signaling Another Process): Typo fix.
6821         From Karl Berry <karl@freefriends.org>.
6823 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6825         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6826         zero if not defined.
6827         (make_request): Recognize optimistic addresses and treat them like
6828         deprecated addresses.
6829         Reported by Neil Horman <nhorman@redhat.com>.
6831 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6833         * nscd/connections.c (send_ro_fd): Also transfer file size.
6834         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6835         file size don't call fstat.
6837         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6838         ahead and map the file.  This should always be correct and we can
6839         catch problems later.
6841 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6843         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6844         prototypes.
6845         (__fread_alias, __fread_unlocked_alias): New aliases.
6846         (fread): New extern inline.
6847         (fread_unlocked): Likewise.  Undef macro before definition of
6848         the inline function.
6849         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6850         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6851         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6852         and __fread_unlocked_chk@@GLIBC_2.7.
6853         * debug/fread_chk.c: New file.
6854         * debug/fread_u_chk.c: New file.
6855         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6857 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6859         * sysdeps/unix/sysv/linux/syscalls.list
6860         (personality): Change caller to EXTRA.
6862 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6864         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6865         to keep gcc quiet.
6866         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6868         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6869         NDEBUG is defined.
6871         * Makerules: Use -p option with mkdir.
6873         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6874         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6875         (_xdr_directory_obj): Likewise.
6876         (xdr_entry_obj): Likewise.
6877         (xdr_group_obj): Likewise.
6878         (xdr_link_obj): Likewise.
6879         (xdr_table_obj): Likewise.
6880         (_xdr_nis_result): Likewise.
6881         (_xdr_ns_request): Likewise.
6882         (_xdr_ib_request): Likewise.
6883         (_xdr_nis_taglist): Likewise.
6884         (xdr_cback_data): Likewise.
6885         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6886         (xdr_ypresp_maplist): Likewise.
6888         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6890         * posix/regex_internal.h: Prevent some declarations and definitions
6891         to be seen when used in tests.
6893         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6894         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6896         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6898         * config.make.in (datarootdir): Add to shut up configure.
6900         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6901         associativity for fully-associative caches.
6903         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6904         requests.  Fill on more associativity values for L2.
6905         Patch mostly by Evandro Menezes.
6907 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6909         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6910         (_libc_vdso_platform_setup): Avoid using exported variable by using
6911         alias.
6913         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6915         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6916         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6917         defined.
6919 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6921         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6922         align stack for call if pltexit is to be used.
6924         [BZ #3924]
6925         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6926         align for function call in case pltexit has to be called later.
6928         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6929         implicit atomic operation when storing function pointer.
6930         (_dl_runtime_profile): Likewise.
6932 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6934         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6935         NIS_NOTFOUND.
6937 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6939         [BZ #4566]
6940         * string/strtok.c: Fix typo in comment.
6942         [BZ #4582]
6943         * debug/segfault.c: Fix typos in comments.
6945         [BZ #4588]
6946         * stdio-common/tempnam.c: Fix comment, it is not checked that
6947         TMPDIR points to a writable directory.
6949         [BZ #4726]
6950         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6951         memory allocated for the name server address.
6953         [BZ #4946]
6954         * nscd/connections.c (handle_request): Using sendfile always
6955         requires that mmap is used for the database.
6956         Patch by Petr Baudis <pasky@suse.cz>.
6958         [BZ #4905]
6959         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6960         suddenly has two or more addresses, ignore it and remove the old
6961         entry.
6963         [BZ #4814]
6964         * resolv/res_hconf.c: Prepare for compiling outside libc.
6965         * nscd/res_hconf.c: New file.
6966         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6967         the new file.
6968         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6969         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6971         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6973         [BZ #4925]
6974         * debug/pcprofiledump.c: Turn on internationalization by calling
6975         setlocale.  Patch mostly by Benno Schulenberg.
6977         [BZ #4936]
6978         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6979         the state.
6980         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6981         * iconvdata/bug-iconv5.c: New file.
6983 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6985         [BZ #4896]
6986         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6987         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6988         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6989         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6990         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6991         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6992         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6993         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6995 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6997         [BZ #4937]
6998         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6999         lookup loop.  Suggested by John Reiser.
7001 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7003         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7005 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7007         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7008         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7009         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7010         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7011         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7012         to...
7013         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7015 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7017         * po/nl.po: Update from translation team.
7019 2007-08-16  Andreas Jaeger  <aj@suse.de>
7021         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7022         Reported by Peter Festner <peter.festner@ewetel.net>.
7024 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7026         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7028 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7030         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7031         to check for undefined symbols.
7033         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7034         If the syscall fails, set errno to the actual returned error number
7035         rather than EINVAL.
7036         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7037         arguments are incorrect, set errno to EINVAL, if the syscall
7038         fails, set errno to the actual returned error number.
7040         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7041         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7043         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7044         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7045         file.
7046         (ASI_PNF, ASI_BLK_P): Don't define.
7047         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7048         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7049         file.
7050         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7051         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7052         file.
7054 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7056         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7057         FE_UNDERFLOW on Niagara CPUs.
7059         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7060         exceptions.
7062 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7064         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7065         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7066         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7067         flush should be used or not inside of the function.
7068         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7070         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7071         __thread_start): Use HIDDEN_JUMPTARGET.
7072         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7073         __thread_start): Likewise.
7074         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7076         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7077         Add libc_hidden_proto.
7078         (STRTOF): Add libc_hidden_proto.
7079         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7080         (strtold_l, wcstold_l): Use them as second argument for
7081         long_double_symbol.
7083 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7085         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7087 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7089         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7091 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7093         * po/bg.po: New file.  From the translation team.
7095 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7097         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7098         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7099         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7100         when each feature was introduced.
7102         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7103         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7104         (CHECK_HASH): New macro.
7105         (PREPARE_VERSION): Use it.
7107         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7108         prototype if not __ASSUME_PSELECT.
7109         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7110         prototype if not __ASSUME_PPOLL.
7112         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7114         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7115         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7116         is defined.
7118 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7120         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7121         (_libc_vdso_platform_setup): If vDSO is not available point
7122         __vdso_gettimeofday to the vsyscall.
7123         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7124         __vdso_gettimeofday instead of vsyscall.
7126 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7128         * nscd/servicescache.c: Include kernel-features.h.
7129         * nscd/gai.c: Likewise.
7130         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7131         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7132         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7133         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7134         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7135         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7136         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7137         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7138         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7140 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7142         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7143         and _dl_get_origin defines anymore.
7145         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7146         Build fix for systems which might lack POSIX timer support.
7148         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7149         (_libc_vdso_platform_setup): Mangle function pointers before storing
7150         them.
7151         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7152         Demangle vdso pointer before use.
7153         (INTERNAL_VSYSCALL): Likewise.
7155         * elf/cache.c (primes): Mark as const.
7156         Noted by Roland McGrath.
7158 2007-08-01  Andreas Jaeger  <aj@suse.de>
7159             Jakub Jelinek  <jakub@redhat.com>
7161         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7162         (options): Add option.
7163         (parse_opt): Handle option.
7164         (manual_link): Adjust process_file caller.  Call implicit_soname.
7165         (search_dir): Formatting.  Use and populate auxiliary cache.
7166         (main): Load and save auxiliary cache.
7167         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7168         stat64 from fstat64 to caller.
7169         (implicit_soname): New function.
7170         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7171         leave *soname as NULL.
7172         * elf/cache.c: Include libgen.h.
7173         (print_entry, print_cache, compare, save_cache, add_to_cache):
7174         Formatting and cleanups.
7175         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7176         aux_cache_file): New structures.
7177         (AUX_CACHEMAGIC): Define.
7178         (primes): New array.
7179         (aux_hash_size, aux_hash): New variables.
7180         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7181         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7182         load_aux_cache, save_aux_cache): New functions.
7183         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7184         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7185         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7186         (process_file): Adjust prototype.
7188 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7190         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7191         with __need_size_t.
7193 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7195         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7196         r_found_version structure as second parameter.
7197         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7198         (_dl_vdso_vsym): Change type of second parameter accordingly.
7199         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7200         (_libc_vdso_platform_setup): Adjust.
7201         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7202         (_libc_vdso_platform_setup): Likewise.
7204         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7205         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7206         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7207         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7208         * csu/libc-start.c: Pretty printing.
7209         Use VDSO_SETUP if defined.
7210         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7211         and let generic code call into _libc_vdso_platform_setup.
7212         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7213         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7214         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7215         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7216         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7217         for GLIBC_PRIVATE.
7218         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7219         (sysdep_rountines): Add dl-vdso.
7221         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7222         of routines.
7224         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7225         attribute_hidden to __vdso_gettimeofday prototype.
7227 2007-08-12  Roland McGrath  <roland@redhat.com>
7229         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7230         From: Karl Berry <karl@freefriends.org>.
7232 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7234         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7235         an atime update for the files we read.
7237 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7239         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7241         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7242         instead of mkstemp.
7244         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7245         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7246         * misc/mkostemp.c: New file.
7247         * misc/mkostemp64.c: New file.
7248         * stdlib/stdlib.h: Declare the new functions.
7249         * sysdeps/posix/tempname.c: Add new parameter which is added to
7250         the flags for open.  Remove __GT_BIGFILE handling.
7251         * stdio-common/tempname.c: Likewise.
7252         * include/stdio.h: Adjust __gen_tempname prototype.
7253         Renumber __GT_* constants.
7254         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7255         * misc/mkdtemp.c: Likewise.
7256         * misc/mkstemp.c: Likewise.
7257         * misc/mkstemp64.c: Likewise.
7258         * misc/mktemp.c: Likewise.
7259         * stdio-common/tempnam.c: Likewise.
7260         * stdio-common/tmpfile.c: Likewise.
7261         * stdio-common/tmpfile64.c: Likewise.
7262         * stdio-common/tmpnam.c: Likewise.
7263         * stdio-common/tmpnam_r.c: Likewise.
7265 2007-08-10  Roland McGrath  <roland@frob.com>
7267         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7268         New macros.
7269         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7270         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7272 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7274         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7275         possible.
7276         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7277         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7278         * nss/nss_files/files-have_o_cloexec.c: New file.
7280         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7281         available.
7283 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7285         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7286         ___new_wcstold_l): New weak aliases.
7287         (strtold_l, wcstold_l): Use them as second argument for
7288         long_double_symbol.
7290 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7292         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7293         register in test for error.
7295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7296         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7298         * po/sv.po: Update from translation team.
7300 2007-08-06  Roland McGrath  <roland@redhat.com>
7302         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7303         Remove __strto*_l inlines.
7304         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7305         * stdlib/strtod.c: Add libc_hidden_def.
7306         * stdlib/strtod_l.c: Likewise.
7307         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7308         for __new_strtold and __new_wcstold.
7309         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7310         __STRTOF, STRTOF.
7311         * stdlib/strtol.c: Add libc_hidden_def.
7312         * stdlib/strtol_l.c: Likewise.
7313         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7314         strtoq.
7316         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7318         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7319         * scripts/data/localplt-generic.data: ... here.
7320         * elf/Makefile (check-data): Get generic file if no other.
7321         ($(objpfx)check-localplt.out): Make target unconditional.
7323         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7324         Use ElfW(Nhdr).
7326 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7328         * po/zh_CN.po: Updated translation from translation team.
7330 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7333         Don't use CGOTSETUP and CGOTRESTORE macros.
7335 2007-08-04  Roland McGrath  <roland@redhat.com>
7337         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7339 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7341         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7342         __extension__ around the whole statement expression.
7344 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7346         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7347         elements during initialization.
7349         * po/pl.po: Updated translation from translation team.
7350         * po/tr.po: Likewise.
7351         * po/nl.po: Likewise.
7353 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7355         * rt/aio.h: Add __nonnull attributes.
7357 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7359         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7360         * stdlib/Makefile (tests): Add tst-strtod5.
7361         (tst-strtod5-ENV): New.
7362         * stdlib/tst-strtod5.c: New file.
7364         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7365         failed.
7366         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7367         on failure.
7369         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7370         allocated.
7372 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7374         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7375         numbers.
7377 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7379         * io/Makefile (aux): Add have_o_cloexec.
7380         * include/fcntl.h: Declare __have_o_cloexec.
7381         * io/have_o_cloexec.c: New file.
7382         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7383         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7384         fcntl call if not necessary.
7385         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7386         of local variable.
7388         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7389         Avoid memset, add explicit initialization.
7390         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7391         to the end and change into zero-sized array.
7392         Move lock member to fill a hole on 64-bit platforms.
7394         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7395         inline functions.
7396         * include/stdlib.h: Add __strto*_internal prototypes here.
7397         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7398         inline functions.
7399         * include/wchar.h: Add __wcsto*_internal prototypes.
7400         * sysdeps/generic/inttypes.h: No need to protect the declaration
7401         of the __strto*_internal and __wcsto*_internal members here.
7403         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7405 2007-08-02  Roland McGrath  <roland@redhat.com>
7407         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7408         $(inst_bindir)/getconf if possible.
7410         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7411         (generated): Add it.
7412         ($(inst_libexecdir)/getconf): Use it.
7414 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7416         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7417         /proc is faster and sufficient.  /sys is still needed for
7418         __get_nprocs_conf.
7420 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7422         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7423         syscall as __fallocate64.
7424         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7425         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7427 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7429         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7430         value.
7432         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7433         if off_t is different rank from size_t.
7435         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7436         uw_frame_state_for): Avoid type punning warnings.
7437         * sysdeps/generic/unwind-dw2-fde-glibc.c
7438         (_Unwind_IteratePhdrCallback): Likewise.
7439         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7440         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7441         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7442         pointers.
7444 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7446         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7447         total processors using sysfs.
7448         (__get_nprocs): Use sysfs to determine which processors are online.
7450 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7452         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7453         syscall arguments count.
7455         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7457 2007-07-30  Roland McGrath  <roland@redhat.com>
7459         * manual/libc.texinfo: Update copyrights, formatting magic, and
7460         @dircategory.  From Karl Berry <karl@freefriends.org>.
7462 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
7464         [BZ #4860]
7465         * io/Makefile (headers): Add bits/fcntl2.h.
7467         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7468         using gcc builtin.
7469         (__CPU_EQUAL_S): Likewise.
7471         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7472         (tests): Add tst-cpuset.
7473         * posix/sched_cpualloc.c: New file.
7474         * posix/sched_cpufree.c: New file.
7475         * posix/tst-cpuset.c: New file.
7476         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7477         GLIBC_2.7.
7478         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7479         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7480         macros.  Define CPU_*_S macros.
7482 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7484         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7485         entry.
7487         [BZ #4858]
7488         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7489         #.0g and value rounded to 1.0.
7490         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7492 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
7494         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7495         for int_frac_digits and frac_digits.
7497         * login/logout.c (logout): Avoid aliasing violation.
7498         * login/logwtmp.c (logwtmp): Likewise.
7500         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7502         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7503         to avoid warning.
7504         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7505         warning.
7506         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7507         warning.
7508         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7509         to avoid warnings.
7511         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7512         void **.
7513         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7515         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7516         char * to avoid warning.
7517         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7519         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7521         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7522         allocate_arrays): Cast second argument to charmap_find_symbol
7523         to char * to avoid warnings.
7525         * locale/programs/repertoire.c (repertoire_new_char): Change
7526         from_nr, to_nr and cnt to unsigned long, adjust printf format
7527         string.
7529         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7530         Cast second argument to new_element to char * to avoid warnings.
7532         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7534         * intl/gettextP.h (struct loaded_domain): Change plural to const
7535         struct expression *.
7536         * intl/plural-eval.c (plural_eval): Change first argument to
7537         const struct expression *.
7538         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7539         argument to const struct expression **.
7540         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7541         prototypes.
7542         * intl/loadmsgcat (_nl_unload_domain): Cast away const
7543         in call to __gettext_free_exp.
7545         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7546         unitialized wstring/wpattern var warnings.
7548         * posix/runtests.c (struct a_test): Make data field const char *.
7550         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7551         vars if not LDBL_MANT_DIG >= 106.
7553         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7555         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7556         __find_specmb to avoid warning.
7558         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7560         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7561         to avoid warnings.
7563         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7564         initializer.
7566         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7567         tv var when it will be actually used.
7569         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7570         to avoid warnings.
7572         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7573         char array resp. pointer.
7574         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7575         char array.
7576         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7577         to const unsigned char **.
7578         (ucs4_to_cns11643): Change second argument to unsigned char *.
7579         * iconvdata/euc-tw.c (BODY): Change endp type to
7580         const unsigned char *.
7581         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7582         to unsigned char *.
7583         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7584         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7585         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7586         types to unsigned char pointers/arrays instead of char.
7587         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7588         to unsigned char *.
7589         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7590         * iconvdata/jis0212.h: Include assert.h.
7591         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7592         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7593         of trying to handle that.
7594         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7595         shut up a warning.
7596         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7597         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7598         two dimensional const unsigned char arrays.
7599         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7600         Initialize endp to inptr to shut up a warning.
7602 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7604         [BZ #4772]
7605         * time/strptime_l.c (__strptime_internal): Silently ignore
7606         strftime modifiers and field width in recursive calls.
7608         * include/time.h (enum ptime_locale_status): Remove.
7609         (__strptime_internal): Remove decided and era_cnt arguments,
7610         add statep argument.
7611         * time/strptime_l.c (__strptime_internal): Remove decided
7612         and era_cnt arguments, add statep argument.  Don't recompute
7613         any fields in recursive calls, only update caller's tm
7614         and state, if recursive call fails, don't change tm nor
7615         any state.
7616         (get_alt_number): Adjust.
7617         (recursive): Adjust caller.
7618         (strptime): Likewise.
7619         * time/strptime.c (strptime): Likewise.
7621 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7623         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7624         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7625         if from and to charsets are the same.
7626         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7627         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7628         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7630 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7632         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7633         Don't define wint_t when __need_mbstate_t unless it
7634         is necessary.
7635         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7636         in the typedef if possible.
7637         * wctype/wctype.h (wint_t): Define by including
7638         wchar.h with __need_wint_t instead of including stddef.h
7639         with __need_wint_t and as fallback definining it ourselves.
7640         * iconv/gconv.h (__need_wint_t): Define before including
7641         wchar.h.
7642         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7643         or _GLIBCPP_USE_WCHAR_T.
7644         (__need_wchar_t): Don't define
7645         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7646         (__need_wint_t): Don't define before including stddef.h,
7647         define before including wchar.h only if _LIBC or
7648         _GLIBCPP_USE_WCHAR_T.
7649         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7650         * sysdeps/mach/hurd/_G_config.h: Likewise.
7651         * sysdeps/generic/_G_config.h: Likewise.
7652         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7653         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7654         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7655         if _LIBC or _GLIBCPP_USE_WCHAR_T.
7657 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7659         * sysdeps/posix/posix_fallocate64.c: Undefine
7660         __posix_fallocate64_l64 before alias handling.
7661         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7662         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7663         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7664         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7666         * io/tst-posix_fallocate.c: Include <fcntl.h>.
7668 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
7670         * locale/programs/ld-collate.c (atwc): New variable.
7671         (add_to_tablewc): New toplevel function, moved from collate_output.
7672         (collate_output): Remove add_to_tablewc nested function.
7674         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7675         (name_insert): New function.
7676         (write_output): Remove hash_table and hash_size vars and name_insert
7677         nested function.
7679 2007-07-24  Roland McGrath  <roland@redhat.com>
7681         * Makerules (install-others-programs-nosubdir): New target.
7682         (install-no-libc.a-nosubdir): Depend on it.
7684         * iconv/Makefile (install-others-programs): Set this instead of
7685         install-others.
7686         * login/Makefile (install-others-programs): Likewise.
7687         * posix/Makefile (install-others-programs): Likewise.
7689         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7690         dependencies.
7692 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
7694         * io/Makefile (tests): Add tst-posix_fallocate.
7695         * io/tst-posix_fallocate.c: New file.
7697         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7698         __ASSUME_FALLOCATE.
7700 2007-07-22  Roland McGrath  <roland@frob.com>
7702         * hurd/getdport.c: Add missing copyright year update.
7704         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7705         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7707 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
7709         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7711         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7712         O_CLOEXEC is needed.
7713         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7714         Avoid additional fcntl to set O_CLOEXEC if not needed.
7715         * nis/nss_compat/compat-initgroups.c: Likewise.
7716         * nis/nss_compat/compat-pwd.c: Likewise.
7717         * nis/nss_compat/compat-spwd.c: Likewise.
7719 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7721         [BZ #3665]
7722         * manual/errno.texi: Change ECANCELED value to 119.
7724         [BZ #4610]
7725         * mach/lock-intern.h: Include <sys/cdefs.h>.
7727         [BZ #4178]
7728         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7729         reading A.
7731         [BZ #4126]
7732         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7733         to __sigsuspend.
7735         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7737 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
7739         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7740         `__ASSEMBLER__'.
7741         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7743 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
7745         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7746         descriptor received from nscd.
7748         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7750         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7751         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7752         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7753         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7754         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7755         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7757 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7759         [BZ #4816]
7760         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7762         [BZ #4813]
7763         * login/forkpty.c (forkpty): Close master and slave fds on
7764         fork failure.  Patch by
7765         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7767 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
7769         * include/features.h (__USE_ISOC95): New define.
7770         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7771         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7772         for -std=iso9899:199409.
7773         * CONFORMANCE: Remove comments about unsupported AMD1.
7775 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7777         * sysdeps/ia64/sched_cpucount.c: New file.
7778         * sysdeps/powerpc/sched_cpucount.c: New file.
7780         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7781         __BEGIN_DECLS/__END_DECLS around the prototype.
7782         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
7783         pointer to const cpu_set_t.
7785         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7786         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7787         __need_size_t and include stddef.h.
7788         * sysvipc/sys/msg.h: Likewise.
7789         * posix/sched.h: Likewise.
7790         * hurd/hurd/signal.h (__need_size_t): Define.
7792         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7793         neither does signal.h in pedantic ISO C namespaces.  stdio.h
7794         no longer defines wint_t or wchar_t.
7796         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7797         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7798         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7799         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7800         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7801         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7802         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7803         * debug/printf_chk.c (__printf_chk): Likewise.
7804         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7805         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7807         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7808         Define.
7810         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7811         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7813 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7815         [BZ #4792]
7816         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7817         * malloc/malloc.h (realloc): Likewise.
7819         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7820         if one of proc_file_chain streams has that fileno.
7821         * stdio-common/Makefile (tests): Add tst-popen2.
7822         * stdio-common/tst-popen2.c: New test.
7824 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7826         * elf/ldconfig.c: Allow GPLv2 or any later version.
7827         * elf/readlib.c: Likewise.
7828         * elf/chroot_canon.c: Likewise.
7829         * elf/cache.c: Likewise.
7830         * nscd/mem.c: Likewise.
7831         * nscd/getpwuid_r.c: Likewise.
7832         * nscd/grpcache.c: Likewise.
7833         * nscd/aicache.c: Likewise.
7834         * nscd/getsrvbynm_r.c: Likewise.
7835         * nscd/nscd.c: Likewise.
7836         * nscd/servicescache.c: Likewise.
7837         * nscd/getsrvbypt_r.c: Likewise.
7838         * nscd/initgrcache.c: Likewise.
7839         * nscd/gethstbyad_r.c: Likewise.
7840         * nscd/gethstbynm2_r.c: Likewise.
7841         * nscd/getgrnam_r.c: Likewise.
7842         * nscd/nscd_setup_thread.c: Likewise.
7843         * nscd/getpwnam_r.c: Likewise.
7844         * nscd/gai.c: Likewise.
7845         * nscd/connections.c: Likewise.
7846         * nscd/dbg_log.c: Likewise.
7847         * nscd/cache.c: Likewise.
7848         * nscd/hstcache.c: Likewise.
7849         * nscd/nscd_conf.c: Likewise.
7850         * nscd/getgrgid_r.c: Likewise.
7851         * nscd/pwdcache.c: Likewise.
7852         * catgets/gencat.c: Likewise.
7853         * locale/programs/linereader.h: Likewise.
7854         * locale/programs/locarchive.c: Likewise.
7855         * locale/programs/ld-paper.c: Likewise.
7856         * locale/programs/locfile-kw.h: Likewise.
7857         * locale/programs/ld-address.c: Likewise.
7858         * locale/programs/xmalloc.c: Likewise.
7859         * locale/programs/ld-time.c: Likewise.
7860         * locale/programs/localedef.c: Likewise.
7861         * locale/programs/simple-hash.c: Likewise.
7862         * locale/programs/xstrdup.c: Likewise.
7863         * locale/programs/ld-numeric.c: Likewise.
7864         * locale/programs/locfile-kw.gperf: Likewise.
7865         * locale/programs/ld-collate.c: Likewise.
7866         * locale/programs/charmap-kw.gperf: Likewise.
7867         * locale/programs/charmap.h: Likewise.
7868         * locale/programs/charmap-kw.h: Likewise.
7869         * locale/programs/config.h: Likewise.
7870         * locale/programs/locfile.c: Likewise.
7871         * locale/programs/ld-ctype.c: Likewise.
7872         * locale/programs/charmap.c: Likewise.
7873         * locale/programs/ld-messages.c: Likewise.
7874         * locale/programs/repertoire.h: Likewise.
7875         * locale/programs/locale.c: Likewise.
7876         * locale/programs/ld-name.c: Likewise.
7877         * locale/programs/linereader.c: Likewise.
7878         * locale/programs/locfile.h: Likewise.
7879         * locale/programs/3level.h: Likewise.
7880         * locale/programs/ld-monetary.c: Likewise.
7881         * locale/programs/ld-measurement.c: Likewise.
7882         * locale/programs/charmap-dir.c: Likewise.
7883         * locale/programs/ld-identification.c: Likewise.
7884         * locale/programs/localedef.h: Likewise.
7885         * locale/programs/charmap-dir.h: Likewise.
7886         * locale/programs/repertoire.c: Likewise.
7887         * locale/programs/simple-hash.h: Likewise.
7888         * locale/programs/ld-telephone.c: Likewise.
7889         * locale/programs/locale-spec.c: Likewise.
7890         * locale/programs/locfile-token.h: Likewise.
7891         * posix/getconf.c: Likewise.
7892         * iconv/dummy-repertoire.c: Likewise.
7893         * iconv/iconv_charmap.c: Likewise.
7894         * iconv/iconvconfig.c: Likewise.
7895         * iconv/iconv_prog.c: Likewise.
7896         * malloc/memusagestat.c: Likewise.
7897         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7899 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7901         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7902         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7903         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7904         check for the first argument.
7906 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7908         [BZ #4775]
7909         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7910         (__tgmath_real_type): Fix if expr is const int or other const
7911         qualified integral type.
7912         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7913         expressions and handle const qualified arguments.
7914         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7915         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7916         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7917         statement expressions.
7918         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7919         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7920         (__TGMATH_UNARY_IMAG): Define.
7921         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7922         * math/Makefile (tests): Add test-tgmath2.
7923         (CFLAGS-test-tgmath2.c): Add.
7924         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7925         count_cfloat, count_cldouble): New variables.
7926         (NCCALLS): Define.
7927         (main): Check number of complex calls as well.
7928         (F(compile_test)): Add complex tests and tests with const qualified
7929         arguments.
7930         (y, z, ccount): Define.
7931         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7932         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7933         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7934         F(cproj)): New functions.
7935         * math/test-tgmath2.c: New test.
7937 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7939         [BZ #4776]
7940         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7941         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7942         instead output ".".
7943         * dlfcn/Makefile (distribute): Add glreflib3.c.
7944         (module-names): Add glreflib3.
7945         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7946         glreflib1.so.
7947         (LDFLAGS_glreflib3.so): New.
7948         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7949         glreflib1.so.
7950         * dlfcn/glreflib3.c: New file.
7952         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7953         returned -1, return NULL.
7954         * intl/explodename.c (_nl_explode_name): Return -1 if
7955         _nl_normalize_codeset failed.
7957 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7959         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7960         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7961         and avoid branch misspredicts for > 31 bytes memset case.
7962         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7963         Remove toc ref to __cache_line_size.
7965         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7966         to get ISA-V2.0 branch hints.
7967         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7968         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7969         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7970         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7971         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7972         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7973         Remove toc ref to __cache_line_size.
7975         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7976         Include math_ldbl_opt.h.
7978 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7980         [BZ #4773]
7981         * time/strptime_l.c (__strptime_internal): Implement greedy
7982         matching of weekday and month names.
7984 2007-07-09  Roland McGrath  <roland@redhat.com>
7986         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7987         (ELF_NOTE_ABI): Use it.
7988         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7990 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7992         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7993         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7995 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7997         [BZ #4745]
7998         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7999         in loop to look for conversion specifier to avoid testing of
8000         wrong errno value.
8001         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8002         * stdio-common/bug18.c: New file.
8003         * stdio-common/bug18a.c: New file.
8004         * stdio-common/bug19.c: New file.
8005         * stdio-common/bug19a.c: New file.
8007 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8009         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8010         running awk script.
8012 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8014         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8015         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8016         Return NULL if mmap failed instead of asserting it does not.
8017         (calloc): Check for integer overflow.
8019         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8020         than LONG_MAX / 10.
8022 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8024         [BZ #4702]
8025         * nis/nss-default.c: Include errno.h.
8026         (init): Preserve errno.
8028 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8030         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8032 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8034         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8036 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8038         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8040 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8042         * sysdeps/s390/dl-procinfo.c: New file.
8043         * sysdeps/s390/dl-procinfo.h: New file.
8044         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8046 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8048         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8049         in PT_NOTE segments with multiple notes.
8050         * elf/readelflib.c (process_elf_file): Likewise.
8052 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8054         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8055         ISO C compliant.
8057 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8059         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8061 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8063         * include/link.h: Don't include rtld-lowlevel.h.
8064         (struct link_map): Remove l_scope_lock.
8065         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8066         (_dl_scope_free_list): New field (variable) in _rtld_global.
8067         (DL_LOOKUP_SCOPE_LOCK): Remove.
8068         (_dl_scope_free): New prototype.
8069         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8070         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8071         (_dl_profile_fixup): Likewise.
8072         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8073         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8074         THREAD_GSCOPE_RESET_FLAG around it.
8075         * elf/dl-close.c (_dl_close_worker): Don't use
8076         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8077         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8078         scopes were queued or if l_scope_mem has been abandoned.
8079         * elf/dl-open.c (_dl_scope_free): New function.
8080         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8081         * elf/dl-support.c (_dl_scope_free_list): New variable.
8082         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8083         Remove DL_LOOKUP_SCOPE_LOCK handling.
8084         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8085         handling.
8086         * elf/dl-object.c (_dl_new_object): Don't use
8087         __rtld_mrlock_initialize.
8089 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8091         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8092         to fill in holes
8093         (rtld_global_ro): Likewise.
8095 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8097         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8098         Move PT_LOAD checking to...
8099         (_dl_addr_inside_object): ... here, new function.
8100         * elf/dl-sym.c (do_sym): If not l_contiguous,
8101         call _dl_addr_inside_object.
8102         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8103         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8104         * elf/dl-open.c (dl_open_worker): Likewise.
8105         (_dl_addr_inside_object): New function if IS_IN_rtld.
8106         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8107         holes are present or are PROT_NONE protected.
8108         * include/link.h (struct link_map): Add l_contiguous field.
8109         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8111 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8112             Tomas Janousek  <tjanouse@redhat.com>
8113             Ulrich Drepper  <drepper@redhat.com>
8115         [BZ #4647]
8116         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8117         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8118         socket.
8119         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8120         unused member a bitmap.
8121         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8122         servers are configured.
8124 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8126         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8128 2007-06-17  Andreas Schwab  <schwab@suse.de>
8130         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8132 2007-06-16  Andreas Jaeger  <aj@suse.de>
8134         [BZ #4125]
8135         * sysdeps/unix/sysv/linux/sys/ptrace.h
8136         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8137         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8138         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8139         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8140         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8141         Define.
8142         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8143         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8144         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8145         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8147 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8149         [BZ #4599]
8150         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8151         determining whether there are IPv4/IPv6 addresses, ignore loopback
8152         addresses.
8154 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8156         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8157         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8158         as the return type.  Change type of "r" variable to CMPtype.
8159         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8160         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8161         * soft-fp/gedf2.c (__gedf2): Likewise.
8162         * soft-fp/gesf2.c (__gesf2): Likewise.
8163         * soft-fp/getf2.c (__getf2): Likewise.
8164         * soft-fp/ledf2.c (__ledf2): Likewise.
8165         * soft-fp/lesf2.c (__lesf2): Likewise.
8166         * soft-fp/letf2.c (__letf2): Likewise.
8167         * soft-fp/unorddf2 (__unorddf2): Likewise.
8168         * soft-fp/unordsf2 (__unordsf2): Likewise.
8169         * soft-fp/unordtf2 (__unordtf2): Likewise.
8171 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8173         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8174         make sure gcc doesn't mess around with this.
8176 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8178         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8180 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8182         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8183         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8184         at most once per _dl_close_worker.
8186 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8188         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8189         __sched_cpucount as const.
8190         * posix/sched_cpucount.c: Adjust.
8192         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8193         instruction for counting bits.
8194         * sysdeps/x86_64/sched_cpucount.c: New file.
8196 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8198         * configure.in: Avoid variable named BASH.
8199         * config.make.in: Likewise.
8200         Patch in part by Mike Frysinger.
8202 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8204         [BZ #4586]
8205         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8206         pseudo-zeros as zero.
8207         * sysdeps/x86_64/ldbl2mpn.c: New file.
8208         * sysdeps/ia64/ldbl2mpn.c: New file.
8210 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8212         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8213         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8214         Remove unreachable code at the end.
8216 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8218         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8219         ldbl-128ibm in comment.
8220         (fpclassifyl): Correct classification of denormals.
8221         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8222         return value for MIN denormal. Rewrite using long double math too
8223         correctly handle denormals and canonicalize the results.
8225 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8227         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8228         (__mpn_construct_long_double): Fix conversion where result ought
8229         to be smaller than __LDBL_MIN__, or the low double should be
8230         denormal.  Fix decision where to negate low double - honor round
8231         to even rules.
8232         * stdio-common/tst-sprintf2.c: Include string.h.
8233         (COMPARE_LDBL): Define.
8234         (TEST): Also test whether a string hexadecimal float representation
8235         can be parsed back to the number.
8236         (main): Add a couple of further tests.
8238 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8240         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8241         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8242         is non-zero, but smaller than 2 * __DBL_MIN__.
8243         * stdio-common/tst-sprintf2.c: New test.
8244         * stdio-common/Makefile (tests): Add tst-sprintf2.
8246         * math/test-misc.c (main): Don't run last batch of tests with
8247         IBM long double format.
8249 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8251         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8252         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8253         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8254         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8255         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8256         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8257         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8258         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8259         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8260         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8263         New file.
8264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8265         New file.
8266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8267         New file.
8268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8269         New file.
8270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8271         New file.
8272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8274         New file.
8275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8276         New file.
8277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8278         New file.
8279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8280         New file.
8281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8282         New file.
8284 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8286         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8287         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8288         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8289         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8290         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8291         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8292         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8293         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8295 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8297         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8298         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8299         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8300         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8301         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8302         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8303         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8304         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8306 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8308         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8309         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8310         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8311         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8313 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8315         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8316         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8318 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8320         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8321         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8322         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8323         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8325 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8327         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8328         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8330 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8332         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8333         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8335         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8336         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8337         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8338         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8340 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8342         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8343         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8344         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8345         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8347 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8349         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8350         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8351         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8352         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8353         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8354         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8356 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8358         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8359         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8360         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8361         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8363 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8365         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8366         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8367         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8368         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8369         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8370         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8371         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8372         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8373         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8374         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8375         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8376         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8377         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8378         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8379         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8380         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8382 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8384         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8385         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8387 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8389         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8390         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8392 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8394         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8395         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8396         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8397         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8398         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8399         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8400         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8401         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8402         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8403         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8405 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8407         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8409 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8411         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8412         branch miss-predicts. Ensure that cache line crossing does not impact
8413         dispatch grouping.
8415 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8417         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8418         "../../powerpc32/power4/memcopy.h".
8419         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8420         "../../powerpc32/power4/wordcopy.c".
8422 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8424         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8425         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8426         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8427         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8428         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8429         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8431 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8433         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8435 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8437         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8438         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8439         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8440         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8441         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8442         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8443         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8444         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8446 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8448         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8450 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8452         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8453         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8454         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8455         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8456         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8457         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8458         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8460 2007-05-29  Roland McGrath  <roland@redhat.com>
8462         * po/Makefile (po-sed-cmd): New variable.
8463         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8465 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
8467         * crypt/md5-crypt.c: Fix comment.
8469         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8470         of crashing.  When this is the case or if the reply is malformed,
8471         don't try to close the new file descriptor since it does not
8472         exist.
8473         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8475 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
8477         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8478         if __NR_utimensat is not defined.
8480 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
8482         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8484 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
8486         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8487         (open): Fix comment typos.  Don't call __open_2 if flags
8488         is a compile time constant without O_CREAT.
8489         (__open64_2): Add nonnull attribute.
8490         (open64): Fix comment typos.  Don't call __open64_2 if flags
8491         is a compile time constant without O_CREAT.
8492         (__openat_2): Add nonnull attribute, fix nonnull attribute
8493         on redirect.
8494         (openat): Fix comment typos.  Don't call __openat_2 if flags
8495         is a compile time constant without O_CREAT.
8496         (__openat64_2): Add nonnull attribute, fix nonnull attribute
8497         on redirect.
8498         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
8499         is a compile time constant without O_CREAT.
8501 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
8503         * Makerules (sysd-rules): Define PTW for ptw-* files.
8504         * Versions: Define GLIBC_2.7 for libc.
8505         * include/stdio.h: Declare __fortify_fail.
8506         * debug/fortify_fail.c: New file.
8507         * debug/Makefile (routines): Add fortify_fail.
8508         * debug/chk_fail.c: Use __fortify_fail.
8509         * debug/stack_chk_fail.c: Likewise.
8510         * io/Versions: Export __open_2, __open64_2, __openat_2, and
8511         __openat64_2 for GLIBC_2.7.
8512         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8513         * io/open.c: Define *_2 variant of function which checks for O_CREAT
8514         and fails if necessary.
8515         * io/open64.c: Likewise.
8516         * io/openat.c: Likewise.
8517         * io/openat64.c: Likewise.
8518         * sysdeps/unix/sysv/linux/open64.c: Likewise.
8519         * sysdeps/unix/sysv/linux/openat.c: Likewise.
8520         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8521         * io/bits/fcntl2.h: New file.
8522         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8523         __openat64_2.
8524         * include/bits/fcntl2.h: New file.
8525         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8526         Add open_2.
8527         * sysdeps/unix/sysv/linux/open_2.c: New file.
8529 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
8531         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8532         as second parameter to handle_intel.
8534         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8535         the entry.
8537         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8538         handling to ...
8539         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
8540         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8541         cacheinfo.
8542         * sysdeps/x86_64/memcpy.S: Complete rewrite.
8543         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8544         Patch by Evandro Menezes <evandro.menezes@amd.com>.
8546         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8548 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
8550         [BZ #4525]
8551         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8552         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8553         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8555         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8557         [BZ #4514]
8558         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8559         reinitialize workend at the start of each do_positional format spec
8560         loop, free workstart before do_positional loops.
8561         (printf_unknown): Fix size of work_buffer.
8562         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8564         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8565         (public_sET_STATe): If ms->version < 3, put all chunks into
8566         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8567         chunks.
8569         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8570         * malloc/hooks.c: Likewise.
8571         * malloc/arena.c: Likewise.
8572         * malloc/malloc.c (do_check_malloc_state): Don't assert
8573         n_mmaps is not greater than n_mmaps_max.  This removes the need
8574         for the previous change.
8576         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8577         2007-05-07 commit.
8579 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8581         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8582         Define for kernel >= 2.6.22.
8584 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8586         * elf/dl-close.c (_dl_close_worker): When removing object from
8587         global scope, wait for all lookups to finish afterwards.
8588         * elf/dl-open.c (add_to_global): When global scope array must
8589         grow, allocate a new one and free old array only after all
8590         lookups finish.
8591         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8592         (_dl_lookup_symbol_x): Likewise.
8593         * elf/dl-support.c: Define _dl_wait_lookup_done.
8594         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8595         _dl_wait_lookup_done.
8597         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8598         not overlapping with arena.
8600         * malloc/mcheck.c (reallochook): If size==0, free the block.
8602         * rt/tst-shm.c: Use fstat64 instead of fstat.
8604         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8605         __NR_sync_file_range is not defined.
8607 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8609         Dummy files to prevent stub versions from being used.
8610         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8611         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8612         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8613         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8615         * version.h (VERSION): Set to 2.6.90.
8617 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8619         * version.h (VERSION): Define to 2.6.
8620         * include/features.h (__GLIBC_MINOR__): Define to 6.
8622         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8624         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8625         sizes.
8627 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8629         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8630         number of mmaps.  n_mmaps_max is the target.
8631         * malloc/hooks.c: Likewise.
8632         * malloc/arena.c: Likewise.
8634 2007-05-12  Andreas Jaeger  <aj@suse.de>
8636         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8637         getpid.
8639 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
8641         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8642         adding new variables.
8644         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8645         optimize.  Completely extend global scope array before making the
8646         new entries visible.
8648 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
8650         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8651         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8652         tst-getcpu.
8654         * include/link.h: Move l_version and l_nversion members around to
8655         fill gaps.
8657         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8659         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8660         (__sched_setaffinity_new): If syscall was successful and
8661         RESET_VGETCPU_CACHE is defined, use it before returning.
8662         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8664         * io/sys/stat.h: Make sure struct timespec is defined for
8665         __USE_ATFILE.
8667         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8668         UTIME_OMIT.
8669         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8670         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8671         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8672         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8673         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8674         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8675         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8676         * io/sys/stat.h: Declare utimensat, futimens.
8677         * io/utimensat.c: New file.
8678         * io/futimens.c: New file.
8679         * sysdeps/unix/sysv/linux/utimensat.c: New file.
8680         * sysdeps/unix/sysv/linux/futimens.c: New file.
8681         * io/Makefile (routines): Add utimensat, futimens.
8682         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8683         * sysdeps/unix/sysv/linux/lutimes.c: New file.
8684         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8685         available.
8687         * include/sys/cdefs.h: Redefine __nonnull so that test for
8688         incorrect parameters in the libc code itself are not omitted.
8690 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
8692         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8693         exception in addition to inexact when asked to raise only FE_INEXACT.
8695         [BZ #3427]
8696         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8697         in *envp.
8699 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8701         [BZ #4403]
8702         * string/strfry.c (strfry): Make result more random.
8704 2007-05-07  Richard Henderson  <rth@redhat.com>
8706         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8707         if __NO_LONG_DOUBLE_MATH.
8708         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8709         available in the compiler, add .arch directive to the assembly.
8711 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
8713         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8714         compat_symbol to GLIBC_2_1.
8715         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8716         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8717         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8718         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8719         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8720         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8721         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8722         libc, not libm.
8723         (__isnanl): New compat_symbol.
8725 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8726             Jakub Jelinek  <jakub@redhat.com>
8728         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8729         (new_heap): Initialize mprotect_size.
8730         (grow_heap): When growing, only mprotect from mprotect_size till
8731         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
8732         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8734 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
8735             Peter Bergner  <bergner@us.ibm.com>
8737         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8738         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
8739         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8740         * sysdeps/powerpc/fpu/fe_mask.c: New file.
8741         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8742         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8743         Call __fe_mask_env() if all FP exceptions disabled.
8744         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8745         from old FPSCR to new fenv to propagate DFP rounding modes.
8746         Call __fe_mask_env() if FP exceptions previously enabled.
8747         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8748         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
8749         transitioning from all exceptions disabled to any exception enabled
8750         or visa versa.
8751         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8752         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
8753         when transitioning from all exceptions disabled to any exception
8754         enabled or visa versa.
8755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8762 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8764         [BZ #4465]
8765         * posix/unistd.h: Remove __THROW from fdatasync.
8767 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
8769         [BZ #4465]
8770         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8772 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8774         * stdio-common/vfprintf.c (process_string_arg): Optimize
8775         ridiculous precision in wide char code printing multi-byte string.
8776         Reported by Jim Meyering <jim@meyering.net>.
8778         [BZ #4131]
8779         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8780         boundaries to work around systems with overlapping binary loading.
8781         Based on a patch by Suzuki <suzuki@in.ibm.com>.
8783 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
8785         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8786         __mbsnrtowcs after last change.
8788         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8789         (get_ident): Likewise.
8791 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8793         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8794         with setting the sticky bit.
8795         * math/test-misc.c (main): Add more truncation tests.
8797 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
8799         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8800         double in the function declaration.
8801         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8802         double in the function declaration.
8803         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8804         float in the function declaration.
8805         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8806         float in the function declaration.
8808         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8809         denormal operands.  Do not generate FP_EX_DENORM exception.
8810         (FP_UNPACK_RAW_EP): Ditto.
8811         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8812         undefined _FP_UNPACK_RAW_E.
8813         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8814         undefined _FP_UNPACK_RAW_EP.
8815         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8816         undefined _FP_PACK_RAW_E.
8817         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8818         undefined _FP_PACK_RAW_EP.
8820         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8821         _FP_FRAC_COPY_2.
8822         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8823         _FP_FRAC_COPY_4.
8825 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8826             Jakub Jelinek  <jakub@redhat.com>
8828         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8829         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8830         this case.
8831         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8833 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8835         * math/test-misc.c (main): Add tests for rounding long double
8836         values close to smallest double denormalized value to double.
8838 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8840         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8841         condition for truncating to 0.  Set sticky bit for such
8842         truncation.
8844 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8846         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8847         fixed length array for ignore.
8849 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8851         [BZ #4438]
8852         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8853         stack for large precisions.
8854         * stdio-common/test-vfprintf.c (main): Add test for large
8855         precision.
8857 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8859         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8860         for exponent 0.
8861         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8863         [BZ #4439]
8864         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8865         account in the size check.
8866         * resolv/tst-inet_ntop.c: New test.
8867         * resolv/Makefile (tests): Add tst-inet_ntop.
8869 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8870             Jakub Jelinek  <jakub@redhat.com>
8872         [BZ #4349]
8873         * malloc/malloc.c: Keep separate list for first blocks on the bin
8874         lists with a given size.  This helps skipping over list elements
8875         we know won't fit in two places.
8876         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8878 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8880         [BZ #4102]
8881         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8882         label to Teredo tunnel addresses 2001://32.
8884 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8886         * locale/programs/ld-collate.c (collate_read): Allow order_start
8887         after copy.
8889         * locale/programs/ld-collate.c (collate_read): Fix printing of
8890         error message.
8892         [BZ #3213]
8893         * locale/C-translit.h.in: Add entry for U2044.
8895         [BZ #4342]
8896         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8897         hexa-decimal floats without exponent.
8898         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8900 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8902         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8903         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8904         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8905         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8906         GLIBC_2.6.
8907         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8908         Add sched_getcpu.
8910 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8912         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8913         of 0 after the out_fail label.
8915 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8917         [BZ #4406]
8918         * iconv/gconv_charset.h (strip): Allow ':'.
8919         * iconv/iconv_open.c (iconv_open): Adjust comment.
8921 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8923         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8924         version.
8926 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8928         [BZ #4381]
8929         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8930         alignment of buffer and tmp_buffer.
8931         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8932         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8933         alignment of buffer.
8934         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8935         bigger than INT_MAX.
8936         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8937         h_errnop arguments.  Fail if buflen is too small.
8938         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8940 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8942         [BZ #4405]
8943         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8944         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8946 2007-04-22  Roland McGrath  <roland@redhat.com>
8948         * elf/elf.h (NT_PRXFPREG): New macro.
8950 2007-04-19  Andreas Jaeger  <aj@suse.de>
8952         [BZ #3905]
8953         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8954         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8955         Added.
8957 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8959         * include/sys/mman.h: Mark madvise hidden.
8960         * misc/madvise.c: Add libc_hidden_def.
8962 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8964         * nis/nis_domain_of.c (__nis_domain_of): New function.
8965         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8966         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8967         * nis/nis_call.c (rec_dirsearch): Likewise.
8968         (first_shoot): Likewise.  Remove search_parent_first argument.
8969         (struct nis_server_cache): Rename search_parent_first field
8970         to search_parent.
8971         (nis_server_cache_search, nis_server_cache_add): Rename
8972         search_parent_first argument to search_parent.
8973         (__nisfind_server): Likewise.  If search_parent, call
8974         __nis_domain_of.
8976 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8978         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8980 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8982         [BZ #4368]
8983         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8985 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8987         [BZ #4364]
8988         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8990 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8992         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8993         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8994         current number of locales in SUPPORTED.
8995         (create_archive): Initialize serial.
8996         (enlarge_archive): Preserve aliases rather than duplicating
8997         their locrecs.
8999 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9001         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9002         after _IO_un_link, not before it.
9004         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9005         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9006         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9008 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9010         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9011         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9012         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9013         Remove __THROW.
9014         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9015         _IO_file_xsgetn_maybe_mmap): Likewise.
9016         * libio/oldfileops.c (old_do_write): Likewise.
9017         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9018         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9019         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9020         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9021         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9022         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9023         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9024         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9025         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9026         _IO_file_underflow, _IO_file_underflow_mmap,
9027         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9028         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9029         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9030         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9031         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9032         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9033         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9034         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9035         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9036         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9037         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9038         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9039         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9040         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9041         _IO_adjust_column_internal, _IO_default_uflow_internal,
9042         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9043         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9044         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9045         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9046         _IO_file_close_it_internal, _IO_file_underflow_internal,
9047         _IO_file_overflow_internal, _IO_file_attach_internal,
9048         _IO_file_fopen_internal, _IO_file_sync_internal,
9049         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9050         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9051         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9052         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9053         _IO_seekpos_unlocked): Likewise.
9054         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9055         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9057 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9059         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9060         argument in xmalloc size computation.
9062 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9064         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9065         math_opt_barrier and math_force_eval macros.
9067 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9069         [BZ #3306]
9070         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9071         * sysdeps/i386/fpu/math_private.h: New file.
9072         * sysdeps/x86_64/fpu/math_private.h: New file.
9073         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9074         math_force_eval macros.  Use "+m" constraint on asm rather than
9075         "=m" and "m".
9076         * math/s_nextafter.c (__nextafter): Likewise.
9077         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9078         Likewise.
9079         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9080         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9081         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9082         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9083         math_opt_barrier and math_force_eval macros.
9084         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9085         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9086         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9087         (__nexttoward): Use math_opt_barrier and
9088         math_force_eval macros.  Use "+m" constraint on asm rather than
9089         "=m" and "m".  Only use asm to force double result if
9090         FLT_EVAL_METHOD is 2.
9091         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9092         (__nexttowardf): Use math_opt_barrier and
9093         math_force_eval macros.  Use "+m" constraint on asm rather than
9094         "=m" and "m".  Only use asm to force double result if
9095         FLT_EVAL_METHOD is not 0.
9096         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9097         (__nexttowardf): Use math_opt_barrier and
9098         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9099         x to float using asm.
9100         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9101         (__nldbl_nexttowardf): Use math_opt_barrier and
9102         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9103         x to float using asm.
9104         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9105         (__nexttowardf): Use math_opt_barrier and math_force_eval
9106         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9107         * math/bug-nextafter.c (zero, inf): New variables.
9108         (main): Add new tests.
9109         * math/bug-nexttoward.c (zero, inf): New variables.
9110         (main): Add new tests.
9112 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9114         [BZ #3427]
9115         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9116         exceptions both in SW and MXCSR.
9117         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9118         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9119         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9120         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9121         in MXCSR if SSE is available.
9122         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9123         and ldsodefs.h.
9124         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9125         Fix comment typo.
9126         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9127         Return 0 rather than 1.
9128         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9129         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9130         * math/test-fenv.c (feholdexcept_tests): New function.
9131         (main): Call it.
9133 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9135         [BZ #3427]
9136         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9137         in SW.
9139 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9141         [BZ #4344]
9142         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9143         Reported by David Anderson <davea42@earthlink.net>.
9145 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9147         * posix/sys/wait.h: Remove unnecessary forward declaration.
9149 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9151         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9152         with obj->do_servers after first_shoot.
9154 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9156         * posix/Makefile (routines): Add sched_cpucount.
9157         (tests): Add tst-cpucount.
9158         * posix/sched_cpucount.c: New file.
9159         * posix/tst-cpucount.c: New file.
9160         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9161         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9162         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9163         * posix/sched.h: Define CPU_COUNT.
9165 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9167         * posix/fnmatch.c (STRUCT): Define.
9168         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9169         * posix/fnmatch_loop.c (struct STRUCT): New type.
9170         (FCT): Add ends argument.  If ends != NULL and normal * is
9171         seen in the pattern, store current pattern and string pointers
9172         and return.  Adjust recursive calls.
9173         (EXT): Adjust FCT callers.
9174         (STRUCT): Undef at the end of the file.
9175         * posix/Makefile (tests): Add tst-fnmatch2.
9176         * posix/tst-fnmatch2.c: New test.
9178 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9180         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9181         and 1 on failure.
9183         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9184         Change last argument to unsigned int.
9186 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9188         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9190 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9192         * config.h.in (HAVE_LIBCAP): Add.
9193         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9194         sys/capabilities.h.
9195         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9196         free_caps.  Cast away const from 4th cap_set_flag argument.
9198 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9200         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9201         GLIBC_2.6.
9202         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9203         Add sync_file_range.
9204         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9206 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9208         * sysdeps/powerpc/bits/atomic.h
9209         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9210         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9211         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9212         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9213         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9214         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9215         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9216         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9217         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9218         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9219         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9220         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9221         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9222         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9223         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9224         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9225         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9226         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9227         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9228         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9230 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9232         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9233         (__cache_line_size): Define the variable here.  Add
9234         attribute_hidden, remove weak_extern.
9235         (__libc_start_main): Set __cache_line_size
9236         unconditionally.
9237         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9238         (__cache_line_size): Define the variable here.  Add
9239         attribute_hidden, remove weak_extern.
9240         (DL_PLATFORM_AUXV): Set __cache_line_size
9241         unconditionally.
9242         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9243         weak_extern, add attribute_hidden.
9244         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9245         defined in ld.so.
9246         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9247         definition.
9248         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9250 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9252         [BZ #4276]
9253         * timezone/africa: Update from tzdata2007d.
9254         * timezone/asia: Likewise.
9255         * timezone/australasia: Likewise.
9256         * timezone/backward: Likewise.
9257         * timezone/europe: Likewise.
9258         * timezone/iso3166.tab: Likewise.
9259         * timezone/leapseconds: Likewise.
9260         * timezone/northamerica: Likewise.
9261         * timezone/southamerica: Likewise.
9262         * timezone/zone.tab: Likewise.
9264         * timezone/private.h: Update from tzcode2007d.
9265         * timezone/zdump.c: Likewise.
9266         * timezone/zic.c: Likewise.
9268 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9270         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9271         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9272         variables.
9273         (nis_server_cache_search, nis_server_cache_add): New functions.
9274         (__nisfind_server): Use them.  Add dbp and flags argument, if
9275         call __nisbind_create.
9276         (__nisbind_create): Add server_used and current_ep arguments,
9277         only call __nis_findfastest if server_used is ~0.
9278         (__do_niscall2, __prepare_niscall): Adjust callers.
9279         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9280         ckey_cache_euid, ckey_cache_lock): New variables.
9281         (get_ckey): New function.
9282         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9283         __pmap_getnisport.  Save __pmap_getnisport result in
9284         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9285         key.
9286         * nis/nis_lookup.c (nis_lookup): Likewise.
9287         * nis/nis_table.c (nis_list): Likewise.
9288         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9289         prototypes.
9291         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9292         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9293         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9294         _nss_nisplus_getservbyport_r): Likewise.
9295         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9296         _nss_nisplus_getnetbyaddr_r): Likewise.
9297         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9298         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9299         _nss_nisplus_getntohost_r): Likewise.
9300         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9301         _nss_nisplus_getrpcbynumber_r): Likewise.
9303 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9305         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9306         * configure: Rebuilt.
9308         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9309         bit-fields.
9310         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9312 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9314         [BZ #2831]
9315         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9316         bit-fields.
9318 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9320         * nscd/gai.c: Include alloca.h.
9321         (__libc_use_alloca): Define.
9323 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9325         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9326         smaller scopes.
9327         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9328         (DL_DST_REQUIRED): Adjust user.
9330         * include/dlfcn.h (struct link_map): New forward decl.
9332         * inet/getnameinfo.c: Include stddef.h.
9333         (getnameinfo): Use offsetof.
9335         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9337         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9339         * string/strerror_l.c: Include stdlib.h.
9341         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9342         * config.make.in (gnu89-inline-CFLAGS): New variable.
9343         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9344         -std=gnu99.
9345         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9346         * argp/argp.h: Use it.
9347         * bits/mathinline.h: Likewise.
9348         * bits/sigset.h: Likewise.
9349         * bits/string.h: Likewise.
9350         * ctype/ctype.h: Likewise.
9351         * hurd/hurd.h: Likewise.
9352         * hurd/hurd/fd.h: Likewise.
9353         * hurd/hurd/port.h: Likewise.
9354         * hurd/hurd/signal.h: Likewise.
9355         * hurd/hurd/threadvar.h: Likewise.
9356         * hurd/hurd/userlink.h: Likewise.
9357         * io/sys/stat.h: Likewise.
9358         * libio/bits/stdio.h: Likewise.
9359         * libio/bits/stdio2.h: Likewise.
9360         * mach/lock-intern.h: Likewise.
9361         * mach/mach/mig_support.h: Likewise.
9362         * math/bits/cmathcalls.h: Likewise.
9363         * posix/bits/unistd.h: Likewise.
9364         * socket/bits/socket2.h: Likewise.
9365         * stdlib/bits/stdlib.h: Likewise.
9366         * stdlib/stdlib.h: Likewise.
9367         * string/argz.h: Likewise.
9368         * string/bits/string2.h: Likewise.
9369         * string/bits/string3.h: Likewise.
9370         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9371         * sysdeps/generic/inttypes.h: Likewise.
9372         * sysdeps/generic/machine-lock.h: Likewise.
9373         * sysdeps/generic/machine-sp.h: Likewise.
9374         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9375         * sysdeps/i386/i486/bits/string.h: Likewise.
9376         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9377         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9378         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9379         * sysdeps/mach/i386/machine-lock.h: Likewise.
9380         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9381         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9382         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9383         * sysdeps/s390/bits/string.h: Likewise.
9384         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9385         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9386         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9387         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9388         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9389         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9390         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9391         * wcsmbs/bits/wchar2.h: Likewise.
9392         * wcsmbs/wchar.h: Likewise.
9393         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9394         __extern_inline definition.
9396 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9398         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9399         NULL.
9401         [BZ #3919]
9402         * math/libm-test.inc (log_test): Test -Inf and NaN.
9403         (log10_test, log1p_test, log2_test): Test -Inf.
9404         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9405         FE_INVALID when argument is qNaN.
9406         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9407         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9408         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9409         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9410         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9411         testb $4, %ah and jump if non-zero.
9412         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9413         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9415         [BZ #4101]
9416         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9417         ancestors with the same depths.
9418         Patch by Niels Moeller <nisse@lysator.liu.se>.
9419         (filter_doc): Don't crash if argp is NULL.
9420         * argp/Makefile (tests): Add tst-argp2.
9421         * argp/tst-argp2.c: New test.
9423         [BZ #4130]
9424         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9425         open_not_cancel_2.
9426         (updwtmp_file): Likewise.
9428         [BZ #4181]
9429         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9430         (inet6_opt_append): Don't check extlen is big enough if extbuf
9431         is NULL.
9432         (inet6_opt_finish): Likewise.
9433         * inet/Makefile (tests): Add test-inet6_opt.
9434         * inet/test-inet6_opt.c: New test.
9436         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9437         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9438         NLMSG_ERR.  Instead use a page sized buffer.
9439         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9440         buffer.
9442 2007-03-14  Richard Henderson  <rth@redhat.com>
9444         * sysdeps/alpha/fpu/s_llround.c: New file.
9445         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9446         * sysdeps/alpha/fpu/s_lround.c: New file.
9447         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9448         * sysdeps/alpha/fpu/s_round.c: New file.
9449         * sysdeps/alpha/fpu/s_roundf.c: New file.
9450         * sysdeps/alpha/fpu/s_trunc.c: New file.
9451         * sysdeps/alpha/fpu/s_truncf.c: New file.
9453         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9454         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9455         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9456         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9457         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9458         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9460         * sysdeps/alpha/fpu/s_fmax.S: New file.
9461         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9462         * sysdeps/alpha/fpu/s_fmin.S: New file.
9463         * sysdeps/alpha/fpu/s_fminf.S: New file.
9464         * sysdeps/alpha/fpu/s_isnan.c: New file.
9465         * sysdeps/alpha/fpu/s_isnanf.c: New file.
9466         * sysdeps/alpha/fpu/s_llrint.c: New file.
9467         * sysdeps/alpha/fpu/s_llrintf.c: New file.
9468         * sysdeps/alpha/fpu/s_lrint.c: New file.
9469         * sysdeps/alpha/fpu/s_lrintf.c: New file.
9470         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9471         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9473         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9474         (__fdimf, fdimf, __fdim, fdim): Remove.
9475         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9476         (__isnanf, __isnan, __isnanl): New.
9478 2007-03-13  Richard Henderson  <rth@redhat.com>
9480         * sysdeps/ieee754/ldbl-128/Makefile: New file.
9482 2007-03-13  Richard Henderson  <rth@redhat.com>
9484         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9485         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9486         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9487         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9488         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9489         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9491 2007-03-13  Richard Henderson  <rth@redhat.com>
9493         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9494         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9495         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9496         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9497         Move to dl-auxv.h; initialize instead of extern weak.
9498         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9499         weak symbol.
9500         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9501         Extern instead of initialized.
9503 2007-03-13  Richard Henderson  <rth@redhat.com>
9505         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9506         __sigsuspend_nocancel.
9508 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
9510         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9511         172.16/12 address range.
9513 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
9515         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9516         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9517         message.
9519 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
9521         [BZ #4069]
9522         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9523         earlier.
9524         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9526         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9527         for x qNaN and y either +-inf or non-integer value.
9528         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9529         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9530         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9532 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
9534         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9535         from sysdep_headers.
9537 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
9539         * time/tzfile.c (find_transition): Instead of a linear search try to
9540         guess the transition index, use a linear search if the result is at
9541         most 10 transitions away from the guess or binary search otherwise.
9543 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
9545         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9546         memory reallocation.
9548 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
9550         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9551         and fix some typos.
9552         Optimize use of TOLOWER.
9554         [BZ #3325]
9555         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9556         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9557         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9559         [BZ #3458]
9560         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9561         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9563         [BZ #4076]
9564         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9565         (open_dir_stream): Likewise.
9566         * io/Makefile (tests): Add bug-ftw5.
9567         * io/bug-ftw5.c: New file.
9569         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9570         * nscd/servicescache.c (cache_addserv): Likewise.
9572         * nscd/grpcache.c (cache_addgr): In case a record changed on
9573         refresh, adjust key_copy.
9575         [BZ #4074]
9576         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9577         refresh, adjust key_copy.
9579         [BZ #4070]
9580         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9581         special cases.
9582         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9584 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9586         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9587         optimization.
9589         * stdio-common/vfscanf.c: Small cleanups throughout.
9591 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9593         [BZ #3325]
9594         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9595         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9596         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9597         Patch by Jared Casper <jaredcasper@gmail.com>.
9599         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9600         * sysdeps/unix/opendir.c: Likewise.
9601         * sysdeps/unix/readdir.c: Likewise.
9603         [BZ #2211]
9604         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9605         point numbers.
9606         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9608         * stdio-common/vfscanf.c: Fix problems in width accounting.
9609         * stdio-common/tst-sscanf.c (double_tests): New tests.
9610         (main): Hook them up.
9612         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9613         More simplifications of floating-point reader.
9615         * stdio-common/Makefile (tests): Add tst-swscanf.
9616         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9617         testing.
9618         * stdio-common/tst-swscanf.c: New file.
9620 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9622         [BZ #2633]
9623         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9624         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9625         Remove using for __jmp_buf_tag.
9626         * locale/locale.h (struct lconv): Also define in std namespace.
9627         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9629         [BZ #3842]
9630         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9631         using __libc_enable_secure.
9633         [BZ #3818]
9634         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9636         [BZ #3745]
9637         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9638         of names for ellipsises.
9640         [BZ #3348]
9641         * malloc/memusage.sh: Cleanups.
9642         * debug/xtrace.sh: Quoting and trap changes.
9644 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
9646         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9648         * locale/iso-3166.def: Update entry for Serbia.
9649         * locale/iso-4217.def: Define RSD, remove CSD.
9651         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9652         and 64-bit operations.
9654         [BZ #4040]
9655         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9656         16-bit operations.
9658         * nscd/nscd.c (parse_opt): One more conversion to use send instead
9659         of writev.
9661 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
9663         [BZ #3991]
9664         * assert/assert.h (assert): Simplify.
9665         (assert_perror): Likewise.
9666         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9668         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9669         reqdata.
9671         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9672         change: don't pass NULL in place of an integer.
9674 2007-02-02  Bruno Haible  <bruno@clisp.org>
9676         [BZ #3954]
9677         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9678         Add mapping for U+327E.
9679         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9680         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9681         mapping of 0xD9 0xE8.
9682         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9683         mapping of U+327E.
9684         Reported by Jungshik Shin <jungshik@google.com>.
9686         [BZ #3955]
9687         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9688         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9689         Reported by Jungshik Shin <jungshik@google.com>.
9691 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
9693         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9694         byte variants.
9696         [BZ #4040]
9697         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9698         byte variants.  Patch mostly be tom@tommay.net.
9700 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9702         [BZ #3996]
9703         * posix/glob.c (attribute_hidden): Define if not defined.
9704         (glob): Unescape dirname, filename or username when needed and not
9705         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9706         is NULL.  Handle unescaped [ in pattern without closing ].
9707         Don't pass GLOB_CHECK down to recursive glob for directories.
9708         (__glob_pattern_type): New function.
9709         (__glob_pattern_p): Implement using __glob_pattern_type.
9710         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9711         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9712         Remove unreachable code.
9713         * posix/globtest.sh: Add a couple of new tests.
9715 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
9717         * po/ru.po: Update from translation team.
9719 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
9721         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9722         to the list of i486+ CPUs.
9723         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9725 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
9727         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9728         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9729         references.
9731 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
9733         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9735         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9736         * resolv/res_mkquery.c: Define __res_nopt.
9737         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9738         try adding EDNS0 record.
9739         * resolv/res_send.c (send_dg): If request failed with FORMERR and
9740         EDNS0 record was send make sure we don't try it again.
9741         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9742         * include/resolv.h: Declare __res_nopt.
9744 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
9746         [BZ #3944]
9747         * time/strptime_l.c (__strptime_internal): Set have_mon for
9748         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
9749         have been computed from tm_yday and tm_year.  Don't crash
9750         in day_of_the_week or day_of_the_year if not have_mon
9751         and tm_mon contains bogus value.
9752         * time/Makefile (tests): Add tst-strptime3.
9753         * time/tst-strptime3.c: New test.
9755 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
9757         [BZ #3957]
9758         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9759         bit for RE_HAT_LISTS_NOT_NEWLINE.
9760         (build_charclass_op): Remove bogus comment.
9761         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9762         * posix/bug-regex27.c: New test.
9763         * posix/bug-regex28.c: New test.
9765 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
9767         * po/sv.po: Update from translation team.
9769 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
9771         * nscd/nscd_helper.c (open_socket): Minor size optimization.
9773 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
9775         * include/locale.h (__uselocale): Add libc_hidden_proto.
9776         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9778         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9779         gettimeofday.
9781 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
9783         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9784         returning.
9785         (PTR_DEMANGLE): Real definition now that it's not the same as
9786         PRT_MANGLE anymore.
9787         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9789         * string/strerror_l.c: New file.
9790         * string/Makefile (routines): Add strerror_l.
9791         * string/string.h: Declare strerror_l.
9792         * string/Versions: Export strerror_l for GLIBC_2.6.
9794 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
9796         * nscd/nscd_helper.c (open_socket): Now takes request type and key
9797         as parameter.  Construct request record.  Try sending request
9798         before the first poll use, it usually succeeds.  Adjust all
9799         callers.
9800         * nscd/nscd-client.h: Define MAXKEYLEN.
9801         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9803 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
9805         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9806         from return value.
9807         * nscd/nscd_helper.c: Include string.h.
9808         (__nscd_cache_search): Remove const qualifier from return value.
9809         On strict alignment architectures check hash entry and data head
9810         alignment.
9811         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9812         mmapped data during GC cycle contains garbage.  If
9813         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9814         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9815         dropped to 0.
9816         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9817         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9818         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9819         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9820         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9822 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9824         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9826 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9828         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9829         names not numbers in cfi_*.
9831 2007-01-26  Andreas Jaeger  <aj@suse.de>
9833         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9834         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9835         Correct values of PER_HPUX and PER_OSF4.
9837 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9839         * elf/dl-minimal.c: Undefine _itoa first.
9840         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9841         * malloc/mtrace.c: Revert last change.
9842         * posix/wordexp.c: Likewise.
9844 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9846         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9847         and __geode__ to the list of i486+ CPUs.
9848         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9850 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9852         * stdio-common/_itoa.c: Include <limits.h>.
9853         * stdio-common/_itowa.c: Likewise.
9855 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9857         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9858         platforms.
9859         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9860         64-bit platforms.
9861         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9862         possible.
9863         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9864         if possible.
9866         [BZ #3902]
9867         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9868         * stdio-common/Makefile (tests): Add bug17.
9869         * stdio-common/bug17.c: New file.
9871 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9873         * iconvdata/brf.c: New file.
9874         * iconvdata/testdata/BRF: New file.
9875         * iconvdata/testdata/BRF..UTF8: New file.
9876         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9877         * iconvdata/Makefile: Add rules to build BRF.
9878         * iconvdata/TESTS: Add BRF entry.
9879         * iconvdata/gconv-modules: Likewise.
9880         * iconvdata/tst-tables.sh: Likewise.
9882 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9884         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9885         type `long long int', not `long int'.
9886         (wcstoq): Likewise.
9888 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9890         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9891         of values on 64-bit platforms which are too large.
9893 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9894             Joe Kerian  <jkerian@us.us.ibm.com>
9896         [BZ #2749]
9897         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9898         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9899         (__copysignl): Use signbit() for comparison.
9900         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9901         SET_LDOUBLE_WORDS64.
9903         [BZ #2423, #2749]
9904         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9905         (__ceill): Remove calls to fegetround(), fesetround().
9906         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9907         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9908         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9910 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9912         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9914         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9916 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9918         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9919         demangle pointer.
9920         * csu/libc-start.c: Likewise.
9922 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9924         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9925         really work anyway.
9927 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9929         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9930         users.
9931         (handle_request): Remove unnecessary tests.
9933         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9935 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9937         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9938         workbits in semi-raw fraction.
9940         * math/test-misc.c: Add new tests.
9942 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9944         * math/basic-test.c: Include test-skeleton.c.
9945         (TEST_TRUNC): Define.
9946         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9947         (main): Rename to ...
9948         (do_test): ...this.  Run new tests.
9949         (TEST_FUNCTION): Define.
9951 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9952             Joe Kerian  <jkerian@us.us.ibm.com>
9954         [BZ #2749]
9955         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9956         handling for high words.
9957         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9958         and overflow for infinity.
9960 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9962         * nscd/connections.c (handle_request): Add a __builtin_expect.
9964         * nscd/connections.c (serv2db): Change type into structure which
9965         also says whether this is a request for data.  Renamed to
9966         servinfo.  All users changed.
9967         (handle_request): Much simpler test whether we should search the cache.
9969         * nscd/connections.c (handle_request): Fix thinko in selinux test
9970         invocation.
9972         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9973         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9974         it before getting dl_load_lock and then relock.
9975         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9976         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9977         case we unlocked the scope.
9978         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9979         _dl_lookup_symbol_x in case we locked the scope.
9980         (_dl_profile_fixup): Likewise.
9981         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9982         set DL_LOOKUP_SCOPE_LOCK.
9984 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9986         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9987         CFLAGS-getsrvbynpt_r.c.
9988         * nscd/getsrvbynm_r.c: New file.
9989         * nscd/getsrvbypt_r.c: New file.
9990         * nscd/nscd_getserv_r.c: New file.
9991         * nscd/servicescache.c: New file.
9992         * nscd/Makefile (routines): Add nscd_getserv_r.
9993         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9994         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9995         CFLAGS-getsrvbypt_r.c.
9996         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9997         table.  Add entries for services database.
9998         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9999         services database.
10000         (dbs): Add .reset_res and servdb initialization.
10001         (serv2db): Add entries for services database.
10002         (verify_persistent_db): Accept dbnr == servdb.
10003         (invalidate_cache): Rewrite database name recognition to use a table.
10004         Call res_init() if .reset_res is set for database.
10005         (handle_request): Add code to handle services database.
10006         * nscd/gai.c: Don't define __getservbyname_r.
10007         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10008         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10009         (serv_response_header): Define.
10010         (struct datahead): Add serv_response_header member.
10011         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10012         using table.
10013         * nscd/nscd.conf: Add entries for services database.
10014         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10015         Declare serv_iov_disabled.
10016         Declare addservbyname, readdservbyname, addservbyport, and
10017         readdservbyport.
10018         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10019         (find_db): Fix error message.
10020         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10021         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10022         * nscd/selinux.c (perms): Add entries for services database.
10023         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10024         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10026         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10027         * nscd/hstcache.c: Likewise.
10028         * nscd/pwdcache.c: Likewise.
10030         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10031         computation of keylen.
10033         * include/string.h: Only redefine strndupa if this is really for
10034         libc code.
10036 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10038         * nscd/nscd_gethst_r.c: Minor cleanups.
10040         * nscd/connections.c (handle_request): Check selinux permissions
10041         for all non-admin commands.
10043         * sysdeps/i386/i486/bits/atomic.h: Define
10044         atomic_compare_and_exchange_val_acq,
10045         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10046         using __sync_* built-ins for gcc >= 4.1.
10047         * sysdeps/x86_64/bits/atomic.h: Likewise.
10049         [BZ #3840]
10050         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10051         and .oS.d files.
10053 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10055         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10056         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10057         (do_test): Check errno and exit(0) if ENOSYS.
10059 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10061         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10062         thousands separators.
10063         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10064         * stdlib/tst-strtod4.c: New test.
10066         [BZ #3855]
10067         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10068         hexadecimal digit should accept just the initial 0.
10069         * stdlib/tst-strtod2.c (tests): New variable.
10070         (do_test): Run several tests rather than just one.
10072 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10074         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10075         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10077 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10079         * io/fts.c: Make sure fts_cur is always valid after return from
10080         fts_read.
10081         Patch by Miloslav Trmac <mitr@redhat.com>.
10083 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10085         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10086         (R_MIPS_NUM): Bump by 1.
10088 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10090         * posix/execvp.c: Include alloca.h.
10091         (allocate_scripts_argv): Renamed to...
10092         (scripts_argv): ... this.  Don't allocate buffer here nor count
10093         arguments.
10094         (execvp): Use alloca if possible.
10095         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10096         * posix/tst-vfork3.c: New test.
10098 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10100         * string/Makefile (tst-strxfrm2-ENV): Define.
10101         * stdlib/Makefile (tst-strtod3-ENV): Define.
10103 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10105         * posix/getconf.c: Update copyright year.
10106         * nss/getent.c: Likewise.
10107         * iconv/iconvconfig.c: Likewise.
10108         * iconv/iconv_prog.c: Likewise.
10109         * elf/ldconfig.c: Likewise.
10110         * catgets/gencat.c: Likewise.
10111         * csu/version.c: Likewise.
10112         * elf/ldd.bash.in: Likewise.
10113         * elf/sprof.c (print_version): Likewise.
10114         * locale/programs/locale.c: Likewise.
10115         * locale/programs/localedef.c: Likewise.
10116         * nscd/nscd.c (print_version): Likewise.
10117         * debug/xtrace.sh: Likewise.
10118         * malloc/memusage.sh: Likewise.
10119         * malloc/mtrace.pl: Likewise.
10120         * debug/catchsegv.sh: Likewise.
10122 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10124         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10125         attempts.
10127 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10129         * posix/wordexp.c: Remove some unnecessary tests.
10131 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10133         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10134         blacklist the group till after we look it up.
10136 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10138         * include/atomic.h (atomic_forced_read): New macro.
10140 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10142         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10144 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10146         * nss/getXXbyYY_r.c: Include atomic.h.
10147         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10148         add atomic_write_barrier () in between.
10150         * stdlib/Makefile (tests): Add tst-makecontext.
10151         * stdlib/tst-makecontext.c: New test.
10153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10154         (__makecontext): Don't realign uc_mcontext.uc_regs.
10156 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10158         * elf/dl-support.c: Include dl-procinfo.h.
10159         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10160         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10161         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10162         Define.
10163         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10164         hardcoded constants.
10165         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10166         PPC_PLATFORM_* macros for array designators.
10168 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10170         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10171         names to the beginning.
10172         (_dl_powerpc_platforms): Add "power6x".
10173         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10174         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10175         (_DL_PLATFORMS_COUNT): Increase.
10176         (_dl_string_platform): Handle power6x case.
10177         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10178         PPC_FEATURE_POWER6_EXT): Define.
10179         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10181 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10183         [BZ #3747]
10184         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10185         [-2^31 .. 2^31) range.
10186         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10187         targets.
10188         * stdlib/tst-rand48-2.c: New test.
10189         * stdlib/Makefile (tests): Add tst-rand48-2.
10191 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10193         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10195 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10197         * misc/tst-pselect.c (do_test): Make sure the helper process is
10198         terminating when the test is aborted.
10200 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10202         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10203         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10204         Handle relatime mount option.
10206         [BZ #2337]
10207         * libio/Makefile (tests): Add tst-setvbuf1.
10208         * libio/tst-setvbuf1.c: New file.
10210 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10212         [BZ #2337]
10213         * libio/genops.c (__uflow): Fix a typo.
10214         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10215         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10216         the narrow buffer size.
10218 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10220         [BZ #2337]
10221         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10222         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10223         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10224         in _flags.
10225         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10226         _IO_wstr_finish): Likewise.
10227         * libio/wmemstream.c (open_wmemstream): Likewise.
10228         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10229         even for wide streams.
10231 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10234         kernel-features.h.
10236 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10238         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10239         separators also if no non-zero digits found.
10240         * stdlib/Makefile (tests): Add tst-strtod3.
10242 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10244         [BZ #3632]
10245         * include/features.h: Fix comment about default value for
10246         _POSIX_C_SOURCE.
10248         [BZ #3664]
10249         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10250         empty parsed strings.
10251         * stdlib/Makefile (tests): Add tst-strtod2.
10252         * stdlib/tst-strtod2.c: New file.
10254         [BZ #3673]
10255         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10256         computation.
10257         * stdlib/Makefile (tests): Add tst-atof2.
10258         * stdlib/tst-atof2.c: New file.
10260         [BZ #3674]
10261         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10262         correctly if removing trailing zero of hex-float.
10263         * stdlib/Makefile (tests): Add tst-atof1.
10264         * stdlib/tst-atof1.c: New file.
10266 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10268         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10269         Start searching for next comma at p rather than rest.
10270         * misc/Makefile (tests): Add tst-mntent2.
10271         * misc/tst-mntent2.c: New test.
10273         * misc/getusershell.c (initshells): Check for integer overflows.
10274         Make strings buffer one bigger as fgets always succeeds when second
10275         argument is 1.  Don't use calloc for shells array.  Disallow
10276         / as shell.
10278 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10280         * malloc/memusage.c: Handle realloc with new size of zero and
10281         non-NULL pointer correctly.
10282         (me): Really write first record twice.
10283         (struct entry): Make format bi-arch safe.
10284         (dest): Write out more realloc statistics.
10285         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10287 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10289         * nis/nis_subr.c (nis_getnames): Revert last change.
10291 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10293         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10294         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10295         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10296         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10297         ENOTTY.
10298         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10299         * io/tst-ttyname_r.c: New test.
10301 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10303         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10305 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10307         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10308         jump table entries.
10310 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10312         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10313         `clone' function to ensure proper unwinding stop of gdb.
10314         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10316 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10318         * nscd/nscd.init: Remove obsolete and commented-out -S option
10319         handling.
10321 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10323         [BZ #3514]
10324         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10326         [BZ #3515]
10327         * manual/string.texi (strtok): Remove duplicate paragraph.
10329 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10331         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10332         libgcc not supporting `rflags' unwinding (register # >= 17).
10334 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10336         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10337         succeeded.
10339 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10340             Jakub Jelinek  <jakub@redhat.com>
10341             Jan Kratochvil  <jan.kratochvil@redhat.com>
10343         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10344         unwind information.
10345         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10346         'restore_rt' even in the 'signal' directory.
10347         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10349 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10351         [BZ #3559]
10352         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10353         malloc crashed.  Don't allocate memory unnecessarily in each
10354         loop.
10356 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10358         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10360 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10362         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10364 2006-11-18  Bruno Haible  <bruno@clisp.org>
10366         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10367         __sysconf only after having tried to call getgroups32.
10369 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10371         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10372         addresses for IPv4 queries if they can be mapped.
10374 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10376         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10377         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10378         (signmask): Add .size directive.
10379         (othermask): Add .type directive.
10381 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10383         * po/nl.po: Update from translation team.
10385         * timezone/zdump.c: Redo fix for BZ #3137.
10387 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10389         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10390         to first_unused after parsing :include: file.
10392 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10394         * timezone/africa: Update from tzdata2006o.
10395         * timezone/antarctica: Likewise.
10396         * timezone/asia: Likewise.
10397         * timezone/australasia: Likewise.
10398         * timezone/backward: Likewise.
10399         * timezone/europe: Likewise.
10400         * timezone/iso3166.tab: Likewise.
10401         * timezone/northamerica: Likewise.
10402         * timezone/southamerica: Likewise.
10403         * timezone/zone.tab: Likewise.
10405         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10406         on machines with 64-bit time_t.
10408         * timezone/checktab.awk: Update from tzcode2006o.
10409         * timezone/ialloc.c: Likewise.
10410         * timezone/private.h: Likewise.
10411         * timezone/scheck.c: Likewise.
10412         * timezone/tzfile.h: Likewise.
10413         * timezone/tzselect.ksh: Likewise.
10414         * timezone/zdump.c: Likewise.
10415         * timezone/zic.c: Likewise.
10417         [BZ #3483]
10418         * elf/ldconfig.c (main): Call setlocale and textdomain.
10419         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10421         [BZ #3480]
10422         * manual/argp.texi: Fix typos.
10423         * manual/charset.texi: Likewise.
10424         * manual/errno.texi: Likewise.
10425         * manual/filesys.texi: Likewise.
10426         * manual/lang.texi: Likewise.
10427         * manual/maint.texi: Likewise.
10428         * manual/memory.texi: Likewise.
10429         * manual/message.texi: Likewise.
10430         * manual/resource.texi: Likewise.
10431         * manual/search.texi: Likewise.
10432         * manual/signal.texi: Likewise.
10433         * manual/startup.texi: Likewise.
10434         * manual/stdio.texi: Likewise.
10435         * manual/sysinfo.texi: Likewise.
10436         * manual/syslog.texi: Likewise.
10437         * manual/time.texi: Likewise.
10438         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10440         [BZ #3465]
10441         * sunrpc/clnt_raw.c: Minimal message improvements.
10442         * sunrpc/pm_getmaps.c: Likewise.
10443         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10444         * nis/nis_print_group_entry.c: Likewise.
10445         * locale/programs/repertoire.c: Likewise.
10446         * locale/programs/charmap.c: Likewise.
10447         * malloc/memusage.sh: Likewise.
10448         * elf/dl-deps.c: Likewise.
10449         * locale/programs/ld-collate.c: Likewise.
10450         * libio/vswprintf.c: Likewise.
10451         * malloc/memusagestat.c: Likewise.
10452         * sunrpc/auth_unix.c: Likewise.
10453         * sunrpc/rpc_main.c: Likewise.
10454         * nscd/cache.c: Likewise.
10455         * locale/programs/repertoire.c: Unify output messages.
10456         * locale/programs/charmap.c: Likewise.
10457         * locale/programs/ld-ctype.c: Likewise.
10458         * locale/programs/ld-monetary.c: Likewise.
10459         * locale/programs/ld-numeric.c: Likewise.
10460         * locale/programs/ld-time.c: Likewise.
10461         * elf/ldconfig.c: Likewise.
10462         * nscd/selinux.c: Likewise.
10463         * elf/cache.c: Likewise.
10464         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10466         [BZ #3451]
10467         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10468         change atomic.
10469         (ceil): Likewise.
10471 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10473         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10474         if N is one bigger than return value.
10475         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10476         and l1 last arguments, if buf is defined, verify the return value
10477         equals to strlen (buf) and verify no byte beyond passed length
10478         is modified.
10480 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10482         * po/sv.po: Update from translation team.
10484 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10486         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10487         noinline attribute.
10489 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10491         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10492         noinline attribute.
10494         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10495         Use __new_sys_siglist instead of _sys_siglist_internal as
10496         second macro argument.
10497         (_old_sys_siglist): Use declare_symbol_alias macro instead of
10498         strong_alias.
10500 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10502         [BZ #3493]
10503         * posix/unistd.h (sysconf): Remove const attribute.
10505         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10506         temporary or deprecated addresses.
10507         Patch by Sridhar Samudrala <sri@us.ibm.com>.
10509         * string/Makefile (tests): Add tst-strxfrm2.
10510         * string/tst-strxfrm2.c: New file.
10512 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
10514         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10515         rather than r->r_brk.
10517 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
10519         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10520         optimization even if needed > n.
10522         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10523         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10524         return false, otherwise return true.
10525         (cache_rpath): Return decompose_rpath return value.
10527 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
10529         * include/libc-symbols.h (declare_symbol): Rename to...
10530         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
10531         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10532         .size directive.
10533         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10534         changes.
10535         * sysdeps/gnu/siglist.c: Likewise.
10537 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
10539         * sysdeps/powerpc/fpu/bits/mathinline.h
10540         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10541         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
10543 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
10545         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10546         Update handling of cache descriptor 0x49 for new models.
10547         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10548         Likewise.
10550 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
10552         * malloc/memusage.c (dest): Reset not_me back to false after
10553         printing statistics.
10555 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
10557         * configure.in: Work around ld --help change and avoid -z relro
10558         test completely if the architecture doesn't care about security.
10560 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10562         * po/sv.po: Update from translation team.
10564 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10566         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10567         generate compatibility version.
10569 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10571         * configure.in: Relax -z relro requirement a bit.
10573         * po/sv.po: Update from translation team.
10575 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10577         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10578         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10579         * elf/dl-close.c (_dl_close_worker): Likewise.
10580         * elf/dl-open.c (_dl_open_worker): Likewise.
10581         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10583 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10585         * configure.in: Require assembler support for visibility, compiler
10586         support for visibility and aliases, linker support for various -z
10587         options.
10588         * Makeconfig: Remove conditional code which now is unnecessary.
10589         * config.h.in: Likewise.
10590         * config.make.in: Likewise.
10591         * dlfcn/Makefile: Likewise.
10592         * elf/Makefile: Likewise.
10593         * elf/dl-load.c: Likewise.
10594         * elf/rtld.c: Likewise.
10595         * include/libc-symbols.h: Likewise.
10596         * include/stdio.h: Likewise.
10597         * io/Makefile: Likewise.
10598         * io/fstat.c: Likewise.
10599         * io/fstat64.c: Likewise.
10600         * io/fstatat.c: Likewise.
10601         * io/fstatat64.c: Likewise.
10602         * io/lstat.c: Likewise.
10603         * io/lstat64.c: Likewise.
10604         * io/mknod.c: Likewise.
10605         * io/mknodat.c: Likewise.
10606         * io/stat.c: Likewise.
10607         * io/stat64.c: Likewise.
10608         * libio/stdio.c: Likewise.
10609         * nscd/Makefile: Likewise.
10610         * stdlib/Makefile: Likewise.
10611         * stdlib/atexit.c: Likewise.
10612         * sysdeps/generic/ldsodefs.h: Likewise.
10613         * sysdeps/i386/dl-machine.h: Likewise.
10614         * sysdeps/i386/sysdep.h: Likewise.
10615         * sysdeps/i386/i686/memcmp.S: Likewise.
10616         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10617         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10618         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10620         * Makerules: USE_TLS support is now default.
10621         * tls.make.c: Likewise.
10622         * csu/Versions: Likewise.
10623         * csu/libc-start.c: Likewise.
10624         * csu/libc-tls.c: Likewise.
10625         * csu/version.c: Likewise.
10626         * dlfcn/dlinfo.c: Likewise.
10627         * elf/dl-addr.c: Likewise.
10628         * elf/dl-cache.c: Likewise.
10629         * elf/dl-close.c: Likewise.
10630         * elf/dl-iteratephdr.c: Likewise.
10631         * elf/dl-load.c: Likewise.
10632         * elf/dl-lookup.c: Likewise.
10633         * elf/dl-object.c: Likewise.
10634         * elf/dl-open.c: Likewise.
10635         * elf/dl-reloc.c: Likewise.
10636         * elf/dl-support.c: Likewise.
10637         * elf/dl-sym.c: Likewise.
10638         * elf/dl-sysdep.c: Likewise.
10639         * elf/dl-tls.c: Likewise.
10640         * elf/ldconfig.c: Likewise.
10641         * elf/rtld.c: Likewise.
10642         * elf/tst-tls-dlinfo.c: Likewise.
10643         * elf/tst-tls1.c: Likewise.
10644         * elf/tst-tls10.h: Likewise.
10645         * elf/tst-tls14.c: Likewise.
10646         * elf/tst-tls2.c: Likewise.
10647         * elf/tst-tls3.c: Likewise.
10648         * elf/tst-tls4.c: Likewise.
10649         * elf/tst-tls5.c: Likewise.
10650         * elf/tst-tls6.c: Likewise.
10651         * elf/tst-tls7.c: Likewise.
10652         * elf/tst-tls8.c: Likewise.
10653         * elf/tst-tls9.c: Likewise.
10654         * elf/tst-tlsmod1.c: Likewise.
10655         * elf/tst-tlsmod13.c: Likewise.
10656         * elf/tst-tlsmod13a.c: Likewise.
10657         * elf/tst-tlsmod14a.c: Likewise.
10658         * elf/tst-tlsmod2.c: Likewise.
10659         * elf/tst-tlsmod3.c: Likewise.
10660         * elf/tst-tlsmod4.c: Likewise.
10661         * elf/tst-tlsmod5.c: Likewise.
10662         * elf/tst-tlsmod6.c: Likewise.
10663         * include/errno.h: Likewise.
10664         * include/link.h: Likewise.
10665         * include/tls.h: Likewise.
10666         * locale/global-locale.c: Likewise.
10667         * locale/localeinfo.h: Likewise.
10668         * malloc/arena.c: Likewise.
10669         * malloc/hooks.c: Likewise.
10670         * malloc/malloc.c: Likewise.
10671         * resolv/Versions: Likewise.
10672         * sysdeps/alpha/dl-machine.h: Likewise.
10673         * sysdeps/alpha/libc-tls.c: Likewise.
10674         * sysdeps/generic/ldsodefs.h: Likewise.
10675         * sysdeps/generic/tls.h: Likewise.
10676         * sysdeps/i386/dl-machine.h: Likewise.
10677         * sysdeps/ia64/dl-machine.h: Likewise.
10678         * sysdeps/ia64/libc-tls.c: Likewise.
10679         * sysdeps/mach/hurd/fork.c: Likewise.
10680         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10681         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10682         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10683         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10684         * sysdeps/s390/libc-tls.c: Likewise.
10685         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10686         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10687         * sysdeps/sh/dl-machine.h: Likewise.
10688         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10689         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10690         * sysdeps/x86_64/dl-machine.h: Likewise.
10692         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10693         split out locking and parameter checking.
10694         (_dl_close): Call _dl_close_worker after locking and checking.
10695         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10696         _dl_close.
10697         * elf/Makefile: Add rules to build and run tst-thrlock.
10698         * elf/tst-thrlock.c:  New file.
10700         [BZ #3426]
10701         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10702         reality.
10704         [BZ #3429]
10705         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10706         we are sure we do not need it anymore for _dl_close.  Also move
10707         the asserts inside the lock region.
10708         Patch mostly by Suzuki <suzuki@in.ibm.com>.
10710 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
10712         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10713         argument.
10714         (_dl_lookup_symbol_x): Adjust caller.
10716         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10717         _ns_global_scope.
10718         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10720         * elf/dl-libc.c: Revert l_scope name changes.
10721         * elf/dl-load.c: Likewise.
10722         * elf/dl-object.c: Likewise.
10723         * elf/rtld.c: Likewise.
10724         * elf/dl-close.c (_dl_close): Likewise.
10725         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
10726         always use __rtld_mrlock_{change,done}.  Always free old scope list
10727         here if not l_scope_mem.
10728         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10729         change.  Never free scope list here.  Just __rtld_mrlock_lock before
10730         the lookup and __rtld_mrlock_unlock it after the lookup.
10731         * elf/dl-sym.c: Likewise.
10732         * include/link.h (struct r_scoperec): Remove.
10733         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10734         with l_scope_mem and l_scoperec_lock with l_scope_lock.
10736 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
10738         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10740 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10742         * configure.in: Disable building profile libraries by default.
10744 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10746         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10747         as signed longs, check for x_base + pos overflow.
10748         * sunrpc/Makefile (tests): Add tst-xdrmem2.
10749         * sunrpc/tst-xdrmem2.c: New test.
10751 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10753         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10754         _dl_lookup_symbol_x code.
10756 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10758         * elf/dl-runtime.c: Include sysdep-cancel.h.
10759         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10760         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
10761         instead of catomic_* macros.
10762         * elf/dl-sym.c: Include sysdep-cancel.h.
10763         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10764         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10765         * elf/dl-close.c: Include sysdep-cancel.h.
10766         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10767         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10768         * elf/dl-open.c: Include sysdep-cancel.h.
10769         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10770         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10772 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10774         [BZ #3313]
10775         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10776         fastbin rather than end of fastbin array.
10778 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10780         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10781         body macro.
10782         * sysdeps/x86_64/bits/atomic.h
10783         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10784         (catomic_decrement): Use correct body macro.
10786 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10788         * include/atomic.h: Add a unique prefix to all local variables
10789         in macros.
10790         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10792 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
10794         [BZ #3369]
10795         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10796         and 7.
10798 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
10800         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10802 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
10804         [BZ #3313]
10805         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10806         determine highest fast bin to consolidate, always look into all of
10807         them.
10808         (do_check_malloc_state): Only require for empty bins for large
10809         sizes in main arena.
10811         * libio/stdio.h: Add more __wur attributes.
10813         * elf/dl-minimal.c (realloc): Optimize last patch.
10815 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10817         [BZ #3352]
10818         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10819         and use memcpy() if it does.
10821 2006-11-12  Andreas Jaeger  <aj@suse.de>
10823         [BZ #2510]
10824         * manual/search.texi (Hash Search Function): Clarify.
10825         (Array Search Function): Clarify.
10827 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10829         [BZ #2830]
10830         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10831         shifting.
10832         * math/atest-exp2.c (read_mpn_hex): Likewise.
10833         * math/atest-sincos.c (main): Likewise.
10835 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10837         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10838         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10839         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10840         version GLIBC_2.6.
10841         * Versions.def: Add GLIBC_2.6 for libc.
10843         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10845         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10847 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10849         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10851         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10853         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10854         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10856 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10858         * include/atomic.c: Define catomic_* operations.
10859         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10860         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10861         * malloc/memusage.c: Likewise.
10862         * gmon/mcount.c: Likewise.
10863         * elf/dl-close.c: Likewise.
10864         * elf/dl-open.c: Likewise.
10865         * elf/dl-profile.c: Likewise.
10866         * elf/dl-sym.c: Likewise.
10867         * elf/dl-runtime.c: Likewise.
10868         * elf/dl-fptr.c: Likewise.
10869         * resolv/res_libc.c: Likewise.
10871 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10873         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10874         components which lack them.
10876         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10877         at least one entry consisting of the parameter concatenated with
10878         the domain.
10880 2006-10-10  Roland McGrath  <roland@frob.com>
10882         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10883         * sysdeps/mach/hurd/futimes.c: Likewise.
10884         * sysdeps/mach/hurd/lutimes.c: Likewise.
10886 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10887             Jakub Jelinek  <jakub@redhat.com>
10889         Implement reference counting of scope records.
10890         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10891         from the list in objects which remain.  Always allocate new scope
10892         record.
10893         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10894         don't resize, allocate a new one.
10895         * elf/dl-runtime.c: Update reference counters before using a scope
10896         array.
10897         * elf/dl-sym.c: Likewise.
10898         * elf/dl-libc.c: Adjust for l_scope name change.
10899         * elf/dl-load.c: Likewise.
10900         * elf/dl-object.c: Likewise.
10901         * elf/rtld.c: Likewise.
10902         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10903         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10904         Add l_scoperec_lock.
10905         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10906         * sysdeps/generic/rtld-lowlevel.h: New file.
10908         * include/atomic.h: Rename atomic_and to atomic_and_val and
10909         atomic_or to atomic_or_val.  Define new macros atomic_and and
10910         atomic_or which do not return values.
10911         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10912         Various cleanups.
10913         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10915         * po/sv.po: Update from translation team.
10917 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10919         * Versions.def: Add GLIBC_2.6 to libpthread.
10921         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10922         (versioned_symbol): Likewise.
10923         (compat_symbol): Likewise.
10925         * po/tr.po: Update from translation team.
10927 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10929         * nis/Banner: Removed.  It's been integral part forever and the
10930         author info is incomplete anyway.
10931         * libio/Banner: Likewise.
10933         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10934         code, make sure the nis_freeresult call doesn't crash and that the
10935         result is reported correctly.
10937 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10939         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10940         when callback is NULL.
10942         * nis/Versions (libnss_nisplus): Add
10943         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10944         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10945         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10946         _nss_create_tablename): Rename to...
10947         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10948         ... these.  No longer static.
10949         (internal_setgrent): Adjust users.
10950         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10951         Don't use locking around _nss_grp_create_tablename call.
10952         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10954 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10956         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10958 2006-10-06  Andreas Jaeger  <aj@suse.de>
10960         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10962 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10964         * po/pl.po: Update from translation team.
10966         * nscd/nscd.c (main): Fix typo in message.
10967         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10969 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10971         [BZ #3291]
10972         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10973         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10974         (__sigprocmask): Define.
10976 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10978         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10979         used.
10981 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10983         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10984         in oldtotal and newtotal calculation.
10985         * nscd/nscd-client.h (struct mapped_database): Add datasize
10986         field.
10987         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10988         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10989         increased.
10990         (__nscd_cache_search): Add checks to make sure we never reference
10991         data beyond the current mapping.
10993 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10995         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10996         variables const to avoid compiler warnings.
10998         * io/fts.c (fts_close): Remove redundant checks.
10999         (fts_build): Likewise.
11000         (fts_palloc): Likewise.
11002         * manual/message.texi (Advanced gettext functions,
11003         Using gettextized software): Fix typos.
11005 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11007         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11008         explain why there are no leaks.
11010 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11012         * libio/wmemstream.c: Include <wchar.h>.
11013         * libio/bug-wmemstream1.c: Likewise.
11014         * libio/tst-wmemstream1.c: Likewise.
11015         * libio/tst-wmemstream2.c: Likewise.
11017         * version.h (RELEASE): Bump to 2.5.
11018         * README: Regenerated.
11020         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11022         [BZ #3273]
11023         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11024         found no group members.
11025         Patch by Petr Baudis.
11027 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11029         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11030         assert bootstrap_map.l_tls_modid is zero.
11031         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11032         if USE___THREAD.
11034 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11036         * libio/stdio.h: Move open_wmemstream prototype to ...
11037         * wcsmbs/wchar.h: ... here.
11039 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11041         [BZ #3252]
11042         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11043         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11044         __{,l}chown to handle the rest.
11045         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11046         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11047         __{,l}chown to handle the rest.
11048         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11049         i386/fchownat.c.
11050         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11051         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11053         [BZ #3253]
11054         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11055         time, rather allocate increasingly bigger arrays of pointers, if
11056         possible with alloca, if too large with malloc.
11058 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11060         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11062         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11064 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11066         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11067         home addresses.
11068         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11069         IFA_F_HOMEADDRESS flag for interfaces.
11070         * include/ifaddrs.h (struct in6addrinfo): Define
11071         in6ai_homeaddress.
11073 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11075         [BZ #3225]
11076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11077         PTR_DEMANGLE3): Define.
11078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11079         PTR_DEMANGLE3): Likewise.
11080         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11081         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11082         Likewise.
11083         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11085 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11087         * po/libc.pot: Regenerated.
11088         * po/be.po: Updated.
11089         * po/ca.po: Likewise.
11090         * po/cs.po: Likewise.
11091         * po/da.po: Likewise.
11092         * po/de.po: Likewise.
11093         * po/el.po: Likewise.
11094         * po/en_GB.po: Likewise.
11095         * po/es.po: Likewise.
11096         * po/fi.po: Likewise.
11097         * po/fr.po: Likewise.
11098         * po/gl.po: Likewise.
11099         * po/hr.po: Likewise.
11100         * po/hu.po: Likewise.
11101         * po/ja.po: Likewise.
11102         * po/ko.po: Likewise.
11103         * po/nb.po: Likewise.
11104         * po/nl.po: Likewise.
11105         * po/pl.po: Likewise.
11106         * po/pt_BR.po: Likewise.
11107         * po/ru.po: Likewise.
11108         * po/rw.po: Likewise.
11109         * po/sk.po: Likewise.
11110         * po/sv.po: Likewise.
11111         * po/tr.po: Likewise.
11112         * po/zh_CN.po: Likewise.
11113         * po/zh_TW.po: Likewise.
11115         [BZ #3137]
11116         * iconv/iconv_prog.c (main): Fix spelling in error message.
11117         * iconv/iconvconfig.c (main): Likewise.
11118         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11119         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11120         * locale/programs/localedef.c (main): Likewise.
11121         * locale/programs/repertoire.c (repertoire_read): Likewise.
11122         * timezone/zdump.c (main): Likewise.
11123         * nscd/connections.c (handle_request): Fix spelling in log message.
11124         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11126 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11128         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11129         interfaces.
11131 2006-09-20  Andreas Jaeger  <aj@suse.de>
11133         * math/libm-test.inc (lrint_test_upward): Fix typo.
11135 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11137         [BZ #2592]
11138         * math/libm-test.inc (lrint_test_tonearest): New function.
11139         (lrint_test_towardzero): New function.
11140         (lrint_test_downward): New function.
11141         (lrint_test_upward): New function.
11142         (main): Run these new tests.
11143         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11144         of values near to 0.
11145         (two52): Use double not long double.
11146         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11147         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11148         (two23): Use float not double.
11149         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11150         (two23): Use float not double.
11151         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11152         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11153         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11154         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11156 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11158         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11159         Cast sp to unsigned long to avoid compiler warning.
11160         Use __makecontext_ret function instead of a trampoline on the stack.
11161         (__makecontext_ret): New function.
11162         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11164 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11166         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11167         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11168         bits.
11170 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11172         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11173         sure no reference to the unloaded map's search list remains in the
11174         dependency's scope.
11176 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11178         * elf/Makefile: Add rules to build and run unload7 test.
11179         * elf/unload7.c: New test.
11180         * elf/unload7mod1.c: New file.
11181         * elf/unload7mod2.c: New file.
11183 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11185         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11186         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11187         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11188         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11189         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11190         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11191         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11192         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11193         PTRACE_GETEVENTMSG): Likewise.
11194         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11195         values.
11197 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11199         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11200         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11201         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11202         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11204 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11206         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11207         write '\0' to the fd.
11208         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11209         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11210         Change regs to unsigned long pointer from unsigned int, fix fscr
11211         offset.
11213 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11215         * io/Makefile (CFLAGS-fstatat.c): Set.
11216         (CFLAGS-fstatat64.c): Likewise.
11217         (CFLAGS-mknodat.c): Likewise.
11219         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11220         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11221         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11222         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11224 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11225             Steven Munroe  <sjmunroe@us.ibm.com>
11227         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11228         names to the beginning.  Rename "cell" to "cellbe".
11229         (_dl_powerpc_platforms): New.
11230         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11231         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11232         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11233         (_DL_HWCAP_PLATFORM): Define to new mask.
11234         (_dl_platform_string, _dl_string_platform): New functions.
11235         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11236         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11238 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11240         [BZ #2526]
11241         * README.libm: Fix a thinko in sqrt algorithm description.
11243         [BZ #3143]
11244         * manual/string.texi (argz_delete): Fix prototype.
11245         Patch by <alpt@freaknet.org>.
11247 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11249         [BZ #3138]
11250         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11251         * io/tst-fcntl.c (do_prepare): Likewise.
11252         * posix/tst-exec.c (do_prepare): Likewise.
11253         * posix/tst-preadwrite.c (do_prepare): Likewise.
11254         * posix/tst-spawn.c (do_prepare): Likewise.
11255         * posix/tst-truncate.c (do_prepare): Likewise.
11256         * rt/tst-aio.c (do_prepare): Likewise.
11257         * rt/tst-aio64.c (do_prepare): Likewise.
11258         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11259         size_t.
11261 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11263         [BZ #2821]
11264         * time/mktime.c (guess_time_tm): Fix overflow detection.
11265         * time/Makefile (tests): Add bug-mktime1.
11266         * time/bug-mktime1.c: New file.
11268         [BZ #3189, #3188]
11269         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11270         (mremap): Likewise.
11272 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11274         [BZ #1006]
11275         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11276         Ensure relocation doesn't clobber any bits outside of the
11277         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11278         R_SPARC_HI22 and R_SPARC_H44.
11280         [BZ #2775]
11281         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11282         (long) (MINSIZE + nb - old_size) is positive.
11284         * malloc/arena.c (grow_heap): When growing bail even if new_size
11285         is negative.
11287         [BZ #3155]
11288         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11289         stack below r1.
11291 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11293         * posix/regex_internal.c (re_string_reconstruct): Handle
11294         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11295         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11296         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11297         re_string_context_at.
11298         * posix/Makefile: Add rules to build and run bug-regex26 test.
11299         * posix/bug-regex26.c: New test.
11301         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11302         rather than col_sym_free.  Move seqp declaration earlier.
11304         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11306 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11308         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11309         decl before first goto out.
11311 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11313         * Makerules (shlib.lds): If have-hash-style, put .hash section
11314         at the end of the RO segment.
11316 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11318         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11319         style hash table format is used.
11321 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11323         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11324         randomization rather than before.
11325         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11327 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11329         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11331         * malloc/malloc.c (_int_malloc): Use full list insert and not
11332         shortcut which assumes the list is empty for large requests
11333         too.
11335         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11337 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11339         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11340         and offout arguments to the prototype.
11341         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11342         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11343         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11344         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11345         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11346         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11347         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11348         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11350 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11352         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11354         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11355         dlopen parameters.
11357 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11359         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11360         only if herrno is NETDB_INTERNAL.  Handle errors other than
11361         ERANGE outside of the loops, handle TRY_AGAIN.
11363         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11364         if other's ctype category was missing.
11365         * locale/programs/ld-collate.c (collate_read): Return if
11366         copy_locale's collate category is missing.
11368 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11370         [BZ #2684]
11371         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11372         arenas if allocation failed.
11373         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11375 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11377         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11378         waste bins[0..1].
11379         (malloc_state): Reduce bins size by 2.
11380         (_int_malloc): Fix test for large enough buffer for early termination.
11381         When no unsorted block matches perfectly and an exiting block has
11382         to be split, use full list insert and not shortcut which assumes
11383         the list is empty.
11385         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11386         failure.
11388 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11390         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11391         do anything.
11393         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11394         symbol require exact match (these are PLTs).
11395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11396         (_dl_ppc64_addr_sym_match): Likewise.
11398         [BZ #2683]
11399         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11400         If symbol has a value use it.
11401         * elf/tst-dladdr1.c: New file.
11402         * elf/Makefile: Add rules to build and run tst-addr1.
11404 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11406         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11407         keeps failing and heap growth or new heap creation isn't
11408         successful either.
11409         * malloc/tst-malloc.c (main): Add new tests.
11411 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11413         [BZ #2734]
11414         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11415         as in the x86-64 code to use bswap.
11417 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11419         [BZ #2680]
11420         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11421         __USE_UNIX98.
11422         * posix/bits/unistd.h: Likewise.
11424 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11426         [BZ #2751]
11427         * string/strchr.c: Add cast to avoid warning.
11429 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11431         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11432         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11433         limit is needed to avoid the exploding of the address space
11434         requirement for secondary heaps.
11435         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11436         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11438 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11440         [BZ #3018]
11441         * Makerules (depfiles): Handle extra-test-objs the same as
11442         extra-objs.
11443         (common-mostlyclean): Likewise.
11444         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11445         instead.
11446         * elf/Makefile (extra-objs): Likewise.
11447         * stdlib/Makefile (extra-objs): Likewise.
11449 2006-08-14  Eric Blake  <ebb9@byu.net>
11451         [BZ #3044]
11452         * misc/error.h: Assume C89 or better.
11453         * misc/error.c: Likewise.
11455 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11457         [BZ #3040]
11458         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11459         __ASSUME_ATFCTS is defined.
11461 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
11463         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11464         to sort in each call.
11466         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11467         is empty simply return and use next service.
11468         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11470         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
11471         tells us when not finding a charmap file is an error.
11472         * locale/programs/charmap.h: Adjust charmap_read prototype.
11473         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11474         cannot find a charmap.
11475         * locale/programs/localedef.c (main): Adjust charmap_read call.
11477 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
11479         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11480         sysdeps/posix/pause.c implementation instead.
11482 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
11484         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11485         to EPERM.
11487 2006-08-13  Andreas Schwab  <schwab@suse.de>
11489         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11490         Don't clobber caller's LRSAVE.
11491         (_dl_prof_resolve): Likewise.
11493 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
11495         [BZ #1996]
11496         * libio/memstream.c (open_memstream): Allocate initial buffer with
11497         calloc.
11498         * libio/wmemstream.c (open_wmemstream): Likewise.
11499         * libio/strops.c: Pretty printing.
11500         (_IO_str_overflow): Clear uninitialized part of the new buffer.
11501         (enlarge_userbuf): New function.
11502         (_IO_str_seekoff): Call it if seek position is larger than current
11503         buffer.
11504         * libio/wstrops.c: Likewise.
11505         * libio/vasprintf.c: Add comment as to why we do not have to use
11506         calloc instead of malloc to allocate initial buffer.
11507         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11508         * libio/bug-memstream1.c: New file.
11509         * libio/bug-wmemstream1.c: New file.
11511 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11513         * libio/wstrops.c: Remove dead macro definitions and comments.
11514         * libio/strops.c: Likewise.
11516         [BZ #2764]
11517         * login/utmpname.c (__utmpname): Remove unnecessary test.
11519 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
11521         [BZ #2832]
11522         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11523         0s from integers.
11525 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11527         [BZ #2987]
11528         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11529         for CPU clocks.
11530         * sysdeps/unix/clock_settime.c: Add support for platform-specific
11531         setting of CPU clocks.
11533 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11535         [BZ #2841]
11536         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11537         since C99 requires the result to promote to 'int' when uint_least8_t
11538         and uint_least16_t promote to 'int'.
11540 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11542         [BZ #3013]
11543         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11544         lenght of one output field, correct bitmask creation.
11545         * locale/programs/ld-time.c: Add alignment.
11547         [BZ #2997]
11548         * misc/error.c: Add space between program name and message if file
11549         name is missing.
11551 2006-08-03  Eric Blake  <ebb9@byu.net>
11553         [BZ #2998]
11554         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11556 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11558         * malloc/memusagestat.c: Silence warnings.
11560         * malloc/malloc.c: Dynamically size mmap treshold if the program
11561         frees mmaped blocks.
11562         Patch by Valerie Henson and Arjan van de Ven.
11564 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11566         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11567         __USE_GNU.
11569         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11570         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11571         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11572         Only provide var definitions in strtol_l (or for *ull*
11573         in strtoll_l).
11575         * stdio-common/bug16.c (tests): New array.
11576         (do_tests): Allow the first hexadecimal digit
11577         to be 1, 2, 4 or 8.  Do 3 additional tests.
11579         * sysdeps/s390/fpu/libm-test-ulps: Update.
11581         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11582         fchownat syscall if available.
11583         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11584         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11585         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11587 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11589         * nis/nis_xdr.c: Avoid some function calls.
11591 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11592             Ulrich Drepper  <drepper@redhat.com>
11594         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11595         short cut if only one name component is stripped away.
11597 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11599         * nis/nis_call.c: Minor cleanups throughout.
11600         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11601         (first_shoot): Add search_parent_first parameter.  Only if it is set
11602         search parent server first.
11603         If directory for table found through cold start cache is not the same
11604         as referenced in the cache, don't use it.
11605         (__nisfind_server): Take additional parameter.  Pass it on to
11606         first_shoot.
11607         (__prepare_niscall): Adjust __nisfind_server call.
11608         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11609         * nis/nis_table.c: Adjust __nisfind_server call.
11610         * nis/nis_lookup.c: Likewise.
11611         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11613 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11615         [BZ #2182]
11616         * math/s_cacosh.c: Return values from positive branch.
11617         * math/s_cacoshf.c: Likewise.
11618         * math/s_cacoshl.c: Likewise.
11620         [BZ #2883]
11621         * sysvipc/sys/msg.h: Change return value to ssize_t.
11622         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11623         * sysvipc/msgrcv.c: Likewise.
11624         * include/sys/msg.h: Likewise.
11626         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11627         test introduced in patch for bz #661.
11628         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11629         element for NEWGROUPS.
11631         [BZ #2908]
11632         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11633         'f', use '1' as leading digit not '\1'.
11634         * stdio-common/Makefile (tests): Add bug16.
11635         * stdio-common/bug16.c: New file.
11637         [BZ #2914]
11638         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11639         and don't try to open it.  The patch introducing the macro
11640         contained a bug and used the same file name as the new file
11641         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
11642         this out completely.
11644         [BZ #2926]
11645         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11646         Patch by Jerry James <Jerry.James@usu.edu>.
11648         * rt/Makefile (tests): Add tst-clock2.
11649         * rt/tst-clock2.c: New file.
11651         [BZ #2978]
11652         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11653         function and its parameters and pass it to new thread.
11654         (__gai_notify): Add support for alternative waiting for completion.
11655         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11656         waiting for completion.
11657         * resolv/getaddrinfo_a.c: Likewise.
11658         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11659         waiting for completion is used.
11660         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11661         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11662         * resolv/gai_error.c: Likewise.
11663         * resolv/gai_sigqueue.c: Likewise.
11665 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
11667         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11668         errno to EBADF and return MACH_PORT_NULL.
11670 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
11672         [BZ #2980]
11673         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11675 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
11677         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11678         walk them instead of the symbol table.
11680 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
11682         [BZ #2098]
11683         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11684         status of NSS calls, not the number of returned entries.
11686         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11687         request_key, keyctl.
11689 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11691         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11693 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
11695         * elf/tst-auditmod1.c: Fix typo in #error.
11697 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11699         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11701         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11703 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11705         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11706         that the directory is empty even on non-POSIX filesystems.
11708 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11710         * elf/dl-open.c (dl_open_worker): Add branch prediction.
11712         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11713         the backend NSS module.  If backend setgrent call failed, don't have
11714         internal_setgrent fail.  Just remember this until it is needed.
11715         * nis/nss_compat/compat-pwd.c: Likewise.
11716         * nis/nss_compat/compat-spwd.c: Likewise.
11718 2006-07-30  Roland McGrath  <roland@redhat.com>
11720         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11721         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11722         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11723         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11725         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11726         (nanosleep_not_cancel): New macro.
11727         (sigsuspend_not_cancel): new macro.
11728         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11729         (do_sigsuspend): Define as inline.
11730         (__sigsuspend): Always use do_sigsuspend.
11731         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11732         * include/signal.h: Declare __sigsuspend_nocancel.
11733         * sysdeps/posix/pause.c
11734         [! NO_CANCELLATION] (__pause_nocancel): New function.
11736         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11737         * include/time.h (__nanosleep_nocancel): Likewise.
11739 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
11741         * locale/programs/localedef.c (add_to_readlist): Rename local
11742         variables to avoid confusion.
11744         * locale/programs/charmap.c (charmap_read): Emit error message if
11745         charmap couldn't be found or read.
11747 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
11749         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11750         __ASSUME_FUTEX_LOCK_PI.
11751         * include/time.h: Declare __nanosleep_nocancel.
11752         * include/unistd.h: Declare __pause_nocancel.
11754         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11755         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
11756         get the __stack_chk_fail_local definition when it's needed.
11758 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
11760         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11761         * dlfcn/bug-atexit3.c: New file.
11762         * dlfcn/bug-atexit3-lib.cc: New file.
11764         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11765         used when the namespace is not the base namespace.
11767 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
11769         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11770         (__new_exitfn): Bump it in every successful call.
11771         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11772         more exit handlers, call them right away.
11773         * stdlib/exit.h: Declare __new_exitfn_called.
11775 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
11777         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11778         calling registered handler.
11780         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11781         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11782         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11783         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11784         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11785         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11786         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11787         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11789 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
11791         * elf/dl-lookup.c (dl_new_hash): New functions.
11792         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11793         value here.  Compute new-style hash value.  Pass new hash value
11794         and reference to variable with the old value to do_lookup_x.
11795         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11796         old-style hash table.
11797         (_dl_debug_bindings): Pass new hash value and reference to variable
11798         with the old value to do_lookup_x.
11799         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11800         new-style hash value and change old-style hash value parameter to
11801         be a reference.  Reoganize functions to determine whether
11802         new-style hash table is available.  Only fall back on old-style
11803         table.  If old-style hash value is needed, compute it here.
11804         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11805         entry.
11806         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11807         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
11808         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11809         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11810         * Makeconfig: If linker supports --hash-style option add it to all
11811         linker command lines to build DSOs.
11812         * config.make.in: Define have-hash-style.
11813         * configure.in: Test whether linker supports --hash-style option.
11815         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11816         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11818 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11820         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11821         auditing.
11823         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11824         RPATH of main map twice.
11826 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11828         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11829         look further, return original strings.
11830         (_nl_find_msg): Do not return found translation if the conversion
11831         failed.  Either signal the string is unusable or that something went
11832         wrong and the original should be used.
11834 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11836         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11838 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11840         [BZ #2766]
11841         * misc/insremque.c (insque): Handle prev == NULL.
11842         * misc/Makefile (tests): Add tst-insremque.
11843         * misc/tst-insremque.c: New test.
11845 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11847         [BZ #2792]
11848         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11849         conflict with DL_DST_REQUIRED.
11851 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11853         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11854         match what Solaris does.
11856 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11858         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11859         local_setegid instead of seteuid and setegid.
11860         * sysdeps/generic/local-setxid.h: New file.
11861         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11863         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11865         * string/Makefile (tests): Add bug-envz1.
11866         * string/bug-envz1.c: New file.
11868 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11870         * posix/regex_internal.c (re_string_skip_chars): If no character has
11871         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11872         to the byte which couldn't be converted.
11873         (re_string_reconstruct): Don't clear valid_raw_len before calling
11874         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11875         tip_context using re_string_context_at.
11876         * posix/Makefile: Add rules to build and run bug-regex25 test.
11877         * posix/bug-regex25.c: New test.
11879 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11881         [BZ #2703]
11882         * string/envz.c (envz_strip): Correct erroneously reversed src
11883         and dest parameters to memmove() invocation.
11885 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11887         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11888         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11889         to make sure the database has been already invalidated.
11890         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11891         after the cache has been invalidated.  Use pthread_mutex_lock rather
11892         than pthread_mutex_trylock if fd != -1.
11893         * nscd/connections.c (invalidate_cache): Add fd argument, write
11894         response to fd if not calling prune_cache, pass fd to prune_cache.
11895         (handle_request): Adjust invalidate_cache caller.
11896         (nscd_run): Pass -1 as fd to prune_cache.
11898 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11900         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11901         the correct place.
11903 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11905         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11906         * nscd/cache.c (prune_cache): Take prunelock before starting the
11907         work.  Just return in case it is already taken.
11908         * nscd/connections.c (dbs): Initialize .prunelock.
11910 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11912         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11913         copying.  No need to allocate new array for group members.  Just
11914         move the pointers and update the size.
11916         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11917         Avoid memory leak in case realloc fails.  Simplification for
11918         better code generation.
11920         Avoid deprecation warning because of libc_hidden_proto for
11921         inet6_option_alloc.
11922         * inet/inet6_option.c (option_alloc): Renamed from
11923         inet6_option_alloc.  Made static.
11924         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11925         (inet6_option_append): Call option_alloc.
11926         * include/netinet/in.h: Remove libc_hidden_proto for
11927         inet6_option_alloc.
11929         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11930         for cleanup when cb!=NULL [Coverity CID 233].
11932 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11934         [BZ #2693]
11935         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11936         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11937         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11938         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11939         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11940         and inet6_rth_getaddr.
11941         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11942         array.
11943         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11944         Mark inet6_option_* interfaces as deprecated.
11945         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11946         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11947         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11948         inet6_rth_segments, and inet6_rth_getaddr.
11949         * inet/inet6_opt.c: New file.
11950         * inet/inet6_rth.c: New file.
11952         * inet/netinet/icmp6.h: Pretty printing.
11954         [BZ #2683]
11955         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11957 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11959         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11960         doing it all here.  When server does not know the answer do not
11961         fail immediate, try parent first.
11963         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11964         overflow test.
11966 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11968         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11969         from __do_niscall.
11970         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11971         and exported.
11972         (__follow_path): New function.  Split out from nis_list.
11973         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11974         _xdr_nis_result.
11975         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11976         _xdr_nis_result.
11977         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11978         and __follow_path.
11979         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11980         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11981         from libnsl for version GLIBC_PRIVATE.
11982         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11983         Remove entry parameter from _nss_nisplus_parse_pwent and
11984         _nss_nisplus_parse_grent.
11985         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11986         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11987         again.  Rewrite getpwent handling to not use nis_first_entry and
11988         nis_next_entry.  Roll out own niscall handling.
11989         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11991         * sunrpc/xdr_rec.c: Fix typo in comment.
11993 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11995         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11996         handling.
11998         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11999         to allocate memory for my_pollfd.  Better initialization of
12000         cb_is_running.  Use TEMP_FAILURE_RETRY.
12002         * malloc/memusage.sh (memusageso): Add quotes.
12003         (memusagestat): Likewise.
12004         * debug/xtrace.sh (pcprofileso): Likewise.
12005         (pcprofiledump): Likewise.
12006         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12007         replacement.
12008         * malloc/Makefile ($(objpfx)memusage): Likewise.
12010         * nis/nis_callback.c (__nis_create_callback): Calls to
12011         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12012         asprintf call fails.
12014         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12015         no uninitialized memory is passed to sendto.
12017 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12019         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12020         of snprintf+strdup.  Handle OOM.
12021         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12022         cb->serv together.  Remove now obsolete free calls.
12023         (__nis_destroy_callback): Remove now obsolete free call.
12025 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12027         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12028         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12029         and ULA respectively). Set precedence for IPv4 address to 10 as
12030         defined in RFC3484 for preferring IPv6.
12031         * posix/gai.conf: Update to match the new default tables.
12033 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12035         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12036         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12037         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12038         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12040         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12041         Removed.
12042         (init_nss_interface): Remove initialization of these variables.
12044 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12046         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12047         nis_free_directory forward to avoid duplication.
12049 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12051         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12052         rec_dirsearch returning NULL.
12053         (first_shoot): Handle __nis_finddirectory returning NULL.
12054         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12056         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12057         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12059 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12061         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12062         pid changed.
12064 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12066         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12068         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12069         * nscd/nscd_getgr_r.c: Likewise.
12071         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12073         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12074         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12076         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12078         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12080         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12082         * include/rpc/auth.h: Mark xdr_des_block_internal and
12083         xdr_opaque_auth_internal as hidden.
12085         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12086         hidden.
12088         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12090         * misc/getusershell.c (okshells): Don't use static initializers,
12091         do it dynamically.
12093         * stdlib/fmtmsg.c (keywords): Change type of len element to
12094         uint32_t to not waste space on 64bit machines.
12096         * locale/setlocale.c: Change _nl_category_names into a string.
12097         Add new _nl_category_name_idxs.  Change all users.
12098         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12099         Declare _nl_category_name_idxs.
12100         * locale/findlocale.c: Adjust for _nl_category_names change.
12101         * locale/loadlocale.c: Likewise.
12102         * locale/newlocale.c: Likewise.
12103         * intl/dcigettext.c: Likewise.
12105         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12106         (add_alias2): ...here.  New function.
12107         (__gconv_read_conf): Simplify builtin alias handling.
12108         (builtin_aliases): Convert to string to avoid relocations.
12109         * iconv/gconv_builtin.h: Add comment about correct formatting.
12111 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12113         * resolv/res_debug.c (loc_ntoa): Make error const.
12115 2006-05-14  Andreas Schwab  <schwab@suse.de>
12117         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12119 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12121         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12122         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12123         sizeof (cpu_set_t).
12125 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12127         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12129         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12131         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12132         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12134         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12135         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12137         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12138         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12139         xdr_cback_data.
12141         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12142         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12143         xdr_ypupdate_args.
12145         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12146         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12148         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12149         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12151         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12152         * include/rpcsvc/nis_callback.h: New file.
12154         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12155         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12157         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12158         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12160         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12161         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12163         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12164         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12166         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12167         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12168         xdr_ypdelete_args.
12170         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12171         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12173         * nis/nis_error.c: Remove table of strings.  Use position
12174         independent mechanism.
12175         * nis/nis_error.h: New file.
12177 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12179         * locale/programs/ld-time.c (time_finish): If wide era name or
12180         format aren't provided, set both wname and wformat to L"".
12182 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12184         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12185         results if the call was succesful.
12187         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12189         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12190         as hidden.
12192 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12194         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12196 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12198         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12199         caller makes sure this is not the case.
12200         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12202 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12204         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12205         calls.
12207         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12208         [Coverity CID 229, 230]
12210         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12211         DGETTEXT calls.
12212         (hol_help): Likewise.  [Coverity CID 226, 227]
12214         * string/argz-replace.c (__argz_replace): Unconditionally call
12215         free on SRC.  [Coverity CID 225]
12217         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12218         the return value of __nis_default_owner and __nis_default_group,
12219         it has been especially allocated.  [Coverity CID 224]
12221         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12222         searchgroup and searchowner.  Significantly simplified.
12223         (__nis_default_owner): Remove duplication.  Do not locally copy the
12224         string before duplicating it.
12225         (__nis_default_group): Likewise.
12227         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12228         we must clear the variable before calling __nisfind_server.
12230         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12231         nis_getnames.  [Coverity CID 223]
12233         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12234         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12236         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12237         allocate memory for the input to add_bytes.  [Coverity CID 221]
12239         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12240         was allocated here.  [Coverity CID 219, 220]
12242         * posix/getconf.c (print_all): Free confstr data after printing.
12243         [Coverity CID 218]
12245         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12246         list allocation fails.  [Coverity CID 215]
12248         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12249         [Coverity CID 213]
12251         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12252         string is NULL.  [Coverity CID 212]
12253         * argp/Makefile: Add rules to build and run bug-argp1.
12254         * argp/bug-argp1.c: New file.
12256         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12257         end of string.
12258         * stdlib/canonicalize.c (__realpath): Likewise.
12260         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12261         pointer.  [Coverity CID 206]
12263         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12264         in statically linked code.
12265         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12266         statically built code, be prepared to have no link map.
12267         [Coverity CID 205]
12269         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12270         dgettext calls. [Coverity CID 204]
12272         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12273         the one user.
12274         (uparam_names): Reduce size.  Avoid relative relocations.
12275         Moved to read-only segment.
12276         (fill_in_uparams): Update for new layout.
12278         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12279         assumed to always be != NULL. [Coverity CID 202]
12281         * argp/argp-help.c (hol_entry_help): Remove some dead code
12282         [Coverity CID 200].
12284         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12285         away a few more unconditional yperr2nss calls.
12286         (_nss_nis_getservbyname_r): Likewise.
12288 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12290         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12291         architectures.
12293         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12294         that unused memory passed to sendto is nevertheless initialized.
12296         [BZ #2499]
12297         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12298         possibly unaligned memory accesses.
12300         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12301         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12302         and __putlong respectively.  Correct buffer overflow check for
12303         NS_NOTIFY_OP.
12305         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12307         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12308         (send_dg): Rewrite error handling to be more compact and avoid
12309         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12311         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12313         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12314         instead of ns_get16.
12315         (res_queriesmatch): Likewise.  Minor optimization.
12317         [BZ #2499]
12318         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12319         __libc_res_nsend might reallocate the buffer for the answer.  In
12320         this case we have to reload the HP pointer.
12322 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12324         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12325         some branch prediction hints.
12327         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12328         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12329         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12330         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12331         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12332         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12333         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12334         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12336 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12338         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12339         by a GOT relocation to make Scrt1.o position independent.
12340         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12342         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12343         six system call parameters.
12344         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12346 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12348         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12349         malloc&bzero.
12351         * sunrpc/svc_udp.c (BZERO): Remove definition.
12352         (CALLOC): Define.
12353         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12355         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12356         (des_SPtrans): Use uint32_t type.
12357         (des_skb): Likewise.
12359         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12361 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12363         [BZ #2509]
12364         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12365         on 32-bit arches.
12367 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12369         * locale/programs/ld-address.c (address_finish): Fix one more
12370         place where the iso639 array might be accessed beyond the limits.
12372 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12374         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12375         filling it for the first time.
12377         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12378         Adjust all callers.
12379         Free res object content before returning.
12381         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12383         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12384         client->cl_auth.
12386         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12387         cleanup for initial thread, just the free call on TVP.
12389         * nscd/gai.c (__getline): Define.
12392 See ChangeLog.16 for earlier changes.