Align functions to 16-byte boundary.
[glibc.git] / ChangeLog
blob8b02c0cba52fa357906315437499122f35cc4410
1 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
4         aligned to 16 byte boundaries.
5         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
6         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
7         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
9 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
11         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
12         * config.make.in (config-cflags-sse4): New variable.
13         * configure.in: Substitute libc_cv_cc_sse4.
14         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
15         HAVE_SSE4_SUPPORT.
16         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
18         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
19         * sysdeps/x86_64/multiarch/strcspn.S: New file.
20         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
21         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
22         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
23         * sysdeps/x86_64/multiarch/strspn.S: New file.
25 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
27         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
28         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
29         (tests): Add tst-audit3 for x86_64.
30         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
31         ($(objpfx)tst-audit3): Define.
32         ($(objpfx)tst-audit3.out): Define.
33         (tst-audit3-ENV): Define.
34         * elf/tst-audit3.c: New file.
35         * elf/tst-auditmod3a.c: New file.
36         * elf/tst-auditmod3b.c: New file.
37         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
38         and restore xmm6.
40         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
41         (__stpncpy): Renamed to ...
42         (STPNCPY): This.
43         (stpncpy): Create alias only if STPNCPY is not defined.
44         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
45         defined.
46         (strncpy): Renamed to ...
47         (STRNCPY): This.
48         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
49          stpncpy-c strncpy-c for string.
50         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
51         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
52         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
53         * sysdeps/x86_64/multiarch/strcpy.S: New file.
54         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
55         * sysdeps/x86_64/multiarch/strncpy.S: New file.
57 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
59         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
60         adding to fast bin list.
62 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
64         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
65         inet_makeaddr.  This worked only with class-based networks.
66         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
67         Likewise.
69         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
70         recognize all types.
71         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
72         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
73         be in host byte order.
75 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
77         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
78         (MODEL_OFFSET): Define.
79         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
80         family and model.
81         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
82         out common code into new function get_common_indeces. Determine
83         extended family and model for Intel processors.
85 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
87         * resolv/resolv.h: Define RES_SNGLKUPREOP.
88         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
89         option.
90         * resolv/res_send.c (reopen): New function.  Broken out of...
91         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
92         fallback mechanism.  If single-request fails switch to
93         single-request-reopen mode which opens a new socket for the second
94         request.
96 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
98         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
99         (CHECK_SP): Use it.
101 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
103         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
104         for saved registers.
105         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
106         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
107         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
109 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
111         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
113 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
115         * po/id.po: Update from translation team.
117         * po/bg.po: Update from translation team.
119 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
121         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
122         defined.
123         (strncmp): Renamed to STRNCMP.
124         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
125         strncmp-c for string.
126         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
127         * sysdeps/x86_64/multiarch/strcmp.S: New file.
128         * sysdeps/x86_64/multiarch/strncmp.S: New file.
129         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
131 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
133         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
134         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
135         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
136         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
137         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
138         ifuncmain7static.c.
139         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
140         ifuncmain7static, and ifuncmain7picstatic.
141         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
142         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
143         $(objpfx)ifuncmain7pie.out.
144         (modules-names): Add ifuncmod5 ifuncmod6
145         (ifuncmod5.so-no-z-defs): Define.
146         (ifuncmod6.so-no-z-defs): Define.
147         (CFLAGS-ifuncmain5pic.c): Define.
148         (CFLAGS-ifuncmain5picstatic.c): Define.
149         (CFLAGS-ifuncmain5staticpic.c): Define.
150         (CFLAGS-ifuncdep5pic.c): Define.
151         (CFLAGS-ifuncmain7pic.c): Define.
152         (CFLAGS-ifuncmain7picstatic.c): Define.
153         (CFLAGS-ifuncmain1staticpie.c): Define.
154         (CFLAGS-ifuncmain5pie.c): Define.
155         (CFLAGS-ifuncmain6pie.c): Define.
156         (CFLAGS-ifuncmain7pie.c): Define.
157         ($(objpfx)ifuncmain1staticpie.out): Define.
158         ($(objpfx)ifuncmain1staticpie): Define.
159         ($(objpfx)ifuncmain5pie.out): Define.
160         ($(objpfx)ifuncmain5pie): Define.
161         ($(objpfx)ifuncmain6pie.out): Define.
162         ($(objpfx)ifuncmain6pie): Define.
163         ($(objpfx)ifuncmain5): Define.
164         ($(objpfx)ifuncmain5pic): Define.
165         ($(objpfx)ifuncmain5static): Define.
166         ($(objpfx)ifuncmain5staticpic): Define.
167         ($(objpfx)ifuncmain5picstatic): Define.
168         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
169         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
170         ifuncmain6pie.out.
171         * elf/b/elf/ifuncmain1staticpie.c: New file.
172         * elf/ifuncdep5.c: New file.
173         * elf/ifuncdep5pic.c: New file.
174         * elf/ifuncmain5.c: New file.
175         * elf/ifuncmain5pic.c: New file.
176         * elf/ifuncmain5picstatic.c: New file.
177         * elf/ifuncmain5pie.c: New file.
178         * elf/ifuncmain5static.c: New file.
179         * elf/ifuncmain5staticpic.c: New file.
180         * elf/ifuncmain6pie.c: New file.
181         * elf/ifuncmain7.c: New file.
182         * elf/ifuncmain7pic.c: New file.
183         * elf/ifuncmain7picstatic.c: New file.
184         * elf/ifuncmain7pie.c: New file.
185         * elf/ifuncmain7static.c: New file.
186         * elf/ifuncmod5.c: New file.
187         * elf/ifuncmod6.c: New file.
189 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
191         [BZ #10085]
192         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
193         (nss_endgrent): New variable.
194         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
195         fields. Change type of files to bool and adjust all users.
196         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
197         (internal_endgrent): Call nss_endgrent if necessary.
198         (add_group): New function.  Broken out of...
199         (check_and_add_group): ...here.
200         (getgrent_next_nss): Remove test that any callback is available.
201         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
202         callback.  If there is no blacklist we can trust the results returned
203         by the initgroups_dyn callback.  In case there is a callback and we
204         find a group entry for the group ID but it doesn't contain the
205         correct member, switch to the slow mode and use getgrent_r.
206         (internal_getgrent_r): When we see a +: entry, determine whether
207         there is any callback and which we can use the initgroups_dyn
208         callback.
210 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
212         * malloc/malloc.c (_int_malloc): Add some consistency checks.
213         (_int_free): Likewise.
215         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
216         AF_IEEE802154.
217         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
218         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
219         and ARPHRD_IEEE802154_PHY.
221         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
222         relative to generic Linux version.
224 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
226         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
227         ($(objpfx)ifuncmain1vispie): Likewise.
229 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
231         * login/Makefile: Build pt_chown as PIE.
233 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
235         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
236         a format string.
237         * elf/sln.c (usage): Likewise.
238         * malloc/memusage.sh (do_help): Likewise.
239         * nss/getent.c (more_help): Likewise.
240         * posix/getconf.c (main): Likewise.
241         * sunrpc/rpcinfo.c (usage): Likewise.
242         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
244 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
246         * login/programs/pt_chown.c: Use libcap to drop privileges other than
247         those needed.
248         * login/Makefile: If necessary link pt_chown with -lcap.
249         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
250         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
252 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
254         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
255         comparisons.
256         * string/test-memchr.c (do_random_tests): Test very large lengths
257         as well.
259 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
261         * Makeconfig (+link-pie): Define.
262         (+prectorS): Define.
263         (+postctorS): Define.
264         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
265         * nscd/Makefile ($(objpfx)nscd): Likewise.
267 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
269         [BZ #10107]
270         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
271         with cmplwi.
272         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
274 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
276         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
277         into ...
278         * sysdeps/unix/grantpt.c: ...here.
280 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
282         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
283         chmod if it is necessary.
285         [BZ #10166]
286         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
287         when the slave device is in devpts or devfs.
289         [BZ #10183]
290         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
292         [BZ #10195]
293         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
294         of nd_opt_home_agent_info_preference to uint16_t.
295         Patch by Arnaud Ebalard <arno@natisbad.org>.
297         [BZ #10207]
298         * nss/getent.c: Add support for printing gshadow data.
300         [BZ #10203]
301         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
302         not just the currently used one and those which follow.
303         Patch by Joe Landers <jlanders@vmware.com>.
305         [BZ #10196]
306         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
307         * libio/Makefile: Run tst-fgetwc with necessary envvar.
308         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
310         [BZ #10217]
311         * stdlib/abort.c: Define variable __abort_msg.
312         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
313         * include/stdlib.h: Declare __abort_msg.
314         * assert/assert-perr.c: Don't free buffer for message immediately.
315         Store atomically in __abort_msg and free old buffer if necessary.
316         * assert/assert.c: Likewise.
317         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
318         store pointer in __abort_msg, and possibly free old string.
319         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
321         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
323         [BZ #10211]
324         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
325         handle leap seconds if they are available.
326         Patch by Akinori Hattori <hattya@gentoo.org>.
328         * timezone/tzselect.ksh: Update from tzcode2009i.
329         * timezone/zdump.c: Likewise.
330         * timezone/zic.c: Likewise.
332         * timezone/africa: Update from tzdata2009i.
333         * timezone/antarctica: Likewise.
334         * timezone/asia: Likewise.
335         * timezone/australasia: Likewise.
336         * timezone/backward: Likewise.
337         * timezone/etcetera: Likewise.
338         * timezone/europe: Likewise.
339         * timezone/factory: Likewise.
340         * timezone/iso3166.tab: Likewise.
341         * timezone/leapseconds: Likewise.
342         * timezone/northamerica: Likewise.
343         * timezone/pacificnew: Likewise.
344         * timezone/solar87: Likewise.
345         * timezone/solar88: Likewise.
346         * timezone/solar89: Likewise.
347         * timezone/southamerica: Likewise.
348         * timezone/systemv: Likewise.
349         * timezone/yearistype: Likewise.
350         * timezone/zone.tab: Likewise.
352 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
354         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
355         STT_GNU_IFUNC symbol or in 8 into type_class.
357         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
358         instead of Elf64_Addr.
360 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
362         * po/sv.po: Update from translation team.
364         [BZ #10229]
365         * misc/sys/select.h (__NFDBITS): Expression should have type int.
366         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
367         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
368         the C version.
370 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
372         * Versions.def: Add GLIBC_2.11 for libpthread.
374 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
376         * resolv/res_send.c (send_dg): Remember we switched to
377         single-request mode.
379 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
381         * dlfcn/dlfcn.h: Remove comma at end of enum.
382         Patch by J.H.M. Dassen <rdassen@redhat.com>.
384         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
385         parsing mode string.
387 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
389         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
391         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
393         * sysdeps/x86_64/multiarch/strlen.S: New file.
394         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
395         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
396         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
397         content.
399         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
400         is defined.
402 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
404         * sysdeps/x86_64/strlen.S: Minor optimizations.
406 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
408         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
409         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
410         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
411         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
412         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
413         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
414         ifuncmain3.c, ifuncmod3.c,.
415         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
416         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
417         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
418         ifuncmain4picstatic.
419         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
420         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
421         ifuncmain3, ifuncmain4.
422         (tests): Depend on $(objpfx)ifuncmain1pie.out and
423         $(objpfx)ifuncmain1vispie.out.
424         (modules-names): Add ifuncmod1 ifuncmod3.
425         (generated): Add ifuncmain1pie ifuncmain1pie.out
426         ifuncmain1vispie ifuncmain1vispie.out.
427         Define rules to build and run the tests.
428         * elf/ifuncdep1.c: New file.
429         * elf/ifuncdep1pic.c: New file.
430         * elf/ifuncdep2.c: New file.
431         * elf/ifuncdep2pic.c: New file.
432         * elf/ifuncmain1.c: New file.
433         * elf/ifuncmain1pic.c: New file.
434         * elf/ifuncmain1picstatic.c: New file.
435         * elf/ifuncmain1pie.c: New file.
436         * elf/ifuncmain1static.c: New file.
437         * elf/ifuncmain1staticpic.c: New file.
438         * elf/ifuncmain1vis.c: New file..
439         * elf/ifuncmain1vispic.c: New file..
440         * elf/ifuncmain1vispie.c: New file.
441         * elf/ifuncmain2.c: New file.
442         * elf/ifuncmain2pic.c: New file.
443         * elf/ifuncmain2picstatic.c: New file.
444         * elf/ifuncmain2static.c: New file.
445         * elf/ifuncmain3.c: New file.
446         * elf/ifuncmain4.c: New file.
447         * elf/ifuncmain4picstatic.c: New file.
448         * elf/ifuncmain4static.c: New file.
449         * elf/ifuncmod1.c: New file.
450         * elf/ifuncmod3.c: New file.
452 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
454         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
456 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
458         [BZ #10221]
459         * posix/Makefile (routines): Add execvpe.
460         * posix/Versions: Export execvpe for GLIBC_2.11.
461         * posix/execvp.c: Now only a wrapper.  Move code to...
462         * posix/execvpe.c: ...here.  New file.
463         * posix/unistd.h: Declare execvpe.
465 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
467         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
468         for STT_GNU_IFUNC handling for efficiency.
469         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
471         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
472         _exit.
473         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
475 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
477         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
478         for !SHARED.
480 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
482         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
483         is not defined.
484         (__rela_iplt_start): New declaration.
485         (__rela_iplt_end): Likewise.
486         (__rel_iplt_start): Likewise.
487         (__rel_iplt_end): Likewise.
488         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
489         * elf/elf.h (R_386_IRELATIVE): New macro.
490         (R_X86_64_IRELATIVE): New macro.
491         (R_386_NUM): Updated.
492         (R_X86_64_NUM): Likewise.
493         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
494         (libc_ifunc_hidden_def): New macro.
495         * sysdeps/generic/dl-irel.h: New file.
496         * sysdeps/i386/dl-irel.h: New file.
497         * sysdeps/x86_64/dl-irel.h: New file.
498         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
499         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
500         Handle R_386_IRELATIVE.
501         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
502         (elf_machine_lazy_rela): Likewise.
503         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
504         R_X86_64_IRELATIVE.
505         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
507 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
509         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
510         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
511         are no differences.  If an architecture has bits in CPUID index 1
512         meaning different things the values for the COMMON_CPUID_INDEX_1
513         index must not be set.
514         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
515         (HAS_POPCOUNT): ...this.  New macro.
516         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
517         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
518         to set the value for Intel and AMD architectures.
519         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
520         INTEL_CPUID_INDEX_1.
521         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
522         change.
524 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
526         * configure.in: Move AC_CANONICAL_HOST before first use of $host
527         and $build.
529 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
531         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
532         (__expm1l): Set errno to ERANGE on overflow.
533         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
534         (__tanl): Set errno to EDOM for Â±Inf.
535         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
536         (__cosl): Set errno to EDOM for Â±Inf.
537         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
538         (__sinl): Set errno to EDOM for Â±Inf.
540         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
541         defined, use it.
542         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
543         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
544         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
546 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
548         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
549         code accessing it.
550         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
552 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
554         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
555         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
556         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
557         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
559         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
560         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
561         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
562         defined.
563         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
564         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
566 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
568         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
569         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
570         is, either do nothing at all if __ASSUME_ACCEPT4, or
571         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
572         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
573         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
574         define.
575         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
576         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
577         internal_accept4 in socket directory.
579 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
581         * sysdeps/ia64/configure.in: New file.
583 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
585         [BZ #10162]
586         * sysdeps/ia64/memchr.S: Use speculative load.
588         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
589         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
590         use it.
592         * sysdeps/i386/__longjmp.S: Add .text.
593         * sysdeps/x86_64/__longjmp.S: Likewise.
595 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
597         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
598         __ASSUME_ACCEPT4 for IA-64.
600 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
602         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
604         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
605         (SOCKOP_accept4): Define.
607 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
609         Sun approved the change of the license.
610         * sunrpc/auth_des.c: Replace license text.
611         * sunrpc/auth_none.c: Likewise.
612         * sunrpc/auth_unix.c: Likewise.
613         * sunrpc/authdes_prot.c: Likewise.
614         * sunrpc/authuxprot.c: Likewise.
615         * sunrpc/bindrsvprt.c: Likewise.
616         * sunrpc/clnt_gen.c: Likewise.
617         * sunrpc/clnt_perr.c: Likewise.
618         * sunrpc/clnt_raw.c: Likewise.
619         * sunrpc/clnt_simp.c: Likewise.
620         * sunrpc/clnt_tcp.c: Likewise.
621         * sunrpc/clnt_udp.c: Likewise.
622         * sunrpc/clnt_unix.c: Likewise.
623         * sunrpc/des_crypt.c: Likewise.
624         * sunrpc/des_soft.c: Likewise.
625         * sunrpc/get_myaddr.c: Likewise.
626         * sunrpc/getrpcport.c: Likewise.
627         * sunrpc/key_call.c: Likewise.
628         * sunrpc/key_prot.c: Likewise.
629         * sunrpc/openchild.c: Likewise.
630         * sunrpc/pm_getmaps.c: Likewise.
631         * sunrpc/pm_getport.c: Likewise.
632         * sunrpc/pmap_clnt.c: Likewise.
633         * sunrpc/pmap_prot.c: Likewise.
634         * sunrpc/pmap_prot2.c: Likewise.
635         * sunrpc/pmap_rmt.c: Likewise.
636         * sunrpc/rpc/auth.h: Likewise.
637         * sunrpc/rpc/auth_unix.h: Likewise.
638         * sunrpc/rpc/clnt.h: Likewise.
639         * sunrpc/rpc/des_crypt.h: Likewise.
640         * sunrpc/rpc/key_prot.h: Likewise.
641         * sunrpc/rpc/netdb.h: Likewise.
642         * sunrpc/rpc/pmap_clnt.h: Likewise.
643         * sunrpc/rpc/pmap_prot.h: Likewise.
644         * sunrpc/rpc/pmap_rmt.h: Likewise.
645         * sunrpc/rpc/rpc.h: Likewise.
646         * sunrpc/rpc/rpc_des.h: Likewise.
647         * sunrpc/rpc/rpc_msg.h: Likewise.
648         * sunrpc/rpc/svc.h: Likewise.
649         * sunrpc/rpc/svc_auth.h: Likewise.
650         * sunrpc/rpc/types.h: Likewise.
651         * sunrpc/rpc/xdr.h: Likewise.
652         * sunrpc/rpc_clntout.c: Likewise.
653         * sunrpc/rpc_cmsg.c: Likewise.
654         * sunrpc/rpc_common.c: Likewise.
655         * sunrpc/rpc_cout.c: Likewise.
656         * sunrpc/rpc_dtable.c: Likewise.
657         * sunrpc/rpc_hout.c: Likewise.
658         * sunrpc/rpc_main.c: Likewise.
659         * sunrpc/rpc_parse.c: Likewise.
660         * sunrpc/rpc_parse.h: Likewise.
661         * sunrpc/rpc_prot.c: Likewise.
662         * sunrpc/rpc_sample.c: Likewise.
663         * sunrpc/rpc_scan.c: Likewise.
664         * sunrpc/rpc_scan.h: Likewise.
665         * sunrpc/rpc_svcout.c: Likewise.
666         * sunrpc/rpc_tblout.c: Likewise.
667         * sunrpc/rpc_util.c: Likewise.
668         * sunrpc/rpc_util.h: Likewise.
669         * sunrpc/rpcinfo.c: Likewise.
670         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
671         * sunrpc/rpcsvc/key_prot.x: Likewise.
672         * sunrpc/rpcsvc/klm_prot.x: Likewise.
673         * sunrpc/rpcsvc/mount.x: Likewise.
674         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
675         * sunrpc/rpcsvc/rex.x: Likewise.
676         * sunrpc/rpcsvc/rstat.x: Likewise.
677         * sunrpc/rpcsvc/rusers.x: Likewise.
678         * sunrpc/rpcsvc/sm_inter.x: Likewise.
679         * sunrpc/rpcsvc/spray.x: Likewise.
680         * sunrpc/rpcsvc/yppasswd.x: Likewise.
681         * sunrpc/rtime.c: Likewise.
682         * sunrpc/svc.c: Likewise.
683         * sunrpc/svc_auth.c: Likewise.
684         * sunrpc/svc_authux.c: Likewise.
685         * sunrpc/svc_raw.c: Likewise.
686         * sunrpc/svc_run.c: Likewise.
687         * sunrpc/svc_simple.c: Likewise.
688         * sunrpc/svc_tcp.c: Likewise.
689         * sunrpc/svc_udp.c: Likewise.
690         * sunrpc/svc_unix.c: Likewise.
691         * sunrpc/svcauth_des.c: Likewise.
692         * sunrpc/xcrypt.c: Likewise.
693         * sunrpc/xdr.c: Likewise.
694         * sunrpc/xdr_array.c: Likewise.
695         * sunrpc/xdr_float.c: Likewise.
696         * sunrpc/xdr_mem.c: Likewise.
697         * sunrpc/xdr_rec.c: Likewise.
698         * sunrpc/xdr_ref.c: Likewise.
699         * sunrpc/xdr_sizeof.c: Likewise.
700         * sunrpc/xdr_stdio.c: Likewise.
702         * po/da.po: Update from translation team.
704 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
706         * sysdeps/sh/____longjmp_chk.S: New file.
707         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
708         * sysdeps/sh/sh4/__longjmp.S: Likewise.
710 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
711             Ulrich Drepper  <drepper@redhat.com>
713         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
714         (__nscd_cache_search): Assume each entry in the
715         hash chain needs one hashentry and half of datahead.  Use
716         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
718 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
720         * posix/sys/wait.h: Fix typos.  Pretty printing.
721         * stdlib/stdlib.h: Likewise.  Correct comments.
723         [BZ #10159]
724         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
726         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
727         patch.
729 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
731         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
732         Use it if we absolutely cannot reach any more correct list elements
733         because that many do not fit into the currently mapped database.
735 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
737         * nscd/nscd_helper.c: Include stddef.h.
738         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
739         in a couple of places.  Return NULL if trail is not less than
740         datasize, don't consider dataheads with length smaller than
741         offsetof (struct datahead, data) + datalen.
742         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
743         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
744         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
745         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
746         * nscd/nscd_getai.c (__nscd_getai): Likewise.
747         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
748         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
750         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
751         Rename ...
752         (fallocate64): ... to this.
753         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
754         Rename ...
755         (fallocate64): ... to this.
756         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
757         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
758         fallocate64@@GLIBC_2.10.
759         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
760         fallocate64@@GLIBC_2.11.
761         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
763         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
764         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
766         * nscd/selinux.c (nscd_avc_destroy): Removed.
767         * nscd/selinux.h (nscd_avc_destroy): Likewise.
768         * nscd/nscd.c (termination_handler): Don't call
769         nscd_avc_destroy.
771 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
773         * include/atomic.h: Formatting.
774         (catomic_compare_and_exchange_val_acq): Don't define if already
775         defined by bits/atomic.h.
777 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
779         * math/libm-test.inc (expm1_test): Add test for range error.
781         * Versions.def: Add GLIBC_2.11 for libc.
782         * debug/Makefile (routines): Add longjmp_chk.
783         Add rules to build and run tst-longjmp_chk.
784         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
785         * debug/longjmp_chk.c: New file.
786         * debug/tst-longjmp_chk.c: New file.
787         * include/bits/setjmp2.: New file.
788         * include/stdio.h: Mark __fortify_fail as internal_function.
789         * setjmp/Makefile (headers): Add bits/setjmp2.h.
790         * setjmp/bits/setjmp2.h: New file.
791         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
792         of the aliases.
793         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
794         defined.
795         * sysdeps/i386/____longjmp_chk.S: New file.
796         * sysdeps/x86_64/____longjmp_chk.S: New file.
797         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
798         * sysdeps/x86_64/__longjmp.S: Likewise.
800         * version.h: Bump for 2.11 development.
802         * elf/check-execstack.c: New file.
803         * elf/Makefile: Add rules to build and run check-execstack.
805 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
807         * version.h (VERSION): Bump to 2.10.1.
809         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
810         compatibility functions.
811         * nss/getXXent_r.c: Likewise.
812         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
813         * gshadow/getsgnam_r.c: Likewise.
814         * gshadow/Version: Remove duplicate entries.
816         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
817         for recent processor.
818         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
819         Likewise.
821 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
823         * version.h (VERSION): Bump for 2.10 release.
824         * include/features.h (__GLIBC_MINOR__): Bump to 10.
826         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
827         same place we add ASFLAGS-config.
829 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
831         [BZ #10128]
832         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
833         or FORMERR and the other NOERROR, don't raise an error.
835 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
837         [BZ #10118]
838         * Makeconfig (+asflags): New variable based upon ASFLAG or
839         asflags-cpu.
840         (ASFLAGS): Add override to set ASFLAGS to +asflags.
841         * config.make.in (asflags-cpu): Add variable based upon
842         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
843         the assembler.
844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
845         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
846         recognizes power6 instruction set due to passing -mcpu=power6 from
847         --with-cpu=power6 when compiling .S files.
848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
849         Likewise.
850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
851         Likewise.
852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
853         Likewise.
855 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
857         * string/stratcliff.c (do_test): Test for zero length
858         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
859         at the end of the page.
861 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
863         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
865         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
866         count is zero.
868         * po/da.po: Update from translation team.
870 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
872         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
873         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
875 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
877         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
878         and READ_IMPLIES_EXEC.
880 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
882         * po/da.po: Update from translation team.
884 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
886         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
887         comment change.
889 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
891         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
892         to MAP_ANON in PROT_NONE mmap64 call.
893         (open_archive): Likewise.
894         (file_data_available_p): Use mmap64 instead of mremap.
895         (enlarge_archive): Likewise.  Update head if ah->addr changed.
896         Attempt to reserve address space after mmap64 region.
898 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
900         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
901         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
902         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
904         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
905         atanh should set ERANGE.
907         [BZ #10087]
908         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
909         result of lookup to make call to implement STT_GNU_IFUNC.
910         (_dl_profile_fixup): Likewise.
911         Patch by H.J. Lu <hjl.tools@gmail.com>.
913         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
914         warning.
916         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
917         from definition.
919         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
920         label if it is not used.
922         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
923         of gmon_hist_hdr and gmon_hdr structures and use them.
924         * elf/sprof.c: Likewise.
926         * elf/dl-load.c (open_verify): Add temporary variable to avoid
927         warning.
929         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
931         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
932         to avoid cast.
934         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
935         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
936         to avoid warnings.
937         (iruserok_af): Use ss_family instead of casts.
939         * gmon/gmon.c (write_hist): Define real-type variant of
940         gmon_hist_hdr structure and use it.
941         (write_gmon): Likewise for gmon_hdr.
943         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
944         function if we are not going to define it.
945         * sysdeps/unix/sysv/linux/writev.c: Likewise.
947         * inet/inet6_option.c (option_alloc): Add temporary variable to
948         avoid warning.
950         * libio/strfile.h (struct _IO_streambuf): Use correct type and
951         name of VTable element.
952         * libio/iovsprintf.c: Avoid casts to avoid warnings.
953         * libio/iovsscanf.c: Likewise.
954         * libio/vasprintf.c: Likewise.
955         * libio/vsnprintf.c: Likewise.
956         * stdio-common/isoc99_vsscanf.c: Likewise.
957         * stdlib/strfmon_l.c: Likewise.
958         * debug/vasprintf_chk.c: Likewise.
959         * debug/vsnprintf_chk.c: Likewise.
960         * debug/vsprintf_chk.c: Likewise.
962         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
963         function pointers.
965 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
967         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
969 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
971         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
973         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
974         * sysdeps/i386/fpu/s_tanf.S: Likewise.
975         * sysdeps/i386/fpu/s_tanl.S: Likewise.
976         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
977         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
978         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
979         * math/libm-test.inc: Add tests for errno after tan calls with
980         Â±Inf.
982         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
983         errno value vor pow(+-0,neg).
984         * math/libm-test.inc (pow_test): Add tests for errno value for
985         pole errors.
987         * math/w_fmod.c: Also handle x=±Inf as error.
988         * math/w_fmodf.c: Likewise.
989         * math/w_fmodl.c: Likewise.
990         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
991         x=±Inf or y=0.
993         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
994         * sysdeps/i386/fpu/s_cosf.S: Likewise.
995         * sysdeps/i386/fpu/s_cosl.S: Likewise.
996         * sysdeps/i386/fpu/s_sin.S: Likewise.
997         * sysdeps/i386/fpu/s_sinf.S: Likewise.
998         * sysdeps/i386/fpu/s_sinl.S: Likewise.
999         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1000         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1001         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1002         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1003         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1004         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1005         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1006         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1007         Â±Inf.
1009         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1010         ERANGE for underflows.
1011         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1013         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1014         the 2001 revision.
1016         * libio/tst-widetext.input: Remove surrogates.
1018         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1020         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1021         for lgamma should set errno to ERANGE, not EDOM.
1022         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1024 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1026         [BZ #10093]
1027         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1028         UTF-16 surrogates.
1030         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1031         space when temporarily mapping the whole content of the old file.
1033         [BZ #10100]
1034         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1035         not zero.
1037 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1039         * iconvdata/sjis.c (BODY): Don't advance inptr before
1040         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1041         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1042         two byte chars.
1044 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1046         * locale/locarchive.h (struct locarhandle): Rename len field to
1047         mmaped and add new reserved field.
1048         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1049         (create_archive): Reserve address space and then map file into it.
1050         (open_archive): Likewise.
1051         (file_data_available_p): New function.
1052         (compare_from_file): New function.
1053         (close_archive): Adjust to member name changes.
1054         (add_locale): Before comparing locale data, check it is mapped.
1055         Otherwise fall back to reading from the file.
1057 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1059         * stdio-common/psiginfo.c: Include <errno.h>.
1061 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1063         [BZ #9920]
1064         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1065         to get consistency between 32 and 64 bit architectures.
1067         [BZ #10052]
1068         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1069         directory for dummy syscall rules.
1070         Patch by Chris Steinbroner <hesh@pobox.com>.
1072 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1074         [BZ #10092]
1075         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1076         MNT_EXPIRE.
1078 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1080         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1081         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1083 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
1085         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
1086         data from vector to temporary buffer and call PWRITEV after it
1087         instead of vice versa.
1088         * sysdeps/posix/preadv.c: Fix up comment.
1089         * misc/preadv.c: Likewise.
1090         * misc/preadv64.c: Likewise.
1091         * misc/pwritev.c: Likewise.
1092         * misc/pwritev64.c: Likewise.
1093         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1095 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1097         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1099         * shadow/Makefile (tests): Add tst-shadow.
1100         * shadow/tst-shadow.c: New file.
1102         [BZ #9955]
1103         * gshadow/Makefile: New file.
1104         * gshadow/Versions: New file.
1105         * gshadow/fgetsgent.c: New file.
1106         * gshadow/fgetsgent_r.c: New file.
1107         * gshadow/getsgent.c: New file.
1108         * gshadow/getsgent_r.c: New file.
1109         * gshadow/getsgnam.c: New file.
1110         * gshadow/getsgnam_r.c: New file.
1111         * gshadow/gshadow.h: New file.
1112         * gshadow/putsgent.c: New file.
1113         * gshadow/sgetsgent.c: New file.
1114         * gshadow/sgetsgent_r.c: New file.
1115         * gshadow/tst-gshadow.c: New file.
1116         * include/gshadow.h: New file.
1117         * Makeconfig (all-subdirs): Add gshadow.
1118         * Makefile (installed-headers): Add gshadow/gshadow.h.
1119         * nss/Makefile (databases): Add sgrp.
1120         * nss/Versions: Add gshadow functions as private exports.
1121         * nss/nsswitch.conf: Add gshadow entry.
1122         * nss/sgrp-lookup.c: New file.
1123         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
1124         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1125         * nss/nss_files/files-sgrp.c: New file.
1126         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1127         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1129 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
1131         * stdio-common/printf.h: Add missing const to register_printf_modifier.
1132         * stdio-common/reg-modifier.c: Likewise.
1134 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
1136         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1137         is no FPU.
1139 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
1141         [BZ #10086]
1142         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1143         headers up to 2.6.30.
1145         * po/ca.po: Update from translation team.
1147 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
1149         [BZ #10069]
1150         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1151         an object that uses static TLS if the TLS modid is higher than the
1152         reserve we always allocate.  At least for multi-threaded code.
1154 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
1156         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1157         Numerically stable check for valid width.
1159         * locale/programs/locarchive.c (open_archive): Map the entire file
1160         and not just the administrative data.
1161         (add_locale): When we find a hash sum match compare the content
1162         to be sure.
1164         * malloc/malloc.c (malloc_info): Output address space information.
1166 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
1168         * malloc/malloc.c (malloc_info): Also output system memory information.
1170         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1171         architectures have preadv/pwritev in 2.6.30.
1173         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1174         * sysdeps/posix/readv.c: Likewise.
1175         Reported by Markus Armbruster <armbru@redhat.com>.
1177         * malloc/hooks.c (top_check): Force hook value into register.
1179 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1181         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1182         calls to _dl_relocate_object.
1184 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1186         [BZ #9957]
1187         * malloc/malloc.c (force_reg): Define.
1188         (sYSMALLOc): Load hook variable into variable
1189         before test and force into register.
1190         (sYSTRIm): Likewise.
1191         (public_mALLOc): Force hook value into register.
1192         (public_fREe): Likewise.
1193         (public_rEALLOc): Likewise.
1194         (public_mEMALIGn): Likewise.
1195         (public_vALLOc): Likewise.
1196         (public_pVALLOc): Likewise.
1197         (public_cALLOc): Likewise.
1198         (__posix_memalign): Likewise.
1199         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1200         before test and force into register.
1201         * malloc/hooks.c (top_check): Likewise.
1202         (public_sET_STATe): Pretty printing.
1204         * resolv/res_send.c (send_dg): Don't just ignore the result we got
1205         in case we only receive one reply in single-request mode.
1207 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
1209         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1210         are dlopened in statically linked program even for __LM_ID_CALLER.
1212 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
1214         * resolv/res_send.c (send_dg): Don't switch into single-request
1215         mode if we already are in it.
1217 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
1219         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1220         are always at least 4 bytes in the returned line.
1222 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
1224         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1225         __libc_use_alloca (8192), if the stack is too small use 512 bytes
1226         instead of 8K.  Stop searching in /proc/stat after hitting first
1227         line not starting with cpu.
1228         (next_line): Truncate too long
1229         lines at buffer size * 3/4 instead of pretending there were line
1230         breaks inside of large lines.
1232 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1234         * sysdeps/x86_64/mp_clz_tab.c: New file.
1236 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
1237             Ulrich Drepper  <drepper@redhat.com>
1239         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1240         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1241         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1243 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
1245         * sysdeps/sh/libc-tls.c: New file.
1247         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1249 2009-04-14  Roland McGrath  <roland@redhat.com>
1251         * elf/elf.h: Add various missing ARM constants, to match binutils.
1253 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1255         Optimizations from GMP.
1256         * sysdeps/x86_64/add_n.S: New file.
1257         * sysdeps/x86_64/addmul_1.S: New file.
1258         * sysdeps/x86_64/lshift.S: New file.
1259         * sysdeps/x86_64/mul_1.S: New file.
1260         * sysdeps/x86_64/rshift.S: New file.
1261         * sysdeps/x86_64/sub_n.S: New file.
1262         * sysdeps/x86_64/submul_1.S: New file.
1264 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
1266         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1267         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1268         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1269         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1271 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
1273         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1274         preadv/pwritev.
1276 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
1278         * sysdeps/x86-64/strrchr.S: New file.
1280 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
1282         * stdio-common/printf.h (struct printf_info): Add user element.
1283         New types printf_arginfo_size_function, printf_va_arg_function.
1284         Declare register_printf_specifier, register_printf_modifier,
1285         register_printf_type.
1286         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1287         (union printf_arg): Add pa_user element.
1288         Adjust __printf_arginfo_table type.
1289         Add __printf_va_arg_table, __printf_modifier_table,
1290         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1291         declarations.
1292         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1293         If registered arginfo call failed try normal specifier.
1294         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1295         function.
1296         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1297         * stdio-common/Versions: Export register_printf_modifier,
1298         register_printf_type, and register_printf_specifier for GLIBC_2.10.
1299         * stdio-common/reg-modifier.c: New file.
1300         * stdio-common/reg-type.c: New file.
1301         * stdio-common/reg-printf.c (__register_printf_specifier): New
1302         function.  Mostly the old __register_printf_function function but
1303         uses locking and type of third parameter changed.
1304         (__register_printf_function): Implement using
1305         __register_printf_specifier.
1306         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1307         calls to arginfo functions.  Allocate enough memory for user-defined
1308         types.  Call new va_arg functions to get user-defined types.
1309         Try installed handlers even for existing format specifiers first.
1311 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
1313         * sysdeps/x86_64/rawmemchr.S: New file.
1315         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1316         Simplified code and possible copy problem fixed.
1318         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1319         function if it is not defined.  Add some necessary casts.
1320         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1322         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1323         have preadv/pwritev in 2.6.30.
1325 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
1327         * malloc/malloc.c (malloc_info): New function.
1328         * malloc/malloc.h: Declare it.
1329         * malloc/Versions: Export malloc_info for GLIBC_2.10.
1331         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1332         to avoid PLT slot.
1334         * malloc/malloc.c (_int_realloc): Add parameter with old block
1335         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
1336         Adjust all callers.
1337         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1339 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
1341         * sysdeps/x86_64/strchrnul.S: New file.
1343         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1344         depending libcrypt on -lfreebl3.
1346         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1347         preadv/pwritev in 2.6.30.
1349         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1350         instead of __strcasecmp.
1352         * string/stratcliff.c (do_test): Add memchr tests..
1353         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1354         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1355         first read quad word.
1357 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
1359         * string/strverscmp.c (__strverscmp): Fix last cleanups.
1360         * string/tst-svc.input: Add new test case.
1361         * string/tst-svc.expect: Adjust.
1362         * string/Makefile: Don't ignore tst-svc error.
1364         * sysdeps/x86_64/memchr.S: New file.
1366         * resolv/resolv.h (RES_SNGLKUP): Define.
1367         * resolv/res_init.c (res_setoptions): Recognize single-request option.
1368         * resolv/res_send.c (send_dg): If we sent two requests at once and
1369         only get one reply before timeout switch to mode where we send the
1370         second request only after the first answer has been received.
1372 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
1374         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1375         * sysdeps/x86_64/strchr.S: Likewise.
1377 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
1379         * configure.in: We need to test for the compiler earlier.
1381         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1382         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1383         GLIBC_2.10.
1384         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1385         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1386         and pwritev.
1387         * misc/preadv.c: New file.
1388         * misc/preadv64.c: New file.
1389         * misc/pwritev.c: New file.
1390         * misc/pwritev64.c: New file.
1391         * sysdeps/posx/preadv.c: New file.
1392         * sysdeps/posx/preadv64.c: New file.
1393         * sysdeps/posx/pwritev.c: New file.
1394         * sysdeps/posx/pwritev64.c: New file.
1395         * sysdeps/unix/sysv/linux/preadv.c: New file.
1396         * sysdeps/unix/sysv/linux/preadv64.c: New file.
1397         * sysdeps/unix/sysv/linux/pwritev.c: New file.
1398         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1399         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1400         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1402         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1403         compatibility code.
1404         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1406         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1407         __ASSUME_COMPLETE_READV_WRITEV.
1408         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1409         with modern kernels.
1410         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1412         * sysdeps/posix/readv.c: Since read is a cancellation point we have
1413         to free a possible malloced buffer in case of cancellation.
1414         * sysdeps/posix/writev.c: Likewise for write.
1416 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
1418         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1420         * configure.in: Recognize --enable-nss-crypt.
1421         * config.make.in: Add nss-crypt entry.
1422         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1423         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
1424         and include path for NSS directory to compiler for md5-crypt,
1425         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
1426         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1427         function implementation, use NSS.  Introduce wrappers around the
1428         hash function calls.  Little code size optimization.
1429         * crypt/sha256-crypt.c: Likewise.
1430         * crypt/sha512-crypt.c: Likewise.
1431         * scripts/check-local-headers.sh: Ignore nss3 directory.
1433         * configure.in: Rename pic_default to libc_cv_pic_default.
1434         * config.make.in: Likewise.
1436 2009-04-01  Roland McGrath  <roland@redhat.com>
1438         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1439         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1440         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1441         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1442         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1443         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1444         (R_SPARC_NUM): Update.
1445         From Dave Miller <davem@davemloft.net>.
1447 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
1449         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1451 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
1453         * elf/dl-open.c: Keep track of used name spaces and only iterate over
1454         those which are used.
1455         * elf/dl-addr.c: Likewise.
1456         * elf/dl-caller.c: Likewise.
1457         * elf/dl-fini.c: Likewise.
1458         * elf/dl-iteratephdr.c: Likewise.
1459         * elf/dl-libc.c: Likewise.
1460         * elf/dl-load.c: Likewise.
1461         * elf/dl-support.c: Likewise.
1462         * elf/dl-sym.c: Likewise.
1463         * elf/rtld.c: Likewise.
1464         * sysdeps/generic/ldsodefs.h: Likewise.
1466         * elf/dl-load.c: Remove support for systems without MAP_ANON.
1467         * elf/dl-minimal.c: Likewise.
1468         * elf/dl-misc.c: Likewise.
1469         * elf/rtld.c: Likewise.
1470         * sysdeps/generic/ldsodefs.h: Likewise.
1472 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
1474         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1475         Avoid reuse of complex expression.
1477         * po/fr.po: Update from translation team.
1479 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1481         * include/dirent.h: Yet more changes to match sort function type
1482         change.
1483         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1484         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1485         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1487 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
1489         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1491 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
1493         * nscd/connections.c (restart): Try to preserve the process name
1494         by reading the /proc/self/exe symlink and using the return name.
1495         Patch by Jeff Bastian <jbastian@redhat.com>.
1497 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
1499         [BZ #9733]
1500         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1501         if we are not loading a new audit library.
1502         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1503         Only use profiling trampoline for auditing if we are not relocating
1504         an audit library.
1505         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1506         * elf/rtld.c: Likewise.
1507         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1509         * elf/rtld.c (dl_main): Extend help message for --audit option.
1511         [BZ #9759]
1512         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1513         alphasort64, versionsort, and versionsort64 to POSIX 2008.
1514         * dirent/alphasort.c: Adjust implementation to type change.
1515         * dirent/alphasort64.c: Likewise.
1516         * dirent/scandir.c: Likewise.
1517         * dirent/versionsort.c: Likewise.
1518         * dirent/versionsort64.c: Likewise.
1519         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1520         declaration.
1521         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1522         declaration.
1524         [BZ #9880]
1525         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1526         correctly.  Set segleft member in output as required.
1527         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1528         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1530         [BZ #9881]
1531         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1532         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1533         * inet/Makefile (tests): Add tst-inet6_rth.
1534         * inet/tst-inet6_rth.c: New file.
1536         [BZ #5807]
1537         * string/strlen.c (strlen): Fix omission in the expression to test
1538         for NUL bytes.
1540 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1542         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1544         * elf/dl-runtime.c (reloc_offset): Define.
1545         (reloc_index): Define.
1546         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1547         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
1548         computing index from reloc_offset.
1549         (_dl_call_pltexit): Likewise.
1550         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1551         the relocation index to _dl_fixup.
1552         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1553         _dl_call_pltexit.
1554         * sysdeps/x86_64/dl-runtime.c: New file.
1556         [BZ #9893]
1557         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1558         alignment of La_x86_64_regs.  Store xmm parameters.
1559         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1561         [BZ #9913]
1562         * string/strverscmp.c (__strverscmp): Fix case of different digits
1563         in fractional part of string.
1564         Patch by Jingyu Liu <jyliu@fortinet.com>.
1565         * string/Makefile (tests): Add tst-svc2.
1566         * string/tst-svc2.c: New file.
1568         * string/strverscmp.c (__strverscmp): Optimize size of tables.
1570         * locale/iso-639.def: Add Min Nan.
1572 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1574         [BZ #9948]
1575         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1577 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
1579         * elf/dl-sysdep.c (auxvars): Compress data structure.
1581         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1582         STT_GNU_IFUNC handling.
1583         (elf_machine_rela): Likewise.
1585 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
1587         * config.h.in (USE_MULTIARCH): Define.
1588         * configure.in: Handle --enable-multi-arch.
1589         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1590         (_dl_fixup_profile): Likewise.
1591         * elf/do-lookup.c (dl_lookup_x): Likewise.
1592         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1593         * elf/elf.h (STT_GNU_IFUNC): Define.
1594         * include/libc-symbols.h (libc_ifunc): Define.
1595         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1596         framework in init-arch.h to get CPUID values.
1597         * sysdeps/x86_64/multiarch/Makefile: New file.
1598         * sysdeps/x86_64/multiarch/init-arch.c: New file.
1599         * sysdeps/x86_64/multiarch/init-arch.h: New file.
1600         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1602         * config.make.in (experimental-malloc): Define.
1603         * configure.in: Handle --enable-experimental-malloc.
1604         * malloc/Makefile: Handle experimental-malloc flag.
1605         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1606         * malloc/arena.c: Likewise.
1607         * malloc/hooks.c: Likewise.
1608         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1610 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1612         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1613         prediction.  A few size optimizations.
1615 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1617         * time/tzset.c: Optimize a bit for size.
1619 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1621         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1622         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1624         * elf/sprof.c: Avoid warning about multi-line comment.
1626 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1628         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1629         DST name.
1630         * time/tst-posixtz.c: Add tests for quoted timezone names.
1632 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1634         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1635         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1636         200809L instead of 200112L.
1637         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1638         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1640         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1641         instead of __quick_exit_funcs to __run_exit_handlers.
1642         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1643         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1644         (__cxa_at_quick_exit): Remove attribute_hidden.
1645         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1646         to __run_exit_handlers.
1647         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1648         attribute_hidden.
1650 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1652         * po/id.po: Update from translation team.
1654 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1657         .machine push; .machine "power6" and .machine pop around mtfsf
1658         insns outside of _ARCH_PWR6 define.
1659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1661         Likewise.
1662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1663         Likewise.
1664         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1665         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1666         relax_fenv_state): Likewise.
1668 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1670         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1671         cxa_at_quick_exit.
1672         (static-only-routines): Add at_quick_exit.
1673         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1674         GLIBC_2.10.
1675         * stdlib/quick_exit.c: New file.
1676         * stdlib/at_quick_exit.c: New file.
1677         * stdlib/cxa_at_quick_exit.c: New file.
1678         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1679         it appropriately.
1680         (__internal_atexit): New function.
1681         (__new_exitfn): Now takes parameter to point to the list to use.
1682         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1683         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1684         (exit): ...here.  Just call __run_exit_handlers appropriately.
1685         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1686         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1687         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1688         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1690         * po/id.po: Update from translation team.
1692 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1694         * po/ru.po: Update from translation team.
1696 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1698         * po/nl.po: Update from translation team.
1700 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1702         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1703         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1704         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1705         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1706         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1707         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1708         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1710         * po/pl.po: Update from translation team.
1712 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1714         [BZ #7083]
1715         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1716         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1717         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1718         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1719         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1720         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1721         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1722         for GLIBC_2.10.
1723         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1724         Add fallocate and fallocate64.
1726         * io/fcntl.h: Pretty printing.
1728 2009-03-02  Richard Guenther  <rguenther@suse.de>
1730         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1731         attribute also for non-C99 inline semantics variant.
1733 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1735         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1736         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1737         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1738         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1740         Likewise.
1741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1742         Likewise.
1744 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1746         * po/cs.po: Update from translation team.
1748 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1750         * po/bg.po: Update from translation team.
1751         * po/sv.po: Likewise.
1752         * po/fi.po: Likewise.
1753         * po/vi.po: Likewise.
1755 2009-02-27  Roland McGrath  <roland@redhat.com>
1757         * Makeconfig (%.v.i): Depend on Makeconfig.
1758         Exclude % lines from initial #-comment removal.
1760 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1762         * po/ko.po: Update from translation team.
1764 2009-02-26  Roland McGrath  <roland@redhat.com>
1766         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1767         avoids unused warning.
1769 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1770             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1772         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1773         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1774         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1775         and asm/user.h.  Include asm/ptrace.h.
1776         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1777         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1778         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1779         Undefine.
1780         (start_thread): Don't undefine.
1781         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1782         Define.
1784 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1786         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1787         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1788         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1789         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1790         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1791         200112L to 200809L.
1792         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1793         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1794         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1795         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1796         _SC_THREAD_ROBUST_PRIO_PROTECT.
1797         * posix/unistd.h: fexecve is in POSIX 2008.
1798         * time/time.h: strftime_l is in POSIX 2008.
1799         * io/sys/stat.h: futimens is in POSIX 2008.
1800         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1801         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1802         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1803         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1804         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1805         open_memstream, and vdprintf are in POSIX 2008.
1807 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1809         * include/features.h: Define macros for XPG7/POSIX 2008.
1810         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1811         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1812         POSIX 2008.
1813         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1814         * locale/xlocale.h: Define locale_t type.
1815         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1816         in POSIX 2008.  Don't define locale_t here.
1817         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1818         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1819         UTIME_OMIT only with __USE_ATFILE.
1820         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1821         * stdio-common/psiginfo.c: New file.
1822         * stdio-common/psiginfo-data.h: New file.
1823         * stdio-common/psiginfo-define.h: New file.
1824         * stdio-common/Makefile (routines): Add psiginfo.
1825         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1826         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1827         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1828         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1829         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1830         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1831         * io/sys/stat.h: Move mknodat definition into same conditional as
1832         mknod.
1833         * time/sys/time.h: futimesat is not among the functions accepted
1834         into the POSIX standard.
1836         * include/features.h: If no feature selection given and we select
1837         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1838         * posix/Versions: Export __posix_getopt.
1839         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1840         Use it to alternatively initialize __posixly_correct.
1841         (_getopt_internal_r): Take addition parameter.  Pass on to
1842         _getopt_initialize.
1843         (_getopt_internal): Take addition parameter.  Pass on to
1844         _getopt_internal_r.
1845         (getopt): Pass additional zero to _getopt_internal.
1846         (__posix_getopt): New function.
1847         * posix/getopt.h: Add redirection for getopt.
1848         * posix/getopt1.c (getopt_long): Pass additional zero to
1849         _getopt_internal.
1850         (getopt_long_only): Likewise.
1851         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1852         (_getopt_long_only_r): Likewise.
1853         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1854         _getopt_internal_r.
1856 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1858         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1859         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1860         * sysdeps/posix/sysconf.c (__sysconf): Handle
1861         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1862         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1864 2009-02-24  Roland McGrath  <roland@redhat.com>
1866         [BZ #9895]
1867         * README.template: Reworded not to use substituted version number.
1868         Renamed to ...
1869         * README: ... here (no longer generated).
1870         * Makefile (README): Target removed.
1872 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1874         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1875         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1876         instead.
1878         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1880         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1882 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1884         * po/bg.po: Update from translation team.
1886 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1888         * stdlib/monetary.h: Uglify function parameter names.
1889         * sunrpc/rpc/pmap_clnt.h: Likewise.
1890         * sunrpc/rpc/svc.h: Likewise.
1891         * sunrpc/rpc/xdr.h: Likewise.
1892         * sunrpc/rpc/clnt.h: Likewise.
1893         * resolv/netdb.h: Likewise.
1894         * resolv/arpa/nameser.h: Likewise.
1895         * resolv/resolv.h: Likewise.
1896         * argp/argp.h: Likewise.
1897         * locale/langinfo.h: Likewise.
1898         * io/sys/stat.h: Likewise.
1899         * posix/spawn.h: Likewise.
1900         * nis/rpcsvc/nislib.h: Likewise.
1901         * malloc/obstack.h: Likewise.
1902         * sysdeps/ia64/bits/link.h: Likewise.
1903         * sysdeps/i386/bits/link.h: Likewise.
1904         * sysdeps/s390/bits/link.h: Likewise.
1905         * sysdeps/powerpc/bits/link.h: Likewise.
1906         * sysdeps/x86_64/bits/link.h: Likewise.
1907         * sysdeps/sparc/bits/link.h: Likewise.
1908         * sysdeps/sh/bits/link.h: Likewise.
1909         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1910         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1911         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1912         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1914 2008-12-01  Fredrik Unger  <fred@tree.se>
1916         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1917         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1918         _FP_UNPACK_RAW_2, fix up first argument.
1920 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1922         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1923         (GET_NPROCS_PARSER): Change parameters and use next_line.
1924         (__get_nprocs): Rewrite to not use stdio routines.
1925         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1926         Change parameters and use next_line.
1928 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1930         [BZ #5381]
1931         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1932         Change mempool_alloc prototype.
1933         * nscd/mem.c (gc): Don't handle mem_in_flight.
1934         (mempool_alloc): Third parameter now only indicates whether this is the
1935         first call (to allocate data) or not.  If it is, get db rdlock.
1936         Release it on error.  Don't handle mem_in_flight.
1937         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1938         Adjust third parameter of mempool_alloc calls.
1939         Nothing to do here in case mempool_alloc fails.
1940         Avoid local variable shadowing parameter.  No need to get db rdlock
1941         before calling cache_add.
1942         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1943         no mem_in_flight array anymore.
1944         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1945         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1946         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1947         in case mempool_alloc fails. No need to get db rdlock before calling
1948         cache_add.
1949         * nscd/hstcache.c (cache_addhst): Likewise.
1950         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1951         * nscd/servicescache.c (cache_addserv): Likewise.
1952         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1954 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1956         * po/lt.po: Update from translation team.
1958 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1960         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1961         defined, allow additional data to be added using the optional
1962         MORE_ELF_HEADER_DATA macro.
1963         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1964         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1966 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1968         * include/atomic.h: Define catomic_and if not already defined.
1969         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1970         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1972 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1974         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1975         Change all callers.
1976         (_int_realloc): Likewise.  Third argument is now padded size
1977         All _int_* functions are now static.
1979         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1980         * malloc/arena.c: Likewise.
1981         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1982         functions.
1984         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1985         easily.
1987         * malloc/malloc.c: Add branch prediction for use of the hooks.
1989         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1991 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1993         [BZ #7095]
1994         * bits/confname.h: Add SUSv7 macros for getconf environments.
1995         * bits/environments.h: Likewise.
1996         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1997         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1998         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1999         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2000         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2001         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2002         * posix/getconf.c: Likewise.
2003         * posix/sysconf.c: Likewise.
2004         * sysdeps/posix/sysconf.c: Likewise.
2005         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2006         environments.
2008 2009-01-16  Petr Baudis  <pasky@suse.cz>
2010         [BZ #9753]
2011         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2012         even if we currently have zero nscount.
2014 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2016         [BZ #9781]
2017         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2018         the input line is too long.
2020         * po/Makefile (libc.pot): Add f_print as function taking c-format
2021         parameter.
2023         * debug/xtrace.sh: Unify translatable messages.
2024         * elf/ldd.bash.in: Likewise.
2025         * elf/sprof.c: Likewise.
2026         * locale/programs/locale.c: Likewise.
2027         * malloc/memusage.sh: Likewise.
2028         * nss/getent.c: Likewise.
2030 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2032         * debug/pcprofiledump.c (print_version,
2033         argp_program_version_hook): New function.
2034         * elf/ldconfig.c (more_help): New function.
2035         (argp): Use it.
2036         * elf/sln.c (usage): New function.
2037         (main): Support --help and --version.
2038         * malloc/memusagestat.c (print_version): New function.
2039         (argp_program_version_hook): New variable.
2040         * nscd/nscd.c (more_help): New function.
2041         (argp): Use it.
2042         * posix/getconf.c (main): Send --version output to stdout.
2043         Support --help.
2044         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2045         arguments.  All callers changed.
2046         (print_version): New function.
2047         (parseargs): Support --help and --version.
2048         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2049         changed.
2050         (print_version): New function.
2051         (main): Use getopt_long.  Support --help and --version.
2052         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2053         --version.
2055 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2057         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2058         (update_data): Fix handling of wrapping back
2059         to the beginning of the buffer.
2061         [BZ #9823]
2062         * stdio-common/psignal.c (psignal): Fix test for empty string.
2064 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2066         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2067         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2068         move _null_auth to .rodata.
2070         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2071         value of 24.
2073         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2075         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2076         today than when the original code was written.  Use larger
2077         buffers.  This also makes it unnecessary to have stat information,
2078         if this causes extra efforts.
2079         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2080         __alloc_dir.
2082 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
2084         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2085         is set.
2086         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2087         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2088         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2089         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2090         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2091         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2093 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2095         * po/ru.po: Update from translation team.
2097 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
2099         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2100         Add _tid slot to maintain consistency with kernel.
2102 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
2104         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2105         incomplete characters at end of input buffer.
2106         * libio/Makefile (tests): Add tst-fgetwc.
2107         * libio/tst-fgetwc.c: New file.
2108         * libio/tst-fgetwc.input: New file.
2110 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
2112         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2114 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
2116         [BZ #9793]
2117         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2118         *OUTBUFSTART unless the whole output fit into the buffer.
2119         * iconv/Makefile (tests): Add tst-iconv4.
2120         * iconv/tst-iconv4.c: New file.
2122 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
2124         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2125         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2127 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
2129         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2130         newer linker scripts.
2132 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2134         [BZ #7040]
2135         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2136         inotify_rm_watch should have type int.
2138 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
2140         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2141         Make aligned_restore_vmx a local symbol.
2142         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2143         Likewise.
2145 2009-01-30  Andreas Jaeger  <aj@suse.de>
2147         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2148         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2149         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2150         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2151         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2152         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2153         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2155 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
2157         [BZ #9726]
2158         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2159         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2161 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
2163         [BZ #9726]
2164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2165         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2167         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2169 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
2171         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2172         memcpy instead of memcmp.
2173         (_dl_setup_pointer_guard): Likewise.
2175 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
2177         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2178         manipulated brk, use malloc_printerr.
2179         * misc/sbrk.c (__sbrk): Better error handling for nonsense
2180         requests.
2182 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
2184         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2185         rindex): For C++ add inlines so that they can be recognized as
2186         builtins.
2187         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2189 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2190             Jakub Jelinek  <jakub@redhat.com>
2192         * string/string.h: Define correct C++ prototypes for gcc 4.4.
2193         * wcsmbs/wchar.h: Likewise.
2195 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
2197         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2198         (stackinfo_sub_sp): Define.
2200 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2202         [BZ #9750]
2203         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2204         * include/alloca.h (alloca_account): Define.
2205         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2206         (stackinfo_sub_sp): Define.
2208         * nscd/connections.c (nscd_init): If database file access fails
2209         check whether this is due to permission problems and bail in that
2210         case.
2212         [BZ #9741]
2213         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2214         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2216 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2218         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2219         Add "t" to clobber list.
2220         (INTERNAL_SYSCALL_NCS): Likewise.
2222 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2224         * nss/getent.c (print_networks): Don't print comma between aliases.
2226 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
2228         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2230         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2231         the hash table.
2232         * misc/Makefile (tests): Add bug-hsearch1.
2233         * misc/bug-hsearch1.c: New file.
2235 2009-01-22  Roland McGrath  <roland@redhat.com>
2237         * Makeconfig (%.v.i): Strip trailing # comments,
2238         not only whole-line comments.
2240 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
2242         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2243         one parameter.  If non-NULL use it to initialize return value.
2244         (_dl_setup_pointer_guard): New function.
2245         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2246         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2247         * elf/rtld.c (security_init): Pass _dl_random to
2248         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
2249         pointer_chk_guard.
2250         * elf/dl-sysdep.c (_dl_random): New variable.
2251         (_dl_sysdep_start): Handle AT_RANDOM.
2252         (_dl_show_auxv): Likewise.
2253         * elf/dl-support.c (_dl_random): New variable.
2254         (_dl_aux_init): Handle AT_RANDOM.
2255         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2256         to _dl_setup_stack_chk_guard.
2258         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2260 2009-01-10  Roland McGrath  <roland@redhat.com>
2262         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2264 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
2266         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2268         [BZ #9706]
2269         * nss/nss_files/files-parse.c (strtou32): New function.
2270         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2271         across 32-bit and 64-bit platforms.
2272         (INT_FIELD_MAYBE_NULL): Likewise.
2274 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
2276         [BZ #9720]
2277         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2278         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2279         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2280         Likewise.
2282 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
2284         [BZ #697]
2285         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2286         being NULL also if there are no backreferences.
2287         * posix/rxspencer/tests: Add testcases.
2289 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
2291         [BZ #9697]
2292         * posix/bug-regex17.c: Add testcases.
2293         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2294         handling.
2296 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2298         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2299         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2300         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2301         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2302         for elf subdir.
2303         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2304         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2305         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2306         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2307         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2308         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2310 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
2312         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2313         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2314         re_string_skip_chars, re_string_reconstruct): Likewise.
2315         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2317 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
2319         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2320         adjust the buffer alignment.
2322 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2324         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2325         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2326         net/route.h.
2328         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2329         flavor to description only when flavor is not NULL.
2331         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2332         mutex after SIGIO/SIGURG lookup loop.
2334 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2336         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2338 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
2340         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2341         handling.
2343 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
2345         * sysdeps/unix/sysv/linux/kernel-features.h
2346         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2348         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2349         if no output is written.
2351         * version.h: Bump to 2.10 development.
2353         * posix/getconf.c: Update copyright year.
2354         * nss/getent.c: Likewise.
2355         * iconv/iconvconfig.c: Likewise.
2356         * iconv/iconv_prog.c: Likewise.
2357         * elf/ldconfig.c: Likewise.
2358         * catgets/gencat.c: Likewise.
2359         * csu/version.c: Likewise.
2360         * elf/ldd.bash.in: Likewise.
2361         * elf/sprof.c (print_version): Likewise.
2362         * locale/programs/locale.c: Likewise.
2363         * locale/programs/localedef.c: Likewise.
2364         * nscd/nscd.c (print_version): Likewise.
2365         * debug/xtrace.sh: Likewise.
2366         * malloc/memusage.sh: Likewise.
2367         * malloc/mtrace.pl: Likewise.
2368         * debug/catchsegv.sh: Likewise.
2370 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
2372         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2373         script.
2375 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
2377         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2378         gethostbyname4_r function call succeeded, just leave the loop.
2380         [BZ #9694]
2381         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2382         very end.
2383         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2384         * wctype/Makefile (tests): Add bug-wctypeh.
2385         * wctype/bug-wctypeh.c: New file.
2387         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2388         LOCALDOMAIN is defined.
2389         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2391         * sysdeps/x86_64/bits/select.h: New file.
2393         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2395 2008-12-21  Bruno Haible  <bruno@clisp.org>
2397         [BZ #9677]
2398         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2399         if no output is written.
2401 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
2403         * login/utmp_file.c (pututline_file): Replace call to dup2 with
2404         libc internal symbol __dup2 to avoid access through the PLT.
2406 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
2408         [BZ #6545]
2409         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2410         available only for __USE_GNU.
2412         * inet/Makefile (tests): Add tst-getni2.
2413         * inet/tst-getni2.c: New file.
2415         [BZ #7080]
2416         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2417         NULL when NI_NAMEREQD is set.
2418         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2419         * inet/Makefile (tests): Add tst-getni1.
2420         * inet/tst-getni1.c: New file.
2422 2008-12-03  Petr Baudis  <pasky@suse.cz>
2424         [BZ #7067]
2425         * nscd/connections.c (invalidate_cache): Use prune_run_lock
2426         instead of prune_lock.
2427         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2428         * nscd/nscd.h (database_dyn): Add prune_run_cache.
2430 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
2432         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2433         use.
2435         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2436         handling.
2438         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2439         after reading name server list.
2441         [BZ #7058]
2442         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2443         handling for host name aliases.
2445 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
2447         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2448         instead of doing things manually.
2450 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
2452         * posix/regex_internal.h (build_wcs_upper_buffer):
2453         Return type is reg_error_t.
2455 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
2457         * posix/globtest.sh: Use mktemp to create temporary file and
2458         directory.
2460         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2461         sets correctly.
2462         (__CPU_CLR_S): Likewise.
2463         (__CPU_ISSET_S): Likewise.
2465 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
2466             Ulrich Drepper  <drepper@redhat.com>
2468         * scripts/firstversion.awk: Use custom comparison function to compare
2469         version numbers.
2470         * scripts/versions.awk: Use sort invocation which can handle
2471         multi-digit sub-version numbers.
2473 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
2475         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2476         * locale/iso-639.def: Add Chhattisgarhi entry.
2478 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
2480         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2481         ESRCH return value.
2482         (_nss_dns_gethostbyname4_r): Likewise.
2483         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2484         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2485         gethostbyname4_r, we don't have a separate IPv6 status, so copy
2486         the no_data variable.
2488         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2489         information at the correct index.
2491         * socket/sys/socket.h: Declare accept4.
2492         * socket/accept4.c: New file.
2493         * sysdeps/unix/sysv/linux/accept4.c: New file.
2494         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2495         * socket/Makefile (routines): Add accept4.
2496         * socket/Versions: Export accept4 with version GLIBC_2.10.
2497         * socket/paccept.c: Removed.
2498         * sysdeps/unix/sysv/linux/paccept.c: Removed.
2499         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2500         * Versions.def: Define GLIBC_2.10 for libc.
2501         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2503         * nscd/connections.c: Use accept4.
2505         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2507 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
2509         * resolv/res_send.c (send_dg): Create sockets with non-blocking
2510         flag already set.
2512         * stdlib/setenv.c (unsetenv): Don't search environment if it does
2513         not exist.
2514         * stdlib/Makefile (tests): Add tst-unsetenv1.
2515         * stdlib/tst-unsetenv1.c: New file.
2517 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
2519         * login/utmp_file.c (file_writable): New variable.
2520         (setutent_file): Don't try to open file for writing.
2521         (pututline_file): Before writing, make descriptor writable if
2522         necessary.
2524 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
2526         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2527         to IPv4 or IPv6 if an interface has been found.
2529 2008-11-26  Roland McGrath  <roland@redhat.com>
2531         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2532         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2534         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2535         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2536         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2538         * elf/elf.h (NT_386_IOPERM): New macro.
2539         (NT_PPC_VSX): New macro.
2541 2008-11-25  Roland McGrath  <roland@redhat.com>
2543         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2544         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2545         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2546         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2547         Subdirectories moved to ports repository.
2548         * configure.in (base_machine): Remove alpha case.
2550 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
2552         * sysdeps/mach/strerror_l.c: New file.
2554 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
2556         [BZ #6411]
2557         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2558         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2559         magic numbers.
2560         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2561         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2562         (relax_fenv_state): Same as above.
2563         (FPSCR_29): Reserve bit in ISA 2.05.
2564         (FPSCR_NI): Provide define for compat.
2565         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2566         magic numbers.
2567         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2568         magic numbers.
2569         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
2570         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2571         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2572         access to hwcap to account for hwcap size increase to uint64_t.
2573         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2574         Likewise.
2575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2576         (*setcontext): Likewise.
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2578         New file.
2579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2580         New file.
2581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2582         (*setcontext): dynamically select mtfsf insn based on
2583         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2584         increase to uint64_t.
2585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2586         (*swapcontext): dynamically select mtfsf insn based on
2587         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
2588         increase to uint64_t.
2589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2590         New file.
2591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2592         New file.
2593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2594         (*setcontext): dynamically select mtfsf insn based on
2595         PPC_FEATURE_HAS_DFP.
2596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2597         (*swapcontext): dynamically select mtfsf insn based on
2598         PPC_FEATURE_HAS_DFP.
2600 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
2602         * version.h: Bump for 2.9 release.
2603         * include/features.h (__GLIBC_MINOR__): Bump to 9.
2605         [BZ #7029]
2606         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2607         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2608         all the rounding.
2610 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2612         [BZ #7009]
2613         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2614         unknown request types for now.
2616 2008-11-11  Roland McGrath  <roland@redhat.com>
2618         * sysdeps/x86_64/configure: New file.
2620         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2621         * configure: Regenerated.
2623 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2625         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2626         correct instruction to remove the stack frame.
2628 2008-11-03  Michael Matz  <matz@suse.de>
2630         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2631         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2633 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2635         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2636         Remove.
2638         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2639         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2640         of the thread variable instead of void *.
2641         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2642         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2643         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2644         __libc_tsd_define arguments.
2645         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2646         __libc_tsd_address arguments.  Remove union hack.
2647         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2648         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2649         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2650         Adjust __libc_tsd_{set,get} arguments.
2651         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2652         __libc_tsd_define arguments.
2653         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2654         arguments.
2655         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2656         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2657         (LOCALE): Adjust __libc_tsd_define arguments.
2658         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2659         arguments.
2660         (LOCALE): Adjust __libc_tsd_define arguments.
2661         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2662         arguments.
2663         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2664         arguments.
2666 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2668         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2669         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2671 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2673         [BZ #6966]
2674         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2676 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2677             Ulrich Drepper  <drepper@redhat.com>
2679         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2680         definition for GCC 3.1 and later.
2682 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2684         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2685         refetch dtv, as it might have changed.
2686         * elf/Makefile: Add rules to build and run tst-tls18.
2687         * elf/tst-tls18.c: New test.
2688         * elf/tst-tlsmod18a.c: New file.
2690 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2692         [BZ #6875]
2693         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2695 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2697         [BZ #6867]
2698         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2700         [BZ #6919]
2701         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2702         Fix length of copy operation.
2704 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2706         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2707         and fix its calling convention.
2709 2008-10-07  Andreas Schwab  <schwab@suse.de>
2711         [BZ #6942]
2712         * resolv/res_send.c (send_vc): Fix last change.
2713         (send_dg): Align here as well.
2715 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2717         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2718         return value in case rlimit is RLIM_INFINITY.
2720         [BZ #6947]
2721         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2722         for UL_SETFSIZE.
2723         * resource/Makefile (tests): Add bug-ulimit1.
2724         * resource/bug-ulimit1.c: New file.
2726         [BZ #6974]
2727         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2728         without dot.  Properly terminate the string with a null byte.
2729         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2731         [BZ #6980]
2732         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2733         negative sizees.
2734         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2735         negative __size.
2737         [BZ #6995]
2738         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2740 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2742         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2743         abort if there is no initgroups_dyn function.
2745         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2746         result if any of the queries really provided an answer.
2748 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2750         * po/lt.po: Update from translation team.
2752 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2754         * po/id.po: Update from translation team.
2756 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2758         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2759         Fix tests for existence of second reply.
2761 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2763         * po/id.po: New file.
2764         Contributed by the Indonesian translation team.
2766 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2768         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2769         initialization.
2771 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2773         * elf/Makefile: Add rules to build and run tst-tls17.
2774         * elf/tst-tls17.c: New test.
2775         * elf/tst-tlsmod17a.c: New file.
2776         * elf/tst-tlsmod17b.c: Likewise.
2778 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2780         * stdlib/divmod_1.c: Use correct type for dummy variable.
2781         * stdlib/mod_1.c: Likewise.
2783 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2785         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2787 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2789         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2790         __nonnull order for C++.
2791         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2792         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2794 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2796         * stdlib/longlong.h: Update from GCC.
2798 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2799             David S. Miller  <davem@davemloft.net>
2801         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2802         make sure any registers used with 64-bit 'branch-on-register'
2803         instructions have their top 32-bits clear.
2804         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2805         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2807 2008-09-18  Andreas Schwab  <schwab@suse.de>
2809         [BZ #6942]
2810         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2811         Properly handle partial reads.
2813 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2815         * elf/elf.h (STO_MIPS_PLT): New.
2816         (R_MIPS_COPY): New.
2817         (R_MIPS_JUMP_SLOT): New.
2818         (R_MIPS_NUM): Redefine to 128.
2819         (DT_MIPS_PLTGOT): New.
2820         (DT_MIPS_RWPLT): New.
2821         (DT_MIPS_NUM): Redefine to 0x35.
2823 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2825         * timezone/africa: Update from tzdata2008f.
2826         * timezone/asia: Likewise.
2827         * timezone/australasia: Likewise.
2828         * timezone/europe: Likewise.
2829         * timezone/leapseconds: Likewise.
2830         * timezone/northamerica: Likewise.
2831         * timezone/southamerica: Likewise.
2832         * timezone/zone.tab: Likewise.
2834 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2836         * nscd/connections.c: Disable use of paccept for now.
2838 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2840         * socket/Versions: Remove paccept export for GLIBC_2.9.
2841         * socket/Makefile (routines): Remove paccept.
2842         * socket/sys/socket.h: Remove paccept declaration.
2844         * po/sv.po: Update from translation team.
2846 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2848         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2849         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2851 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2853         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2854         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2856 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2858         * sunrpc/rpc/svc.h: Declare svcfd_create.
2859         Patch by Michael Solberg <msolberg@redhat.com>.
2861 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2862             Ulrich Drepper  <drepper@redhat.com>
2864         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2865         _int_valloc fails.
2866         (public_pVALLOc): Likewise.
2868 2008-09-02  Andreas Jaeger  <aj@suse.de>
2870         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2871         commit.
2873 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2875         [BZ #6860]
2876         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2878 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2880         * Makefile (check-data): Check data directory in add-ons.
2881         * elf/Makefile (check-data): Likewise.
2883 2008-08-18  Roland McGrath  <roland@redhat.com>
2885         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2886         * configure: Regenerated.
2887         * config.make.in (cflags-cpu): New substituted variable.
2888         (with-cpu): Variable removed.
2889         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2891 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2893         [BZ #6845]
2894         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2895         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2896         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2897         redundant.  Functions which call floating point assembler operations
2898         should go into a sysdeps powerpc/fpu directory.
2900 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2902         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2903         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2905 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2907         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2909         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2910         change related to AT_EXECFN.  We cannot use that string.
2911         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2912         _dl_execfn member.
2913         * elf/dl-support.c: Remove _dl_execfn variable.
2914         (_dl_aux_init): Remove handling of AT_EXECFN.
2915         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2916         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2918 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2920         [BZ #6544]
2921         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2922         byte gets added to writes and seeks from the end use the length of
2923         the buffer and not the currently terminating NUL byte.
2925         [BZ #6634]
2926         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2927         Set to true if locking failed.
2928         (getutid_r_file): Adjust caller.
2929         (pututline_file): Likewise.  Return NULL in this case.
2930         Patch mostly by halesh.s@gmail.com.
2932 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2934         [BZ #6589]
2935         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2936         Define.
2937         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2939 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2941         [BZ #6839]
2942         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2943         macro since it is now available in elf/dynamic-link.h.
2945 2008-08-12  Roland McGrath  <roland@frob.com>
2947         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2948         in case used outside of libc.
2949         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2951 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2953         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2954         directly instead of going through dn_comp.
2956 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2958         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2959         Fix asm constraints.
2961 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2963         [BZ #6790]
2964         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2965         (IPV6_PMTUDISC_PROBE): Likewise.
2967 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2969         [BZ #6791]
2970         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2972 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2973             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2975         [BZ #6817]
2976         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2977         Added the members 'vsx' and 'arch_2_06'.
2978         (_dl_powerpc_platforms): Add the member 'power7'.
2979         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2980         to reflect the changes required by VSX and ISA 2.06.
2981         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2982         'power7'.
2983         Defined PPC_PLATFORM_POWER7.
2984         (_dl_string_platform): Add support for POWER7.
2985         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2986         capability and ISA 2.06.
2988 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2990         [BZ #6824]
2991         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2992         macro to detect use of 128 bit long double.
2993         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2995 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2997         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2999         [BZ #5794]
3000         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3001         parameters.
3002         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3003         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3005 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3007         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3008         guaranteed to be large enough to read inotify event.  Ignore
3009         EAGAIN error.  Better error message.  Add branch predicition.
3010         (main_loop_epoll): Likewise.
3012 2008-08-02  Roland McGrath  <roland@frob.com>
3014         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3015         Add memory clobbers.
3017 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3019         * manual/arith.texi: Avoid @strong{Note:}.
3020         * manual/creature.texi: Likewise.
3021         * manual/filesys.texi: Likewise.
3022         * manual/math.texi: Likewise.
3023         * manual/memory.texi: Likewise.
3024         * manual/resource.texi: Likewise.
3025         * manual/syslog.texi: Likewise.
3026         * manual/time.texi: Likewise.
3028         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3029         to prevent warning.
3031 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3033         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3034         new epoll_create1 interface.
3035         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3036         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3037         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3039         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3040         (NS_GET32): Likewise.
3042         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3043         syscalls, too.
3045         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3046         use the AT_EXECFN value if it is no absolute path.
3047         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3048         __ASSUME_AT_EXECFN.
3050         * Versions.def: Add GLIBC_2.9 to libresolv.
3051         * include/resolv.h: Remove hidden proto declarations for __ns_*
3052         functions.  Add them for __dn_count_labels and __p_secstodate.
3053         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3054         Define ns_msg_getflags macro here.
3055         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3056         and __p_secstodate.
3057         * resolv/Versions: Export functions from <arpa/nameser.h> from
3058         libresolv in version GLIBC_2.9.
3059         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3060         hidden definitions.
3061         * resolv/ns_netint.c: Likewise.
3062         * resolv/ns_parse.c: Likewise.
3063         * resolv/ns_print.c: Likewise.
3064         * resolv/ns_samedomain.c: Likewise.
3065         * resolv/ns_ttl.c: Likewise.
3066         * resolv/arpa/nameser_compat.h: Likewise.
3067         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3068         function calls.
3069         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3070         instead of ns_get16.
3071         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3072         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3073         (gaih_getanswer_slice): Likewise.
3074         * resolv/Makefile (libresolv-routines): Add ns_date.
3075         * resolv/ns_date.c: New file.
3077         * elf/Makefile (check-localplt.out): Also check libresolv and
3078         libcrypt.
3080 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3082         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3083         __ASSUME_O_CLOEXEC.
3085 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
3087         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3088         buffer passed to NSS functions.
3090         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3092         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3093         Define.
3095         * misc/syslog.c (openlog_internal): Fix compile problem.
3097 2008-07-28  Roland McGrath  <roland@redhat.com>
3099         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3101 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
3103         * io/ftw.c (add_object): Remove inline to avoid warning.
3105         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3107         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3108         Use it instead of locally defined resplen2 variable.
3109         (res_nsend): Adjust for __libc_res_nsend interface change.
3110         (send_vc): Initialize *resplen2 if necessary.  Read length of
3111         package into an appropriately aligned variable.  Store converted length
3112         in new variable and use it appropriately.
3113         Add branch prediction help.
3114         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3115         and pass it on to __libc_res_nsend.  Adjust all callers.
3116         (__libc_res_nsearch): Likewise.
3117         (__libc_res_nqeurydomain): Likewise.
3118         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3119         change.
3120         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3121         Define resplen2 variable and pass it to __libc_res_nsearch and then
3122         to gaih_getanswer.
3123         (getanswer_r): In case of incorrect DNS data don't overread buffer.
3124         Add branch prediction.
3125         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
3126         (gaih_getanswer): Don't decode second slice if first one failed due
3127         to a too small buffer.  Don't let not found status of second
3128         decoder shadow results of the first.
3129         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3130         and __libc_res_nquery interface changes
3131         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3132         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3133         __libc_res_nsearch, and __libc_res_nsend.
3134         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3135         change.
3136         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3137         __libc_res_nsearch interface changes.
3139 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
3141         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3143         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3144         file descriptors with close-on-exec set.
3145         (exec_comm_child): Fix the case where the write end of the pipe is
3146         STDOUT_FILENO already.  In case it is, clear close-on-exec.
3148         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3149         * io/pipe2.c: Likewise.
3150         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3151         instead of __ASSUME_PACCEPT.
3152         * include/unistd.h: Declare __have_pipe2.
3153         * libio/iopopen.c: Implement "e" flag.
3154         * libio/Makefile (tests): Add tst-popen1.
3155         * libio/tst-popen1.c: New file.
3157         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3158         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3160 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3162         [BZ #6771]
3163         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3164         success call of _IO_SEEKOFF or calls which failed because the
3165         descriptor is for a pipe.
3167         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3168         magic number.
3170         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3172         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
3173         F_SETFD use if we know fopen set the flag.
3175         * login/utmp_file.c (setutent_file): Minor optimization in case
3176         O_CLOEXEC is available.
3178 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
3180         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3181         * elf/Makefile: Use pie-ccflag variable.
3182         * nscd/Makefile: Likewise.
3183         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3185 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3187         [BZ #6724]
3188         * Versions.def: Add GLIBC_2.9 version tag for libutil.
3189         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3190         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
3191         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3192         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
3193         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3194         utmp32, utmpx32 and login32.
3195         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3196         versions of struct utmp functions to libc and libutil.
3197         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3198         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3199         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3200         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3201         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3202         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3203         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3204         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3205         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3206         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3207         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3208         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3209         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3210         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3211         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3212         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3213         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3214         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3215         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3216         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3217         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3218         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3220 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
3222         * scripts/gen-as-const.awk: Generate more widely usable code by
3223         using 64-bit arithmetic.
3225         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3226         the same treatment as narrow output code in last patch.
3228         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3230         [BZ #6763]
3231         * elf/dl-load.c (local_strdup): Remove inline.
3232         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3233         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3234         part of the object.
3236         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3238 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
3240         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3241         the new syscalls, too.
3243         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3244         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3246         [BZ #6698]
3247         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3248         parameter for end of buffer.  If temporary copy is too large use
3249         malloc.
3250         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3251         interface change.
3252         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
3253         string rewrite when allocating buffer.
3255         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3256         syscalls, too.
3258         * nscd/connections.c (nscd_init): Clean up fcntl call.
3260         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3261         SOCK_NONBLOCK if possible.
3263         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3264         SOCK_CLOEXEC if available.
3266         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3267         __libc_clntudp_bufcreate_internal.
3268         * include/sys/socket.h: Declare __have_sock_cloexec.
3269         * socket/Makefile (aux): Add have_sock_cloexec.
3270         * socket/have_sock_cloexec.c: New file.
3271         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3272         __libc_clntudp_bufcreate.
3273         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3274         which takes an additional parameter.  Create socket with non-blocking
3275         mode and close-on-exec flag set, if wanted.
3276         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3277         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3278         instead of clntudp_create.  The socket has already the close-on-exec
3279         flag set if SOCK_CLOEXEC is defined.
3281 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
3283         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3284         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3285         appropriate.
3286         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3287         non-blocking mode by using socket, paccept, and inotify_init1.
3289         * Versions.def (glibc): Add GLIBC_2.9.
3290         * io/Makefile (routines): Add dup3 and pipe2.
3291         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3292         * io/dup3.c: New file.
3293         * io/pipe2.c: New file.
3294         * posix/unistd.h: Declare dup3 and pipe2.
3295         * socket/Makefile (routines): Add paccept.
3296         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3297         * socket/paccept.c: New file.
3298         * socket/sys/socket.h: Declare paccept.
3299         * sysdeps/unix/syscalls.list: Add entry for dup3.
3300         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3301         epoll_create2 and inotify_init1.
3302         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3303         * sysdeps/unix/sysv/linux/paccept.c: New file.
3304         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3305         possible.
3306         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3307         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3308         inotify_init1, and pipe2 entries.
3309         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3310         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3311         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3312         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3313         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3314         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3315         SOCK_NONBLOCK.
3316         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3317         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3318         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3319         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3320         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3321         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3322         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3323         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3324         EPOLL_NONBLOCK.  Declare epoll_create2.
3325         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3326         EFD_NONBLOCK.
3327         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3328         IN_NONBLOCK.  Declare inotify_init1.
3329         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3330         SFD_NONBLOCK.
3331         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3332         TFD_NONBLOCK.
3334         * elf/elf.h: Define AT_EXECFN.
3335         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3336         LD_ORIGIN_PATH.
3337         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3338         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
3339         if __ASSUME_AT_EXECFN is defined.
3340         (_dl_aux_init): Handle AT_EXECFN.
3341         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3342         for 2.6.27 and up.
3343         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3344         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3345         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3346         _dl_execfn if available and avoid compatibility code if
3347         __ASSUME_AT_EXECFN is defined.
3349         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3350         _dl_discover_osversion only for older kernels.
3352 2008-07-22  Roland McGrath  <roland@frob.com>
3354         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3356 2008-07-21  Roland McGrath  <roland@frob.com>
3358         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3359         returned too much data out of line.
3361 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
3363         * locale/setlocale.c (setname): Remove inline to avoid compiler
3364         warning.
3366         [BZ #6712]
3367         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3369 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
3371         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3372         doesn't manage to write anything, fail.
3374         * malloc/hooks.c (__malloc_check_init): Remove printf.
3376 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3378         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3380 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
3382         * nscd/connections.c (main_loop_poll): Fix handling of read errors
3383         from inotify.
3384         (main_loop_epoll): Likewise.
3386 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
3388         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3390         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3391         if DEBUG is defined.
3393         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3394         query.  Adjust buffer size computation for padding.
3396 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
3398         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3399         * stdio-common/tst-setvbuf1.c: New file.
3400         * stdio-common/tst-setvbuf1.expect: New file.
3402         [BZ #6719]
3403         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3404         when selecting fully-buffered stream.
3405         Patch by Wang Xin <wxinee@gmail.com>.
3407 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3409         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3410         (__open_2): New function.
3411         (__open64_2): New alias to __open_2.
3412         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3413         (__openat_2): New function.
3414         (__openat64_2): New alias to __openat_2.
3416 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
3418         [BZ #6723]
3419         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3421 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3423         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3424         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3425         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3426         __hurd_dfail.
3427         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3428         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3429         * sysdeps/mach/hurd/send.c (__send): Likewise.
3430         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3431         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3433 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3435         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3436         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3437         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3438         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3439         * hurd/get-host.c (_hurd_get_host_config): Likewise.
3440         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3442 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
3444         [BZ #6657]
3445         * time/strptime_l.c: Don't clear s.era_cnt after successful match
3446         of %EY.
3447         Patch by Petr Baudis.
3449 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
3451         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3452         Patch by Peter Jones <pjones@redhat.com>.
3454 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3456         [BZ #6654]
3457         * stdlib/canonicalize.c (__realpath): readlink can write too much
3458         into the buffer on platforms without PATH_MAX.
3460 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
3462         [BZ #6653]
3463         * posix/tst-regex.c (main): Rename to...
3464         (do_test): ... this. Remove cmdline option processing.
3465         (TIMEOUT): Define.
3466         (TEST_FUNCTION): Define.
3467         (CMDLINE_OPTIONS): Define.
3469 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
3471         [BZ #5210]
3472         * configure.in: Add -Werror to -fstack-protector test to catch
3473         unsupported architectures.
3474         Patch by Gilles Esponasse <g.esp@free.fr>.
3476 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
3478         * stdlib/tst-setcontext.c: Set back_in_main before exit if
3479         getcontext returns ENOSYS.
3481 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
3483         * nscd/connections.c (main_loop_poll): Fix test for read error.
3484         (main_loop_epoll): Likewise.
3486 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
3488         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3489         better place so it is not called when nscd is used.
3491         * nscd/connections.c: Also recognize and handle changes to the
3492         resolver configuration file.
3494 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3496         * time/strftime.c: Pass reference to tzset_called around to handle
3497         recursive calls.
3499         [BZ #6612]
3500         * time/strftime.c (__strftime_internal): Call tzset() only
3501         when printing timezone-dependent values.
3502         Based on a patch by Petr Baudis <pasky@suse.cz>.
3504         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3505         unconditionally use second gaih_getanswer_slice result.
3507         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3508         (getaddrinfo): RES must always be non-NULL.
3510 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3512         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3513         cr[34] registers.
3514         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3515         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3516         Likewise.
3517         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3518         register.
3520 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
3522         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3523         fields.
3524         * nscd/connections.c (inotify_fd): New variable.
3525         (nscd_init): Try to open an inotify descriptor.
3526         If successful, watch files for databases using inotify instead of
3527         having prune threads stat the files.
3528         (nscd_run_prune): Recognize clear_cache flag being set and call
3529         prune_cache appropriately.
3530         (main_loop_poll): Add inotify descriptor to wait set and handle the
3531         reported changes.
3532         (main_loop_epoll): Likewise.
3533         * nscd/cache.c (prune_cache): Don't stat files for databases if
3534         inotify is used.
3535         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3536         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3538         * nscd/grpcache.c (cache_addgr): Correctly compute size of
3539         fixed-size portion of the record.
3540         * nscd/servicescache.c (cache_addserv): Likewise.
3541         * nscd/pwdcache.c (cache_addpw): Likewise.
3542         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3544 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
3546         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3547         out we don't use uninitialized memory.
3549         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3550         the client.
3552 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
3554         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3555         ignore T_DNAME messages.
3556         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3558 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
3560         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3561         Avoid segfault if first GETC returns eof/'\0'/'\n'.
3563 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
3565         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3566         instead of portstr to nscd_getserv_r.  Patch by
3567         Roman Kagan <rkagan@mail.ru>.
3569 2008-05-26  Jim Meyering  <meyering@redhat.com>
3571         Remove more useless "if" tests before "free".
3572         * include/inline-hashtab.h (htab_delete): Likewise.
3573         * libio/freopen.c (freopen): Likewise.
3574         * libio/freopen64.c (freopen64): Likewise.
3575         * locale/programs/ld-collate.c (collate_read): Likewise.
3576         * misc/fstab.c (libc_freeres_fn): Likewise.
3577         * posix/glob.c (globfree): Likewise.
3579 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3581         * string/Makefile (strop-tests): Add memmem.
3582         * string/test-memmem.c: New file.
3583         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3584         (test_init): Size buf1 according to BUF1PAGES.
3586 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
3588         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3589         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3590         (CFLAGS-scanf17.c): New.
3591         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3592         * stdio-common/scanf15.c (main): Likewise.
3593         * stdio-common/scanf16.c: New file.
3594         * stdio-common/scanf17.c: New file.
3596 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
3598         * resolv/res_send.c (send_dg): If we already have one of two
3599         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3600         use the one answer insted of failing.
3602 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
3604         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3605         being executed on PowerPC as the expected result exceeds IBM
3606         long double 128 __LDBL_MAX__.
3608 2008-05-21  Roland McGrath  <roland@redhat.com>
3610         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3612         * Makefile (check-data): Use $(abi-name) before other guesses.
3613         Look in $(add-ons) dirs before scripts/data/.
3614         * elf/Makefile (check-data): Likewise.
3616         * scripts/soversions.awk: Grok ABI line.
3617         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3618         Emit definition for abi-name variable.
3620 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3622         * string/endian.h: Define new fixed-size hto* and *toh macros only
3623         if [__USE_BSD].
3625         * iconvdata/Depend: Add localedata.
3627 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3629         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3631 2008-05-08  David S. Miller  <davem@davemloft.net>
3633         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3634         HIDDEN_JUMPTARGET.
3635         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3636         (__SYSCALL_CLOBBERS): Remove %g* registers.
3637         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3638         (__SYSCALL_CLOBBERS): Likewise.
3639         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3640         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3642 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3644         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3645         (CALL_ERRNO_LOCATION): Define.
3646         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3647         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3648         (CALL_ERRNO_LOCATION): Define.
3649         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3650         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3651         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3653 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3655         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3656         variable.
3658 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3660         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3661         (FIRST_FRAME_POINTER): Define.
3663 2008-05-09  David S. Miller  <davem@davemloft.net>
3665         * sysdeps/sparc/sparc64/backtrace.c: New file.
3667 2008-05-14  David S. Miller  <davem@davemloft.net>
3669         * sysdeps/sparc/machine-gmon.h: New file.
3670         * sysdeps/sparc/sparc-mcount.S: Likewise.
3671         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3672         sysdep_routines in gmon directory.
3674 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3676         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3678 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3680         * resolv/res_query.c (__libc_res_nquery): In case one of two
3681         answer was too short don't try to read that answer's header.
3683         * resolv/res_send.c (send_dg): In case of timeout and there are
3684         two queries and one has been answered, return value indicating
3685         success.
3687 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3689         * nscd/cache.c (cache_add): Take additional parameter specifying
3690         whether this is in response of a cache refill.  Check alignment
3691         of package data.  Revamp waking of pruning thread.
3692         (prune_cache): Small optimization.
3693         * nscd/nscd.h: Adjust cache_add prototypes.
3694         * nscd/aicache.c: Adjust cache_add calls.
3695         * nscd/grpcache.c: Likewise.
3696         * nscd/hstcache.c: Likewise.
3697         * nscd/initgrcache.c: Likewise.
3698         * nscd/pwdcache.c: Likewise.
3699         * nscd/servicescache.c: Likewise.
3700         * nscd/connections.c (restart): Really disable cache use before
3701         exec attempt.  If it fails, reenable cache.
3702         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3703         time to max to be able to notice concurrent cache additions.  Unlock
3704         prune_lock while performing gc.  Afterwards compute wakeup time with
3705         current wakeup_time value in mind.
3707 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3709         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3711         * nscd/mem.c (gc): Correctly determine highest used array element
3712         in mark.
3714         * nscd/mem.c (markrange): Add assert to check entries are all
3715         aligned.  Small cleanup in bitmap use.
3717         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3718         blockoff of type nscd_ssize_t.
3719         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3720         (mempoll_alloc): Record block offset and not address.
3722         * nscd/mem.c (gc): Fix test for stack overuse.
3724         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3725         more asserts.
3727         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3728         entry is available, believe it.
3730         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3731         no answers return NSS_STATUS_NOTFOUND.
3732         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3733         buffer does not have any content.
3735 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3737         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3739         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3740         lookup, don't assign canon unconditionally.
3742 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3744         * string/Makefile (distribute): Add str-two-way.h.
3746 2008-03-29  Eric Blake  <ebb9@byu.net>
3748         Rewrite string searches to O(n) rather than O(n^2).
3749         * string/str-two-way.h: New file.  For linear fixed-allocation
3750         string searching.
3751         * string/memmem.c: New implementation.
3752         * string/strstr.c: New implementation.
3753         * string/strcasestr.c: New implementation.
3755 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3757         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3758         opr.ctx_type.
3759         (calc_first): Initialize constraint field.
3760         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3761         Use search_duplicated_node to avoid loops.  Fix grammar.
3762         (duplicate_node): Merge constraint field for all node types.
3763         (calc_eclosure_iter): Look at constraint field for all node types.
3764         * posix/regex_internal.c (create_cd_newstate): Don't look at
3765         create_cd_newstate.
3767 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3769         [BZ #6428]
3770         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3772         [BZ #6442]
3773         * string/endian.h: Add macros for fixed-size endian conversion.
3774         * bits/byteswap.h: Allow inclusion from <endian.h>.
3775         * sysdeps/i386/bits/byteswap.h: Likewise.
3776         * sysdeps/ia64/bits/byteswap.h: Likewise.
3777         * sysdeps/s390/bits/byteswap.h: Likewise.
3778         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3779         * string/Makefile (tests): Add tst-endian.
3780         * string/tst-endian.c: New file.
3782         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3783         Patch by Reuben Thomas.
3785 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3787         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3789 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3791         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3793         [BZ #6461]
3794         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3795         Add missing braces.
3796         (BODY for __gconv_transform_internal_ascii): Likewise.
3798         [BZ #6472]
3799         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3800         to be treated like link-local addresses.
3801         (match_prefix): Don't treat IPv4 loopback address special when
3802         converting to v4 mapped addressed.
3804         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3805         if necessary.
3806         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3807         * posix/tst-rfc3484-2.c: Likewise.
3808         * posix/tst-rfc3484-3.c: Likewise.
3810         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3811         and SCTP.
3813         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3815         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3817         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3819 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3821         * po/lt.po: New file.  From Lituanian translation team.
3823 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3825         Introduce TLS descriptors for i386 and x86_64.
3826         * include/inline-hashtab.h: New file, copied from 2005's
3827         libiberty, with fix for memory leak imported afterwards by
3828         Glauber de Oliveira Costa.
3829         * elf/tlsdeschtab.h: New file.
3830         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3831         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3832         (CHECK_STATIC_TLS): Move to...
3833         * elf/dynamic-link.h: ... this file.
3834         (TRY_STATIC_TLS): New macro.
3835         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3836         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3837         R_386_TLS_DESC): Define.
3838         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3839         binutils.
3840         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3841         R_X86_64_TLSDESC): Define.
3842         (R_386_NUM, R_X86_64_NUM): Adjust.
3843         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3844         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3845         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3846         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3847         release tlsdesc_table.
3848         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3849         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3850         (elf_machine_rel): Handle R_386_TLS_DESC.
3851         (elf_machine_rela): Likewise.
3852         (elf_machine_lazy_rel): Likewise.
3853         (elf_machine_lazy_rela): Likewise.
3854         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3855         * sysdeps/i386/dl-tlsdesc.S: New file.
3856         * sysdeps/i386/dl-tlsdesc.h: New file.
3857         * sysdeps/i386/tlsdesc.c: New file.
3858         * sysdeps/i386/tlsdesc.sym: New file.
3859         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3860         tlsdesc_table.
3861         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3862         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3863         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3864         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3865         release tlsdesc_table.
3866         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3867         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3868         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3869         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3870         (elf_machine_rela): Likewise.
3871         (elf_machine_lazy_rel): Likewise.
3872         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3873         (__tls_get_addr): Do not declare for non-shared compiles.
3874         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3875         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3876         * sysdeps/x86_64/tlsdesc.c: New file.
3877         * sysdeps/x86_64/tlsdesc.sym: New file.
3878         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3879         tlsdesc_table for both 32- and 64-bit structs.
3881 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3883         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3884         its own function.  This reduces the frame setup costs and more.
3886 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3888         [BZ #3406]
3889         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3890         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3892 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3894         * io/openat.c (__openat_2): Also pass fd to __openat.
3895         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3896         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3898         * string/tester.c (test_memcmp): Add a few more tests.
3899         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3901 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3903         * nscd/cache.c (cache_add): Before returning with failure and this
3904         is the first use of the record, mark it as unusable.
3905         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3906         reporting a failure.
3907         * nscd/grpcache.c: Likewise
3908         * nscd/hstcache.c: Likewise.
3909         * nscd/initgrcache.c: Likewise.
3910         * nscd/pwdcache.c: Likewise.
3911         * nscd/servicescache.c: Likewise.
3913 2008-05-10  Roland McGrath  <roland@redhat.com>
3915         [BZ #6505]
3916         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3918 2008-05-08  David S. Miller  <davem@davemloft.net>
3920         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3922         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3923         (__ieee754_y0l): Likewise.
3924         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3925         (__ieee754_y1l): Likewise.
3926         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3927         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3928         frexpl and ldexpl.  math_private.h provides them and the latter
3929         is not even used.
3930         (__log1pl): Use __frexpl.
3932 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3934         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3935         prototypes.
3936         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3937         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3938         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3939         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3940         af==AF_UNSPEC.
3941         (_nss_nis_gethostbyname4_r): New function.
3942         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3943         Change to also handle af==AF_UNSPEC.
3944         (get_tablename): New function.  Use it to avoid duplication.
3945         (_nss_nisplus_gethostbyname4_r): New function.
3946         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3947         available.
3948         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3949         * nss/nss.h: Define struct gaih_addrtuple.
3950         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3951         af==AF_UNSPEC.
3952         (_nss_files_gethostbyname4_r): New function.
3953         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3954         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3955         calls.
3956         * resolv/res_query.c (__libc_res_nquery): Take two additional
3957         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3958         look up IPv4 and IPv6.
3959         Change all callers.
3960         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3961         for an additional query and answer buffer.  Pass to send_vc and
3962         send_dg.
3963         (send_vc): Send possibly two requests and receive two answers.
3964         (send_dg): Likewise.
3965         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3966         __libc_res_nquery.
3967         (_nss_dns_gethostbyname4_r): New function.
3968         (gaih_getanswer_slice): Likewise.
3969         (gaih_getanswer): Likewise.
3970         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3971         __libc_res_nquery call.
3972         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3973         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3974         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3975         available.
3977 2008-05-05  David S. Miller  <davem@davemloft.net>
3979         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3980         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3982 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3984         Fix termios bit macros.
3985         Move *DLY definitions where they belong, in termios.h.
3986         Add *[0-3] definitions.
3987         Fixes confusion between VT and FF.
3988         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3989         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3990         are already defined to avoid collision with termios.h.
3991         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3992         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3993         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3994         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3995         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3996         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3997         VTDLY, VT0, VT1): New macros.
3998         [__USE_GNU] (OLCUC): Change value of macro.
3999         [__USE_XOPEN] (OFILL): New macro.
4000         [__USE_BSD] (CRTSCTS): Change value.
4001         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4002         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4003         (B7200, B14400, B28800, B76800): New macros.
4005 2008-05-01  David S. Miller  <davem@davemloft.net>
4007         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4008         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4009         (gen-as-const-headers): Add it.
4010         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4011         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4012         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4013         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4015         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4016         six system call parameters.
4017         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4019 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4021         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4022         RUSAGE_LWP.
4023         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4024         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4026 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4028         * stdlib/tst-setcontext.c: Include unistd.h.
4030 2008-04-25  David S. Miller  <davem@davemloft.net>
4032         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4033         Pass "union semun" properly in to sys_ipc, it must be passed
4034         by value, not by reference.
4036 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4038         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4039         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4040         * nscd/connections.c (mem_in_flight): Likewise.
4042         * nscd/nscd.h (dbs): Make hidden.
4044         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4045         Avoid returning -1, return 0 instead.
4047 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4049         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4051 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4053         [BZ #5209]
4054         * sysdeps/unix/sysv/linux/times.c: New file.
4056         [BZ #5381]
4057         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4058         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4059         prototype.
4060         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4061         appropriate mem_in_flight element.
4062         (gc): Take allocations which have not yet been committed to the
4063         database into account.
4064         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4065         Reset mem_in_flight before returning.
4066         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4067         cue it up in mem_in_flight_list.
4068         * nscd/aicache.c: Adjust mempool_alloc call.
4069         * nscd/grpcache.c: Likewise.
4070         * nscd/hstcache.c: Likewise.
4071         * nscd/initgrcache.c: Likewise.
4072         * nscd/pwdcache.c: Likewise.
4073         * nscd/servicescache.c: Likewise.
4074         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4075         of -fpie.
4077         * nscd/connections.c (handle_request): Provide better error message
4078         in case SELinux forbids the service.
4080         * version.h (VERSION): Bump to 2.8.90.
4082 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
4084         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4086 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4088         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4089         Also use for 32-bit.
4090         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4091         __nextafter instead of nextafter to avoid local PLT.
4092         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4093         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4095         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4097         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4098         __fe_nomask_env.
4099         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
4100         <fenv_libc.h> instead of <fenv.h>.
4101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4104         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4106         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4107         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4108         function from fegetexcept and make old name weak alias.
4109         * include/fenv.h: Declare __fegetexcept.
4110         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4111         fegetexcept.
4112         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4113         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4114         to fetestexcept.
4115         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4116         instead of frexpl to avoid local PLT.
4117         * math/s_significandl.c (__significandl): Use __ilogbl instead of
4118         ilogbl to avoid local PLT.
4119         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4120         instead of ldexpl to avoid local PLT.
4121         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4122         __roundl not roundl to avoid local PLT.
4123         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4124         local PLTs.  Use __sincosl instead of separate sinl and cosl
4125         calls.
4126         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4128         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4129         version for ppc64 to 2.4.21 since without it makecontext will fail.
4131         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4132         to the ABI in use.
4133         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4134         .__tls_get_addr.
4135         [__powerpc64__] (TLS_GD): Likewise.
4137 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
4139         [BZ #4997]
4140         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4141         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4142         mantissa.
4143         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4144         Likewise.  Also account for when x is an odd number between 2^52
4145         and 2^53-1.
4146         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4147         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4148         * math/libm-test.inc (lround_test, llround_test): Added test cases to
4149         detect aforementioned erroneous conditions.
4151 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4153         * configure.in: Check for -fno-section-anchors in addition to
4154         -fno-toplevel-reorder.
4156 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
4158         * include/features.h (__GLIBC_MINOR__): Bump to 8.
4160         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4161         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4162         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4163         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4164         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4165         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4167 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
4169         [BZ #5443]
4170         * time/era.c: Transform __libc_setlocale_lock into rwlock.
4171         * time/alt_digit.c: Likewise.
4172         * wcsmbs/wcsmbsload.c: Likewise.
4174 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
4176         * version.h (VERSION): Bump to 2.8.
4178         * timzeone/asia: Update from tzdata2008b.
4179         * timezone/backward: Likewise.
4180         * timezone/europe: Likewise.
4181         * timezone/northamerica: Likewise.
4182         * timezone/southamerica: Likewise.
4183         * timezone/iso3166.tab: Likewise.
4184         * timezone/leapseconds: Likewise.
4185         * timezone/zone.tab: Likewise.
4186         * timezone/private.h: Update from tzcode2008a.
4187         * timezone/zdump.c: Likewise.
4188         * timezone/zic.c: Likewise.
4190 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
4192         [BZ #5741]
4193         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4194         Define additonal Data Cache Block instruction macros.
4195         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4196         Replace dcbst with dcbf and sync with sync/isync.
4198 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
4200         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4201         Always set ELF_RTYPE_CLASS_PLT.
4202         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4204 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
4206         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4207         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4208         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4209         For ISA 2.01 and later replace mftb with mfspr 268.
4211 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
4213         [BZ #5768]
4214         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4215         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4217 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
4219         [BZ #5768]
4220         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4221         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4222         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4223         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4225 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
4227         * stdlib/tst-makecontext.c (othervar): New variable.
4228         (cf): Test sign extending the argument to long.
4230 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
4232         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4233         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4234         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4235         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4236         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4237         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4238         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4240 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
4242         * elf/Makefile (tests): Substitute tests-vis-yes here.
4243         (tests-vis-yes): Delete.
4244         (modules-name, modules-vis-yes): Similarly.
4246 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
4248         [BZ #4407]
4249         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4250         Preserve sign in signgamp when x is zero.
4252 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
4254         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4255         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4256         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4257         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4258         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4259         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4261 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4263         [BZ #4314]
4264         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4265         buffers.
4267         [BZ #5209]
4268         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4269         a reserved error value.
4271         * stdlib/tst-makecontext.c: Change parameter to cf to negative
4272         value to check for correct sign extension.
4274         [BZ #5436]
4275         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4276         Copy 64-bit parameter values even though this is not required in
4277         the standard.
4279         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4280         PC save.
4282 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
4284         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4285         PC save.
4287 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4289         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4291 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
4293         [BZ #5998]
4294         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4295         in line-buffered stream failed.
4296         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4298 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
4300         [BZ #6024]
4301         * scripts/abi-versions.awk: If the version specified by
4302         --enable-oldest-abi is older than the first version for this
4303         architecture, use the default version.
4305         * locale/programs/ld-collate.c (collate_read): Ignore script lines
4306         as well when ignoring the whole category.
4308 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4310         [BZ #6042]
4311         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4312         ETHERTYPE_* definitions.
4313         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4315 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4317         * stdlib/mbtowc.c (__no_r_state): Remove.
4318         (mbtowc): New static state variable.  Use it instead of
4319         __no_r_state.
4320         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4321         (__wctomb_state): New hidden variable.
4322         (wctomb): Use __wctomb_state instead of __no_r_state.
4323         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4324         (__wctomb_state): New extern decl.
4325         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4327 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
4329         [BZ #5475]
4330         * resolv/res_init.c: Handle scope IDs in resolv.conf.
4332 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
4334         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4336 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
4338         * po/nl.po: Update from translation team.
4340 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
4342         [BZ #6007]
4343         * string/strfry.c: Handle empty strings again.
4345 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4347         [BZ #5443]
4348         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4349         before looking for translation.
4350         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4351         * locale/freelocale.c: Likewise.
4352         * locale/newlocale.c: Likewise.
4353         * locale/setlocale.c: Likewise.
4354         Based partially on a patch by ryo@np.css.fujitsu.com.
4356 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
4358         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4359         acquiring wrlock.  Do conv_tab allocation while holding lock.
4360         * intl/Makefile: Add rules to build and run tst-gettext6.
4361         * intl/tst-gettext6.c: New test.
4362         * intl/tst-gettext6.sh: New file.
4364 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
4366         * po/nl.po: Update from translation team.
4368         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4369         provided through st_blksize, try the default size before giving up.
4371 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
4373         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4375         [BZ #5939]
4376         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4378         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4379         error message.  POSIX today does not require the messages to be in
4380         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
4382         [BZ #5979]
4383         * sunrpc/auth_unix.c: Unify printed strings.
4384         * sunrpc/clnt_tcp.c: Likewise.
4385         * sunrpc/clnt_udp.c: Likewise.
4386         * sunrpc/clnt_unix.c: Likewise.
4387         * sunrpc/svc_tcp.c: Likewise.
4388         * sunrpc/svc_udp.c: Likewise.
4389         * sunrpc/svc_unix.c: Likewise.
4390         * sunrpc/xdr.c: Likewise.
4391         * sunrpc/xdr_array.c: Likewise.
4392         * sunrpc/xdr_rec.c: Likewise.
4393         * sunrpc/xdr_ref.c: Likewise.
4394         * locale/programs/ld-time.c (time_finish): Unify messages.
4395         * locale/programs/locfile.c (handle_copy): Fix typo.
4396         * nscd/nscd.c (options): Fix typo.
4398         [BZ #5995]
4399         * stdlib/strtod_l.c: Use correct sign for result in one more
4400         underflow case.
4401         Patch by Eric Blake <ebb9@byu.net>.
4403 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
4405         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4406         and creat system calls.
4407         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4408         call.
4409         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4410         system calls.
4411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4412         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4413         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4415 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
4417         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4418         <linux/limits.h> has defined it.
4419         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4420         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4421         headers.
4422         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4423         it instead of ARG_MAX.
4425 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
4427         * posix/gai.conf: Fix comment for scope nullbits.
4428         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4429         default to 128 bits for v4 mapped addresses.
4431 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4433         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4434         ptrace call to get the ieee_instruction_pointer from the kernel.
4435         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4436         ptrace call to set the ieee_instructtion_pointer.
4437         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4438         Add comment that ieee_instruction_pointer is always 0.
4440 2008-03-09  Andreas Jaeger  <aj@suse.de>
4442         [BZ #5857]
4443         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4444         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4445         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4447         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4448         (rint_test): Likewise.
4450 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
4452         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4453         call.
4454         (__nisfind_server): Similar for open readColdStartFile call.
4455         Patch partially by Jim Meyering.
4456         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4457         around internal_setent call.
4459         * po/vi.po: New Vietnamese translation.
4461         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4462         ADJ_OFFSET_SS_READ.
4464         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4465         remove CLONE_STOPPED.
4467 2008-02-10  Jim Meyering  <meyering@redhat.com>
4469         Remove useless "if" before "free":
4470         * elf/ldconfig.c (parse_conf_include): Likewise.
4471         * gmon/gmon.c (weak_alias): Likewise.
4472         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4473         * inet/rcmd.c (__validuser2_sa): Likewise.
4474         * intl/bindtextdom.c (set_binding_values): Likewise.
4475         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4476         * libio/genops.c (save_for_backup): Likewise.
4477         * libio/wgenops.c (save_for_wbackup): Likewise.
4478         * locale/programs/ld-collate.c (collate_read): Likewise.
4479         * locale/programs/linereader.c (get_string): Likewise.
4480         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4481         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4482         * resolv/res_debug.c (do_section): Likewise.
4483         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4484         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4485         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4486         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4487         * time/tzset.c (tzset_internal): Likewise.
4489 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
4491         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4492         of ASSEMBLER.
4494 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
4496         [BZ #5903]
4497         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4498         not stream for output file.  Open output file here.
4499         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4500         and output file name.
4501         (process_fd): Likewise.
4502         (process_file): Likewise.
4503         (main): Adjust callers of changed functions.
4504         * iconv/iconv_prog.h: Adjust prototype.
4506 2008-03-09  Andreas Jaeger  <aj@suse.de>
4508         [BZ #5753]
4509         * sysdeps/ia64/ieee754.h: Use protected namespace
4510         __BIG_ENDIAN/__LITTLE_ENDIAN.
4511         * sysdeps/ieee754/ieee754.h: Likewise.
4512         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4514 2008-03-08  Roland McGrath  <roland@frob.com>
4516         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4517         ignore a signal that came from a machine exception, treat it as a
4518         fatal core-dump signal instead.
4519         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4521         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4522         Clear DF bit in thread state's eflags.
4523         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4525 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
4527         [BZ #5774]
4528         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4529         of NAN(...) sequence.
4530         * stdlib/Makefile (tests): Add tst-strtod6.
4531         * stdlib/tst-strtod6.c: New file.
4533         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4535         [BZ #5762]
4536         * posix/getopt.c (_getopt_internal_r): Clarify error message by
4537         putting offending option character in quotes.  Clean up error
4538         messages.
4539         * po/be.po: Adjust msgstr in translation file.
4540         * po/bg.po: Likewise.
4541         * po/ca.po: Likewise.
4542         * po/cs.po: Likewise.
4543         * po/da.po: Likewise.
4544         * po/de.po: Likewise.
4545         * po/es.po: Likewise.
4546         * po/fr.po: Likewise.
4547         * po/hr.po: Likewise.
4548         * po/ko.po: Likewise.
4549         * po/nl.po: Likewise.
4550         * po/rw.po: Likewise.
4551         * po/sk.po: Likewise.
4552         * po/sv.po: Likewise.
4553         * po/tr.po: Likewise.
4554         * po/zh_CN.po: Likewise.
4555         * po/zh_TW.po: Likewise.
4557         [BZ #5760]
4558         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4559         Patch by Roland Bless <roland@bless.de>.
4561         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4562         .o file.
4563         * elf/Makefile (routines): Add dl-sysdep.
4564         (elide-routines.os): Likewise.
4566 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
4568         [BZ #5786]
4569         * elf/dl-sysdep.c: Undefine ROUND after use.
4570         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4571         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4572         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4573         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4574         to ...
4575         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4576         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4577         if necessary.
4578         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4580         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4581         _dl_tls_get_addr_soft element.
4582         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4583         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4584         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4585         GLRO.
4586         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4587         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4588         of internal_function.
4590         * stdlib/Makefile (aux): Add tens_in_limb.
4591         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4592         * stdlib/tens_in_limb.c: ...here.  New file.
4594         [BZ #5778]
4595         * sysdeps/unix/sysv/linux/pathconf.h: Declare
4596         __statfs_chown_restricted.
4597         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4598         for _PC_CHOWN_RESTRICTED.
4599         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4600         Implement __statfs_chown_restricted.
4601         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4602         _POSIX_CHOWN_RESTRICTED value to zero.
4603         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4604         defined to zero.
4606         * sysdeps/x86_64/rtld-memset.c: New file.
4608 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4610         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4612         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4613         Barcelona machine.  Make default fall through branch of
4614         __x86_64_preferred_memory_instruction check as the integer code path.
4616 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4618         * sysdeps/x86_64/cacheinfo.c
4619         (__x86_64_preferred_memory_instruction): New variable.
4620         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4622         * sysdeps/x86_64/memset.S: Rewrite.
4624 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4626         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4627         __obstack_printf_chk): New prototypes.
4628         (__vasprintf_chk, __vdprintf_chk,
4629         __obstack_vprintf_chk): Likewise.
4630         Add libc_hidden_proto.
4631         * libio/obprintf.c
4632         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4633         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4634         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4635         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4636         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4637         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4638         __obstack_vprintf_chk): New prototypes.
4639         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4640         obstack_vprintf): New inlines.
4641         * debug/dprintf_chk.c: New file.
4642         * debug/vdprintf_chk.c: New file.
4643         * debug/asprintf_chk.c: New file.
4644         * debug/vasprintf_chk.c: New file.
4645         * debug/obprintf_chk.c: New file.
4646         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4647         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4648         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4649         @@GLIBC_2.8.
4650         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4651         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4652         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4653         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4654         libc_hidden_proto.
4655         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4656         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4657         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4658         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4659         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4660         @@GLIBC_2.8.
4661         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4662         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4663         obstack_vprintf_chk.
4664         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4665         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4666         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4667         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4668         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4669         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4671 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4673         [BZ #5779]
4674         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4675         Patch by Roy Marples <roy@marples.name>.
4677         [BZ #5736]
4678         * malloc/malloc.c: Fix typo in comment.
4680         [BZ #5627]
4681         * locale/iso-639.def: Add Shuswap.
4683 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4685         [BZ #5790]
4686         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4687         overwrite *h_errnop/*errnop values from getanswer_r in case of
4688         failure.
4690 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4692         [BZ #5818]
4693         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4694         (verify_persistent_db): Remove one unnecessary test and add a new one
4695         for bad configuration.
4696         (nscd_init): Improve error reported when persistent database cannot
4697         be reused.
4698         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4699         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4700         .suggested_module and .max_db_size and case config file says the
4701         values are zero.
4702         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4704         [BZ #5854]
4705         * nis/ypclnt.c (yp_order): Fix handling of return value of
4706         do_ypcall_tr call.
4707         Patch by Jeff Moyer <jmoyer@redhat.com>.
4709         * po/fr.po: Update from translation team.
4711 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4712             Carlos O'Donell <carlos@systemhalted.org>
4714         [BZ #5012]
4715         * FAQ.in: Describe why glibc needs to be compiled with
4716         optimization.
4718 2008-02-19  Roland McGrath  <roland@redhat.com>
4720         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4722 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4724         [BZ #5737]
4725         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4726         __USE_MISC is defined.
4728 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4730         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4731         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4732         sys/timerfd.h.
4733         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4734         timerfd_gettime, timerfd_settime.
4735         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4736         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4738 2008-02-08  Roland McGrath  <roland@redhat.com>
4740         * elf/elf.h (NT_PPC_SPE): New macro.
4742 2008-02-06  Roland McGrath  <roland@redhat.com>
4744         * Makerules ($(common-objpfx)sysd-rules):
4745         Depend on $(sysdep-makeconfigs).
4747 2008-01-31  Roland McGrath  <roland@redhat.com>
4749         [BZ #5442]
4750         * configure.in: Use -print-file-name if it yields a directory,
4751         for each of include and include-fixed.
4752         * configure: Regenerated.
4754         * Makeconfig (sysd-rules-targets): New variable.
4755         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4756         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4758 2008-01-30  Roland McGrath  <roland@redhat.com>
4760         * manual/libc.texinfo: Update back-cover text.
4762         * elf/elf.h (NT_386_TLS): New macro.
4764 2008-01-29  Roland McGrath  <roland@redhat.com>
4766         * Makeconfig (sysd-rules-patterns): New variable.
4767         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4768         (check-inhibit-asm): New canned sequence, replaces ...
4769         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4770         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4771         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4772         (CFLAGS-rtld): Variable removed.
4774 2008-01-24  Roland McGrath  <roland@redhat.com>
4776         * configure.in: Let configure fragments set base_os.
4777         * configure: Regenerated.
4779 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4781         * po/ko.po: Update from translation team.
4783 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4785         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4787 2008-01-12  Andreas Jaeger  <aj@suse.de>
4789         [BZ #5040]
4790         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4791         Add EPOLLRDHUP.
4793 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4795         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4796         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4797         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4799 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4801         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4802         * elf/dl-close.c (_dl_close): Check for it.
4803         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4804         (_dl_allocate_static_tls): Likewise.
4805         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4806         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4807         to it.
4808         * elf/tst-tls16.c: New file.
4809         * elf/tst-tlsmod16a.c: New file.
4810         * elf/tst-tlsmod16b.c: New file.
4811         * elf/Makefile: Add rules to build and run tst-tls16.
4813 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4815         [BZ #5628]
4816         * bits/shm.h: Fix comment describing shmid_ds.
4817         * sysdeps/gnu/bits/shm.h: Likewise.
4818         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4819         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4820         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4821         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4822         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4823         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4824         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4825         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4826         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4828         [BZ #5607]
4829         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4830         prototypes.
4831         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4832         additional suffixes.
4833         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4834         Add optional functions mq_timedreceive and mq_timedsend.
4835         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4836         * conform/data/pthread.h-data: Fix prototype of
4837         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4838         * conform/data/semaphore.h-data: Allow time.h definitions.
4839         * conform/data/signal.h-data: Likewise.
4840         * conform/data/stdio.h-data: getw and putw are not required in v6.
4841         * conform/data/stdlib.h-data: Change setstate prototype.
4842         * conform/data/string.h-data: Fix strerror_r prototype.
4843         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4844         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4845         Fix readlink prototype.
4846         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4847         in6addr_loopback.
4848         * inet/netinet/in.h: Cleanup namespace.
4849         * posix/regex.h: Likewise.
4850         * resolv/netdb.h: Likewise.
4851         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4852         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4853         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4854         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4855         of names of in in6_addr.
4856         (default_precedence): Likewise.
4857         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4858         NULL definition.
4860 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4862         * conform/data/fmtmsg.h-data: Add missing allows.
4863         * conform/data/ftw.h-data: Likewise.
4864         * conform/data/inttypes.h-data: Likewise.
4865         * conform/data/math.h-data: Likewise.
4866         * conform/data/signal.h-data: Likewise.
4867         * conform/data/net/if.h-data: Likewise.
4868         * conform/data/netinet/in.h-data: Likewise.
4869         * conform/data/sys/socket.h-data: Likewise.
4871         [BZ #5614]
4872         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4873         (__strtok_r): Simplify.
4874         * string/tester.c (test_strtok_r): Add test case for futile search
4875         with single-character seach string.
4877 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4879         * po/ko.po: Update from translation team.
4881 2008-01-11  Andreas Jaeger  <aj@suse.de>
4883         [BZ #5600]
4884         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4885         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4886         kernel header.
4888 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4890         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4891         native interface lookup in all the relevant places.
4893 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4894             Ulrich Drepper  <drepper@redhat.com>
4896         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4897         field.  Use sockaddr_in6 for source_addr.
4898         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4899         (match_prefix): Likewise.
4900         (get_label): Likewise.
4901         (get_precedence): Likewise.
4902         (rfc3484_sort): Change to use indirect access to results array.
4903         Adjust to use of sockaddr_in6.  Replace service_order test with
4904         simple index comparison.
4905         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4906         service_order field.  Adjust qsort_t calls.  Access sorted result
4907         array indirectly through order array.
4908         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4909         * posix/tst-rfc3484-2.c: Likewise.
4910         * posix/tst-rfc3484-3.c: Likewise.
4912 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4914         [BZ #5541]
4915         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4916         pollfd structures.
4917         Patch by André Cruz.
4919         [BZ #5545]
4920         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4921         (clnt_spcreateerror): Likewise.
4923         [BZ #5553]
4924         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4925         (public_mEMALIGn): Likewise.
4926         Patch mostly by Daniel Jacobowitz.
4928 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4930         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4931         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4932         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4933         * stdlib/tst-makecontext2.c: New test.
4935 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4937         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4938         defined.
4939         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4940         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4941         transliteration hooks and REINIT_PARAMS afterwards.
4942         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4943         status.
4944         (REINIT_PARAMS): Define.
4945         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4946         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4947         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4948         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4949         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4950         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4951         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4952         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4953         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4954         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4955         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4956         * iconvdata/tst-iconv7.c: New test.
4958 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4960         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4962 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4964         [BZ #5112]
4965         * nscd/connections.c (restart): Fix condition.
4967 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4969         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4970         __ctype_toupper_loc): Add __THROW.
4972 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4974         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4975         recognition of interface family.
4977         * posix/getconf.c: Update copyright year.
4978         * nss/getent.c: Likewise.
4979         * iconv/iconvconfig.c: Likewise.
4980         * iconv/iconv_prog.c: Likewise.
4981         * elf/ldconfig.c: Likewise.
4982         * catgets/gencat.c: Likewise.
4983         * csu/version.c: Likewise.
4984         * elf/ldd.bash.in: Likewise.
4985         * elf/sprof.c (print_version): Likewise.
4986         * locale/programs/locale.c: Likewise.
4987         * locale/programs/localedef.c: Likewise.
4988         * nscd/nscd.c (print_version): Likewise.
4989         * debug/xtrace.sh: Likewise.
4990         * malloc/memusage.sh: Likewise.
4991         * malloc/mtrace.pl: Likewise.
4992         * debug/catchsegv.sh: Likewise.
4994 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4996         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4997         second lookup.
4999 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5001         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5002         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5004 2007-12-17  Roland McGrath  <roland@redhat.com>
5006         * inet/ether_line.c (ether_line): Remove unused variable.
5008 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5010         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5011         and winp.
5012         * login/openpty.c (openpty): Likewise.
5013         * login/pty.h (openpty, forkpty): Likewise.
5014         * manual/terminal.texi (openpty, forkpty): Likewise.
5016 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5018         * malloc/malloc.c (public_cALLOc): For arenas other than
5019         main_arena, count all bytes inside the mprotect_size range of the
5020         heap as uninitialized.
5022 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5024         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5025         executable stacks.
5027         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5028         mTRIm for all of them.
5029         (mTRIm): Additionally iterate over all free blocks and use madvise
5030         to free memory for all those blocks which contain at least one
5031         memory page.
5032         * malloc/tst-trim1.c: New file.
5033         * malloc/Makefile (tests): Add tst-trim1.
5035         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5037 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5039         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5040         First cast argument to long
5041         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5042         Return long.
5043         (__vdso_clock_gettime): Likewise.
5044         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5045         return long.
5047 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5049         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5050         * locale/nl_langinfo_l.c: Real implementation, copied from
5051         nl_langinfo.c.
5052         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5054 2007-12-01  Jim Meyering  <meyering@redhat.com>
5056         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5057         that would inhibit utf8-optimization of a regexp containing line-
5058         or buffer-anchors, e.g., `^', `$'.
5060 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5062         * time/bug-getdate1.c (do_test): Don't use century values which
5063         aren't valid on 32-bit systems.
5065 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5067         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5068         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5069         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5070         __strcat_g, __strncat_g): Add __asm__.
5072 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5074         [BZ #5477]
5075         * io/fchmodat.c: Fix typo in stub_warning use.
5076         Patch by Petr Salinger.
5078 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5080         * iconvdata/hp-thai8.c: New file.
5081         * iconvdata/Makefile: Add rules for hp-thai8.c.
5082         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5083         * iconvdata/gconv-modules: Likewise.
5085         [BZ #5464]
5086         * iconvdata/hp-greek8.c: New file.
5087         * iconvdata/Makefile: Add rules for hp-greek8.c.
5088         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5089         * iconvdata/gconv-modules: Likewise.
5091         [BZ #5463]
5092         * iconvdata/hp-turkish8.c: New file.
5093         * iconvdata/Makefile: Add rules for hp-turkish8.c.
5094         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5095         * iconvdata/gconv-modules: Likewise.
5097         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5098         (shrink_heap): ... this new function.
5099         (heap_trim): Call shrink_heap instead of grow_heap.
5101         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5102         case don't call alloc_perturb.
5104 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
5106         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5107         possible.
5108         * sysdeps/unix/sysv/linux/kernel-features.h
5109         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5110         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5112 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
5114         [BZ #5424]
5115         * stdio-common/vfprintf.c: Do not overflow when adding to done.
5116         * stdio-common/Makefile (tests): Add bug22.
5117         * stdio-common/bug22.c: New file.
5119         [BZ #5451]
5120         * time/getdate.c: Fix filling in default values.
5121         * time/bug-getdate1.c: New file.
5122         * time/Makefile: Add rules to build and run bug-getdate1.
5124         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5125         * iconvdata/ebcdic-es.c: Likewise.
5126         * iconvdata/ebcdic-es-a.c: Likewise.
5127         * iconvdata/ebcdic-uk.c: Likewise.
5128         * iconvdata/iso8859-16.c: Likewise.
5129         * iconvdata/viscii.c: Likewise.
5130         * iconvdata/iso8859-9e.c: Likewise.
5131         * iconvdata/Makefile: Adjust appropriately.
5133         [BZ #5428]
5134         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5135         __need_wint_t.
5137 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5139         [BZ #5427]
5140         * iconvdata/hp-roman9.c: New file.
5141         * iconvdata/Makefile: Add rules for hp-roman9.c.
5142         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5143         * iconvdata/gconv-modules: Likewise.
5145         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5146         * iconvdata/Makefile: Adjust appropriately.
5148         [BZ #5441]
5149         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5150         structure, it's allocated with alloca.
5151         * stdio-common/Makefile (tests): Add bug21.
5152         * stdio-common/bug21.c: New file.
5154 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
5156         [BZ #5452]
5157         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5158         keyword for gcc's braced-groups.
5160 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
5162         [BZ #5454]
5163         * inet/ether_line.c: Strip hostname of whitespaces.
5164         * inet/Makefile (tests): Add tst-ether_line.
5165         * inet/tst-ether_line.c: New file.
5167 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
5169         [BZ #5439]
5170         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5172         [BZ #5435]
5173         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5175         * stdlib/tst-setcontext.c: Catch the case where the links gets
5176         messed up and we do not reach main again.
5178         * po/ca.po: Update from translation team.
5180 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
5182         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5183         * posix/regex.h (REG_ENOSYS): Likewise.
5184         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5186 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
5188         * nscd/nscd.h (MAX_STACK_USE): Define.
5189         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5190         (gc): Initialize stack_used based on allocation in prune_cache.
5191         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5192         Clear array before use.
5194         * nscd/aicache.c (addhstaiX): Update statistics counter in case
5195         memory allocation failed.
5196         * nscd/hstcache.c (cache_addhst): Likewise.
5197         * nscd/grpcache.c (cache_addgr): Likewise.
5198         * nscd/servicescache.c (cache_addserv): Likewise.
5199         * nscd/pwdcache.c (cache_addpw): Likewise.
5200         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5202 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
5204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5205         and creat system calls.
5207         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5209 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5211         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5212         Add netiucv/iucv.h.
5213         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5214         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5215         protocol.
5216         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5217         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5218         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5220 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5222         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5223         strncat): Define as macros to avoid compile errors.
5225         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
5226         creat entries.
5228 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
5230         [BZ #5382]
5231         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5232         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5233         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5234         overflow it.
5235         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5237         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5238         Return zero in case the thread library is not NPTL.
5240         [BZ #5375]
5241         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5242         initializing interface list.
5244         [BZ #5378]
5245         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5246         use result of nss_getgrgid_r if nothing was found.  For other
5247         error return with a failure.
5248         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5250         * locale/programs/ld-collate.c (collate_read): Fix loop to match
5251         macro name.
5253 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5255         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5256         (get_scope): For IPv4 scope, use scopes table.
5257         (fini): Free scopes table if necessary.
5258         (free_scopelist): New function.
5259         (scopecmp): New function.
5260         (gaiconf_init): Also handle scopev4 entries.
5261         * posix/tst-rfc3484.c (do_test): Initialize scopes.
5262         * posix/tst-rfc3484-2.c (do_test): Likewise.
5263         * posix/gai.conf: Document scopev4 defaults.
5264         * posix/Makefile (tests): Add tst-rfc3484-3.
5265         * posix/tst-rfc3484-3.c: New file.
5267         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5268         Teredo tunnels.
5269         * posix/gai.conf: Update for current default tables.
5271 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
5273         * po/tr.po: Update from translation team.
5275 2007-11-18  Roland McGrath  <roland@frob.com>
5277         * manual/arith.texi (Remainder Functions): Spelling fix.
5278         From Shaun Silk <genix@mysoul.com.au>.
5280         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5282 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
5284         * po/zh_CN.po: Update from translation team.
5286         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5287         Add sys/signalfd.h and sys/eventfd.h.
5289 2007-11-15  Bruno Haible  <bruno@clisp.org>
5291         [BZ #5346]
5292         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5293         union.
5294         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5295         (DCIGETTEXT): Change the allocation of the 'search' variable so that
5296         it needs only fixed stack space. Delay the initialization of
5297         msgid_len until it is needed.
5299 2007-11-15  Andreas Jaeger  <aj@suse.de>
5301         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5302         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5304 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
5306         * po/ko.po: Update from translation team.
5308 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
5310         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5311         significantly.  The device type is also part of the ifinfomsg data.
5313         * po/sv.po: Update from translation team.
5314         * po/nl.po: Likewise.
5316         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5317         to wake up in 24 hours.
5319         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
5321 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
5323         * po/cs.po: Update from translation team.
5324         * po/pl.po: Likewise.
5326         * include/ifaddrs.h: Remove in6ai_temporary.
5327         (struct in6addrinfo): Add index element.
5328         Declare __check_native.
5329         * inet/Makefile (aux): Add check_native.
5330         * sysdeps/unix/sysv/linux/check_native.c: New file.
5331         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5332         IFA_F_TEMPORARY.  Pass back ifa_index.
5333         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5334         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
5335         call __check_native if necessary.
5336         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
5337         to sort addresses.  Pass information about the results.
5338         * posix/tst-rfc3484.c: Adjust for addition of index field and change
5339         of rfc3484_sort interface.
5340         * posix/tst-rfc3484-2.c: Likewise.
5342         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
5343         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5344         for _quicksort.
5345         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5346         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
5347         on as third parameter to compare function and _quicksort.
5348         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5349         to the compare function.
5350         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5351         * Versions.def: Add GLIBC_2.8 for libc.
5353         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5354         * posix/tst-rfc3484-2.c: Likewise.
5356         * include/kernel-features.h: Moved to...
5357         * sysdeps/mach/hurd/kernel-features.h: ...here.
5359 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5361         * sysdeps/i386/i586/memcpy_chk.S: New file.
5362         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5363         * sysdeps/i386/i586/memset_chk.S: Likewise.
5365 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
5367         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5369         list of interfaces.  Also store prefix length.
5370         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5371         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5372         prefix if source and destination address are in the same subnet.
5373         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
5374         Always look for matching record in in6ai list.
5375         Correct source_addr_len value for IPv6->IPv4 converted records.
5377 2007-11-11  Roland McGrath  <roland@frob.com>
5379         * include/kernel-features.h: New file.
5381 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
5383         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5384         complications for 64-bit platforms.
5386         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5387         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
5388         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5389         open64_2.
5390         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5391         entries.
5392         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5393         * sysdeps/wordsize-64/alphasort.c: New file.
5394         * sysdeps/wordsize-64/alphasort64.c: New file.
5395         * sysdeps/wordsize-64/fseeko.c: New file.
5396         * sysdeps/wordsize-64/fseeko64.c: New file.
5397         * sysdeps/wordsize-64/ftello.c: New file.
5398         * sysdeps/wordsize-64/ftello64.c: New file.
5399         * sysdeps/wordsize-64/ftw.c: New file.
5400         * sysdeps/wordsize-64/ftw64.c: New file.
5401         * sysdeps/wordsize-64/iofgetpos.c: New file.
5402         * sysdeps/wordsize-64/iofgetpos64.c: New file.
5403         * sysdeps/wordsize-64/iofopen.c: New file.
5404         * sysdeps/wordsize-64/iofopen64.c: New file.
5405         * sysdeps/wordsize-64/iofsetpos.c: New file.
5406         * sysdeps/wordsize-64/iofsetpos64.c: New file.
5407         * sysdeps/wordsize-64/lockf.c: New file.
5408         * sysdeps/wordsize-64/lockf64.c: New file.
5409         * sysdeps/wordsize-64/mkostemp.c: New file.
5410         * sysdeps/wordsize-64/mkostemp64.c: New file.
5411         * sysdeps/wordsize-64/mkstemp.c: New file.
5412         * sysdeps/wordsize-64/mkstemp64.c: New file.
5413         * sysdeps/wordsize-64/scandir.c: New file.
5414         * sysdeps/wordsize-64/scandir64.c: New file.
5415         * sysdeps/wordsize-64/tmpfile.c: New file.
5416         * sysdeps/wordsize-64/tmpfile64.c: New file.
5417         * sysdeps/wordsize-64/versionsort.c: New file.
5418         * sysdeps/wordsize-64/versionsort64.c: New file.
5419         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5420         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5421         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5422         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5423         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5424         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5425         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5426         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5427         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5428         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5429         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5430         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5432         * crypt/sha256-crypt.c: Fix a comment.
5433         * crypt/sha512-crypt.c: Likewise.
5435 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5437         * sysdeps/x86_64/memset.S: Add sfence after movnti.
5439 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
5441         [BZ #5277]
5442         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5443         because output buffer is too small break, don't loop.
5444         * iconvdata/Makefile (tests): Add bug-iconv6.
5445         * iconvdata/bug-iconv6.c: New file.
5447 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
5449         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5450         with size_t type.
5451         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5452         size_t.  Add casts where needed.
5454         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5455         old headers, don't call avc_has_perm if we don't have the
5456         permission information.
5458 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
5460         * elf/rtld.c (dl_main): Use the page size to find the map start.
5462 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
5464         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5465         Patch by Szymon Siwek <sls@poczta.wp.pl>.
5467         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5468         when the lookup call failed.
5470         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5471         Add prune_cond and wakeup_time.
5472         (CACHE_PRUNE_INTERNAL): Define.
5473         Update declarations of prune_cache and setup_thread.
5474         * nscd/connections.c (dbs): Update initializers.
5475         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5476         (nscd_init): Default number of threads is now 4.
5477         (invalidate_cache): Take lock before calling prune_cache.
5478         (handle_request): If SELinux forbids the request, say so.
5479         (readylist_cond): Use static initializer.
5480         (nscd_run_prune): New function.  Used only by pruning threads.
5481         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
5482         here.
5483         (fd_ready): Update nscd_run reference.
5484         (start_threads): No need to initialize readylist_cond.
5485         Start pruning threads separately.
5486         * nscd/nscd_setup_thread.c: Change return value type to int and always
5487         return 0.
5488         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5489         to int and return nonzero value if we can use the TID address hack.
5490         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5491         the database is later than the new entry's timeout, update the
5492         wakeup time and wake the cleanup thread.
5493         (prune_cache): Return seconds the next entry in the database is still
5494         valid.  Remove locking for pruning here.
5495         * nscd/nscd.conf: Document default number of threads.
5497 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
5499         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5500         stack is properly aligned for the target function.
5501         Correct unwind info.
5503         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5504         when using auditing libraries.
5506 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
5508         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5509         _nss_dns_getnetbyaddr2_r.
5510         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
5511         extra parameter to getanswer_r.
5512         (_nss_dns_getnetbyaddr_r): Now a wrapper around
5513         _nss_dns_getnetbyaddr2_r.
5515         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5516         gethstbynm3_r.
5517         * nscd/gethstbynm2_r.c: Remove.
5518         * nscd/gethstbynm3_r.c: New file.
5519         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5520         __gethostbyaddr_r.
5521         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
5522         __gethostbyaddr_r compatibility wrapper.
5523         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
5524         determining timeout of entry.
5525         (lookup): Take new parameter and pass it to __gethostbyname3_r and
5526         __gethostbyaddr2_r.
5527         (addhstbyX): Pass reference to variable for TTL to lookup and
5528         cache_addhst.
5529         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5530         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5531         and __nss_next2.  Remove __nss_services_lookup.
5532         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
5533         Add compat wrapper.
5534         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5535         __nss_next2.
5536         * nss/getXXent_r.c: Likewise.
5537         * nss/getnssent_r.c: Likewise.
5538         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
5539         does not exist in module, try the optional second name.
5540         (__nss_next2): New function.
5541         (__nss_next): Now wrapper around __nss_next2.
5542         * nss/nsswitch.h: Adjust __nss_lookup prototype.
5543         Declare __nss_next2.
5544         Adjust definition of db_lookup_function type.
5545         * nss/service-lookup.c: Define NO_COMPAT.
5546         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5547         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5548         * inet/ether_ntoh.c: Likewise.
5549         * sunrpc/netname.c: Likewise.
5550         * sunrpc/publickey.c: Likewise.
5551         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
5552         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5553         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5554         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5555         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5557         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5559         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5561 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
5563         [BZ #5204]
5564         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5565         * crypt/sha512c-test.c: Likewise.
5567         [BZ #5225]
5568         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5569         to keep track of end of %[ format string element.
5570         * stdio-common/Makefile (tests): Add bug20.
5571         * stdio-common/bug20.c: New file.
5573         [BZ #5222]
5574         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5575         path elements in counting mode.
5577 2007-10-27  Andreas Jaeger  <aj@suse.de>
5579         [BZ #5040]
5580         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5582         [BZ #3112]
5583         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5584         (__cleanup): Free shared library when exiting.
5585         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5586         (__cleanup): Free shared library when exiting.
5588 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5590         [BZ #2549]
5591         * math/libm-test.inc (check_float_internal): Support
5592         denormalized return.
5594 2007-10-23  Andreas Jaeger  <aj@suse.de>
5596         [BZ #5208]
5597         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5598         __LONG_LONG_PAIR to handle little endian byte order.
5599         Suggested by abhishekrai@google.com
5601 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
5603         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5605 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5607         * nscd/cache.c (prune_cache): Move test for modified file outside
5608         of locking.
5610 2007-10-21  Andreas Jaeger  <aj@suse.de>
5612         * manual/texinfo.tex: Update to latest version.
5614         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5616         * manual/arith.texi (Status bit operations): Fix formatting.
5618         * manual/errno.texi (Error Messages): Fix formatting.
5620         * manual/sysinfo.texi (System Parameters): Fix formatting.
5622         * manual/libc.texinfo: Update VERSION and UPDATED.
5624 2007-10-19  Roland McGrath  <roland@redhat.com>
5626         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5628 2007-10-06  David S. Miller  <davem@davemloft.net>
5630         * configure.in: Add sparcv9v2 and sparc64v2.
5631         * scripts/config.sub: Likewise.
5632         * configure: Regenerate.
5633         * elf/elf.h (HWCAP_SPARC_N2): New.
5634         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5635         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5636         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5637         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5638         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5639         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5640         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5642 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5644         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5645         even if the poll result indicates there is data to read.
5646         Patch by Jeff Moyer <jmoyer@redhat.com>.
5648 2007-10-18  Roland McGrath  <roland@redhat.com>
5650         * elf/elf.h (NT_PPC_VMX): New macro.
5652 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5654         * version.h (VERSION): Set to 2.7.90.
5656 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5658         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5659         weak_alias.
5661 2007-10-17  Roland McGrath  <roland@frob.com>
5663         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5664         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5666 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5668         * version.h (VERSION): Bump to 2.7.
5669         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5671         [BZ #5186]
5672         * time/tzset.c (__tz_convert): Don't force testing for a change of
5673         TZ if not called from localtime.  But then also see whether the
5674         file changed, in case __use_tzfile is set.
5676         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5677         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5678         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5679         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5680         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5681         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5682         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5683         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5685 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5687         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5688         and admin selects to be able to replace the gai.conf file, lock
5689         data structures around the qsort call.
5691 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5693         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5694         new memset.
5695         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5696         too high for the improvements.  Implement bzero unconditionally for
5697         use in libc.
5699 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5700             Jakub Jelinek  <jakub@redhat.com>
5702         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5703         even when time_t is 32-bit.
5704         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5705         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5706         always set after the search.
5708 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5710         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5711         unreachable code on 32-bit machines.
5713 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5715         [BZ #5184]
5716         * time/strftime_l.c: Include stdbool.h.
5717         (my_strftime): New wrapper, old function renamed to...
5718         (__strftime_internal): ... new function.  Add tzset_called
5719         argument, pass it down to recursive calls, don't call tzset ()
5720         if already true, set to true after call to tzset ().
5722 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5724         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5725         into account when copying TZ string.
5727 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5729         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5730         num_transition rather than num_transitions - 1.
5732 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5734         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5735         PIC indirect jump.
5737         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5738         a local label rather than HIDDEN_JUMPTARGET.
5740 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5742         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5743         (init_cacheinfo): Initialize it.
5744         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5745         Always define bzero.
5746         Remove non-glibc code.
5747         * sysdeps/x86_64/bzero.S: Make an empty file.
5749 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5751         * sysdeps/x86_64/cacheinfo.c
5752         (__x86_64_preferred_memory_instruction): New.
5753         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5755         * sysdeps/x86_64/memset.S: Rewrite.
5757 2007-10-15  Roland McGrath  <roland@redhat.com>
5759         * po/libc.pot: Regenerated.
5761 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5763         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5764         pointers.
5766         [BZ #3425]
5767         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5768         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5769         address record to T_A/T_AAAA requests.
5771 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5773         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5775         * posix/glob.c: Add some branch prediction throughout.
5777         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5778         read from nscd.
5780         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5781         service_order.
5782         (rfc3484_sort): Make sure that even if qsort doesn't support
5783         stable sorting out sorting here is stable by comparing service_order.
5784         (getaddrinfo): Initialize service_order.
5785         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5786         service_order field to sorting structure.
5787         * posix/tst-rfc3484-2.c (do_test): Likewise.
5789         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5790         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5791         __tzset_parse_tz and updating of daylight, timezone, tzname into
5792         update_vars.
5793         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5794         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5795         happens in __tz_compute.
5796         * time/tzfile.c (__tzfile_read): Also read TZ string.
5797         (find_transition): Fold into __tzfile_compute.
5798         (__tzfile_compute): For times beyond the last transition try to
5799         use the TZ string.
5800         * timezone/tst-timezone.c: Information in daylight and tzname does
5801         change for Asia/Tokyo timezone with more concrete information.
5802         Remove the test.
5804         * include/stdio.h: Add libc_hidden_proto for ftello.
5805         * libio/ftello.c: Add libc_hidden_def.
5807         [BZ #1140]
5808         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5809         on the specified time and not the last entries in the file.  Move
5810         code to determine tzname[] to...
5811         (find_transition): ...here.  Add ugly guess for times before the
5812         first transition.
5814 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5816         [BZ #3195]
5817         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5818         no entry.
5819         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5820         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5821         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5822         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5824         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5825         read mechanism when there are no group members and avoid no-op
5826         read syscall in this case.
5828         [BZ #3242]
5829         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5830         (__readall): If reading failed due to EAGAIN error wait a bit
5831         and possibly try again.
5832         (__readvall): Likewise.
5834 2007-10-13  Bruno Haible  <bruno@clisp.org>
5836         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5837         when we cannot recode the message.
5839 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5841         [BZ #4359]
5842         * libio/__freading.c (__freading): Don't return true for
5843         write-only streams.  For read/write streams, check whether we
5844         performed a read operation already.
5845         * libio/Makefile (tests): Add tst-ext2.
5846         * libio/tst-ext2.c: New file.
5848 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5850         * locale/programs/repertoire.c (repertoire_read): Always free
5851         memory for repertoire file name [Coverity CID 270].
5853         * elf/cache.c (save_aux_cache): Free memory allocated for
5854         temporary file name [Coverity CID 267].
5856 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5858         * misc/Makefile (headers): Add bits/error.h.
5860 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5862         * posix/fnmatch_loop.c: Take rule index returned as part of
5863         findidx return value into account when accessing weights.
5864         * posix/regcomp.c: Likewise.
5865         * posix/regexec.c: Likewise.
5867         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5868         (skip_to): Fix problems with parameter of elifdef/elifndef.
5870 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5872         * iconv/gconv_simple.c: Add some branch prediction.
5874 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5876         * locale/programs/ld-collate.c (collate_read): If ignore_content
5877         and nowtok is tok_define, eat any tok_eol tokens.
5879 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5881         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5882         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5884         * inet/netinet/in.h: Don't include bits/socket.h.
5885         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5886         macro.
5887         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5889 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5891         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5892         and tok_elifndef.
5893         * locale/programs/locfile-kw.gperf: Likewise.
5894         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5896 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5898         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5899         (__find_specwc): Change into __extern_always_inline function.
5900         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5901         (__parse_one_specmb): Remove ps argument.
5902         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5903         Adjust __find_specmb and __parse_one_specmb callers.
5904         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5905         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5906         Removed.
5907         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5908         caller.
5910 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5912         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5913         with some Pentium Ds.
5915 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5917         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5918         __read not read.
5919         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5920         __write not write.
5922 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5924         [BZ #181]
5925         * locale/C-time.c: Set week_1stday data to 19971201.
5926         * locale/programs/ld-time.c (time_finish): Default for
5927         first_workday is Monday.
5929         [BZ #2633]
5930         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5932         [BZ #5103]
5933         * posix/glob.c (glob): Recognize patterns starting \/.
5934         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5935         (main): Add test for pattern starting \/.
5937         * misc/error.h: Use __const instead of const.
5938         * misc/bits/error.h: Likewise.
5940 2007-10-07  Andreas Jaeger  <aj@suse.de>
5942         * include/bits/error.h: New file.
5944         * misc/bits/error.h (error_at_line): Fix prototype.
5946 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5948         [BZ #3924]
5949         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5950         more little bugs in creating the stack frame when pltexit has to
5951         be called.
5953         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5954         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5956         [BZ #4407]
5957         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5958         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5959         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5960         * math/libm-test.inc: Add test for this case.
5962         [BZ #5010]
5963         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5964         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5965         map service succeeded.
5966         (svc_is_mapped): New function.
5967         (svc_unregister): Use it before trying to unmap service.
5969 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5971         * timezone/zic.c: Update from tzcode2007h.
5973         [BZ #5063]
5974         * timezone/africa: Update from tzdata2007h.
5975         * timezone/antarctica: Likewise.
5976         * timezone/asia: Likewise.
5977         * timezone/australasia: Likewise.
5978         * timezone/europe: Likewise.
5979         * timezone/leapseconds: Likewise.
5980         * timezone/northamerica: Likewise.
5981         * timezone/southamerica: Likewise.
5982         * timzeone/zone.tab: Likewise.
5984         [BZ #5104]
5985         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5987         [BZ #5113]
5988         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5989         avoid warning with -Wconversion.
5990         (__strndup): Likewise.
5991         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5993         [BZ #5112]
5994         * nscd/connections.c (restart): Don't resync if database is
5995         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5997         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5998         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6000         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6001         evetnfd_read, eventfd_write.
6002         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6003         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6004         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6005         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6006         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6007         eventfd_write for GLIBC_2.7.
6009         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6010         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6011         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6012         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6014 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6016         * stdlib/msort.c: Include stdint.h.
6017         (struct msort_param): New type.
6018         (msort_with_tmp): Use struct msort_param pointer for unchanging
6019         parameters.  Add optimized handling for several common sizes
6020         and indirect sorting mode.
6021         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6022         sorting.
6023         Suggested by Belazougui Djamel .
6025         * stdlib/Makefile (tests): Add tst-qsort2.
6026         * stdlib/tst-qsort2.c: New test.
6028 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6030         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6031         for dup2 in case another thread races with the current one.  Retry
6032         in this case.
6034         * misc/error.h: Remove support for use outside of libc.  We have to
6035         include <features.h> now.  Include <bits/error.h> if possible.
6036         * misc/bits/error.h: New file.
6038 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6040         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6041         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6042         __extern_always_inline functions unconditionally, drop macros.
6044         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6045         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6046         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6048         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6049         add __artificial__ attribute.
6051 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6053         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6054         backward to forward direction.
6056         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6058         [BZ #645]
6059         * locale/programs/ld-collate.c (collate_finish): Compare against last
6060         used section which is known to have rules defined.
6061         (collate_read): After order_start, correctly record order of sections
6062         and queue sections up.
6064 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6066         [BZ #5071]
6067         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6068         the same number of pages.
6069         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6071         * locale/programs/ld-collate.c (collate_read): After initial copy
6072         statement, continue in state 0.
6074         * include/stdio_ext.h (__fsetlocking): Define as macro.
6076 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6078         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6079         of section order.
6081         * po/pt_BR.po: Fix typo.
6083 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
6085         * iconvdata/Makefile (modules): Add ISO8859-9E.
6086         (distribute): Add iso8859-9e.c.
6087         (gen-8bit-gap-modules): Add iso8859-9e.
6088         * iconvdata/iso8859-9e.c: New file.
6089         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6090         * iconvdata/TESTS: Likewise.
6091         * iconvdata/tst-tables.sh: Likewise.
6093         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6095         * locale/iso-639.def: Add several new entries.
6097 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6099         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6100         void * pointers instead of struct link_map **.
6101         (_dl_scope_free): Change argument type to void *.
6102         * include/link.h (struct link_map): Change type of l_reldeps
6103         to struct link_map_reldeps, move l_reldepsact into that
6104         struct too.
6105         * elf/dl-deps.c: Include atomic.h.
6106         (_dl_map_object_deps): Only change l->l_initfini when it is
6107         fully populated, use _dl_scope_free for freeing it.  Optimize
6108         removal of libs from reldeps by using l_reserved flag, when
6109         some removal is needed, allocate a new list instead of
6110         reallocating and free the old with _dl_scope_free.  Adjust
6111         for l_reldeps and l_reldepsact changes.
6112         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
6113         searching in l_initfini and l_reldeps without holding dl_load_lock.
6114         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6115         l_reldepsact changes.
6116         * elf/dl-close.c (_dl_close_worker): Likewise.
6117         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6119 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
6121         * iconvdata/Makefile (modules): Add KOI8-RU.
6122         (distribute): Add koi8-ru.c.
6123         (gen-8bit-gap-modules): Add koi8-ru.
6124         * iconvdata/koi8-ru.c: New file.
6125         * iconvdata/gconv-modules: Add entries for KOI8-RU.
6126         * iconvdata/TESTS: Likewise.
6127         * iconvdata/tst-tables.sh: Likewise.
6129         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6131 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
6133         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6134         with __warning__/__error__ attributes.
6135         (__warnattr): Define.
6136         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6137         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6138         __warnattr.
6139         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6140         of __*_chk if compile time detectable overflow is found.
6141         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6142         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6143         with __warnattr.
6144         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6145         instead of __*_chk if compile time detectable overflow is found.
6146         (__gets_alias): Rename to...
6147         (__gets_warn): ... this.  Add __warnattr.
6148         (gets): Call __gets_warn instead of __gets_alias.
6149         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6150         aliases with __warnattr.
6151         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6152         time detectable overflow is found.
6153         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6154         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6155         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6156         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6157         __getdomainname_chk_warn): New aliases with __warnattr.
6158         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6159         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6160         __*_chk_warn instead of __*_chk if compile time detectable overflow
6161         is found.
6162         (__getgroups_chk): Rename argument to __listlen from listlen.
6163         (__getwd_alias): Rename to...
6164         (__getwd_warn): ... this.  Add __warnattr.
6165         (getwd): Call __getwd_warn instead of __getwd_alias.
6166         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6167         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6168         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6169         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6170         __wcsnrtombs_chk_warn): New aliases with __warnattr.
6171         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6172         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6173         compile time detectable overflow is found.
6174         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
6175         to use __*_chk or not.
6176         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6177         in comparisons which function should be called and in __*_chk*
6178         arguments.  Call __*_chk_warn instead of __*_chk if compile time
6179         detectable overflow is found.
6180         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6181         __*_chk argument.
6182         * debug/tst-chk1.c (do_test): Add a few more tests.
6184 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
6186         [BZ #5058]
6187         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6188         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6189         (_nl_unload_domain): Finalize conversions_lock.
6190         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6191         handling table of known conversions.
6193 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
6195         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6196         close_not_cancel_no_status instead of close.
6198 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
6200         [BZ #5028]
6201         * posix/regcomp.c (lookup_collation_sequence_value): Check that
6202         nrules != 0 for multibyte chars.
6204 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
6206         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6207         Provide better error message in case the type is unknown.
6209         [BZ #4963]
6210         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6211         * string/stratcliff.c: Make usable to test wide char functions.
6212         * wcsmbs/wcsatcliff.c: New file.
6213         * wcsmbs/Makefiel (tests): Add wcsatcliff.
6215         [BZ #4972]
6216         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6217         (distribute): Add mac-centraleurope.c.
6218         (gen-8bit-gap-modules): Add mac-centraleurope.
6219         * iconvdata/mac-centraleurope.c: New file.
6220         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6221         * iconvdata/TESTS: Likewise.
6222         * iconvdata/tst-tables.sh: Likewise.
6224         [BZ #5043]
6225         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6227 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
6229         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6230         from __x86_64_core_cache_size_half.
6231         (init_cacheinfo): Compute shared cache size for AMD processors with
6232         shared L3 correctly.
6233         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6234         name change.
6235         Patch in large parts by Evandro Menezes.
6237 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
6239         * elf/dl-lookup.c (add_dependency): Handle failing memory
6240         allocation for dependency list.  Remove unnecessary check.
6242         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6243         open/close when determining source addresses.
6245         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6246         sha512-crypt, and sha512.
6247         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6248         (distribute): Add sha256.h and sha512.h.
6249         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6250         and call the appropriate code.
6251         * crypt/sha256-crypt.c: New file.
6252         * crypt/sha256.c: New file.
6253         * crypt/sha256.h: New file.
6254         * crypt/sha256c-test.c: New file.
6255         * crypt/sha256test.c: New file.
6256         * crypt/sha512-crypt.c: New file.
6257         * crypt/sha512.c: New file.
6258         * crypt/sha512.h: New file.
6259         * crypt/sha512c-test.c: New file.
6260         * crypt/sha512test.c: New file.
6262 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
6264         * misc/bits/syslog.h (syslog): Remove extraneous argument from
6265         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6266         __syslog_chk.
6268 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
6270         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6271         %as in fscanf format strings.
6273         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6274         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6275         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6276         Likewise.
6277         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6278         Likewise.
6280         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6281         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6282         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6283         * elf/dl-sym.c (do_sym): Likewise.
6284         * include/link.h (struct link_map): Add l_serial field.
6285         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6286         * elf/dl-lookup.c (add_dependency): Add flags argument.
6287         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6288         flags, use THREAD_GSCOPE_RESET_FLAG before and
6289         THREAD_GSCOPE_SET_FLAG after
6290         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6291         Don't dereference map until it has been found on some list.
6292         If map->l_serial changed, return -1.
6294 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
6296         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6297         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6298         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6299         libc_hidden_proto.
6300         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6301         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6302         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6303         add libc_hidden_proto.
6304         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6305         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6306         conformance requested.
6307         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6308         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6309         conformance requested.
6310         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6311         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6312         conformance requested.
6313         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6314         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6315         ISO C99 or POSIX conformance requested.
6316         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6317         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6318         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6319         and __isoc99_vsscanf@@GLIBC_2.7.
6320         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6321         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6322         (tests): Add scanf14.
6323         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6324         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6325         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6326         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6327         CFLAGS-isoc99_scanf.c): Add $(exceptions).
6328         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6329         from using internal headers.
6330         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6331         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6332         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6333         and __isoc99_vswscanf@@GLIBC_2.7.
6334         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6335         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6336         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6337         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6338         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6339         * stdio-common/isoc99_scanf.c: New file.
6340         * stdio-common/isoc99_vsscanf.c: New file.
6341         * stdio-common/isoc99_vscanf.c: New file.
6342         * stdio-common/isoc99_vfscanf.c: New file.
6343         * stdio-common/isoc99_fscanf.c: New file.
6344         * stdio-common/isoc99_sscanf.c: New file.
6345         * wcsmbs/isoc99_fwscanf.c: New file.
6346         * wcsmbs/isoc99_vswscanf.c: New file.
6347         * wcsmbs/isoc99_swscanf.c: New file.
6348         * wcsmbs/isoc99_wscanf.c: New file.
6349         * wcsmbs/isoc99_vwscanf.c: New file.
6350         * wcsmbs/isoc99_vfwscanf.c: New file.
6351         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6352         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6353         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6354         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6355         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6356         * stdio-common/scanf14.c: New test.
6357         * stdio-common/scanf15.c: New test.
6358         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6359         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6360         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6361         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6362         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6363         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6364         __nldbl___isoc99_scanf@@GLIBC_2.7,
6365         __nldbl___isoc99_fscanf@@GLIBC_2.7,
6366         __nldbl___isoc99_sscanf@@GLIBC_2.7,
6367         __nldbl___isoc99_vscanf@@GLIBC_2.7,
6368         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6369         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6370         __nldbl___isoc99_wscanf@@GLIBC_2.7,
6371         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6372         __nldbl___isoc99_swscanf@@GLIBC_2.7,
6373         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6374         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6375         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6376         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6377         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6378         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6379         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6380         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6381         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6382         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6383         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6384         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6385         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6386         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6387         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6388         functions.
6389         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6390         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6391         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6392         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6393         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6394         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6395         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6396         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6397         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6398         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6399         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6400         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6402         * stdio-common/Makefile (tests): Add scanf13.
6403         (scanf13-ENV): New.
6404         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6405         m modifier followed by l.
6406         (STRING_ARG): Add width argument.
6407         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6408         <case L_('C')>: Handle %mlc and %mC.
6409         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6410         arguments.
6411         * stdio-common/scanf13.c: New test.
6413         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6414         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6416 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
6418         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6419         type and __THROW marker of splice, vmsplice, and tee.
6420         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6421         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6422         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6423         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6424         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6425         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6426         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6427         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6428         as cancellation points.
6430 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
6432         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6433         parse more than three parts of the version number.
6435 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
6437         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6438         modifier.  Patch by Jakub Jelinek.
6440 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
6442         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6443         call_fallocate in misc subdir.
6444         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6445         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6446         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6447         instead of __fallocate64.
6448         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6450 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
6452         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6453         * rt/Makefile (headers): Add bits/mqueue2.h.
6454         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6455         optimizing with GCC and __va_arg_pack_len is defined.
6456         * rt/bits/mqueue2.h: New file.
6457         * rt/mq_open.c (__mq_open): Renamed from mq_open.
6458         (mq_open): New strong_alias.
6459         (__mq_open_2): New function.
6460         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6461         (mq_open): New strong_alias.
6462         (__mq_open_2): New function.
6463         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6464         * Versions.def (librt): Add GLIBC_2.7 version.
6465         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6466         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6468         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6469         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6470         is defined rather than when not C++.
6471         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6472         __openat64_alias): New redirects.
6473         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6474         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6475         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6476         (open, open64, openat, openat64): Rewrite as __extern_always_inline
6477         functions instead of function-like macros.
6479 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
6481         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6482         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6483         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6485 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
6487         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6488         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6490 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
6492         * inet/tst-network.c: Increment ERRORS for failing tests.
6494 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
6496         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6497         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6498         implement as __extern_always_inline function.
6499         (vsyslog): Define as __extern_always_inline function unconditionally.
6500         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6501         When __va_arg_pack is defined, implement as __extern_always_inline
6502         functions.
6503         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6504         __extern_always_inline functions unconditionally.
6505         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6506         bits/stdio2.h will be included.
6507         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6508         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6509         implement as __extern_always_inline functions.
6510         (vswprintf, vwprintf, vfwprintf): Define as
6511         __extern_always_inline functions unconditionally.
6512         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6514 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
6516         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6517         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6518         attribute.
6519         * include/features.h (__USE_EXTERN_INLINES): Define only when
6520         __extern_inline is defined.
6521         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6522         is defined instead of when not __cplusplus.
6523         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6524         is defined instead of when not __cplusplus.
6525         * socket/sys/socket.h: Include bits/socket2.h when
6526         __extern_always_inline is defined instead of when not __cplusplus.
6527         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6528         is defined instead of when not __cplusplus.
6529         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6530         is defined instead of when not __cplusplus.
6531         * string/string.h: Include bits/string3.h when __extern_always_inline
6532         is defined instead of when not __cplusplus.
6533         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6534         is defined instead of when not __cplusplus.
6535         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6536         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6537         is not defined.
6538         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6539         defined __extern_always_inline instead of !defined __cplusplus.
6540         * libio/bits/stdio-ldbl.h: Likewise.
6541         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6542         * misc/bits/syslog.h (syslog): Don't define for C++.
6543         (vsyslog): Use __extern_always_inline function for C++ instead of
6544         a macro.
6545         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6546         whenever that macro is defined.
6547         (vprintf): Don't provide the inline for C++.
6548         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6549         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6550         define the macros for C++.
6551         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6552         __extern_always_inline functions for C++.
6553         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6554         stat64, lstat64, fstat64, fstatat64): Don't define if not
6555         __USE_EXTERN_INLINES.
6556         * wcsmbs/bits/wchar2.h: Fix #error message.
6557         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6558         (vswprintf, vwprintf, vfwprintf): Define using
6559         __extern_always_inline functions for C++.
6560         * string/bits/string3.h: Don't #undef macros if __cplusplus.
6561         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6562         strncpy, strcat, strncat): Define as __extern_always_inline
6563         functions instead of macros for C++.
6564         * math/bits/cmathcalls.h: Guard __extern_inline routines with
6565         defined __extern_inline.
6566         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6567         to __extern_inline whenever that macro is defined.
6568         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6569         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6570         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6571         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6572         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6573         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6574         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6575         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6576         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6577         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6578         prototypes.  Only provide __extern_inline routines if
6579         __USE_EXTERN_INLINES.
6580         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6581         tests.
6582         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6583         For now avoid some *printf tests in C++.  Skip all testing
6584         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6585         is not.
6586         * debug/tst-chk4.cc: New file.
6587         * debug/tst-chk5.cc: New file.
6588         * debug/tst-chk6.cc: New file.
6589         * debug/tst-lfschk4.cc: New file.
6590         * debug/tst-lfschk5.cc: New file.
6591         * debug/tst-lfschk6.cc: New file.
6592         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6593         prototypes in C++.
6594         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6595         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6596         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6598 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
6600         * po/cs.po: Update from translation team.
6602 2007-09-11  Roland McGrath  <roland@redhat.com>
6604         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6605         compiling.
6607 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6609         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6611 2007-09-05  Roland McGrath  <roland@redhat.com>
6613         * manual/signal.texi (Signaling Another Process): Typo fix.
6614         From Karl Berry <karl@freefriends.org>.
6616 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6618         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6619         zero if not defined.
6620         (make_request): Recognize optimistic addresses and treat them like
6621         deprecated addresses.
6622         Reported by Neil Horman <nhorman@redhat.com>.
6624 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6626         * nscd/connections.c (send_ro_fd): Also transfer file size.
6627         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6628         file size don't call fstat.
6630         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6631         ahead and map the file.  This should always be correct and we can
6632         catch problems later.
6634 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6636         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6637         prototypes.
6638         (__fread_alias, __fread_unlocked_alias): New aliases.
6639         (fread): New extern inline.
6640         (fread_unlocked): Likewise.  Undef macro before definition of
6641         the inline function.
6642         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6643         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6644         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6645         and __fread_unlocked_chk@@GLIBC_2.7.
6646         * debug/fread_chk.c: New file.
6647         * debug/fread_u_chk.c: New file.
6648         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6650 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6652         * sysdeps/unix/sysv/linux/syscalls.list
6653         (personality): Change caller to EXTRA.
6655 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6657         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6658         to keep gcc quiet.
6659         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6661         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6662         NDEBUG is defined.
6664         * Makerules: Use -p option with mkdir.
6666         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6667         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6668         (_xdr_directory_obj): Likewise.
6669         (xdr_entry_obj): Likewise.
6670         (xdr_group_obj): Likewise.
6671         (xdr_link_obj): Likewise.
6672         (xdr_table_obj): Likewise.
6673         (_xdr_nis_result): Likewise.
6674         (_xdr_ns_request): Likewise.
6675         (_xdr_ib_request): Likewise.
6676         (_xdr_nis_taglist): Likewise.
6677         (xdr_cback_data): Likewise.
6678         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6679         (xdr_ypresp_maplist): Likewise.
6681         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6683         * posix/regex_internal.h: Prevent some declarations and definitions
6684         to be seen when used in tests.
6686         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6687         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6689         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6691         * config.make.in (datarootdir): Add to shut up configure.
6693         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6694         associativity for fully-associative caches.
6696         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6697         requests.  Fill on more associativity values for L2.
6698         Patch mostly by Evandro Menezes.
6700 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6702         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6703         (_libc_vdso_platform_setup): Avoid using exported variable by using
6704         alias.
6706         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6708         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6709         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6710         defined.
6712 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6714         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6715         align stack for call if pltexit is to be used.
6717         [BZ #3924]
6718         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6719         align for function call in case pltexit has to be called later.
6721         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6722         implicit atomic operation when storing function pointer.
6723         (_dl_runtime_profile): Likewise.
6725 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6727         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6728         NIS_NOTFOUND.
6730 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6732         [BZ #4566]
6733         * string/strtok.c: Fix typo in comment.
6735         [BZ #4582]
6736         * debug/segfault.c: Fix typos in comments.
6738         [BZ #4588]
6739         * stdio-common/tempnam.c: Fix comment, it is not checked that
6740         TMPDIR points to a writable directory.
6742         [BZ #4726]
6743         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6744         memory allocated for the name server address.
6746         [BZ #4946]
6747         * nscd/connections.c (handle_request): Using sendfile always
6748         requires that mmap is used for the database.
6749         Patch by Petr Baudis <pasky@suse.cz>.
6751         [BZ #4905]
6752         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6753         suddenly has two or more addresses, ignore it and remove the old
6754         entry.
6756         [BZ #4814]
6757         * resolv/res_hconf.c: Prepare for compiling outside libc.
6758         * nscd/res_hconf.c: New file.
6759         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6760         the new file.
6761         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6762         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6764         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6766         [BZ #4925]
6767         * debug/pcprofiledump.c: Turn on internationalization by calling
6768         setlocale.  Patch mostly by Benno Schulenberg.
6770         [BZ #4936]
6771         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6772         the state.
6773         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6774         * iconvdata/bug-iconv5.c: New file.
6776 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6778         [BZ #4896]
6779         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6780         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6781         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6782         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6783         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6784         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6785         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6786         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6788 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6790         [BZ #4937]
6791         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6792         lookup loop.  Suggested by John Reiser.
6794 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6796         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6798 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6800         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6801         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6802         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6803         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6804         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6805         to...
6806         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6808 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6810         * po/nl.po: Update from translation team.
6812 2007-08-16  Andreas Jaeger  <aj@suse.de>
6814         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6815         Reported by Peter Festner <peter.festner@ewetel.net>.
6817 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6819         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6821 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6823         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6824         to check for undefined symbols.
6826         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6827         If the syscall fails, set errno to the actual returned error number
6828         rather than EINVAL.
6829         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6830         arguments are incorrect, set errno to EINVAL, if the syscall
6831         fails, set errno to the actual returned error number.
6833         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6834         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6836         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6837         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6838         file.
6839         (ASI_PNF, ASI_BLK_P): Don't define.
6840         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6841         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6842         file.
6843         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6844         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6845         file.
6847 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6849         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6850         FE_UNDERFLOW on Niagara CPUs.
6852         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6853         exceptions.
6855 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6857         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6858         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6859         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6860         flush should be used or not inside of the function.
6861         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6863         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6864         __thread_start): Use HIDDEN_JUMPTARGET.
6865         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6866         __thread_start): Likewise.
6867         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6869         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6870         Add libc_hidden_proto.
6871         (STRTOF): Add libc_hidden_proto.
6872         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6873         (strtold_l, wcstold_l): Use them as second argument for
6874         long_double_symbol.
6876 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6878         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6880 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6882         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6884 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6886         * po/bg.po: New file.  From the translation team.
6888 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6890         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6891         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6892         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6893         when each feature was introduced.
6895         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6896         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6897         (CHECK_HASH): New macro.
6898         (PREPARE_VERSION): Use it.
6900         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6901         prototype if not __ASSUME_PSELECT.
6902         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6903         prototype if not __ASSUME_PPOLL.
6905         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6907         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6908         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6909         is defined.
6911 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6913         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6914         (_libc_vdso_platform_setup): If vDSO is not available point
6915         __vdso_gettimeofday to the vsyscall.
6916         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6917         __vdso_gettimeofday instead of vsyscall.
6919 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6921         * nscd/servicescache.c: Include kernel-features.h.
6922         * nscd/gai.c: Likewise.
6923         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6924         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6925         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6926         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6927         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6928         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6929         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6930         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6931         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6933 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6935         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6936         and _dl_get_origin defines anymore.
6938         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6939         Build fix for systems which might lack POSIX timer support.
6941         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6942         (_libc_vdso_platform_setup): Mangle function pointers before storing
6943         them.
6944         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6945         Demangle vdso pointer before use.
6946         (INTERNAL_VSYSCALL): Likewise.
6948         * elf/cache.c (primes): Mark as const.
6949         Noted by Roland McGrath.
6951 2007-08-01  Andreas Jaeger  <aj@suse.de>
6952             Jakub Jelinek  <jakub@redhat.com>
6954         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6955         (options): Add option.
6956         (parse_opt): Handle option.
6957         (manual_link): Adjust process_file caller.  Call implicit_soname.
6958         (search_dir): Formatting.  Use and populate auxiliary cache.
6959         (main): Load and save auxiliary cache.
6960         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6961         stat64 from fstat64 to caller.
6962         (implicit_soname): New function.
6963         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6964         leave *soname as NULL.
6965         * elf/cache.c: Include libgen.h.
6966         (print_entry, print_cache, compare, save_cache, add_to_cache):
6967         Formatting and cleanups.
6968         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6969         aux_cache_file): New structures.
6970         (AUX_CACHEMAGIC): Define.
6971         (primes): New array.
6972         (aux_hash_size, aux_hash): New variables.
6973         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6974         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6975         load_aux_cache, save_aux_cache): New functions.
6976         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6977         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6978         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6979         (process_file): Adjust prototype.
6981 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6983         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6984         with __need_size_t.
6986 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6988         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6989         r_found_version structure as second parameter.
6990         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6991         (_dl_vdso_vsym): Change type of second parameter accordingly.
6992         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6993         (_libc_vdso_platform_setup): Adjust.
6994         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6995         (_libc_vdso_platform_setup): Likewise.
6997         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6998         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6999         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7000         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7001         * csu/libc-start.c: Pretty printing.
7002         Use VDSO_SETUP if defined.
7003         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7004         and let generic code call into _libc_vdso_platform_setup.
7005         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7006         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7007         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7008         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7009         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7010         for GLIBC_PRIVATE.
7011         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7012         (sysdep_rountines): Add dl-vdso.
7014         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7015         of routines.
7017         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7018         attribute_hidden to __vdso_gettimeofday prototype.
7020 2007-08-12  Roland McGrath  <roland@redhat.com>
7022         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7023         From: Karl Berry <karl@freefriends.org>.
7025 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7027         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7028         an atime update for the files we read.
7030 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7032         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7034         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7035         instead of mkstemp.
7037         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7038         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7039         * misc/mkostemp.c: New file.
7040         * misc/mkostemp64.c: New file.
7041         * stdlib/stdlib.h: Declare the new functions.
7042         * sysdeps/posix/tempname.c: Add new parameter which is added to
7043         the flags for open.  Remove __GT_BIGFILE handling.
7044         * stdio-common/tempname.c: Likewise.
7045         * include/stdio.h: Adjust __gen_tempname prototype.
7046         Renumber __GT_* constants.
7047         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7048         * misc/mkdtemp.c: Likewise.
7049         * misc/mkstemp.c: Likewise.
7050         * misc/mkstemp64.c: Likewise.
7051         * misc/mktemp.c: Likewise.
7052         * stdio-common/tempnam.c: Likewise.
7053         * stdio-common/tmpfile.c: Likewise.
7054         * stdio-common/tmpfile64.c: Likewise.
7055         * stdio-common/tmpnam.c: Likewise.
7056         * stdio-common/tmpnam_r.c: Likewise.
7058 2007-08-10  Roland McGrath  <roland@frob.com>
7060         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7061         New macros.
7062         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7063         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7065 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7067         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7068         possible.
7069         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7070         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7071         * nss/nss_files/files-have_o_cloexec.c: New file.
7073         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7074         available.
7076 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7078         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7079         ___new_wcstold_l): New weak aliases.
7080         (strtold_l, wcstold_l): Use them as second argument for
7081         long_double_symbol.
7083 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
7085         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7086         register in test for error.
7088         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7089         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7091         * po/sv.po: Update from translation team.
7093 2007-08-06  Roland McGrath  <roland@redhat.com>
7095         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7096         Remove __strto*_l inlines.
7097         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7098         * stdlib/strtod.c: Add libc_hidden_def.
7099         * stdlib/strtod_l.c: Likewise.
7100         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7101         for __new_strtold and __new_wcstold.
7102         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7103         __STRTOF, STRTOF.
7104         * stdlib/strtol.c: Add libc_hidden_def.
7105         * stdlib/strtol_l.c: Likewise.
7106         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7107         strtoq.
7109         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7111         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7112         * scripts/data/localplt-generic.data: ... here.
7113         * elf/Makefile (check-data): Get generic file if no other.
7114         ($(objpfx)check-localplt.out): Make target unconditional.
7116         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7117         Use ElfW(Nhdr).
7119 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
7121         * po/zh_CN.po: Updated translation from translation team.
7123 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
7125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7126         Don't use CGOTSETUP and CGOTRESTORE macros.
7128 2007-08-04  Roland McGrath  <roland@redhat.com>
7130         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7132 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
7134         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7135         __extension__ around the whole statement expression.
7137 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
7139         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7140         elements during initialization.
7142         * po/pl.po: Updated translation from translation team.
7143         * po/tr.po: Likewise.
7144         * po/nl.po: Likewise.
7146 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
7148         * rt/aio.h: Add __nonnull attributes.
7150 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7152         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7153         * stdlib/Makefile (tests): Add tst-strtod5.
7154         (tst-strtod5-ENV): New.
7155         * stdlib/tst-strtod5.c: New file.
7157         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7158         failed.
7159         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7160         on failure.
7162         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7163         allocated.
7165 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
7167         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7168         numbers.
7170 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
7172         * io/Makefile (aux): Add have_o_cloexec.
7173         * include/fcntl.h: Declare __have_o_cloexec.
7174         * io/have_o_cloexec.c: New file.
7175         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7176         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7177         fcntl call if not necessary.
7178         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7179         of local variable.
7181         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7182         Avoid memset, add explicit initialization.
7183         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7184         to the end and change into zero-sized array.
7185         Move lock member to fill a hole on 64-bit platforms.
7187         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7188         inline functions.
7189         * include/stdlib.h: Add __strto*_internal prototypes here.
7190         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7191         inline functions.
7192         * include/wchar.h: Add __wcsto*_internal prototypes.
7193         * sysdeps/generic/inttypes.h: No need to protect the declaration
7194         of the __strto*_internal and __wcsto*_internal members here.
7196         * rt/mqueue.h: Change const to __const and add nonnull attributes.
7198 2007-08-02  Roland McGrath  <roland@redhat.com>
7200         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7201         $(inst_bindir)/getconf if possible.
7203         * posix/Makefile ($(objpfx)getconf.speclist): New target.
7204         (generated): Add it.
7205         ($(inst_libexecdir)/getconf): Use it.
7207 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
7209         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7210         /proc is faster and sufficient.  /sys is still needed for
7211         __get_nprocs_conf.
7213 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
7215         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7216         syscall as __fallocate64.
7217         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7218         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7220 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
7222         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7223         value.
7225         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7226         if off_t is different rank from size_t.
7228         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7229         uw_frame_state_for): Avoid type punning warnings.
7230         * sysdeps/generic/unwind-dw2-fde-glibc.c
7231         (_Unwind_IteratePhdrCallback): Likewise.
7232         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7233         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7234         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7235         pointers.
7237 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
7239         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7240         total processors using sysfs.
7241         (__get_nprocs): Use sysfs to determine which processors are online.
7243 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
7245         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7246         syscall arguments count.
7248         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7250 2007-07-30  Roland McGrath  <roland@redhat.com>
7252         * manual/libc.texinfo: Update copyrights, formatting magic, and
7253         @dircategory.  From Karl Berry <karl@freefriends.org>.
7255 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
7257         [BZ #4860]
7258         * io/Makefile (headers): Add bits/fcntl2.h.
7260         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7261         using gcc builtin.
7262         (__CPU_EQUAL_S): Likewise.
7264         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7265         (tests): Add tst-cpuset.
7266         * posix/sched_cpualloc.c: New file.
7267         * posix/sched_cpufree.c: New file.
7268         * posix/tst-cpuset.c: New file.
7269         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7270         GLIBC_2.7.
7271         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7272         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7273         macros.  Define CPU_*_S macros.
7275 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7277         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7278         entry.
7280         [BZ #4858]
7281         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7282         #.0g and value rounded to 1.0.
7283         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7285 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
7287         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7288         for int_frac_digits and frac_digits.
7290         * login/logout.c (logout): Avoid aliasing violation.
7291         * login/logwtmp.c (logwtmp): Likewise.
7293         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7295         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7296         to avoid warning.
7297         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7298         warning.
7299         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7300         warning.
7301         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7302         to avoid warnings.
7304         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7305         void **.
7306         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7308         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7309         char * to avoid warning.
7310         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7312         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7314         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7315         allocate_arrays): Cast second argument to charmap_find_symbol
7316         to char * to avoid warnings.
7318         * locale/programs/repertoire.c (repertoire_new_char): Change
7319         from_nr, to_nr and cnt to unsigned long, adjust printf format
7320         string.
7322         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7323         Cast second argument to new_element to char * to avoid warnings.
7325         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7327         * intl/gettextP.h (struct loaded_domain): Change plural to const
7328         struct expression *.
7329         * intl/plural-eval.c (plural_eval): Change first argument to
7330         const struct expression *.
7331         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7332         argument to const struct expression **.
7333         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7334         prototypes.
7335         * intl/loadmsgcat (_nl_unload_domain): Cast away const
7336         in call to __gettext_free_exp.
7338         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7339         unitialized wstring/wpattern var warnings.
7341         * posix/runtests.c (struct a_test): Make data field const char *.
7343         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7344         vars if not LDBL_MANT_DIG >= 106.
7346         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7348         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7349         __find_specmb to avoid warning.
7351         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7353         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7354         to avoid warnings.
7356         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7357         initializer.
7359         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7360         tv var when it will be actually used.
7362         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7363         to avoid warnings.
7365         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7366         char array resp. pointer.
7367         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7368         char array.
7369         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7370         to const unsigned char **.
7371         (ucs4_to_cns11643): Change second argument to unsigned char *.
7372         * iconvdata/euc-tw.c (BODY): Change endp type to
7373         const unsigned char *.
7374         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7375         to unsigned char *.
7376         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7377         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7378         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7379         types to unsigned char pointers/arrays instead of char.
7380         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7381         to unsigned char *.
7382         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7383         * iconvdata/jis0212.h: Include assert.h.
7384         (ucs4_to_jisx0212): Change second argument to unsigned char *.
7385         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7386         of trying to handle that.
7387         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7388         shut up a warning.
7389         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7390         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7391         two dimensional const unsigned char arrays.
7392         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7393         Initialize endp to inptr to shut up a warning.
7395 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7397         [BZ #4772]
7398         * time/strptime_l.c (__strptime_internal): Silently ignore
7399         strftime modifiers and field width in recursive calls.
7401         * include/time.h (enum ptime_locale_status): Remove.
7402         (__strptime_internal): Remove decided and era_cnt arguments,
7403         add statep argument.
7404         * time/strptime_l.c (__strptime_internal): Remove decided
7405         and era_cnt arguments, add statep argument.  Don't recompute
7406         any fields in recursive calls, only update caller's tm
7407         and state, if recursive call fails, don't change tm nor
7408         any state.
7409         (get_alt_number): Adjust.
7410         (recursive): Adjust caller.
7411         (strptime): Likewise.
7412         * time/strptime.c (strptime): Likewise.
7414 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
7416         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7417         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7418         if from and to charsets are the same.
7419         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7420         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7421         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7423 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7425         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7426         Don't define wint_t when __need_mbstate_t unless it
7427         is necessary.
7428         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7429         in the typedef if possible.
7430         * wctype/wctype.h (wint_t): Define by including
7431         wchar.h with __need_wint_t instead of including stddef.h
7432         with __need_wint_t and as fallback definining it ourselves.
7433         * iconv/gconv.h (__need_wint_t): Define before including
7434         wchar.h.
7435         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7436         or _GLIBCPP_USE_WCHAR_T.
7437         (__need_wchar_t): Don't define
7438         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7439         (__need_wint_t): Don't define before including stddef.h,
7440         define before including wchar.h only if _LIBC or
7441         _GLIBCPP_USE_WCHAR_T.
7442         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7443         * sysdeps/mach/hurd/_G_config.h: Likewise.
7444         * sysdeps/generic/_G_config.h: Likewise.
7445         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7446         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7447         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7448         if _LIBC or _GLIBCPP_USE_WCHAR_T.
7450 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
7452         * sysdeps/posix/posix_fallocate64.c: Undefine
7453         __posix_fallocate64_l64 before alias handling.
7454         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7455         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7456         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7457         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7459         * io/tst-posix_fallocate.c: Include <fcntl.h>.
7461 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
7463         * locale/programs/ld-collate.c (atwc): New variable.
7464         (add_to_tablewc): New toplevel function, moved from collate_output.
7465         (collate_output): Remove add_to_tablewc nested function.
7467         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7468         (name_insert): New function.
7469         (write_output): Remove hash_table and hash_size vars and name_insert
7470         nested function.
7472 2007-07-24  Roland McGrath  <roland@redhat.com>
7474         * Makerules (install-others-programs-nosubdir): New target.
7475         (install-no-libc.a-nosubdir): Depend on it.
7477         * iconv/Makefile (install-others-programs): Set this instead of
7478         install-others.
7479         * login/Makefile (install-others-programs): Likewise.
7480         * posix/Makefile (install-others-programs): Likewise.
7482         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7483         dependencies.
7485 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
7487         * io/Makefile (tests): Add tst-posix_fallocate.
7488         * io/tst-posix_fallocate.c: New file.
7490         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7491         __ASSUME_FALLOCATE.
7493 2007-07-22  Roland McGrath  <roland@frob.com>
7495         * hurd/getdport.c: Add missing copyright year update.
7497         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7498         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7500 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
7502         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7504         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7505         O_CLOEXEC is needed.
7506         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7507         Avoid additional fcntl to set O_CLOEXEC if not needed.
7508         * nis/nss_compat/compat-initgroups.c: Likewise.
7509         * nis/nss_compat/compat-pwd.c: Likewise.
7510         * nis/nss_compat/compat-spwd.c: Likewise.
7512 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7514         [BZ #3665]
7515         * manual/errno.texi: Change ECANCELED value to 119.
7517         [BZ #4610]
7518         * mach/lock-intern.h: Include <sys/cdefs.h>.
7520         [BZ #4178]
7521         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7522         reading A.
7524         [BZ #4126]
7525         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7526         to __sigsuspend.
7528         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7530 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
7532         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7533         `__ASSEMBLER__'.
7534         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7536 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
7538         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7539         descriptor received from nscd.
7541         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7543         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7544         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7545         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7546         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7547         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7548         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7550 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
7552         [BZ #4816]
7553         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7555         [BZ #4813]
7556         * login/forkpty.c (forkpty): Close master and slave fds on
7557         fork failure.  Patch by
7558         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7560 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
7562         * include/features.h (__USE_ISOC95): New define.
7563         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7564         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7565         for -std=iso9899:199409.
7566         * CONFORMANCE: Remove comments about unsupported AMD1.
7568 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
7570         * sysdeps/ia64/sched_cpucount.c: New file.
7571         * sysdeps/powerpc/sched_cpucount.c: New file.
7573         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7574         __BEGIN_DECLS/__END_DECLS around the prototype.
7575         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
7576         pointer to const cpu_set_t.
7578         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7579         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7580         __need_size_t and include stddef.h.
7581         * sysvipc/sys/msg.h: Likewise.
7582         * posix/sched.h: Likewise.
7583         * hurd/hurd/signal.h (__need_size_t): Define.
7585         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7586         neither does signal.h in pedantic ISO C namespaces.  stdio.h
7587         no longer defines wint_t or wchar_t.
7589         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7590         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7591         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7592         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7593         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7594         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7595         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7596         * debug/printf_chk.c (__printf_chk): Likewise.
7597         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7598         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7600         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7601         Define.
7603         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7604         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7606 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7608         [BZ #4792]
7609         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7610         * malloc/malloc.h (realloc): Likewise.
7612         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7613         if one of proc_file_chain streams has that fileno.
7614         * stdio-common/Makefile (tests): Add tst-popen2.
7615         * stdio-common/tst-popen2.c: New test.
7617 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7619         * elf/ldconfig.c: Allow GPLv2 or any later version.
7620         * elf/readlib.c: Likewise.
7621         * elf/chroot_canon.c: Likewise.
7622         * elf/cache.c: Likewise.
7623         * nscd/mem.c: Likewise.
7624         * nscd/getpwuid_r.c: Likewise.
7625         * nscd/grpcache.c: Likewise.
7626         * nscd/aicache.c: Likewise.
7627         * nscd/getsrvbynm_r.c: Likewise.
7628         * nscd/nscd.c: Likewise.
7629         * nscd/servicescache.c: Likewise.
7630         * nscd/getsrvbypt_r.c: Likewise.
7631         * nscd/initgrcache.c: Likewise.
7632         * nscd/gethstbyad_r.c: Likewise.
7633         * nscd/gethstbynm2_r.c: Likewise.
7634         * nscd/getgrnam_r.c: Likewise.
7635         * nscd/nscd_setup_thread.c: Likewise.
7636         * nscd/getpwnam_r.c: Likewise.
7637         * nscd/gai.c: Likewise.
7638         * nscd/connections.c: Likewise.
7639         * nscd/dbg_log.c: Likewise.
7640         * nscd/cache.c: Likewise.
7641         * nscd/hstcache.c: Likewise.
7642         * nscd/nscd_conf.c: Likewise.
7643         * nscd/getgrgid_r.c: Likewise.
7644         * nscd/pwdcache.c: Likewise.
7645         * catgets/gencat.c: Likewise.
7646         * locale/programs/linereader.h: Likewise.
7647         * locale/programs/locarchive.c: Likewise.
7648         * locale/programs/ld-paper.c: Likewise.
7649         * locale/programs/locfile-kw.h: Likewise.
7650         * locale/programs/ld-address.c: Likewise.
7651         * locale/programs/xmalloc.c: Likewise.
7652         * locale/programs/ld-time.c: Likewise.
7653         * locale/programs/localedef.c: Likewise.
7654         * locale/programs/simple-hash.c: Likewise.
7655         * locale/programs/xstrdup.c: Likewise.
7656         * locale/programs/ld-numeric.c: Likewise.
7657         * locale/programs/locfile-kw.gperf: Likewise.
7658         * locale/programs/ld-collate.c: Likewise.
7659         * locale/programs/charmap-kw.gperf: Likewise.
7660         * locale/programs/charmap.h: Likewise.
7661         * locale/programs/charmap-kw.h: Likewise.
7662         * locale/programs/config.h: Likewise.
7663         * locale/programs/locfile.c: Likewise.
7664         * locale/programs/ld-ctype.c: Likewise.
7665         * locale/programs/charmap.c: Likewise.
7666         * locale/programs/ld-messages.c: Likewise.
7667         * locale/programs/repertoire.h: Likewise.
7668         * locale/programs/locale.c: Likewise.
7669         * locale/programs/ld-name.c: Likewise.
7670         * locale/programs/linereader.c: Likewise.
7671         * locale/programs/locfile.h: Likewise.
7672         * locale/programs/3level.h: Likewise.
7673         * locale/programs/ld-monetary.c: Likewise.
7674         * locale/programs/ld-measurement.c: Likewise.
7675         * locale/programs/charmap-dir.c: Likewise.
7676         * locale/programs/ld-identification.c: Likewise.
7677         * locale/programs/localedef.h: Likewise.
7678         * locale/programs/charmap-dir.h: Likewise.
7679         * locale/programs/repertoire.c: Likewise.
7680         * locale/programs/simple-hash.h: Likewise.
7681         * locale/programs/ld-telephone.c: Likewise.
7682         * locale/programs/locale-spec.c: Likewise.
7683         * locale/programs/locfile-token.h: Likewise.
7684         * posix/getconf.c: Likewise.
7685         * iconv/dummy-repertoire.c: Likewise.
7686         * iconv/iconv_charmap.c: Likewise.
7687         * iconv/iconvconfig.c: Likewise.
7688         * iconv/iconv_prog.c: Likewise.
7689         * malloc/memusagestat.c: Likewise.
7690         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7692 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7694         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7695         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7696         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7697         check for the first argument.
7699 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7701         [BZ #4775]
7702         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7703         (__tgmath_real_type): Fix if expr is const int or other const
7704         qualified integral type.
7705         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7706         expressions and handle const qualified arguments.
7707         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7708         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7709         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7710         statement expressions.
7711         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7712         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7713         (__TGMATH_UNARY_IMAG): Define.
7714         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7715         * math/Makefile (tests): Add test-tgmath2.
7716         (CFLAGS-test-tgmath2.c): Add.
7717         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7718         count_cfloat, count_cldouble): New variables.
7719         (NCCALLS): Define.
7720         (main): Check number of complex calls as well.
7721         (F(compile_test)): Add complex tests and tests with const qualified
7722         arguments.
7723         (y, z, ccount): Define.
7724         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7725         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7726         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7727         F(cproj)): New functions.
7728         * math/test-tgmath2.c: New test.
7730 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7732         [BZ #4776]
7733         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7734         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7735         instead output ".".
7736         * dlfcn/Makefile (distribute): Add glreflib3.c.
7737         (module-names): Add glreflib3.
7738         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7739         glreflib1.so.
7740         (LDFLAGS_glreflib3.so): New.
7741         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7742         glreflib1.so.
7743         * dlfcn/glreflib3.c: New file.
7745         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7746         returned -1, return NULL.
7747         * intl/explodename.c (_nl_explode_name): Return -1 if
7748         _nl_normalize_codeset failed.
7750 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7752         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7753         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7754         and avoid branch misspredicts for > 31 bytes memset case.
7755         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7756         Remove toc ref to __cache_line_size.
7758         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7759         to get ISA-V2.0 branch hints.
7760         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7761         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7762         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7763         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7764         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7765         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7766         Remove toc ref to __cache_line_size.
7768         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7769         Include math_ldbl_opt.h.
7771 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7773         [BZ #4773]
7774         * time/strptime_l.c (__strptime_internal): Implement greedy
7775         matching of weekday and month names.
7777 2007-07-09  Roland McGrath  <roland@redhat.com>
7779         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7780         (ELF_NOTE_ABI): Use it.
7781         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7783 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7785         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7786         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7788 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7790         [BZ #4745]
7791         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7792         in loop to look for conversion specifier to avoid testing of
7793         wrong errno value.
7794         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7795         * stdio-common/bug18.c: New file.
7796         * stdio-common/bug18a.c: New file.
7797         * stdio-common/bug19.c: New file.
7798         * stdio-common/bug19a.c: New file.
7800 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7802         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7803         running awk script.
7805 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7807         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7808         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7809         Return NULL if mmap failed instead of asserting it does not.
7810         (calloc): Check for integer overflow.
7812         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7813         than LONG_MAX / 10.
7815 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7817         [BZ #4702]
7818         * nis/nss-default.c: Include errno.h.
7819         (init): Preserve errno.
7821 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7823         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7825 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7827         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7829 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7831         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7833 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7835         * sysdeps/s390/dl-procinfo.c: New file.
7836         * sysdeps/s390/dl-procinfo.h: New file.
7837         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7839 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7841         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7842         in PT_NOTE segments with multiple notes.
7843         * elf/readelflib.c (process_elf_file): Likewise.
7845 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7847         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7848         ISO C compliant.
7850 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7852         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7854 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7856         * include/link.h: Don't include rtld-lowlevel.h.
7857         (struct link_map): Remove l_scope_lock.
7858         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7859         (_dl_scope_free_list): New field (variable) in _rtld_global.
7860         (DL_LOOKUP_SCOPE_LOCK): Remove.
7861         (_dl_scope_free): New prototype.
7862         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7863         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7864         (_dl_profile_fixup): Likewise.
7865         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7866         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7867         THREAD_GSCOPE_RESET_FLAG around it.
7868         * elf/dl-close.c (_dl_close_worker): Don't use
7869         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7870         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7871         scopes were queued or if l_scope_mem has been abandoned.
7872         * elf/dl-open.c (_dl_scope_free): New function.
7873         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7874         * elf/dl-support.c (_dl_scope_free_list): New variable.
7875         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7876         Remove DL_LOOKUP_SCOPE_LOCK handling.
7877         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7878         handling.
7879         * elf/dl-object.c (_dl_new_object): Don't use
7880         __rtld_mrlock_initialize.
7882 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7884         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7885         to fill in holes
7886         (rtld_global_ro): Likewise.
7888 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7890         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7891         Move PT_LOAD checking to...
7892         (_dl_addr_inside_object): ... here, new function.
7893         * elf/dl-sym.c (do_sym): If not l_contiguous,
7894         call _dl_addr_inside_object.
7895         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7896         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7897         * elf/dl-open.c (dl_open_worker): Likewise.
7898         (_dl_addr_inside_object): New function if IS_IN_rtld.
7899         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7900         holes are present or are PROT_NONE protected.
7901         * include/link.h (struct link_map): Add l_contiguous field.
7902         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7904 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7905             Tomas Janousek  <tjanouse@redhat.com>
7906             Ulrich Drepper  <drepper@redhat.com>
7908         [BZ #4647]
7909         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7910         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7911         socket.
7912         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7913         unused member a bitmap.
7914         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7915         servers are configured.
7917 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7919         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7921 2007-06-17  Andreas Schwab  <schwab@suse.de>
7923         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7925 2007-06-16  Andreas Jaeger  <aj@suse.de>
7927         [BZ #4125]
7928         * sysdeps/unix/sysv/linux/sys/ptrace.h
7929         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7930         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7931         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7932         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7933         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7934         Define.
7935         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7936         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7937         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7938         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7940 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7942         [BZ #4599]
7943         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7944         determining whether there are IPv4/IPv6 addresses, ignore loopback
7945         addresses.
7947 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7949         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7950         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7951         as the return type.  Change type of "r" variable to CMPtype.
7952         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7953         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7954         * soft-fp/gedf2.c (__gedf2): Likewise.
7955         * soft-fp/gesf2.c (__gesf2): Likewise.
7956         * soft-fp/getf2.c (__getf2): Likewise.
7957         * soft-fp/ledf2.c (__ledf2): Likewise.
7958         * soft-fp/lesf2.c (__lesf2): Likewise.
7959         * soft-fp/letf2.c (__letf2): Likewise.
7960         * soft-fp/unorddf2 (__unorddf2): Likewise.
7961         * soft-fp/unordsf2 (__unordsf2): Likewise.
7962         * soft-fp/unordtf2 (__unordtf2): Likewise.
7964 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7966         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7967         make sure gcc doesn't mess around with this.
7969 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7971         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7973 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7975         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7976         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7977         at most once per _dl_close_worker.
7979 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7981         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7982         __sched_cpucount as const.
7983         * posix/sched_cpucount.c: Adjust.
7985         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7986         instruction for counting bits.
7987         * sysdeps/x86_64/sched_cpucount.c: New file.
7989 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7991         * configure.in: Avoid variable named BASH.
7992         * config.make.in: Likewise.
7993         Patch in part by Mike Frysinger.
7995 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7997         [BZ #4586]
7998         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7999         pseudo-zeros as zero.
8000         * sysdeps/x86_64/ldbl2mpn.c: New file.
8001         * sysdeps/ia64/ldbl2mpn.c: New file.
8003 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8005         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8006         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8007         Remove unreachable code at the end.
8009 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8011         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8012         ldbl-128ibm in comment.
8013         (fpclassifyl): Correct classification of denormals.
8014         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8015         return value for MIN denormal. Rewrite using long double math too
8016         correctly handle denormals and canonicalize the results.
8018 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8020         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8021         (__mpn_construct_long_double): Fix conversion where result ought
8022         to be smaller than __LDBL_MIN__, or the low double should be
8023         denormal.  Fix decision where to negate low double - honor round
8024         to even rules.
8025         * stdio-common/tst-sprintf2.c: Include string.h.
8026         (COMPARE_LDBL): Define.
8027         (TEST): Also test whether a string hexadecimal float representation
8028         can be parsed back to the number.
8029         (main): Add a couple of further tests.
8031 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8033         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8034         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8035         is non-zero, but smaller than 2 * __DBL_MIN__.
8036         * stdio-common/tst-sprintf2.c: New test.
8037         * stdio-common/Makefile (tests): Add tst-sprintf2.
8039         * math/test-misc.c (main): Don't run last batch of tests with
8040         IBM long double format.
8042 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8044         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8045         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8046         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8047         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8048         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8049         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8050         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8051         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8052         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8053         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8056         New file.
8057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8058         New file.
8059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8060         New file.
8061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8062         New file.
8063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8064         New file.
8065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8067         New file.
8068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8069         New file.
8070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8071         New file.
8072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8073         New file.
8074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8075         New file.
8077 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8079         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8080         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8081         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8082         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8083         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8084         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8085         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8086         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8088 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
8090         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8091         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8092         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8093         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8094         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8095         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8096         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8097         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8099 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8101         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8102         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8103         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8104         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8106 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
8108         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8109         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8111 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
8113         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8114         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8115         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8116         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8118 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
8120         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8121         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8123 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8125         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8126         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8128         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8129         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8130         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8131         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8133 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
8135         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8136         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8137         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8138         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8140 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
8142         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8143         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8144         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8145         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8146         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8147         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8149 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8151         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8152         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8153         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8154         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8156 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
8158         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8159         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8160         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8161         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8162         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8163         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8164         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8165         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8166         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8167         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8168         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8169         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8170         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8171         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8172         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8173         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8175 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8177         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8178         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8180 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8182         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8183         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8185 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8187         * sysdeps/powerpc/powerpc32/970/Implies: New file.
8188         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8189         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8190         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8191         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8192         * sysdeps/powerpc/powerpc64/970/Implies: New file.
8193         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8194         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8195         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8196         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8198 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
8200         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8202 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
8204         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8205         branch miss-predicts. Ensure that cache line crossing does not impact
8206         dispatch grouping.
8208 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
8210         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8211         "../../powerpc32/power4/memcopy.h".
8212         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8213         "../../powerpc32/power4/wordcopy.c".
8215 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
8217         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8218         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8219         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8220         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8221         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8222         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8224 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
8226         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8228 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
8230         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8231         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8232         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8233         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8234         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8235         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8236         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8237         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8239 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
8241         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8243 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
8245         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8246         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8247         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8248         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8249         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8250         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8251         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8253 2007-05-29  Roland McGrath  <roland@redhat.com>
8255         * po/Makefile (po-sed-cmd): New variable.
8256         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8258 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
8260         * crypt/md5-crypt.c: Fix comment.
8262         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8263         of crashing.  When this is the case or if the reply is malformed,
8264         don't try to close the new file descriptor since it does not
8265         exist.
8266         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8268 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
8270         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8271         if __NR_utimensat is not defined.
8273 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
8275         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8277 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
8279         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8280         (open): Fix comment typos.  Don't call __open_2 if flags
8281         is a compile time constant without O_CREAT.
8282         (__open64_2): Add nonnull attribute.
8283         (open64): Fix comment typos.  Don't call __open64_2 if flags
8284         is a compile time constant without O_CREAT.
8285         (__openat_2): Add nonnull attribute, fix nonnull attribute
8286         on redirect.
8287         (openat): Fix comment typos.  Don't call __openat_2 if flags
8288         is a compile time constant without O_CREAT.
8289         (__openat64_2): Add nonnull attribute, fix nonnull attribute
8290         on redirect.
8291         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
8292         is a compile time constant without O_CREAT.
8294 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
8296         * Makerules (sysd-rules): Define PTW for ptw-* files.
8297         * Versions: Define GLIBC_2.7 for libc.
8298         * include/stdio.h: Declare __fortify_fail.
8299         * debug/fortify_fail.c: New file.
8300         * debug/Makefile (routines): Add fortify_fail.
8301         * debug/chk_fail.c: Use __fortify_fail.
8302         * debug/stack_chk_fail.c: Likewise.
8303         * io/Versions: Export __open_2, __open64_2, __openat_2, and
8304         __openat64_2 for GLIBC_2.7.
8305         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8306         * io/open.c: Define *_2 variant of function which checks for O_CREAT
8307         and fails if necessary.
8308         * io/open64.c: Likewise.
8309         * io/openat.c: Likewise.
8310         * io/openat64.c: Likewise.
8311         * sysdeps/unix/sysv/linux/open64.c: Likewise.
8312         * sysdeps/unix/sysv/linux/openat.c: Likewise.
8313         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8314         * io/bits/fcntl2.h: New file.
8315         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8316         __openat64_2.
8317         * include/bits/fcntl2.h: New file.
8318         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8319         Add open_2.
8320         * sysdeps/unix/sysv/linux/open_2.c: New file.
8322 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
8324         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8325         as second parameter to handle_intel.
8327         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8328         the entry.
8330         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8331         handling to ...
8332         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
8333         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8334         cacheinfo.
8335         * sysdeps/x86_64/memcpy.S: Complete rewrite.
8336         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8337         Patch by Evandro Menezes <evandro.menezes@amd.com>.
8339         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8341 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
8343         [BZ #4525]
8344         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8345         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8346         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8348         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8350         [BZ #4514]
8351         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8352         reinitialize workend at the start of each do_positional format spec
8353         loop, free workstart before do_positional loops.
8354         (printf_unknown): Fix size of work_buffer.
8355         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8357         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8358         (public_sET_STATe): If ms->version < 3, put all chunks into
8359         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8360         chunks.
8362         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8363         * malloc/hooks.c: Likewise.
8364         * malloc/arena.c: Likewise.
8365         * malloc/malloc.c (do_check_malloc_state): Don't assert
8366         n_mmaps is not greater than n_mmaps_max.  This removes the need
8367         for the previous change.
8369         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8370         2007-05-07 commit.
8372 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
8374         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8375         Define for kernel >= 2.6.22.
8377 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
8379         * elf/dl-close.c (_dl_close_worker): When removing object from
8380         global scope, wait for all lookups to finish afterwards.
8381         * elf/dl-open.c (add_to_global): When global scope array must
8382         grow, allocate a new one and free old array only after all
8383         lookups finish.
8384         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8385         (_dl_lookup_symbol_x): Likewise.
8386         * elf/dl-support.c: Define _dl_wait_lookup_done.
8387         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8388         _dl_wait_lookup_done.
8390         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8391         not overlapping with arena.
8393         * malloc/mcheck.c (reallochook): If size==0, free the block.
8395         * rt/tst-shm.c: Use fstat64 instead of fstat.
8397         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8398         __NR_sync_file_range is not defined.
8400 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
8402         Dummy files to prevent stub versions from being used.
8403         * sysdeps/x86_64/fpu/k_cosl.c: New file.
8404         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8405         * sysdeps/x86_64/fpu/k_sinl.c: New file.
8406         * sysdeps/x86_64/fpu/k_tanl.c: New file.
8408         * version.h (VERSION): Set to 2.6.90.
8410 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
8412         * version.h (VERSION): Define to 2.6.
8413         * include/features.h (__GLIBC_MINOR__): Define to 6.
8415         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8417         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8418         sizes.
8420 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
8422         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8423         number of mmaps.  n_mmaps_max is the target.
8424         * malloc/hooks.c: Likewise.
8425         * malloc/arena.c: Likewise.
8427 2007-05-12  Andreas Jaeger  <aj@suse.de>
8429         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8430         getpid.
8432 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
8434         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8435         adding new variables.
8437         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8438         optimize.  Completely extend global scope array before making the
8439         new entries visible.
8441 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
8443         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8444         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8445         tst-getcpu.
8447         * include/link.h: Move l_version and l_nversion members around to
8448         fill gaps.
8450         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8452         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8453         (__sched_setaffinity_new): If syscall was successful and
8454         RESET_VGETCPU_CACHE is defined, use it before returning.
8455         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8457         * io/sys/stat.h: Make sure struct timespec is defined for
8458         __USE_ATFILE.
8460         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8461         UTIME_OMIT.
8462         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8463         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8464         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8465         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8466         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8467         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8468         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8469         * io/sys/stat.h: Declare utimensat, futimens.
8470         * io/utimensat.c: New file.
8471         * io/futimens.c: New file.
8472         * sysdeps/unix/sysv/linux/utimensat.c: New file.
8473         * sysdeps/unix/sysv/linux/futimens.c: New file.
8474         * io/Makefile (routines): Add utimensat, futimens.
8475         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8476         * sysdeps/unix/sysv/linux/lutimes.c: New file.
8477         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8478         available.
8480         * include/sys/cdefs.h: Redefine __nonnull so that test for
8481         incorrect parameters in the libc code itself are not omitted.
8483 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
8485         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8486         exception in addition to inexact when asked to raise only FE_INEXACT.
8488         [BZ #3427]
8489         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8490         in *envp.
8492 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8494         [BZ #4403]
8495         * string/strfry.c (strfry): Make result more random.
8497 2007-05-07  Richard Henderson  <rth@redhat.com>
8499         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8500         if __NO_LONG_DOUBLE_MATH.
8501         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8502         available in the compiler, add .arch directive to the assembly.
8504 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
8506         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8507         compat_symbol to GLIBC_2_1.
8508         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8509         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8510         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8511         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8512         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8513         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8514         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8515         libc, not libm.
8516         (__isnanl): New compat_symbol.
8518 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
8519             Jakub Jelinek  <jakub@redhat.com>
8521         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8522         (new_heap): Initialize mprotect_size.
8523         (grow_heap): When growing, only mprotect from mprotect_size till
8524         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
8525         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8527 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
8528             Peter Bergner  <bergner@us.ibm.com>
8530         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8531         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
8532         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8533         * sysdeps/powerpc/fpu/fe_mask.c: New file.
8534         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8535         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8536         Call __fe_mask_env() if all FP exceptions disabled.
8537         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8538         from old FPSCR to new fenv to propagate DFP rounding modes.
8539         Call __fe_mask_env() if FP exceptions previously enabled.
8540         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8541         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
8542         transitioning from all exceptions disabled to any exception enabled
8543         or visa versa.
8544         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8545         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
8546         when transitioning from all exceptions disabled to any exception
8547         enabled or visa versa.
8548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8555 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8557         [BZ #4465]
8558         * posix/unistd.h: Remove __THROW from fdatasync.
8560 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
8562         [BZ #4465]
8563         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8565 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
8567         * stdio-common/vfprintf.c (process_string_arg): Optimize
8568         ridiculous precision in wide char code printing multi-byte string.
8569         Reported by Jim Meyering <jim@meyering.net>.
8571         [BZ #4131]
8572         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8573         boundaries to work around systems with overlapping binary loading.
8574         Based on a patch by Suzuki <suzuki@in.ibm.com>.
8576 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
8578         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8579         __mbsnrtowcs after last change.
8581         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8582         (get_ident): Likewise.
8584 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8586         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8587         with setting the sticky bit.
8588         * math/test-misc.c (main): Add more truncation tests.
8590 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
8592         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8593         double in the function declaration.
8594         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8595         double in the function declaration.
8596         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8597         float in the function declaration.
8598         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8599         float in the function declaration.
8601         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8602         denormal operands.  Do not generate FP_EX_DENORM exception.
8603         (FP_UNPACK_RAW_EP): Ditto.
8604         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8605         undefined _FP_UNPACK_RAW_E.
8606         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8607         undefined _FP_UNPACK_RAW_EP.
8608         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8609         undefined _FP_PACK_RAW_E.
8610         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8611         undefined _FP_PACK_RAW_EP.
8613         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8614         _FP_FRAC_COPY_2.
8615         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8616         _FP_FRAC_COPY_4.
8618 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8619             Jakub Jelinek  <jakub@redhat.com>
8621         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8622         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8623         this case.
8624         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8626 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8628         * math/test-misc.c (main): Add tests for rounding long double
8629         values close to smallest double denormalized value to double.
8631 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8633         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8634         condition for truncating to 0.  Set sticky bit for such
8635         truncation.
8637 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8639         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8640         fixed length array for ignore.
8642 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8644         [BZ #4438]
8645         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8646         stack for large precisions.
8647         * stdio-common/test-vfprintf.c (main): Add test for large
8648         precision.
8650 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8652         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8653         for exponent 0.
8654         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8656         [BZ #4439]
8657         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8658         account in the size check.
8659         * resolv/tst-inet_ntop.c: New test.
8660         * resolv/Makefile (tests): Add tst-inet_ntop.
8662 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8663             Jakub Jelinek  <jakub@redhat.com>
8665         [BZ #4349]
8666         * malloc/malloc.c: Keep separate list for first blocks on the bin
8667         lists with a given size.  This helps skipping over list elements
8668         we know won't fit in two places.
8669         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8671 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8673         [BZ #4102]
8674         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8675         label to Teredo tunnel addresses 2001://32.
8677 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8679         * locale/programs/ld-collate.c (collate_read): Allow order_start
8680         after copy.
8682         * locale/programs/ld-collate.c (collate_read): Fix printing of
8683         error message.
8685         [BZ #3213]
8686         * locale/C-translit.h.in: Add entry for U2044.
8688         [BZ #4342]
8689         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8690         hexa-decimal floats without exponent.
8691         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8693 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8695         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8696         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8697         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8698         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8699         GLIBC_2.6.
8700         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8701         Add sched_getcpu.
8703 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8705         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8706         of 0 after the out_fail label.
8708 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8710         [BZ #4406]
8711         * iconv/gconv_charset.h (strip): Allow ':'.
8712         * iconv/iconv_open.c (iconv_open): Adjust comment.
8714 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8716         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8717         version.
8719 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8721         [BZ #4381]
8722         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8723         alignment of buffer and tmp_buffer.
8724         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8725         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8726         alignment of buffer.
8727         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8728         bigger than INT_MAX.
8729         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8730         h_errnop arguments.  Fail if buflen is too small.
8731         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8733 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8735         [BZ #4405]
8736         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8737         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8739 2007-04-22  Roland McGrath  <roland@redhat.com>
8741         * elf/elf.h (NT_PRXFPREG): New macro.
8743 2007-04-19  Andreas Jaeger  <aj@suse.de>
8745         [BZ #3905]
8746         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8747         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8748         Added.
8750 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8752         * include/sys/mman.h: Mark madvise hidden.
8753         * misc/madvise.c: Add libc_hidden_def.
8755 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8757         * nis/nis_domain_of.c (__nis_domain_of): New function.
8758         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8759         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8760         * nis/nis_call.c (rec_dirsearch): Likewise.
8761         (first_shoot): Likewise.  Remove search_parent_first argument.
8762         (struct nis_server_cache): Rename search_parent_first field
8763         to search_parent.
8764         (nis_server_cache_search, nis_server_cache_add): Rename
8765         search_parent_first argument to search_parent.
8766         (__nisfind_server): Likewise.  If search_parent, call
8767         __nis_domain_of.
8769 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8771         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8773 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8775         [BZ #4368]
8776         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8778 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8780         [BZ #4364]
8781         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8783 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8785         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8786         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8787         current number of locales in SUPPORTED.
8788         (create_archive): Initialize serial.
8789         (enlarge_archive): Preserve aliases rather than duplicating
8790         their locrecs.
8792 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8794         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8795         after _IO_un_link, not before it.
8797         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8798         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8799         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8801 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8803         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8804         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8805         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8806         Remove __THROW.
8807         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8808         _IO_file_xsgetn_maybe_mmap): Likewise.
8809         * libio/oldfileops.c (old_do_write): Likewise.
8810         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8811         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8812         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8813         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8814         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8815         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8816         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8817         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8818         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8819         _IO_file_underflow, _IO_file_underflow_mmap,
8820         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8821         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8822         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8823         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8824         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8825         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8826         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8827         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8828         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8829         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8830         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8831         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8832         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8833         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8834         _IO_adjust_column_internal, _IO_default_uflow_internal,
8835         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8836         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8837         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8838         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8839         _IO_file_close_it_internal, _IO_file_underflow_internal,
8840         _IO_file_overflow_internal, _IO_file_attach_internal,
8841         _IO_file_fopen_internal, _IO_file_sync_internal,
8842         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8843         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8844         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8845         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8846         _IO_seekpos_unlocked): Likewise.
8847         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8848         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8850 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8852         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8853         argument in xmalloc size computation.
8855 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8857         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8858         math_opt_barrier and math_force_eval macros.
8860 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8862         [BZ #3306]
8863         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8864         * sysdeps/i386/fpu/math_private.h: New file.
8865         * sysdeps/x86_64/fpu/math_private.h: New file.
8866         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8867         math_force_eval macros.  Use "+m" constraint on asm rather than
8868         "=m" and "m".
8869         * math/s_nextafter.c (__nextafter): Likewise.
8870         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8871         Likewise.
8872         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8873         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8874         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8875         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8876         math_opt_barrier and math_force_eval macros.
8877         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8878         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8879         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8880         (__nexttoward): Use math_opt_barrier and
8881         math_force_eval macros.  Use "+m" constraint on asm rather than
8882         "=m" and "m".  Only use asm to force double result if
8883         FLT_EVAL_METHOD is 2.
8884         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8885         (__nexttowardf): Use math_opt_barrier and
8886         math_force_eval macros.  Use "+m" constraint on asm rather than
8887         "=m" and "m".  Only use asm to force double result if
8888         FLT_EVAL_METHOD is not 0.
8889         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8890         (__nexttowardf): Use math_opt_barrier and
8891         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8892         x to float using asm.
8893         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8894         (__nldbl_nexttowardf): Use math_opt_barrier and
8895         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8896         x to float using asm.
8897         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8898         (__nexttowardf): Use math_opt_barrier and math_force_eval
8899         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8900         * math/bug-nextafter.c (zero, inf): New variables.
8901         (main): Add new tests.
8902         * math/bug-nexttoward.c (zero, inf): New variables.
8903         (main): Add new tests.
8905 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8907         [BZ #3427]
8908         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8909         exceptions both in SW and MXCSR.
8910         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8911         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8912         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8913         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8914         in MXCSR if SSE is available.
8915         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8916         and ldsodefs.h.
8917         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8918         Fix comment typo.
8919         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8920         Return 0 rather than 1.
8921         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8922         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8923         * math/test-fenv.c (feholdexcept_tests): New function.
8924         (main): Call it.
8926 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8928         [BZ #3427]
8929         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8930         in SW.
8932 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8934         [BZ #4344]
8935         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8936         Reported by David Anderson <davea42@earthlink.net>.
8938 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8940         * posix/sys/wait.h: Remove unnecessary forward declaration.
8942 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8944         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8945         with obj->do_servers after first_shoot.
8947 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8949         * posix/Makefile (routines): Add sched_cpucount.
8950         (tests): Add tst-cpucount.
8951         * posix/sched_cpucount.c: New file.
8952         * posix/tst-cpucount.c: New file.
8953         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8954         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8955         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8956         * posix/sched.h: Define CPU_COUNT.
8958 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8960         * posix/fnmatch.c (STRUCT): Define.
8961         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8962         * posix/fnmatch_loop.c (struct STRUCT): New type.
8963         (FCT): Add ends argument.  If ends != NULL and normal * is
8964         seen in the pattern, store current pattern and string pointers
8965         and return.  Adjust recursive calls.
8966         (EXT): Adjust FCT callers.
8967         (STRUCT): Undef at the end of the file.
8968         * posix/Makefile (tests): Add tst-fnmatch2.
8969         * posix/tst-fnmatch2.c: New test.
8971 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8973         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8974         and 1 on failure.
8976         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8977         Change last argument to unsigned int.
8979 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8981         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8983 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8985         * config.h.in (HAVE_LIBCAP): Add.
8986         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8987         sys/capabilities.h.
8988         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8989         free_caps.  Cast away const from 4th cap_set_flag argument.
8991 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8993         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8994         GLIBC_2.6.
8995         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8996         Add sync_file_range.
8997         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8999 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9001         * sysdeps/powerpc/bits/atomic.h
9002         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9003         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9004         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9005         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9006         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9007         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9008         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9009         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9010         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9011         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9012         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9013         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9014         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9015         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9016         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9017         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9018         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9019         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9020         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9021         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9023 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9025         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9026         (__cache_line_size): Define the variable here.  Add
9027         attribute_hidden, remove weak_extern.
9028         (__libc_start_main): Set __cache_line_size
9029         unconditionally.
9030         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9031         (__cache_line_size): Define the variable here.  Add
9032         attribute_hidden, remove weak_extern.
9033         (DL_PLATFORM_AUXV): Set __cache_line_size
9034         unconditionally.
9035         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9036         weak_extern, add attribute_hidden.
9037         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9038         defined in ld.so.
9039         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9040         definition.
9041         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9043 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9045         [BZ #4276]
9046         * timezone/africa: Update from tzdata2007d.
9047         * timezone/asia: Likewise.
9048         * timezone/australasia: Likewise.
9049         * timezone/backward: Likewise.
9050         * timezone/europe: Likewise.
9051         * timezone/iso3166.tab: Likewise.
9052         * timezone/leapseconds: Likewise.
9053         * timezone/northamerica: Likewise.
9054         * timezone/southamerica: Likewise.
9055         * timezone/zone.tab: Likewise.
9057         * timezone/private.h: Update from tzcode2007d.
9058         * timezone/zdump.c: Likewise.
9059         * timezone/zic.c: Likewise.
9061 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9063         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9064         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9065         variables.
9066         (nis_server_cache_search, nis_server_cache_add): New functions.
9067         (__nisfind_server): Use them.  Add dbp and flags argument, if
9068         call __nisbind_create.
9069         (__nisbind_create): Add server_used and current_ep arguments,
9070         only call __nis_findfastest if server_used is ~0.
9071         (__do_niscall2, __prepare_niscall): Adjust callers.
9072         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9073         ckey_cache_euid, ckey_cache_lock): New variables.
9074         (get_ckey): New function.
9075         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9076         __pmap_getnisport.  Save __pmap_getnisport result in
9077         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9078         key.
9079         * nis/nis_lookup.c (nis_lookup): Likewise.
9080         * nis/nis_table.c (nis_list): Likewise.
9081         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9082         prototypes.
9084         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9085         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9086         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9087         _nss_nisplus_getservbyport_r): Likewise.
9088         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9089         _nss_nisplus_getnetbyaddr_r): Likewise.
9090         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9091         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9092         _nss_nisplus_getntohost_r): Likewise.
9093         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9094         _nss_nisplus_getrpcbynumber_r): Likewise.
9096 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9098         * configure.in (libc_cv_gnu89_inline): Only do compile test.
9099         * configure: Rebuilt.
9101         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9102         bit-fields.
9103         * soft-fp/extended.h (_FP_UNION_E): Likewise.
9105 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
9107         [BZ #2831]
9108         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9109         bit-fields.
9111 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
9113         * nscd/gai.c: Include alloca.h.
9114         (__libc_use_alloca): Define.
9116 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
9118         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9119         smaller scopes.
9120         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9121         (DL_DST_REQUIRED): Adjust user.
9123         * include/dlfcn.h (struct link_map): New forward decl.
9125         * inet/getnameinfo.c: Include stddef.h.
9126         (getnameinfo): Use offsetof.
9128         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9130         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9132         * string/strerror_l.c: Include stdlib.h.
9134         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9135         * config.make.in (gnu89-inline-CFLAGS): New variable.
9136         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9137         -std=gnu99.
9138         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9139         * argp/argp.h: Use it.
9140         * bits/mathinline.h: Likewise.
9141         * bits/sigset.h: Likewise.
9142         * bits/string.h: Likewise.
9143         * ctype/ctype.h: Likewise.
9144         * hurd/hurd.h: Likewise.
9145         * hurd/hurd/fd.h: Likewise.
9146         * hurd/hurd/port.h: Likewise.
9147         * hurd/hurd/signal.h: Likewise.
9148         * hurd/hurd/threadvar.h: Likewise.
9149         * hurd/hurd/userlink.h: Likewise.
9150         * io/sys/stat.h: Likewise.
9151         * libio/bits/stdio.h: Likewise.
9152         * libio/bits/stdio2.h: Likewise.
9153         * mach/lock-intern.h: Likewise.
9154         * mach/mach/mig_support.h: Likewise.
9155         * math/bits/cmathcalls.h: Likewise.
9156         * posix/bits/unistd.h: Likewise.
9157         * socket/bits/socket2.h: Likewise.
9158         * stdlib/bits/stdlib.h: Likewise.
9159         * stdlib/stdlib.h: Likewise.
9160         * string/argz.h: Likewise.
9161         * string/bits/string2.h: Likewise.
9162         * string/bits/string3.h: Likewise.
9163         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9164         * sysdeps/generic/inttypes.h: Likewise.
9165         * sysdeps/generic/machine-lock.h: Likewise.
9166         * sysdeps/generic/machine-sp.h: Likewise.
9167         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9168         * sysdeps/i386/i486/bits/string.h: Likewise.
9169         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9170         * sysdeps/mach/alpha/machine-lock.h: Likewise.
9171         * sysdeps/mach/alpha/machine-sp.h: Likewise.
9172         * sysdeps/mach/i386/machine-lock.h: Likewise.
9173         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9174         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9175         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9176         * sysdeps/s390/bits/string.h: Likewise.
9177         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9178         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9179         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9180         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9181         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9182         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9183         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9184         * wcsmbs/bits/wchar2.h: Likewise.
9185         * wcsmbs/wchar.h: Likewise.
9186         * stdlib/gmp.h: Likewise.  Include <features.h> to get
9187         __extern_inline definition.
9189 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
9191         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9192         NULL.
9194         [BZ #3919]
9195         * math/libm-test.inc (log_test): Test -Inf and NaN.
9196         (log10_test, log1p_test, log2_test): Test -Inf.
9197         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9198         FE_INVALID when argument is qNaN.
9199         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9200         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9201         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9202         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9203         andb $1, %ah with testb $1, %ah, don't test for parity, instead
9204         testb $4, %ah and jump if non-zero.
9205         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9206         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9208         [BZ #4101]
9209         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9210         ancestors with the same depths.
9211         Patch by Niels Moeller <nisse@lysator.liu.se>.
9212         (filter_doc): Don't crash if argp is NULL.
9213         * argp/Makefile (tests): Add tst-argp2.
9214         * argp/tst-argp2.c: New test.
9216         [BZ #4130]
9217         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9218         open_not_cancel_2.
9219         (updwtmp_file): Likewise.
9221         [BZ #4181]
9222         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9223         (inet6_opt_append): Don't check extlen is big enough if extbuf
9224         is NULL.
9225         (inet6_opt_finish): Likewise.
9226         * inet/Makefile (tests): Add test-inet6_opt.
9227         * inet/test-inet6_opt.c: New test.
9229         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9230         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9231         NLMSG_ERR.  Instead use a page sized buffer.
9232         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9233         buffer.
9235 2007-03-14  Richard Henderson  <rth@redhat.com>
9237         * sysdeps/alpha/fpu/s_llround.c: New file.
9238         * sysdeps/alpha/fpu/s_llroundf.c: New file.
9239         * sysdeps/alpha/fpu/s_lround.c: New file.
9240         * sysdeps/alpha/fpu/s_lroundf.c: New file.
9241         * sysdeps/alpha/fpu/s_round.c: New file.
9242         * sysdeps/alpha/fpu/s_roundf.c: New file.
9243         * sysdeps/alpha/fpu/s_trunc.c: New file.
9244         * sysdeps/alpha/fpu/s_truncf.c: New file.
9246         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9247         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9248         * sysdeps/alpha/fpu/s_floor.c: Likewise.
9249         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9250         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9251         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9253         * sysdeps/alpha/fpu/s_fmax.S: New file.
9254         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9255         * sysdeps/alpha/fpu/s_fmin.S: New file.
9256         * sysdeps/alpha/fpu/s_fminf.S: New file.
9257         * sysdeps/alpha/fpu/s_isnan.c: New file.
9258         * sysdeps/alpha/fpu/s_isnanf.c: New file.
9259         * sysdeps/alpha/fpu/s_llrint.c: New file.
9260         * sysdeps/alpha/fpu/s_llrintf.c: New file.
9261         * sysdeps/alpha/fpu/s_lrint.c: New file.
9262         * sysdeps/alpha/fpu/s_lrintf.c: New file.
9263         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9264         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9266         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9267         (__fdimf, fdimf, __fdim, fdim): Remove.
9268         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9269         (__isnanf, __isnan, __isnanl): New.
9271 2007-03-13  Richard Henderson  <rth@redhat.com>
9273         * sysdeps/ieee754/ldbl-128/Makefile: New file.
9275 2007-03-13  Richard Henderson  <rth@redhat.com>
9277         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9278         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9279         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9280         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9281         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9282         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9284 2007-03-13  Richard Henderson  <rth@redhat.com>
9286         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9287         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9288         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9289         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9290         Move to dl-auxv.h; initialize instead of extern weak.
9291         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9292         weak symbol.
9293         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9294         Extern instead of initialized.
9296 2007-03-13  Richard Henderson  <rth@redhat.com>
9298         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9299         __sigsuspend_nocancel.
9301 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
9303         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9304         172.16/12 address range.
9306 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
9308         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9309         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9310         message.
9312 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
9314         [BZ #4069]
9315         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9316         earlier.
9317         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9319         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9320         for x qNaN and y either +-inf or non-integer value.
9321         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9322         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9323         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9325 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
9327         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9328         from sysdep_headers.
9330 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
9332         * time/tzfile.c (find_transition): Instead of a linear search try to
9333         guess the transition index, use a linear search if the result is at
9334         most 10 transitions away from the guess or binary search otherwise.
9336 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
9338         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9339         memory reallocation.
9341 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
9343         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9344         and fix some typos.
9345         Optimize use of TOLOWER.
9347         [BZ #3325]
9348         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9349         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9350         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9352         [BZ #3458]
9353         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9354         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9356         [BZ #4076]
9357         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9358         (open_dir_stream): Likewise.
9359         * io/Makefile (tests): Add bug-ftw5.
9360         * io/bug-ftw5.c: New file.
9362         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9363         * nscd/servicescache.c (cache_addserv): Likewise.
9365         * nscd/grpcache.c (cache_addgr): In case a record changed on
9366         refresh, adjust key_copy.
9368         [BZ #4074]
9369         * nscd/pwdcache.c (cache_addpw): In case a record changed on
9370         refresh, adjust key_copy.
9372         [BZ #4070]
9373         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9374         special cases.
9375         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9377 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
9379         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9380         optimization.
9382         * stdio-common/vfscanf.c: Small cleanups throughout.
9384 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
9386         [BZ #3325]
9387         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9388         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9389         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9390         Patch by Jared Casper <jaredcasper@gmail.com>.
9392         * sysdeps/unix/closedir.c: Outside libc don't use locking.
9393         * sysdeps/unix/opendir.c: Likewise.
9394         * sysdeps/unix/readdir.c: Likewise.
9396         [BZ #2211]
9397         * stdio-common/vfscanf.c: Handle localized digits etc for floating
9398         point numbers.
9399         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9401         * stdio-common/vfscanf.c: Fix problems in width accounting.
9402         * stdio-common/tst-sscanf.c (double_tests): New tests.
9403         (main): Hook them up.
9405         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9406         More simplifications of floating-point reader.
9408         * stdio-common/Makefile (tests): Add tst-swscanf.
9409         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9410         testing.
9411         * stdio-common/tst-swscanf.c: New file.
9413 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
9415         [BZ #2633]
9416         * libio/stdio.h: Define struct _IO_FILE in global namespace.
9417         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9418         Remove using for __jmp_buf_tag.
9419         * locale/locale.h (struct lconv): Also define in std namespace.
9420         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9422         [BZ #3842]
9423         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9424         using __libc_enable_secure.
9426         [BZ #3818]
9427         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9429         [BZ #3745]
9430         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9431         of names for ellipsises.
9433         [BZ #3348]
9434         * malloc/memusage.sh: Cleanups.
9435         * debug/xtrace.sh: Quoting and trap changes.
9437 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
9439         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9441         * locale/iso-3166.def: Update entry for Serbia.
9442         * locale/iso-4217.def: Define RSD, remove CSD.
9444         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9445         and 64-bit operations.
9447         [BZ #4040]
9448         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9449         16-bit operations.
9451         * nscd/nscd.c (parse_opt): One more conversion to use send instead
9452         of writev.
9454 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
9456         [BZ #3991]
9457         * assert/assert.h (assert): Simplify.
9458         (assert_perror): Likewise.
9459         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9461         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9462         reqdata.
9464         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9465         change: don't pass NULL in place of an integer.
9467 2007-02-02  Bruno Haible  <bruno@clisp.org>
9469         [BZ #3954]
9470         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9471         Add mapping for U+327E.
9472         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9473         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9474         mapping of 0xD9 0xE8.
9475         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9476         mapping of U+327E.
9477         Reported by Jungshik Shin <jungshik@google.com>.
9479         [BZ #3955]
9480         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9481         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9482         Reported by Jungshik Shin <jungshik@google.com>.
9484 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
9486         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9487         byte variants.
9489         [BZ #4040]
9490         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9491         byte variants.  Patch mostly be tom@tommay.net.
9493 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
9495         [BZ #3996]
9496         * posix/glob.c (attribute_hidden): Define if not defined.
9497         (glob): Unescape dirname, filename or username when needed and not
9498         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
9499         is NULL.  Handle unescaped [ in pattern without closing ].
9500         Don't pass GLOB_CHECK down to recursive glob for directories.
9501         (__glob_pattern_type): New function.
9502         (__glob_pattern_p): Implement using __glob_pattern_type.
9503         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9504         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9505         Remove unreachable code.
9506         * posix/globtest.sh: Add a couple of new tests.
9508 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
9510         * po/ru.po: Update from translation team.
9512 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
9514         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9515         to the list of i486+ CPUs.
9516         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9518 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
9520         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9521         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9522         references.
9524 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
9526         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9528         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9529         * resolv/res_mkquery.c: Define __res_nopt.
9530         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9531         try adding EDNS0 record.
9532         * resolv/res_send.c (send_dg): If request failed with FORMERR and
9533         EDNS0 record was send make sure we don't try it again.
9534         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9535         * include/resolv.h: Declare __res_nopt.
9537 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
9539         [BZ #3944]
9540         * time/strptime_l.c (__strptime_internal): Set have_mon for
9541         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
9542         have been computed from tm_yday and tm_year.  Don't crash
9543         in day_of_the_week or day_of_the_year if not have_mon
9544         and tm_mon contains bogus value.
9545         * time/Makefile (tests): Add tst-strptime3.
9546         * time/tst-strptime3.c: New test.
9548 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
9550         [BZ #3957]
9551         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9552         bit for RE_HAT_LISTS_NOT_NEWLINE.
9553         (build_charclass_op): Remove bogus comment.
9554         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9555         * posix/bug-regex27.c: New test.
9556         * posix/bug-regex28.c: New test.
9558 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
9560         * po/sv.po: Update from translation team.
9562 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
9564         * nscd/nscd_helper.c (open_socket): Minor size optimization.
9566 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
9568         * include/locale.h (__uselocale): Add libc_hidden_proto.
9569         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9571         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9572         gettimeofday.
9574 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
9576         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9577         returning.
9578         (PTR_DEMANGLE): Real definition now that it's not the same as
9579         PRT_MANGLE anymore.
9580         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9582         * string/strerror_l.c: New file.
9583         * string/Makefile (routines): Add strerror_l.
9584         * string/string.h: Declare strerror_l.
9585         * string/Versions: Export strerror_l for GLIBC_2.6.
9587 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
9589         * nscd/nscd_helper.c (open_socket): Now takes request type and key
9590         as parameter.  Construct request record.  Try sending request
9591         before the first poll use, it usually succeeds.  Adjust all
9592         callers.
9593         * nscd/nscd-client.h: Define MAXKEYLEN.
9594         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9596 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
9598         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9599         from return value.
9600         * nscd/nscd_helper.c: Include string.h.
9601         (__nscd_cache_search): Remove const qualifier from return value.
9602         On strict alignment architectures check hash entry and data head
9603         alignment.
9604         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9605         mmapped data during GC cycle contains garbage.  If
9606         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9607         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9608         dropped to 0.
9609         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9610         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9611         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9612         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9613         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9615 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9617         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9619 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9621         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9622         names not numbers in cfi_*.
9624 2007-01-26  Andreas Jaeger  <aj@suse.de>
9626         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9627         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9628         Correct values of PER_HPUX and PER_OSF4.
9630 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9632         * elf/dl-minimal.c: Undefine _itoa first.
9633         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9634         * malloc/mtrace.c: Revert last change.
9635         * posix/wordexp.c: Likewise.
9637 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9639         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9640         and __geode__ to the list of i486+ CPUs.
9641         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9643 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9645         * stdio-common/_itoa.c: Include <limits.h>.
9646         * stdio-common/_itowa.c: Likewise.
9648 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9650         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9651         platforms.
9652         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9653         64-bit platforms.
9654         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9655         possible.
9656         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9657         if possible.
9659         [BZ #3902]
9660         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9661         * stdio-common/Makefile (tests): Add bug17.
9662         * stdio-common/bug17.c: New file.
9664 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9666         * iconvdata/brf.c: New file.
9667         * iconvdata/testdata/BRF: New file.
9668         * iconvdata/testdata/BRF..UTF8: New file.
9669         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9670         * iconvdata/Makefile: Add rules to build BRF.
9671         * iconvdata/TESTS: Add BRF entry.
9672         * iconvdata/gconv-modules: Likewise.
9673         * iconvdata/tst-tables.sh: Likewise.
9675 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9677         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9678         type `long long int', not `long int'.
9679         (wcstoq): Likewise.
9681 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9683         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9684         of values on 64-bit platforms which are too large.
9686 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9687             Joe Kerian  <jkerian@us.us.ibm.com>
9689         [BZ #2749]
9690         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9691         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9692         (__copysignl): Use signbit() for comparison.
9693         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9694         SET_LDOUBLE_WORDS64.
9696         [BZ #2423, #2749]
9697         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9698         (__ceill): Remove calls to fegetround(), fesetround().
9699         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9700         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9701         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9703 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9705         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9707         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9709 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9711         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9712         demangle pointer.
9713         * csu/libc-start.c: Likewise.
9715 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9717         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9718         really work anyway.
9720 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9722         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9723         users.
9724         (handle_request): Remove unnecessary tests.
9726         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9728 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9730         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9731         workbits in semi-raw fraction.
9733         * math/test-misc.c: Add new tests.
9735 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9737         * math/basic-test.c: Include test-skeleton.c.
9738         (TEST_TRUNC): Define.
9739         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9740         (main): Rename to ...
9741         (do_test): ...this.  Run new tests.
9742         (TEST_FUNCTION): Define.
9744 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9745             Joe Kerian  <jkerian@us.us.ibm.com>
9747         [BZ #2749]
9748         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9749         handling for high words.
9750         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9751         and overflow for infinity.
9753 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9755         * nscd/connections.c (handle_request): Add a __builtin_expect.
9757         * nscd/connections.c (serv2db): Change type into structure which
9758         also says whether this is a request for data.  Renamed to
9759         servinfo.  All users changed.
9760         (handle_request): Much simpler test whether we should search the cache.
9762         * nscd/connections.c (handle_request): Fix thinko in selinux test
9763         invocation.
9765         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9766         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9767         it before getting dl_load_lock and then relock.
9768         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9769         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9770         case we unlocked the scope.
9771         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9772         _dl_lookup_symbol_x in case we locked the scope.
9773         (_dl_profile_fixup): Likewise.
9774         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9775         set DL_LOOKUP_SCOPE_LOCK.
9777 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9779         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9780         CFLAGS-getsrvbynpt_r.c.
9781         * nscd/getsrvbynm_r.c: New file.
9782         * nscd/getsrvbypt_r.c: New file.
9783         * nscd/nscd_getserv_r.c: New file.
9784         * nscd/servicescache.c: New file.
9785         * nscd/Makefile (routines): Add nscd_getserv_r.
9786         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9787         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9788         CFLAGS-getsrvbypt_r.c.
9789         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9790         table.  Add entries for services database.
9791         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9792         services database.
9793         (dbs): Add .reset_res and servdb initialization.
9794         (serv2db): Add entries for services database.
9795         (verify_persistent_db): Accept dbnr == servdb.
9796         (invalidate_cache): Rewrite database name recognition to use a table.
9797         Call res_init() if .reset_res is set for database.
9798         (handle_request): Add code to handle services database.
9799         * nscd/gai.c: Don't define __getservbyname_r.
9800         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9801         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9802         (serv_response_header): Define.
9803         (struct datahead): Add serv_response_header member.
9804         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9805         using table.
9806         * nscd/nscd.conf: Add entries for services database.
9807         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9808         Declare serv_iov_disabled.
9809         Declare addservbyname, readdservbyname, addservbyport, and
9810         readdservbyport.
9811         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9812         (find_db): Fix error message.
9813         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9814         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9815         * nscd/selinux.c (perms): Add entries for services database.
9816         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9817         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9819         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9820         * nscd/hstcache.c: Likewise.
9821         * nscd/pwdcache.c: Likewise.
9823         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9824         computation of keylen.
9826         * include/string.h: Only redefine strndupa if this is really for
9827         libc code.
9829 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9831         * nscd/nscd_gethst_r.c: Minor cleanups.
9833         * nscd/connections.c (handle_request): Check selinux permissions
9834         for all non-admin commands.
9836         * sysdeps/i386/i486/bits/atomic.h: Define
9837         atomic_compare_and_exchange_val_acq,
9838         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9839         using __sync_* built-ins for gcc >= 4.1.
9840         * sysdeps/x86_64/bits/atomic.h: Likewise.
9842         [BZ #3840]
9843         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9844         and .oS.d files.
9846 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9848         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9849         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9850         (do_test): Check errno and exit(0) if ENOSYS.
9852 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9854         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9855         thousands separators.
9856         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9857         * stdlib/tst-strtod4.c: New test.
9859         [BZ #3855]
9860         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9861         hexadecimal digit should accept just the initial 0.
9862         * stdlib/tst-strtod2.c (tests): New variable.
9863         (do_test): Run several tests rather than just one.
9865 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9867         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9868         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9870 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9872         * io/fts.c: Make sure fts_cur is always valid after return from
9873         fts_read.
9874         Patch by Miloslav Trmac <mitr@redhat.com>.
9876 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9878         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9879         (R_MIPS_NUM): Bump by 1.
9881 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9883         * posix/execvp.c: Include alloca.h.
9884         (allocate_scripts_argv): Renamed to...
9885         (scripts_argv): ... this.  Don't allocate buffer here nor count
9886         arguments.
9887         (execvp): Use alloca if possible.
9888         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9889         * posix/tst-vfork3.c: New test.
9891 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9893         * string/Makefile (tst-strxfrm2-ENV): Define.
9894         * stdlib/Makefile (tst-strtod3-ENV): Define.
9896 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9898         * posix/getconf.c: Update copyright year.
9899         * nss/getent.c: Likewise.
9900         * iconv/iconvconfig.c: Likewise.
9901         * iconv/iconv_prog.c: Likewise.
9902         * elf/ldconfig.c: Likewise.
9903         * catgets/gencat.c: Likewise.
9904         * csu/version.c: Likewise.
9905         * elf/ldd.bash.in: Likewise.
9906         * elf/sprof.c (print_version): Likewise.
9907         * locale/programs/locale.c: Likewise.
9908         * locale/programs/localedef.c: Likewise.
9909         * nscd/nscd.c (print_version): Likewise.
9910         * debug/xtrace.sh: Likewise.
9911         * malloc/memusage.sh: Likewise.
9912         * malloc/mtrace.pl: Likewise.
9913         * debug/catchsegv.sh: Likewise.
9915 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9917         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9918         attempts.
9920 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9922         * posix/wordexp.c: Remove some unnecessary tests.
9924 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9926         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9927         blacklist the group till after we look it up.
9929 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9931         * include/atomic.h (atomic_forced_read): New macro.
9933 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9935         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9937 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9939         * nss/getXXbyYY_r.c: Include atomic.h.
9940         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9941         add atomic_write_barrier () in between.
9943         * stdlib/Makefile (tests): Add tst-makecontext.
9944         * stdlib/tst-makecontext.c: New test.
9946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9947         (__makecontext): Don't realign uc_mcontext.uc_regs.
9949 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9951         * elf/dl-support.c: Include dl-procinfo.h.
9952         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9953         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9954         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9955         Define.
9956         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9957         hardcoded constants.
9958         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9959         PPC_PLATFORM_* macros for array designators.
9961 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9963         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9964         names to the beginning.
9965         (_dl_powerpc_platforms): Add "power6x".
9966         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9967         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9968         (_DL_PLATFORMS_COUNT): Increase.
9969         (_dl_string_platform): Handle power6x case.
9970         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9971         PPC_FEATURE_POWER6_EXT): Define.
9972         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9974 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9976         [BZ #3747]
9977         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9978         [-2^31 .. 2^31) range.
9979         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9980         targets.
9981         * stdlib/tst-rand48-2.c: New test.
9982         * stdlib/Makefile (tests): Add tst-rand48-2.
9984 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9986         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9988 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9990         * misc/tst-pselect.c (do_test): Make sure the helper process is
9991         terminating when the test is aborted.
9993 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9995         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9996         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9997         Handle relatime mount option.
9999         [BZ #2337]
10000         * libio/Makefile (tests): Add tst-setvbuf1.
10001         * libio/tst-setvbuf1.c: New file.
10003 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10005         [BZ #2337]
10006         * libio/genops.c (__uflow): Fix a typo.
10007         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10008         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10009         the narrow buffer size.
10011 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10013         [BZ #2337]
10014         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10015         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10016         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10017         in _flags.
10018         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10019         _IO_wstr_finish): Likewise.
10020         * libio/wmemstream.c (open_wmemstream): Likewise.
10021         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10022         even for wide streams.
10024 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10027         kernel-features.h.
10029 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10031         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10032         separators also if no non-zero digits found.
10033         * stdlib/Makefile (tests): Add tst-strtod3.
10035 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10037         [BZ #3632]
10038         * include/features.h: Fix comment about default value for
10039         _POSIX_C_SOURCE.
10041         [BZ #3664]
10042         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10043         empty parsed strings.
10044         * stdlib/Makefile (tests): Add tst-strtod2.
10045         * stdlib/tst-strtod2.c: New file.
10047         [BZ #3673]
10048         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10049         computation.
10050         * stdlib/Makefile (tests): Add tst-atof2.
10051         * stdlib/tst-atof2.c: New file.
10053         [BZ #3674]
10054         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10055         correctly if removing trailing zero of hex-float.
10056         * stdlib/Makefile (tests): Add tst-atof1.
10057         * stdlib/tst-atof1.c: New file.
10059 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10061         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10062         Start searching for next comma at p rather than rest.
10063         * misc/Makefile (tests): Add tst-mntent2.
10064         * misc/tst-mntent2.c: New test.
10066         * misc/getusershell.c (initshells): Check for integer overflows.
10067         Make strings buffer one bigger as fgets always succeeds when second
10068         argument is 1.  Don't use calloc for shells array.  Disallow
10069         / as shell.
10071 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10073         * malloc/memusage.c: Handle realloc with new size of zero and
10074         non-NULL pointer correctly.
10075         (me): Really write first record twice.
10076         (struct entry): Make format bi-arch safe.
10077         (dest): Write out more realloc statistics.
10078         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10080 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10082         * nis/nis_subr.c (nis_getnames): Revert last change.
10084 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10086         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10087         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10088         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10089         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10090         ENOTTY.
10091         * io/Makefile: Add rules to build and run tst-ttyname_r test.
10092         * io/tst-ttyname_r.c: New test.
10094 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10096         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10098 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
10100         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10101         jump table entries.
10103 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
10105         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10106         `clone' function to ensure proper unwinding stop of gdb.
10107         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10109 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
10111         * nscd/nscd.init: Remove obsolete and commented-out -S option
10112         handling.
10114 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
10116         [BZ #3514]
10117         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10119         [BZ #3515]
10120         * manual/string.texi (strtok): Remove duplicate paragraph.
10122 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10124         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10125         libgcc not supporting `rflags' unwinding (register # >= 17).
10127 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
10129         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10130         succeeded.
10132 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
10133             Jakub Jelinek  <jakub@redhat.com>
10134             Jan Kratochvil  <jan.kratochvil@redhat.com>
10136         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10137         unwind information.
10138         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10139         'restore_rt' even in the 'signal' directory.
10140         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10142 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
10144         [BZ #3559]
10145         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10146         malloc crashed.  Don't allocate memory unnecessarily in each
10147         loop.
10149 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
10151         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10153 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
10155         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10157 2006-11-18  Bruno Haible  <bruno@clisp.org>
10159         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10160         __sysconf only after having tried to call getgroups32.
10162 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
10164         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10165         addresses for IPv4 queries if they can be mapped.
10167 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
10169         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10170         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10171         (signmask): Add .size directive.
10172         (othermask): Add .type directive.
10174 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
10176         * po/nl.po: Update from translation team.
10178         * timezone/zdump.c: Redo fix for BZ #3137.
10180 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
10182         * nss/nss_files/files-alias.c (get_next_alias): Set line back
10183         to first_unused after parsing :include: file.
10185 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10187         * timezone/africa: Update from tzdata2006o.
10188         * timezone/antarctica: Likewise.
10189         * timezone/asia: Likewise.
10190         * timezone/australasia: Likewise.
10191         * timezone/backward: Likewise.
10192         * timezone/europe: Likewise.
10193         * timezone/iso3166.tab: Likewise.
10194         * timezone/northamerica: Likewise.
10195         * timezone/southamerica: Likewise.
10196         * timezone/zone.tab: Likewise.
10198         * time/tzfile.c (__tzfile_read): Extend to handle new file format
10199         on machines with 64-bit time_t.
10201         * timezone/checktab.awk: Update from tzcode2006o.
10202         * timezone/ialloc.c: Likewise.
10203         * timezone/private.h: Likewise.
10204         * timezone/scheck.c: Likewise.
10205         * timezone/tzfile.h: Likewise.
10206         * timezone/tzselect.ksh: Likewise.
10207         * timezone/zdump.c: Likewise.
10208         * timezone/zic.c: Likewise.
10210         [BZ #3483]
10211         * elf/ldconfig.c (main): Call setlocale and textdomain.
10212         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10214         [BZ #3480]
10215         * manual/argp.texi: Fix typos.
10216         * manual/charset.texi: Likewise.
10217         * manual/errno.texi: Likewise.
10218         * manual/filesys.texi: Likewise.
10219         * manual/lang.texi: Likewise.
10220         * manual/maint.texi: Likewise.
10221         * manual/memory.texi: Likewise.
10222         * manual/message.texi: Likewise.
10223         * manual/resource.texi: Likewise.
10224         * manual/search.texi: Likewise.
10225         * manual/signal.texi: Likewise.
10226         * manual/startup.texi: Likewise.
10227         * manual/stdio.texi: Likewise.
10228         * manual/sysinfo.texi: Likewise.
10229         * manual/syslog.texi: Likewise.
10230         * manual/time.texi: Likewise.
10231         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10233         [BZ #3465]
10234         * sunrpc/clnt_raw.c: Minimal message improvements.
10235         * sunrpc/pm_getmaps.c: Likewise.
10236         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10237         * nis/nis_print_group_entry.c: Likewise.
10238         * locale/programs/repertoire.c: Likewise.
10239         * locale/programs/charmap.c: Likewise.
10240         * malloc/memusage.sh: Likewise.
10241         * elf/dl-deps.c: Likewise.
10242         * locale/programs/ld-collate.c: Likewise.
10243         * libio/vswprintf.c: Likewise.
10244         * malloc/memusagestat.c: Likewise.
10245         * sunrpc/auth_unix.c: Likewise.
10246         * sunrpc/rpc_main.c: Likewise.
10247         * nscd/cache.c: Likewise.
10248         * locale/programs/repertoire.c: Unify output messages.
10249         * locale/programs/charmap.c: Likewise.
10250         * locale/programs/ld-ctype.c: Likewise.
10251         * locale/programs/ld-monetary.c: Likewise.
10252         * locale/programs/ld-numeric.c: Likewise.
10253         * locale/programs/ld-time.c: Likewise.
10254         * elf/ldconfig.c: Likewise.
10255         * nscd/selinux.c: Likewise.
10256         * elf/cache.c: Likewise.
10257         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10259         [BZ #3451]
10260         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10261         change atomic.
10262         (ceil): Likewise.
10264 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10266         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10267         if N is one bigger than return value.
10268         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10269         and l1 last arguments, if buf is defined, verify the return value
10270         equals to strlen (buf) and verify no byte beyond passed length
10271         is modified.
10273 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
10275         * po/sv.po: Update from translation team.
10277 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10279         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10280         noinline attribute.
10282 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
10284         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10285         noinline attribute.
10287         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10288         Use __new_sys_siglist instead of _sys_siglist_internal as
10289         second macro argument.
10290         (_old_sys_siglist): Use declare_symbol_alias macro instead of
10291         strong_alias.
10293 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
10295         [BZ #3493]
10296         * posix/unistd.h (sysconf): Remove const attribute.
10298         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10299         temporary or deprecated addresses.
10300         Patch by Sridhar Samudrala <sri@us.ibm.com>.
10302         * string/Makefile (tests): Add tst-strxfrm2.
10303         * string/tst-strxfrm2.c: New file.
10305 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
10307         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10308         rather than r->r_brk.
10310 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
10312         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10313         optimization even if needed > n.
10315         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10316         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10317         return false, otherwise return true.
10318         (cache_rpath): Return decompose_rpath return value.
10320 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
10322         * include/libc-symbols.h (declare_symbol): Rename to...
10323         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
10324         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10325         .size directive.
10326         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10327         changes.
10328         * sysdeps/gnu/siglist.c: Likewise.
10330 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
10332         * sysdeps/powerpc/fpu/bits/mathinline.h
10333         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10334         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
10336 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
10338         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10339         Update handling of cache descriptor 0x49 for new models.
10340         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10341         Likewise.
10343 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
10345         * malloc/memusage.c (dest): Reset not_me back to false after
10346         printing statistics.
10348 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
10350         * configure.in: Work around ld --help change and avoid -z relro
10351         test completely if the architecture doesn't care about security.
10353 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
10355         * po/sv.po: Update from translation team.
10357 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
10359         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10360         generate compatibility version.
10362 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
10364         * configure.in: Relax -z relro requirement a bit.
10366         * po/sv.po: Update from translation team.
10368 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10370         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10371         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10372         * elf/dl-close.c (_dl_close_worker): Likewise.
10373         * elf/dl-open.c (_dl_open_worker): Likewise.
10374         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10376 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
10378         * configure.in: Require assembler support for visibility, compiler
10379         support for visibility and aliases, linker support for various -z
10380         options.
10381         * Makeconfig: Remove conditional code which now is unnecessary.
10382         * config.h.in: Likewise.
10383         * config.make.in: Likewise.
10384         * dlfcn/Makefile: Likewise.
10385         * elf/Makefile: Likewise.
10386         * elf/dl-load.c: Likewise.
10387         * elf/rtld.c: Likewise.
10388         * include/libc-symbols.h: Likewise.
10389         * include/stdio.h: Likewise.
10390         * io/Makefile: Likewise.
10391         * io/fstat.c: Likewise.
10392         * io/fstat64.c: Likewise.
10393         * io/fstatat.c: Likewise.
10394         * io/fstatat64.c: Likewise.
10395         * io/lstat.c: Likewise.
10396         * io/lstat64.c: Likewise.
10397         * io/mknod.c: Likewise.
10398         * io/mknodat.c: Likewise.
10399         * io/stat.c: Likewise.
10400         * io/stat64.c: Likewise.
10401         * libio/stdio.c: Likewise.
10402         * nscd/Makefile: Likewise.
10403         * stdlib/Makefile: Likewise.
10404         * stdlib/atexit.c: Likewise.
10405         * sysdeps/generic/ldsodefs.h: Likewise.
10406         * sysdeps/i386/dl-machine.h: Likewise.
10407         * sysdeps/i386/sysdep.h: Likewise.
10408         * sysdeps/i386/i686/memcmp.S: Likewise.
10409         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10410         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10411         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10413         * Makerules: USE_TLS support is now default.
10414         * tls.make.c: Likewise.
10415         * csu/Versions: Likewise.
10416         * csu/libc-start.c: Likewise.
10417         * csu/libc-tls.c: Likewise.
10418         * csu/version.c: Likewise.
10419         * dlfcn/dlinfo.c: Likewise.
10420         * elf/dl-addr.c: Likewise.
10421         * elf/dl-cache.c: Likewise.
10422         * elf/dl-close.c: Likewise.
10423         * elf/dl-iteratephdr.c: Likewise.
10424         * elf/dl-load.c: Likewise.
10425         * elf/dl-lookup.c: Likewise.
10426         * elf/dl-object.c: Likewise.
10427         * elf/dl-open.c: Likewise.
10428         * elf/dl-reloc.c: Likewise.
10429         * elf/dl-support.c: Likewise.
10430         * elf/dl-sym.c: Likewise.
10431         * elf/dl-sysdep.c: Likewise.
10432         * elf/dl-tls.c: Likewise.
10433         * elf/ldconfig.c: Likewise.
10434         * elf/rtld.c: Likewise.
10435         * elf/tst-tls-dlinfo.c: Likewise.
10436         * elf/tst-tls1.c: Likewise.
10437         * elf/tst-tls10.h: Likewise.
10438         * elf/tst-tls14.c: Likewise.
10439         * elf/tst-tls2.c: Likewise.
10440         * elf/tst-tls3.c: Likewise.
10441         * elf/tst-tls4.c: Likewise.
10442         * elf/tst-tls5.c: Likewise.
10443         * elf/tst-tls6.c: Likewise.
10444         * elf/tst-tls7.c: Likewise.
10445         * elf/tst-tls8.c: Likewise.
10446         * elf/tst-tls9.c: Likewise.
10447         * elf/tst-tlsmod1.c: Likewise.
10448         * elf/tst-tlsmod13.c: Likewise.
10449         * elf/tst-tlsmod13a.c: Likewise.
10450         * elf/tst-tlsmod14a.c: Likewise.
10451         * elf/tst-tlsmod2.c: Likewise.
10452         * elf/tst-tlsmod3.c: Likewise.
10453         * elf/tst-tlsmod4.c: Likewise.
10454         * elf/tst-tlsmod5.c: Likewise.
10455         * elf/tst-tlsmod6.c: Likewise.
10456         * include/errno.h: Likewise.
10457         * include/link.h: Likewise.
10458         * include/tls.h: Likewise.
10459         * locale/global-locale.c: Likewise.
10460         * locale/localeinfo.h: Likewise.
10461         * malloc/arena.c: Likewise.
10462         * malloc/hooks.c: Likewise.
10463         * malloc/malloc.c: Likewise.
10464         * resolv/Versions: Likewise.
10465         * sysdeps/alpha/dl-machine.h: Likewise.
10466         * sysdeps/alpha/libc-tls.c: Likewise.
10467         * sysdeps/generic/ldsodefs.h: Likewise.
10468         * sysdeps/generic/tls.h: Likewise.
10469         * sysdeps/i386/dl-machine.h: Likewise.
10470         * sysdeps/ia64/dl-machine.h: Likewise.
10471         * sysdeps/ia64/libc-tls.c: Likewise.
10472         * sysdeps/mach/hurd/fork.c: Likewise.
10473         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10474         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10475         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10476         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10477         * sysdeps/s390/libc-tls.c: Likewise.
10478         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10479         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10480         * sysdeps/sh/dl-machine.h: Likewise.
10481         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10482         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10483         * sysdeps/x86_64/dl-machine.h: Likewise.
10485         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10486         split out locking and parameter checking.
10487         (_dl_close): Call _dl_close_worker after locking and checking.
10488         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10489         _dl_close.
10490         * elf/Makefile: Add rules to build and run tst-thrlock.
10491         * elf/tst-thrlock.c:  New file.
10493         [BZ #3426]
10494         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10495         reality.
10497         [BZ #3429]
10498         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10499         we are sure we do not need it anymore for _dl_close.  Also move
10500         the asserts inside the lock region.
10501         Patch mostly by Suzuki <suzuki@in.ibm.com>.
10503 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
10505         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10506         argument.
10507         (_dl_lookup_symbol_x): Adjust caller.
10509         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10510         _ns_global_scope.
10511         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10513         * elf/dl-libc.c: Revert l_scope name changes.
10514         * elf/dl-load.c: Likewise.
10515         * elf/dl-object.c: Likewise.
10516         * elf/rtld.c: Likewise.
10517         * elf/dl-close.c (_dl_close): Likewise.
10518         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
10519         always use __rtld_mrlock_{change,done}.  Always free old scope list
10520         here if not l_scope_mem.
10521         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10522         change.  Never free scope list here.  Just __rtld_mrlock_lock before
10523         the lookup and __rtld_mrlock_unlock it after the lookup.
10524         * elf/dl-sym.c: Likewise.
10525         * include/link.h (struct r_scoperec): Remove.
10526         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10527         with l_scope_mem and l_scoperec_lock with l_scope_lock.
10529 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
10531         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10533 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10535         * configure.in: Disable building profile libraries by default.
10537 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10539         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10540         as signed longs, check for x_base + pos overflow.
10541         * sunrpc/Makefile (tests): Add tst-xdrmem2.
10542         * sunrpc/tst-xdrmem2.c: New test.
10544 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10546         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10547         _dl_lookup_symbol_x code.
10549 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10551         * elf/dl-runtime.c: Include sysdep-cancel.h.
10552         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10553         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
10554         instead of catomic_* macros.
10555         * elf/dl-sym.c: Include sysdep-cancel.h.
10556         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10557         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10558         * elf/dl-close.c: Include sysdep-cancel.h.
10559         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10560         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10561         * elf/dl-open.c: Include sysdep-cancel.h.
10562         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10563         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
10565 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10567         [BZ #3313]
10568         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10569         fastbin rather than end of fastbin array.
10571 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
10573         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10574         body macro.
10575         * sysdeps/x86_64/bits/atomic.h
10576         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10577         (catomic_decrement): Use correct body macro.
10579 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
10581         * include/atomic.h: Add a unique prefix to all local variables
10582         in macros.
10583         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10585 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
10587         [BZ #3369]
10588         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10589         and 7.
10591 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
10593         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10595 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
10597         [BZ #3313]
10598         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10599         determine highest fast bin to consolidate, always look into all of
10600         them.
10601         (do_check_malloc_state): Only require for empty bins for large
10602         sizes in main arena.
10604         * libio/stdio.h: Add more __wur attributes.
10606         * elf/dl-minimal.c (realloc): Optimize last patch.
10608 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10610         [BZ #3352]
10611         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10612         and use memcpy() if it does.
10614 2006-11-12  Andreas Jaeger  <aj@suse.de>
10616         [BZ #2510]
10617         * manual/search.texi (Hash Search Function): Clarify.
10618         (Array Search Function): Clarify.
10620 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10622         [BZ #2830]
10623         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10624         shifting.
10625         * math/atest-exp2.c (read_mpn_hex): Likewise.
10626         * math/atest-sincos.c (main): Likewise.
10628 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10630         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10631         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10632         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10633         version GLIBC_2.6.
10634         * Versions.def: Add GLIBC_2.6 for libc.
10636         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10638         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10640 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10642         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10644         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10646         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10647         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10649 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10651         * include/atomic.c: Define catomic_* operations.
10652         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10653         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10654         * malloc/memusage.c: Likewise.
10655         * gmon/mcount.c: Likewise.
10656         * elf/dl-close.c: Likewise.
10657         * elf/dl-open.c: Likewise.
10658         * elf/dl-profile.c: Likewise.
10659         * elf/dl-sym.c: Likewise.
10660         * elf/dl-runtime.c: Likewise.
10661         * elf/dl-fptr.c: Likewise.
10662         * resolv/res_libc.c: Likewise.
10664 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10666         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10667         components which lack them.
10669         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10670         at least one entry consisting of the parameter concatenated with
10671         the domain.
10673 2006-10-10  Roland McGrath  <roland@frob.com>
10675         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10676         * sysdeps/mach/hurd/futimes.c: Likewise.
10677         * sysdeps/mach/hurd/lutimes.c: Likewise.
10679 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10680             Jakub Jelinek  <jakub@redhat.com>
10682         Implement reference counting of scope records.
10683         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10684         from the list in objects which remain.  Always allocate new scope
10685         record.
10686         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10687         don't resize, allocate a new one.
10688         * elf/dl-runtime.c: Update reference counters before using a scope
10689         array.
10690         * elf/dl-sym.c: Likewise.
10691         * elf/dl-libc.c: Adjust for l_scope name change.
10692         * elf/dl-load.c: Likewise.
10693         * elf/dl-object.c: Likewise.
10694         * elf/rtld.c: Likewise.
10695         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10696         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10697         Add l_scoperec_lock.
10698         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10699         * sysdeps/generic/rtld-lowlevel.h: New file.
10701         * include/atomic.h: Rename atomic_and to atomic_and_val and
10702         atomic_or to atomic_or_val.  Define new macros atomic_and and
10703         atomic_or which do not return values.
10704         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10705         Various cleanups.
10706         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10708         * po/sv.po: Update from translation team.
10710 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10712         * Versions.def: Add GLIBC_2.6 to libpthread.
10714         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10715         (versioned_symbol): Likewise.
10716         (compat_symbol): Likewise.
10718         * po/tr.po: Update from translation team.
10720 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10722         * nis/Banner: Removed.  It's been integral part forever and the
10723         author info is incomplete anyway.
10724         * libio/Banner: Likewise.
10726         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10727         code, make sure the nis_freeresult call doesn't crash and that the
10728         result is reported correctly.
10730 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10732         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10733         when callback is NULL.
10735         * nis/Versions (libnss_nisplus): Add
10736         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10737         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10738         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10739         _nss_create_tablename): Rename to...
10740         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10741         ... these.  No longer static.
10742         (internal_setgrent): Adjust users.
10743         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10744         Don't use locking around _nss_grp_create_tablename call.
10745         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10747 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10749         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10751 2006-10-06  Andreas Jaeger  <aj@suse.de>
10753         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10755 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10757         * po/pl.po: Update from translation team.
10759         * nscd/nscd.c (main): Fix typo in message.
10760         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10762 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10764         [BZ #3291]
10765         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10766         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10767         (__sigprocmask): Define.
10769 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10771         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10772         used.
10774 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10776         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10777         in oldtotal and newtotal calculation.
10778         * nscd/nscd-client.h (struct mapped_database): Add datasize
10779         field.
10780         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10781         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10782         increased.
10783         (__nscd_cache_search): Add checks to make sure we never reference
10784         data beyond the current mapping.
10786 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10788         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10789         variables const to avoid compiler warnings.
10791         * io/fts.c (fts_close): Remove redundant checks.
10792         (fts_build): Likewise.
10793         (fts_palloc): Likewise.
10795         * manual/message.texi (Advanced gettext functions,
10796         Using gettextized software): Fix typos.
10798 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10800         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10801         explain why there are no leaks.
10803 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10805         * libio/wmemstream.c: Include <wchar.h>.
10806         * libio/bug-wmemstream1.c: Likewise.
10807         * libio/tst-wmemstream1.c: Likewise.
10808         * libio/tst-wmemstream2.c: Likewise.
10810         * version.h (RELEASE): Bump to 2.5.
10811         * README: Regenerated.
10813         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10815         [BZ #3273]
10816         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10817         found no group members.
10818         Patch by Petr Baudis.
10820 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10822         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10823         assert bootstrap_map.l_tls_modid is zero.
10824         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10825         if USE___THREAD.
10827 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10829         * libio/stdio.h: Move open_wmemstream prototype to ...
10830         * wcsmbs/wchar.h: ... here.
10832 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10834         [BZ #3252]
10835         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10836         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10837         __{,l}chown to handle the rest.
10838         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10839         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10840         __{,l}chown to handle the rest.
10841         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10842         i386/fchownat.c.
10843         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10844         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10846         [BZ #3253]
10847         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10848         time, rather allocate increasingly bigger arrays of pointers, if
10849         possible with alloca, if too large with malloc.
10851 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10853         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10855         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10857 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10859         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10860         home addresses.
10861         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10862         IFA_F_HOMEADDRESS flag for interfaces.
10863         * include/ifaddrs.h (struct in6addrinfo): Define
10864         in6ai_homeaddress.
10866 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10868         [BZ #3225]
10869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10870         PTR_DEMANGLE3): Define.
10871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10872         PTR_DEMANGLE3): Likewise.
10873         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10874         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10875         Likewise.
10876         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10878 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10880         * po/libc.pot: Regenerated.
10881         * po/be.po: Updated.
10882         * po/ca.po: Likewise.
10883         * po/cs.po: Likewise.
10884         * po/da.po: Likewise.
10885         * po/de.po: Likewise.
10886         * po/el.po: Likewise.
10887         * po/en_GB.po: Likewise.
10888         * po/es.po: Likewise.
10889         * po/fi.po: Likewise.
10890         * po/fr.po: Likewise.
10891         * po/gl.po: Likewise.
10892         * po/hr.po: Likewise.
10893         * po/hu.po: Likewise.
10894         * po/ja.po: Likewise.
10895         * po/ko.po: Likewise.
10896         * po/nb.po: Likewise.
10897         * po/nl.po: Likewise.
10898         * po/pl.po: Likewise.
10899         * po/pt_BR.po: Likewise.
10900         * po/ru.po: Likewise.
10901         * po/rw.po: Likewise.
10902         * po/sk.po: Likewise.
10903         * po/sv.po: Likewise.
10904         * po/tr.po: Likewise.
10905         * po/zh_CN.po: Likewise.
10906         * po/zh_TW.po: Likewise.
10908         [BZ #3137]
10909         * iconv/iconv_prog.c (main): Fix spelling in error message.
10910         * iconv/iconvconfig.c (main): Likewise.
10911         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10912         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10913         * locale/programs/localedef.c (main): Likewise.
10914         * locale/programs/repertoire.c (repertoire_read): Likewise.
10915         * timezone/zdump.c (main): Likewise.
10916         * nscd/connections.c (handle_request): Fix spelling in log message.
10917         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10919 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10921         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10922         interfaces.
10924 2006-09-20  Andreas Jaeger  <aj@suse.de>
10926         * math/libm-test.inc (lrint_test_upward): Fix typo.
10928 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10930         [BZ #2592]
10931         * math/libm-test.inc (lrint_test_tonearest): New function.
10932         (lrint_test_towardzero): New function.
10933         (lrint_test_downward): New function.
10934         (lrint_test_upward): New function.
10935         (main): Run these new tests.
10936         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10937         of values near to 0.
10938         (two52): Use double not long double.
10939         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10940         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10941         (two23): Use float not double.
10942         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10943         (two23): Use float not double.
10944         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10945         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10946         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10947         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10949 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10951         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10952         Cast sp to unsigned long to avoid compiler warning.
10953         Use __makecontext_ret function instead of a trampoline on the stack.
10954         (__makecontext_ret): New function.
10955         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10957 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10959         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10960         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10961         bits.
10963 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10965         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10966         sure no reference to the unloaded map's search list remains in the
10967         dependency's scope.
10969 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10971         * elf/Makefile: Add rules to build and run unload7 test.
10972         * elf/unload7.c: New test.
10973         * elf/unload7mod1.c: New file.
10974         * elf/unload7mod2.c: New file.
10976 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10978         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10979         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10980         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10981         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10982         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10983         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10984         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10985         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10986         PTRACE_GETEVENTMSG): Likewise.
10987         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10988         values.
10990 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10992         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10993         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10994         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10995         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10997 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10999         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11000         write '\0' to the fd.
11001         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11002         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11003         Change regs to unsigned long pointer from unsigned int, fix fscr
11004         offset.
11006 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11008         * io/Makefile (CFLAGS-fstatat.c): Set.
11009         (CFLAGS-fstatat64.c): Likewise.
11010         (CFLAGS-mknodat.c): Likewise.
11012         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11013         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11015         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11017 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11018             Steven Munroe  <sjmunroe@us.ibm.com>
11020         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11021         names to the beginning.  Rename "cell" to "cellbe".
11022         (_dl_powerpc_platforms): New.
11023         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11024         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11025         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11026         (_DL_HWCAP_PLATFORM): Define to new mask.
11027         (_dl_platform_string, _dl_string_platform): New functions.
11028         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11029         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11031 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11033         [BZ #2526]
11034         * README.libm: Fix a thinko in sqrt algorithm description.
11036         [BZ #3143]
11037         * manual/string.texi (argz_delete): Fix prototype.
11038         Patch by <alpt@freaknet.org>.
11040 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11042         [BZ #3138]
11043         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11044         * io/tst-fcntl.c (do_prepare): Likewise.
11045         * posix/tst-exec.c (do_prepare): Likewise.
11046         * posix/tst-preadwrite.c (do_prepare): Likewise.
11047         * posix/tst-spawn.c (do_prepare): Likewise.
11048         * posix/tst-truncate.c (do_prepare): Likewise.
11049         * rt/tst-aio.c (do_prepare): Likewise.
11050         * rt/tst-aio64.c (do_prepare): Likewise.
11051         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11052         size_t.
11054 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11056         [BZ #2821]
11057         * time/mktime.c (guess_time_tm): Fix overflow detection.
11058         * time/Makefile (tests): Add bug-mktime1.
11059         * time/bug-mktime1.c: New file.
11061         [BZ #3189, #3188]
11062         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11063         (mremap): Likewise.
11065 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11067         [BZ #1006]
11068         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11069         Ensure relocation doesn't clobber any bits outside of the
11070         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11071         R_SPARC_HI22 and R_SPARC_H44.
11073         [BZ #2775]
11074         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11075         (long) (MINSIZE + nb - old_size) is positive.
11077         * malloc/arena.c (grow_heap): When growing bail even if new_size
11078         is negative.
11080         [BZ #3155]
11081         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11082         stack below r1.
11084 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11086         * posix/regex_internal.c (re_string_reconstruct): Handle
11087         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11088         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11089         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11090         re_string_context_at.
11091         * posix/Makefile: Add rules to build and run bug-regex26 test.
11092         * posix/bug-regex26.c: New test.
11094         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11095         rather than col_sym_free.  Move seqp declaration earlier.
11097         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11099 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
11101         * nscd/initgrcache.c (addinitgroupsX): Move any_success
11102         decl before first goto out.
11104 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11106         * Makerules (shlib.lds): If have-hash-style, put .hash section
11107         at the end of the RO segment.
11109 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
11111         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11112         style hash table format is used.
11114 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
11116         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11117         randomization rather than before.
11118         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11120 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
11122         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11124         * malloc/malloc.c (_int_malloc): Use full list insert and not
11125         shortcut which assumes the list is empty for large requests
11126         too.
11128         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11130 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
11132         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11133         and offout arguments to the prototype.
11134         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11135         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11136         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11137         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11138         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11139         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11140         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11141         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11143 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
11145         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11147         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11148         dlopen parameters.
11150 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
11152         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11153         only if herrno is NETDB_INTERNAL.  Handle errors other than
11154         ERANGE outside of the loops, handle TRY_AGAIN.
11156         * locale/programs/ld-ctype.c (translit_flatten): Issue error
11157         if other's ctype category was missing.
11158         * locale/programs/ld-collate.c (collate_read): Return if
11159         copy_locale's collate category is missing.
11161 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
11163         [BZ #2684]
11164         * malloc/malloc.c (public_rEALLOc): Try harder by using other
11165         arenas if allocation failed.
11166         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11168 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
11170         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11171         waste bins[0..1].
11172         (malloc_state): Reduce bins size by 2.
11173         (_int_malloc): Fix test for large enough buffer for early termination.
11174         When no unsorted block matches perfectly and an exiting block has
11175         to be split, use full list insert and not shortcut which assumes
11176         the list is empty.
11178         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11179         failure.
11181 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11183         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11184         do anything.
11186         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11187         symbol require exact match (these are PLTs).
11188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11189         (_dl_ppc64_addr_sym_match): Likewise.
11191         [BZ #2683]
11192         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11193         If symbol has a value use it.
11194         * elf/tst-dladdr1.c: New file.
11195         * elf/Makefile: Add rules to build and run tst-addr1.
11197 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
11199         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11200         keeps failing and heap growth or new heap creation isn't
11201         successful either.
11202         * malloc/tst-malloc.c (main): Add new tests.
11204 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
11206         [BZ #2734]
11207         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11208         as in the x86-64 code to use bswap.
11210 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
11212         [BZ #2680]
11213         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11214         __USE_UNIX98.
11215         * posix/bits/unistd.h: Likewise.
11217 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
11219         [BZ #2751]
11220         * string/strchr.c: Add cast to avoid warning.
11222 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11224         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11225         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
11226         limit is needed to avoid the exploding of the address space
11227         requirement for secondary heaps.
11228         * malloc/arena.c (HEAP_MAX_SIZE): Define using
11229         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11231 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
11233         [BZ #3018]
11234         * Makerules (depfiles): Handle extra-test-objs the same as
11235         extra-objs.
11236         (common-mostlyclean): Likewise.
11237         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11238         instead.
11239         * elf/Makefile (extra-objs): Likewise.
11240         * stdlib/Makefile (extra-objs): Likewise.
11242 2006-08-14  Eric Blake  <ebb9@byu.net>
11244         [BZ #3044]
11245         * misc/error.h: Assume C89 or better.
11246         * misc/error.c: Likewise.
11248 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
11250         [BZ #3040]
11251         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11252         __ASSUME_ATFCTS is defined.
11254 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
11256         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11257         to sort in each call.
11259         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11260         is empty simply return and use next service.
11261         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11263         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
11264         tells us when not finding a charmap file is an error.
11265         * locale/programs/charmap.h: Adjust charmap_read prototype.
11266         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11267         cannot find a charmap.
11268         * locale/programs/localedef.c (main): Adjust charmap_read call.
11270 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
11272         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11273         sysdeps/posix/pause.c implementation instead.
11275 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
11277         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11278         to EPERM.
11280 2006-08-13  Andreas Schwab  <schwab@suse.de>
11282         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11283         Don't clobber caller's LRSAVE.
11284         (_dl_prof_resolve): Likewise.
11286 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
11288         [BZ #1996]
11289         * libio/memstream.c (open_memstream): Allocate initial buffer with
11290         calloc.
11291         * libio/wmemstream.c (open_wmemstream): Likewise.
11292         * libio/strops.c: Pretty printing.
11293         (_IO_str_overflow): Clear uninitialized part of the new buffer.
11294         (enlarge_userbuf): New function.
11295         (_IO_str_seekoff): Call it if seek position is larger than current
11296         buffer.
11297         * libio/wstrops.c: Likewise.
11298         * libio/vasprintf.c: Add comment as to why we do not have to use
11299         calloc instead of malloc to allocate initial buffer.
11300         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11301         * libio/bug-memstream1.c: New file.
11302         * libio/bug-wmemstream1.c: New file.
11304 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11306         * libio/wstrops.c: Remove dead macro definitions and comments.
11307         * libio/strops.c: Likewise.
11309         [BZ #2764]
11310         * login/utmpname.c (__utmpname): Remove unnecessary test.
11312 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
11314         [BZ #2832]
11315         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11316         0s from integers.
11318 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
11320         [BZ #2987]
11321         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11322         for CPU clocks.
11323         * sysdeps/unix/clock_settime.c: Add support for platform-specific
11324         setting of CPU clocks.
11326 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11328         [BZ #2841]
11329         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11330         since C99 requires the result to promote to 'int' when uint_least8_t
11331         and uint_least16_t promote to 'int'.
11333 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11335         [BZ #3013]
11336         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11337         lenght of one output field, correct bitmask creation.
11338         * locale/programs/ld-time.c: Add alignment.
11340         [BZ #2997]
11341         * misc/error.c: Add space between program name and message if file
11342         name is missing.
11344 2006-08-03  Eric Blake  <ebb9@byu.net>
11346         [BZ #2998]
11347         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11349 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
11351         * malloc/memusagestat.c: Silence warnings.
11353         * malloc/malloc.c: Dynamically size mmap treshold if the program
11354         frees mmaped blocks.
11355         Patch by Valerie Henson and Arjan van de Ven.
11357 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
11359         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11360         __USE_GNU.
11362         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11363         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11364         (DEF): Don't put the var into .gnu.linkonce.r.* section.
11365         Only provide var definitions in strtol_l (or for *ull*
11366         in strtoll_l).
11368         * stdio-common/bug16.c (tests): New array.
11369         (do_tests): Allow the first hexadecimal digit
11370         to be 1, 2, 4 or 8.  Do 3 additional tests.
11372         * sysdeps/s390/fpu/libm-test-ulps: Update.
11374         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11375         fchownat syscall if available.
11376         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11377         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11378         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11380 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11382         * nis/nis_xdr.c: Avoid some function calls.
11384 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
11385             Ulrich Drepper  <drepper@redhat.com>
11387         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11388         short cut if only one name component is stripped away.
11390 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
11392         * nis/nis_call.c: Minor cleanups throughout.
11393         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11394         (first_shoot): Add search_parent_first parameter.  Only if it is set
11395         search parent server first.
11396         If directory for table found through cold start cache is not the same
11397         as referenced in the cache, don't use it.
11398         (__nisfind_server): Take additional parameter.  Pass it on to
11399         first_shoot.
11400         (__prepare_niscall): Adjust __nisfind_server call.
11401         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11402         * nis/nis_table.c: Adjust __nisfind_server call.
11403         * nis/nis_lookup.c: Likewise.
11404         (nis_lookup): Don't loop endlessly if name is reduced to ".".
11406 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
11408         [BZ #2182]
11409         * math/s_cacosh.c: Return values from positive branch.
11410         * math/s_cacoshf.c: Likewise.
11411         * math/s_cacoshl.c: Likewise.
11413         [BZ #2883]
11414         * sysvipc/sys/msg.h: Change return value to ssize_t.
11415         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11416         * sysvipc/msgrcv.c: Likewise.
11417         * include/sys/msg.h: Likewise.
11419         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11420         test introduced in patch for bz #661.
11421         (getgrouplist): Simplify code a bit.  Don't allocate one additional
11422         element for NEWGROUPS.
11424         [BZ #2908]
11425         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11426         'f', use '1' as leading digit not '\1'.
11427         * stdio-common/Makefile (tests): Add bug16.
11428         * stdio-common/bug16.c: New file.
11430         [BZ #2914]
11431         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11432         and don't try to open it.  The patch introducing the macro
11433         contained a bug and used the same file name as the new file
11434         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
11435         this out completely.
11437         [BZ #2926]
11438         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11439         Patch by Jerry James <Jerry.James@usu.edu>.
11441         * rt/Makefile (tests): Add tst-clock2.
11442         * rt/tst-clock2.c: New file.
11444         [BZ #2978]
11445         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11446         function and its parameters and pass it to new thread.
11447         (__gai_notify): Add support for alternative waiting for completion.
11448         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11449         waiting for completion.
11450         * resolv/getaddrinfo_a.c: Likewise.
11451         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11452         waiting for completion is used.
11453         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11454         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11455         * resolv/gai_error.c: Likewise.
11456         * resolv/gai_sigqueue.c: Likewise.
11458 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
11460         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11461         errno to EBADF and return MACH_PORT_NULL.
11463 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
11465         [BZ #2980]
11466         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11468 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
11470         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11471         walk them instead of the symbol table.
11473 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
11475         [BZ #2098]
11476         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11477         status of NSS calls, not the number of returned entries.
11479         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11480         request_key, keyctl.
11482 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11484         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11486 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
11488         * elf/tst-auditmod1.c: Fix typo in #error.
11490 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11492         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11494         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11496 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11498         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11499         that the directory is empty even on non-POSIX filesystems.
11501 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
11503         * elf/dl-open.c (dl_open_worker): Add branch prediction.
11505         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11506         the backend NSS module.  If backend setgrent call failed, don't have
11507         internal_setgrent fail.  Just remember this until it is needed.
11508         * nis/nss_compat/compat-pwd.c: Likewise.
11509         * nis/nss_compat/compat-spwd.c: Likewise.
11511 2006-07-30  Roland McGrath  <roland@redhat.com>
11513         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11514         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11515         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11516         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11518         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11519         (nanosleep_not_cancel): New macro.
11520         (sigsuspend_not_cancel): new macro.
11521         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11522         (do_sigsuspend): Define as inline.
11523         (__sigsuspend): Always use do_sigsuspend.
11524         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11525         * include/signal.h: Declare __sigsuspend_nocancel.
11526         * sysdeps/posix/pause.c
11527         [! NO_CANCELLATION] (__pause_nocancel): New function.
11529         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11530         * include/time.h (__nanosleep_nocancel): Likewise.
11532 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
11534         * locale/programs/localedef.c (add_to_readlist): Rename local
11535         variables to avoid confusion.
11537         * locale/programs/charmap.c (charmap_read): Emit error message if
11538         charmap couldn't be found or read.
11540 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
11542         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11543         __ASSUME_FUTEX_LOCK_PI.
11544         * include/time.h: Declare __nanosleep_nocancel.
11545         * include/unistd.h: Declare __pause_nocancel.
11547         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11548         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
11549         get the __stack_chk_fail_local definition when it's needed.
11551 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
11553         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11554         * dlfcn/bug-atexit3.c: New file.
11555         * dlfcn/bug-atexit3-lib.cc: New file.
11557         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11558         used when the namespace is not the base namespace.
11560 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
11562         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11563         (__new_exitfn): Bump it in every successful call.
11564         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11565         more exit handlers, call them right away.
11566         * stdlib/exit.h: Declare __new_exitfn_called.
11568 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
11570         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11571         calling registered handler.
11573         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11574         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11575         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11576         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11577         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11578         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11579         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11580         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11582 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
11584         * elf/dl-lookup.c (dl_new_hash): New functions.
11585         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11586         value here.  Compute new-style hash value.  Pass new hash value
11587         and reference to variable with the old value to do_lookup_x.
11588         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11589         old-style hash table.
11590         (_dl_debug_bindings): Pass new hash value and reference to variable
11591         with the old value to do_lookup_x.
11592         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11593         new-style hash value and change old-style hash value parameter to
11594         be a reference.  Reoganize functions to determine whether
11595         new-style hash table is available.  Only fall back on old-style
11596         table.  If old-style hash value is needed, compute it here.
11597         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11598         entry.
11599         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11600         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
11601         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11602         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11603         * Makeconfig: If linker supports --hash-style option add it to all
11604         linker command lines to build DSOs.
11605         * config.make.in: Define have-hash-style.
11606         * configure.in: Test whether linker supports --hash-style option.
11608         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11609         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11611 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11613         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11614         auditing.
11616         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11617         RPATH of main map twice.
11619 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11621         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11622         look further, return original strings.
11623         (_nl_find_msg): Do not return found translation if the conversion
11624         failed.  Either signal the string is unusable or that something went
11625         wrong and the original should be used.
11627 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11629         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11631 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11633         [BZ #2766]
11634         * misc/insremque.c (insque): Handle prev == NULL.
11635         * misc/Makefile (tests): Add tst-insremque.
11636         * misc/tst-insremque.c: New test.
11638 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11640         [BZ #2792]
11641         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11642         conflict with DL_DST_REQUIRED.
11644 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11646         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11647         match what Solaris does.
11649 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11651         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11652         local_setegid instead of seteuid and setegid.
11653         * sysdeps/generic/local-setxid.h: New file.
11654         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11656         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11658         * string/Makefile (tests): Add bug-envz1.
11659         * string/bug-envz1.c: New file.
11661 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11663         * posix/regex_internal.c (re_string_skip_chars): If no character has
11664         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11665         to the byte which couldn't be converted.
11666         (re_string_reconstruct): Don't clear valid_raw_len before calling
11667         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11668         tip_context using re_string_context_at.
11669         * posix/Makefile: Add rules to build and run bug-regex25 test.
11670         * posix/bug-regex25.c: New test.
11672 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11674         [BZ #2703]
11675         * string/envz.c (envz_strip): Correct erroneously reversed src
11676         and dest parameters to memmove() invocation.
11678 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11680         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11681         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11682         to make sure the database has been already invalidated.
11683         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11684         after the cache has been invalidated.  Use pthread_mutex_lock rather
11685         than pthread_mutex_trylock if fd != -1.
11686         * nscd/connections.c (invalidate_cache): Add fd argument, write
11687         response to fd if not calling prune_cache, pass fd to prune_cache.
11688         (handle_request): Adjust invalidate_cache caller.
11689         (nscd_run): Pass -1 as fd to prune_cache.
11691 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11693         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11694         the correct place.
11696 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11698         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11699         * nscd/cache.c (prune_cache): Take prunelock before starting the
11700         work.  Just return in case it is already taken.
11701         * nscd/connections.c (dbs): Initialize .prunelock.
11703 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11705         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11706         copying.  No need to allocate new array for group members.  Just
11707         move the pointers and update the size.
11709         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11710         Avoid memory leak in case realloc fails.  Simplification for
11711         better code generation.
11713         Avoid deprecation warning because of libc_hidden_proto for
11714         inet6_option_alloc.
11715         * inet/inet6_option.c (option_alloc): Renamed from
11716         inet6_option_alloc.  Made static.
11717         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11718         (inet6_option_append): Call option_alloc.
11719         * include/netinet/in.h: Remove libc_hidden_proto for
11720         inet6_option_alloc.
11722         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11723         for cleanup when cb!=NULL [Coverity CID 233].
11725 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11727         [BZ #2693]
11728         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11729         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11730         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11731         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11732         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11733         and inet6_rth_getaddr.
11734         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11735         array.
11736         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11737         Mark inet6_option_* interfaces as deprecated.
11738         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11739         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11740         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11741         inet6_rth_segments, and inet6_rth_getaddr.
11742         * inet/inet6_opt.c: New file.
11743         * inet/inet6_rth.c: New file.
11745         * inet/netinet/icmp6.h: Pretty printing.
11747         [BZ #2683]
11748         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11750 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11752         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11753         doing it all here.  When server does not know the answer do not
11754         fail immediate, try parent first.
11756         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11757         overflow test.
11759 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11761         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11762         from __do_niscall.
11763         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11764         and exported.
11765         (__follow_path): New function.  Split out from nis_list.
11766         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11767         _xdr_nis_result.
11768         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11769         _xdr_nis_result.
11770         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11771         and __follow_path.
11772         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11773         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11774         from libnsl for version GLIBC_PRIVATE.
11775         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11776         Remove entry parameter from _nss_nisplus_parse_pwent and
11777         _nss_nisplus_parse_grent.
11778         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11779         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11780         again.  Rewrite getpwent handling to not use nis_first_entry and
11781         nis_next_entry.  Roll out own niscall handling.
11782         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11784         * sunrpc/xdr_rec.c: Fix typo in comment.
11786 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11788         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11789         handling.
11791         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11792         to allocate memory for my_pollfd.  Better initialization of
11793         cb_is_running.  Use TEMP_FAILURE_RETRY.
11795         * malloc/memusage.sh (memusageso): Add quotes.
11796         (memusagestat): Likewise.
11797         * debug/xtrace.sh (pcprofileso): Likewise.
11798         (pcprofiledump): Likewise.
11799         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11800         replacement.
11801         * malloc/Makefile ($(objpfx)memusage): Likewise.
11803         * nis/nis_callback.c (__nis_create_callback): Calls to
11804         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11805         asprintf call fails.
11807         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11808         no uninitialized memory is passed to sendto.
11810 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11812         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11813         of snprintf+strdup.  Handle OOM.
11814         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11815         cb->serv together.  Remove now obsolete free calls.
11816         (__nis_destroy_callback): Remove now obsolete free call.
11818 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11820         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11821         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11822         and ULA respectively). Set precedence for IPv4 address to 10 as
11823         defined in RFC3484 for preferring IPv6.
11824         * posix/gai.conf: Update to match the new default tables.
11826 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11828         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11829         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11830         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11831         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11833         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11834         Removed.
11835         (init_nss_interface): Remove initialization of these variables.
11837 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11839         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11840         nis_free_directory forward to avoid duplication.
11842 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11844         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11845         rec_dirsearch returning NULL.
11846         (first_shoot): Handle __nis_finddirectory returning NULL.
11847         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11849         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11850         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11852 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11854         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11855         pid changed.
11857 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11859         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11861         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11862         * nscd/nscd_getgr_r.c: Likewise.
11864         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11866         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11867         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11869         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11871         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11873         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11875         * include/rpc/auth.h: Mark xdr_des_block_internal and
11876         xdr_opaque_auth_internal as hidden.
11878         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11879         hidden.
11881         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11883         * misc/getusershell.c (okshells): Don't use static initializers,
11884         do it dynamically.
11886         * stdlib/fmtmsg.c (keywords): Change type of len element to
11887         uint32_t to not waste space on 64bit machines.
11889         * locale/setlocale.c: Change _nl_category_names into a string.
11890         Add new _nl_category_name_idxs.  Change all users.
11891         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11892         Declare _nl_category_name_idxs.
11893         * locale/findlocale.c: Adjust for _nl_category_names change.
11894         * locale/loadlocale.c: Likewise.
11895         * locale/newlocale.c: Likewise.
11896         * intl/dcigettext.c: Likewise.
11898         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11899         (add_alias2): ...here.  New function.
11900         (__gconv_read_conf): Simplify builtin alias handling.
11901         (builtin_aliases): Convert to string to avoid relocations.
11902         * iconv/gconv_builtin.h: Add comment about correct formatting.
11904 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11906         * resolv/res_debug.c (loc_ntoa): Make error const.
11908 2006-05-14  Andreas Schwab  <schwab@suse.de>
11910         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11912 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11914         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11915         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11916         sizeof (cpu_set_t).
11918 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11920         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11922         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11924         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11925         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11927         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11928         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11930         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11931         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11932         xdr_cback_data.
11934         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11935         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11936         xdr_ypupdate_args.
11938         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11939         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11941         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11942         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11944         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11945         * include/rpcsvc/nis_callback.h: New file.
11947         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11948         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11950         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11951         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11953         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11954         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11956         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11957         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11959         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11960         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11961         xdr_ypdelete_args.
11963         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11964         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11966         * nis/nis_error.c: Remove table of strings.  Use position
11967         independent mechanism.
11968         * nis/nis_error.h: New file.
11970 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11972         * locale/programs/ld-time.c (time_finish): If wide era name or
11973         format aren't provided, set both wname and wformat to L"".
11975 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11977         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11978         results if the call was succesful.
11980         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11982         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11983         as hidden.
11985 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11987         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11989 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11991         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11992         caller makes sure this is not the case.
11993         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11995 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11997         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11998         calls.
12000         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12001         [Coverity CID 229, 230]
12003         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12004         DGETTEXT calls.
12005         (hol_help): Likewise.  [Coverity CID 226, 227]
12007         * string/argz-replace.c (__argz_replace): Unconditionally call
12008         free on SRC.  [Coverity CID 225]
12010         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12011         the return value of __nis_default_owner and __nis_default_group,
12012         it has been especially allocated.  [Coverity CID 224]
12014         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12015         searchgroup and searchowner.  Significantly simplified.
12016         (__nis_default_owner): Remove duplication.  Do not locally copy the
12017         string before duplicating it.
12018         (__nis_default_group): Likewise.
12020         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12021         we must clear the variable before calling __nisfind_server.
12023         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12024         nis_getnames.  [Coverity CID 223]
12026         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12027         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12029         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12030         allocate memory for the input to add_bytes.  [Coverity CID 221]
12032         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12033         was allocated here.  [Coverity CID 219, 220]
12035         * posix/getconf.c (print_all): Free confstr data after printing.
12036         [Coverity CID 218]
12038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12039         list allocation fails.  [Coverity CID 215]
12041         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12042         [Coverity CID 213]
12044         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12045         string is NULL.  [Coverity CID 212]
12046         * argp/Makefile: Add rules to build and run bug-argp1.
12047         * argp/bug-argp1.c: New file.
12049         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12050         end of string.
12051         * stdlib/canonicalize.c (__realpath): Likewise.
12053         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12054         pointer.  [Coverity CID 206]
12056         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12057         in statically linked code.
12058         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12059         statically built code, be prepared to have no link map.
12060         [Coverity CID 205]
12062         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12063         dgettext calls. [Coverity CID 204]
12065         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12066         the one user.
12067         (uparam_names): Reduce size.  Avoid relative relocations.
12068         Moved to read-only segment.
12069         (fill_in_uparams): Update for new layout.
12071         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12072         assumed to always be != NULL. [Coverity CID 202]
12074         * argp/argp-help.c (hol_entry_help): Remove some dead code
12075         [Coverity CID 200].
12077         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12078         away a few more unconditional yperr2nss calls.
12079         (_nss_nis_getservbyname_r): Likewise.
12081 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
12083         * sysdeps/generic/ldsodefs.h: Remove support for non-core
12084         architectures.
12086         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12087         that unused memory passed to sendto is nevertheless initialized.
12089         [BZ #2499]
12090         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12091         possibly unaligned memory accesses.
12093         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12094         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12095         and __putlong respectively.  Correct buffer overflow check for
12096         NS_NOTIFY_OP.
12098         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12100         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12101         (send_dg): Rewrite error handling to be more compact and avoid
12102         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
12104         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12106         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12107         instead of ns_get16.
12108         (res_queriesmatch): Likewise.  Minor optimization.
12110         [BZ #2499]
12111         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12112         __libc_res_nsend might reallocate the buffer for the answer.  In
12113         this case we have to reload the HP pointer.
12115 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12117         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
12118         some branch prediction hints.
12120         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12121         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12122         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12123         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12124         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12125         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12126         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12127         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12129 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12131         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12132         by a GOT relocation to make Scrt1.o position independent.
12133         * sysdeps/s390/s390-64/elf/start.S: Likewise.
12135         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12136         six system call parameters.
12137         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12139 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12141         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12142         malloc&bzero.
12144         * sunrpc/svc_udp.c (BZERO): Remove definition.
12145         (CALLOC): Define.
12146         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12148         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
12149         (des_SPtrans): Use uint32_t type.
12150         (des_skb): Likewise.
12152         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12154 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
12156         [BZ #2509]
12157         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12158         on 32-bit arches.
12160 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
12162         * locale/programs/ld-address.c (address_finish): Fix one more
12163         place where the iso639 array might be accessed beyond the limits.
12165 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
12167         * nis/nis_table.c (nis_list): Avoid clearing res twice before
12168         filling it for the first time.
12170         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12171         Adjust all callers.
12172         Free res object content before returning.
12174         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12176         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12177         client->cl_auth.
12179         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12180         cleanup for initial thread, just the free call on TVP.
12182         * nscd/gai.c (__getline): Define.
12185 See ChangeLog.16 for earlier changes.