Fix non-add-on handling of libc-abis.
[glibc.git] / ChangeLog
blobe46656b1b403ac8ed568f19dc36be326848baec5
1 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3         * Makerules (libc-abis): Add $(..) to libc-abis.
5 2010-04-06  Joseph Myers  <joseph@codesourcery.com>
7         * Makerules (libc-abis): Fix search for libc-abis in add-ons.
9 2010-04-05  Thomas Schwinge  <thomas@schwinge.name>
11         * sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
12         * sysdeps/gnu/rt-unwind-resume.c: Likewise.
13         * sysdeps/gnu/Makefile: Add sections for csu and rt subdirs to
14         build unwind-resume code, previously in nptl/sysdeps/pthread/Makefile.
16 2010-04-05  Roland McGrath  <roland@redhat.com>
18         * elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.
20 2010-03-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
22         * Makeconfig: Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.
24 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
26         * elf/elf.h (ELFOSABI_ARM_AEABI): Define.
28 2010-04-05  Ulrich Drepper  <drepper@redhat.com>
30         * po/nl.po: Update from translation team.
32         [BZ #11010]
33         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Handle
34         timeouts from servers.
36         [BZ #11149]
37         * elf/ldconfig.c (main): Respect chroot setting when looking for
38         the aux cache.
40 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
42         [BZ #11043]
43         * posix/getopt.c (_getopt_internal_r): Fix arguments printed in error
44         messages.
46         [BZ #11070]
47         * resolv/netdb.h: Declare iruserok and iruserok_af.
49         * argp/Makefile: Add rules to build and run bug-argp2.
50         * argp/bug-argp2.c: New file.
52 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54         [BZ #11254]
55         * argp/argp-parse.c (convert_options): Fix improper use of `|'
56         between character values.
58 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
60         [BZ #11276]
61         * sysdeps/posix/remove.c (IS_NO_DIRECTORY_ERROR): Define.
62         (remove): Use IS_NO_DIRECTORY_ERROR to check for file being no
63         directory.
64         * sysdeps/unix/sysv/linux/remove.c: New file.
66         * conform/data/sys/stat.h-data: Fix testing of S_IS* macros.
68         [BZ #11279]
69         * io/sys/stat.h: Always define S_ISSOCK for XPG6 and up.
71         [BZ #11287]
72         * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
73         which don't define UTS_RELEASE.
75 2010-04-04  H.J. Lu  <hongjiu.lu@intel.com>
76             Ulrich Drepper  <drepper@redhat.com>
78         [BZ #11292]
79         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
80         concurrent initialization and use of __cpu_features.
82 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
84         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
85         the enum.
87 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
89         [BZ #11333]
90         * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
91         which include unnecessary padding in d_reclen.
92         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
93         unnecessary padding.
95         [BZ #11387]
96         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
97         unknown interface, return -1.
98         (getifaddrs_internal): Rename from getifaddrs.  Handle errors in
99         map_newlink be returning -EAGAIN.
100         (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
101         again.
103 2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
105         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
106         redundant and incorrect else block which overwrites current line
107         with the partial next line.
109 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
111         [BZ #11438]
112         * posix/gai.conf: Document problems with IPv4 site-local addresses and
113         NATs.
115         [BZ #11449]
116         * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
117         small_tables_initialized.
119         * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
121         * malloc/malloc.c (set_max_fast): Fix computation of the value.
123 2010-03-30  David S. Miller  <davem@davemloft.net>
125         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
126         MMAP2_PAGE_SHIFT test.
128 2010-03-29  Ulrich Drepper  <drepper@redhat.com>
130         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
132 2010-03-28  Thomas Schwinge  <thomas@schwinge.name>
134         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
135         changes in the generic code.
136         * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
137         to [HAVE_AUX_VECTOR].
139 2010-03-27  Ulrich Drepper  <drepper@redhat.com>
141         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
142         __ASSUME_AT_PAGESIZE we can rely on the value being set.
144         * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
145         unconditionally in the end.
147         * posix/glob.c (glob): Initialize oldcount early, too.
149 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
151         * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
152         only if needed.
153         Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
155 2010-03-26  Richard Henderson  <rth@redhat.com>
157         * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
159         * stdio-common/psiginfo.c (psiginfo): Fix printf format
160         warning for si_band.
162         * locale/setlocale.c (free_category): Finish renaming
163         struct locale_data to __locale_data.
165         * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
166         * elf/dl-sysdep.c (_end): Likewise.
167         * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
168         declared _end, and associated variables.
170 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
172         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
173         means aborting the loop over the NSS methods.
175 2010-03-25  Andreas Schwab  <schwab@redhat.com>
177         * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
178         each action.
180 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
182         * malloc/malloc.c: Remove stale reference to website.
184 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
186         [BZ #11389]
187         * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
188         CLOCK_MONOTONIC_COARSE.
189         * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
190         CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
191         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
192         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
194 2010-03-25  Andreas Schwab  <schwab@redhat.com>
196         * sysdeps/posix/cuserid.c: Fix typo.
198 2010-03-16  Chris Demetriou  <cgd@google.com>
200         [BZ #11394]
201         * locale/programs/simple-hash.c: Include inttypes.h.
202         (hashval_t): Defined to be uint32_t.
203         * locale/programs/simple_hash.h: Include inttypes.h.
204         (compute_hashval): Change return type to uint32_t.
206 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
208         * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
209         * sysdeps/unix/sysv/linux/getlogin.c: New file.
210         * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
211         function.
212         * sysdeps/unix/getlogin.c: Likewise.  Move name variable to toplevel.
213         * include/unistd.h: Declare __getlogin_r_loginuid.
215         [BZ #11397]
216         * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
217         is NUL terminated.
218         Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
220         * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
222 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
224         * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
225         is defined.
227 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
229         * string/test-memcmp.c (check_result): New function.
230         (do_one_test): Use it.
231         (check1): New function.
232         (test_main): Use it.
234 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
236         * posix/tst-gnuglob.c: Add tests with empty patterns.  For this
237         rewrite the tests to add support for failing glob calls.
238         Some other minor cleanups.
239         * posix/bug-glob3.c: New file.
240         * posix/Makefile (tests): Add bug-glob3.
242 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
243             Andreas Schwab  <andreas@redhat.com>
245         * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
246         If pattern is "" bail out early
248 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
250         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
251         but tab->size != 0, just unlock and goto success, without
252         allocating anything or entering anything into the hash table.
253         (_dl_debug_bindings): Temporarily set tab->entries to NULL
254         around do_lookup_x in undef_map->l_local_scope[0].  If
255         undef_map->l_symbolic_in_local_scope, lookup also in
256         symbolic_searchlist of following libraries in l_local_scope
257         that have DT_SYMBOLIC set.
258         * elf/dl-deps.c (_dl_map_object_deps): Compute
259         l_symbolic_in_local_scope.
260         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
261         bitfield.
263 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
265         [BZ #11410]
266         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
268         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
269         C++ prototype handling to a better place.
271 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
273         * elf/dl-load.c (open_verify): Extend expected to the full size of the
274         e_ident array.  When loading, check that the fields in e_ident we don't
275         know are zero to allow future extensions.
277 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
279         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
280         when exit from loop.
282 2010-03-16  Andreas Schwab  <schwab@redhat.com>
284         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
285         address in debug statement.
286         (send_dg): Pass correct buffer pointer to DprintQ.
288 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
290         * libc-abis: Add a few more entries.
292 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
294         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
295         Not used here.
296         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
297         interface.
298         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
299         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
300         is Linux.
301         Fix includes.
302         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
304         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
305         definition to follow generic code.
307 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
309         * posix/getconf.c: Update copyright year.
310         * nss/getent.c: Likewise.
311         * iconv/iconvconfig.c: Likewise.
312         * iconv/iconv_prog.c: Likewise.
313         * elf/ldconfig.c: Likewise.
314         * catgets/gencat.c: Likewise.
315         * csu/version.c: Likewise.
316         * elf/ldd.bash.in: Likewise.
317         * elf/sprof.c (print_version): Likewise.
318         * locale/programs/locale.c: Likewise.
319         * locale/programs/localedef.c: Likewise.
320         * nscd/nscd.c (print_version): Likewise.
321         * debug/xtrace.sh: Likewise.
322         * malloc/memusage.sh: Likewise.
323         * malloc/mtrace.pl: Likewise.
324         * debug/catchsegv.sh: Likewise.
326         * Makerules: Add rule for libc-abis.h.
327         * csu/version.c: Use LIBC_ABIS_STRING string if available.
328         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
329         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
330         Add extra call to VALID_ELF_ABIVERSION.
332 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
334         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
336 2010-03-12  Andreas Schwab  <schwab@redhat.com>
338         * elf/dl-dst.h: Include "trusted-dirs.h".
339         (DL_DST_REQUIRED): Take $LIB into account.
341 2010-03-11  Roland McGrath  <roland@redhat.com>
343         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
344         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
346 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
348         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
349         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
351 2010-03-09  David S. Miller  <davem@davemloft.net>
353         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
354         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
355         64-bit ones.
357         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
359         * sysdeps/sparc/sparc32/strlen.S: Optimize.
360         * sysdeps/sparc/sparc64/strlen.S: Likewise.
361         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
362         XCC): Delete definitions, not needed.
364 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
366         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
367         Little follow-up patch from last change.
369 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
371         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
372         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
374 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
376         * resolv/res_send.c: Fixed DEBUG statements.
377         Moved tmpbuf declaration to block beginning and
378         updated pointer names used in multiple DprintQ() calls
380 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
382         * config.make.in (config-asflags-i686): Define.
383         * configure.in: Substitute libc_cv_as_i686.
384         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
385         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
386         if assembler supports -mtune=i686.
387         (ASFLAGS-.oX): Likewise.
389 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
391         * elf/elf.h (R_X86_64_SIZE32): Define.
392         (R_X86_64_SIZE64): Define.
394 2010-03-02  Richard Guenther  <rguenther@suse.de>
396         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
397         is sign-extending.
399 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
401         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
402         the kernel headers.
404 2010-03-04  David S. Miller  <davem@davemloft.net>
406         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
408         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
409         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
411 2010-03-03  David S. Miller  <davem@davemloft.net>
413         * math/math_private.h (INSERT_WORDS64): Fix argument order.
415 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
417         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
419 2010-03-03  David S. Miller  <davem@davemloft.net>
421         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
422         pass '1' for 't' argument to sparc_fixup_plt.
423         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
424         Likewise.
425         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
426         (sparc_fixup_plt): Document 't' argument.  Enable branch
427         optimization and use v9 branches when possible.  Explain why we
428         cannot unconditionally patch the branch into the first PLT
429         instruction.
430         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
431         argument.  Use v9 branches when possible.  Explain why we can in
432         fact unconditionally use a branch in the first PLT instruction
433         here.
435 2010-02-28  Roland McGrath  <roland@redhat.com>
437         * elf/elf.h (NT_X86_XSTATE): New macro.
439 2010-02-25  David S. Miller  <davem@davemloft.net>
441         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
442         * sysdeps/sparc/sparc64/align-cpy.S: New.
443         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
444         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
445         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
446         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
447         Remove.
448         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
449         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
450         Remove.
451         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
452         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
453         Remove.
455         * sysdeps/sparc/sparc32/bcopy.c: Delete.
456         * sysdeps/sparc/sparc32/memmove.c: Delete.
457         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
458         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
459         * sysdeps/sparc/sparc64/bcopy.c: Delete.
460         * sysdeps/sparc/sparc64/memmove.c: Delete.
461         * sysdeps/sparc/sparc64/memcopy.h: New.
462         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
463         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
464         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
465         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
466         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
468         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
469         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
470         gen-as-const-headers.
471         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
472         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
473         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
474         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
475         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
476         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
477         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
478         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
479         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
480         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
481         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
482         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
483         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
484         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
485         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
486         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
487         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
488         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
489         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
490         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
491         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
492         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
493         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
494         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
496 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
498         [BZ #11332]
499         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
500         and cfi_restore_state only if USE_AS_STRNCMP is defined.
502 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
504         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
506 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
508         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
509         (bk_write_less32bytes_2): Renamed to ...
510         (bk_write_less48bytes): This.
511         Use unsigned conditional jumps.
512         Correct unwind info.
513         Use add/sub instead of lea if possible.
514         (shl_0_gobble_cache_loop_tail): Removed.
515         (large_page): Properly adjust ECX.
517         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
518         conditional jumps.
519         Correct unwind info.
521         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
522         punpcklbw.
523         Use unsigned conditional jumps.
524         (128bytesormore_nt): Renamed to ...
525         (128bytesormore_endof_L1): This.
526         Use add instead of lea if possible.
527         Correct unwind info.
528         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
529         punpcklbw.
530         Use unsigned conditional jumps.
531         Use add instead of lea if possible.
532         Correct unwind info.
534 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
536         [BZ #11319]
537         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
538         undoing the stream because _IO_FINISH doesn't report failures.
540         [BZ #5553]
541         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
542         (public_pVALLOc): Likewise.
543         Patch by Petr Baudis.
545 2010-02-22  Jim Meyering  <meyering@redhat.com>
547         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
549         * manual/charset.texi: Adjust grammar.
551         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
552         * manual/charset.texi (Selecting the Conversion): Likewise.
553         * manual/getopt.texi (Getopt Long Options): Likewise.
554         * manual/memory.texi (Resizing the Data Segment): Likewise.
555         * manual/message.texi (GUI program problems): Likewise.
556         * manual/resource.texi (CPU Affinity): Likewise.
557         * manual/stdio.texi (Streams and Threads): Likewise.
558         * manual/time.texi (High Accuracy Clock): Likewise.
560 2009-02-20  David S. Miller  <davem@davemloft.net>
562         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
563         Adjust rela->r_offset by l->l_addr when rewriting PLT.
565         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
566         test end of buffer.
568         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
569         (__makecontext): Adjust arg counter properly when copying arg
570         stack slots.
572 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
574         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
575         Adjust rela->r_offset by l->l_addr when rewriting PLT.
577 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
579         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
580         non-existent `tiocsctty_port'.
582 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
584         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
585         instead of FEATURE_OFFSET.
586         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
588         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
589         Fix one unwind info problem.
591         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
593         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
595 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
596             Ulrich Drepper  <drepper@redhat.com>
598         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
599         Clean up a bit.
601 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
603         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
604         (tiocsctty_port): ...this new function.
606         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
607         `ioctl_handler_t'.
609 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
611         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
612         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
613         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
614         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
616         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
617         undefined code.
619 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
621         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
622         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
623         memcmp-c, memcmp-ssse3, and memcmp-sse4.
624         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
625         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
626         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
627         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
628         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
629         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
630         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
631         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
632         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
633         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
635 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
637         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
638         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
639         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
640         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
641         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
642         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
643         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
644         is not supported.
645         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
646         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
647         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
648         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
649         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
650         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
651         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
652         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
653         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
654         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
655         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
656         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
657         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
658         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
659         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
660         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
661         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
663         Likewise.
664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
665         Likewise.
666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
667         Likewise.
668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
669         Likewise.
670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
672 2010-02-12  Alan Modra  <amodra@gmail.com>
674         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
675         Define and use for __powerpc64__ too.
676         [__powerpc__] (TLS_LD): Add r3 to clobbers.
677         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
678         [__powerpc64__] (TLS_GD): Make __result r3 reg.
679         [__powerpc64__] (TLS_IE): Relax output constraint.
681 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
683         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
684         instructions cu21 and cu24.  Add well-formedness checking
685         parameter and adjust the software implementation.
686         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
688 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
690         [BZ #11271]
691         * io/ftw.c (ftw_startup): Close descriptor for initial directory
692         after changing back to it.
694 2010-02-05  David S. Miller  <davem@davemloft.net>
696         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
697         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
698         ifunc relocs.
699         (elf_machine_lazy_rel): Likewise.
700         (sparc_fixup_plt): Pull out to...
701         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
702         * sysdeps/sparc/sparc32/dl-irel.h: New file.
703         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
704         ifunc relocs.
705         (elf_machine_lazy_rel): Likewise.
706         (sparc64_fixup_plt): Pull out to...
707         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
708         * sysdeps/sparc/sparc64/dl-irel.h: New file.
710 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
712         * elf/elf.h: Define m68k TLS relocations.
714 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
716         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
717         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
718         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
719         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
721         64-bit power7 fpu path.
722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
723         32-bit power7 fpu math.
725 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
727         * sysdeps/i386/rshift.S: More compact unwind information.
729         * sysdeps/i386/lshift.S: Fix unwind information.
731 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
733         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
734         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
735         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
736         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
737         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
738         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
739         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
740         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
741         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
742         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
743         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
744         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
746 2010-02-08  Andreas Schwab  <schwab@redhat.com>
748         * include/fenv.h: Add hidden proto for fegetenv.
749         * math/fegetenv.c: Add hidden alias.
750         * sysdeps/i386/fpu/fegetenv.c: Likewise.
751         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
752         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
753         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
754         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
755         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
756         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
758 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
760         [BZ #11230]
761         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
762         during recovery.
764 2010-01-26  Andreas Schwab  <schwab@redhat.com>
766         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
767         interface.
768         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
769         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
770         utmpx interface.
772         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
773         entry for 2.12.
775 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
777         [BZ #11235]
778         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
779         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
780         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
781         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
782         MS_ACTIVE, and MS_NOUSER.
783         (MS_RMT_MASK): Update according to current kernels.
785         [BZ #11242]
786         * misc/getusershell.c (initshells): Allocate one more byte in input
787         buffer so that fgets doesn't loop undefinitely.
789 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
791         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
792         __libc_use_alloca tells us not to.  Fix memory leak in an error
793         situation.  Based partially on patch by Jim Meyering.
795 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
797         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
798         get_phys_pages, get_avphys_pages): Add weak aliases.
800 2010-01-25  Andreas Schwab  <schwab@redhat.com>
802         * iconv/iconv_prog.c (write_output): Fix check for open failure.
804 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
806         [BZ #11200]
807         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
808         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
810 2010-01-22  Jim Meyering  <jim@meyering.net>
812         [BZ #11193]
813         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
814         buffer length computation.
816         [BZ #11192]
817         * posix/regexec.c (re_copy_regs): Don't leak when allocation
818         of the start buffer succeeds but allocation of the "end" one fails.
820         [BZ #11191]
821         * posix/regexec.c (re_search_2_stub): Check for overflow
822         when adding the sizes of the two strings.
824         [BZ #11190]
825         * posix/regexec.c (re_search_internal): Avoid overflow
826         in computing re_malloc buffer size.
828         [BZ #11189]
829         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
830         in computing re_malloc buffer size.
832         [BZ #11188]
833         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
834         in size calculation.
836         [BZ #11187]
837         * posix/regexec.c (re_search_2_stub): Use simpler method than
838         boolean for freeing internal storage.
840 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
842         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
843         failed mbrtowc call.
845 2010-01-22  Jim Meyering  <jim@meyering.net>
847         [BZ #11186]
848         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
849         fits in wchar_t.  Problem reported by Eric Blake.
851         [BZ #11185]
852         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
853         and stores into set-but-not-used local, "q".
855         [BZ #11184]
856         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
857         detection test.  Patch by Paul Eggert.
859         [BZ #11183]
860         * posix/regex_internal.c (re_string_realloc_buffers):
861         Detect and handle internal overflow.  Patch by Paul Eggert
863 2010-01-20  Andreas Schwab  <schwab@redhat.com>
865         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
866         (CHECK_SP): Fix check for alternate stack.
867         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
868         (CHECK_SP): Likewise.
870 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
872         * sysdeps/i386/i686/multiarch/memmove.S: Also check
873         bit_Fast_Rep_String when SHARED isn't defined.
875 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
877         [BZ #11194]
878         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
880 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
882         * sysdeps/mach/hurd/bits/libc-lock.h
883         (__rtld_lock_recursive_t): New type.
884         (__rtld_lock_initialize): New macro.
886 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
888         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
889         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
893 2010-01-18  Andreas Schwab  <schwab@redhat.com>
895         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
896         definitions of O_DSYNC and O_RSYNC.
898         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
899         casting d_tag.
901         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
902         dynamic entry types.
904 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
906         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
907         constant.
908         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
909         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
910         overflow.
911         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
913         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
914         math_opt_barrier and math_force_eval macros.
916 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
918         * posix/regcomp.c: Fix a few more cases of ignored return values.
919         * posix/regex_internal.c: Likewise.
920         * posix/regexec.c: Likewise.
922         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
923         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
924         if _XOPEN_SOURCE is not defined as well.
926 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
928         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
929         high gprs kernel facility.
930         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
931         Added high gprs check for DSOs.
932         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
933         new elf header flag.
935 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
937         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
938         dl_main.
939         * elf/dl-open.c (_dl_sysdep_start): Likewise..
940         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
941         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
942         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
943         started.
945 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
947         [BZ #11027]
948         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
949         to RFC 2474.
950         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
952         [BZ #11141]
953         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
954         addresses.
956         [BZ #11127]
957         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
958         re_node_set_insert failure; return REG_ESPACE.
959         Patch by Paul Eggert.
961         * bits/confname.h: Make pre-C99-safe.
963 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
965         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
966         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
967         files are found by GCC.
969 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
971         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
972         brk, and sbrk.
974         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
975         index, and rindex.
977         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
979         * Versions.def: Add GLIBC_2.12 for libpthread.
981         [BZ #11126]
982         * malloc/malloc.c (malloc_info): Initialize malloc if not already
983         done.  Handle empty bin lists.
985         * posix/unistd.h: Change getpagesize and getdtablesize declaration
986         visibility some more.
988         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
990         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
992         [BZ #11120]
993         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
994         needed outside libc.
996 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
998         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
1000 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1002         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
1004 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
1006         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
1008 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
1010         * conform/data/complex.h-data: Test for POSIX2008.
1012         * conform/data/ctype.h-data: Fix POSIX testing.
1014         * conform/data/dirent.h-data: ino_t only needed for XSI.
1016         * grp/grp.h: Declare getgrent and endgrent for XPG7.
1018         * conform/data/inttypes.h-data: Use same types as the headers.
1020         * resolv/netdb.h: Don't define old resolver macros for XPG7.
1022         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
1024         * conform/conformtest.pl: Implement tag for allow-header.
1025         Fix newline handling in allow-header implementation.
1027         * conform/data/time.h-data: Use allow-header instead of duplicating
1028         information.
1030         * conform/data/time.h-data: Allow sigevent tag.
1032         * posix/sched.h: Define time_t and pid_t for XPG7.
1034 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1036         * sysdeps/i386/i686/bcopy.S: New file.
1038         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
1040         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
1041         and END_CHK.
1042         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
1043         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
1044         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
1046         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
1048         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1049         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
1050         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
1051         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
1052         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
1053         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
1054         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
1055         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
1056         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
1057         * sysdeps/i386/i686/multiarch/bzero.S: New file.
1058         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
1059         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
1060         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
1061         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
1062         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
1063         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
1064         * sysdeps/i386/i686/multiarch/memmove.S: New file.
1065         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
1066         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
1067         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
1068         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
1069         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
1070         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
1071         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
1072         * sysdeps/i386/i686/multiarch/memset.S: New file.
1073         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
1075         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
1076         (END_CHK): Likewise.
1078         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
1079         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
1080         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
1082         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
1083         for 0x0e and 0x80.
1084         (__x86_64_data_cache_size): New.
1085         (init_cacheinfo): Set __x86_64_data_cache_size.
1087         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1088         on bit_Fast_Rep_String for Intel Core i7.
1090         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1091         (index_Fast_Rep_String): Likewise.
1092         (FEATURE_INDEX_1): Likewise.
1093         (FEATURE_INDEX_MAX): Likewise.
1094         (cpu_features): Add feature.
1096 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
1098         * conform/data/sys/select.h-data: Fix up for XPG7.
1100 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
1102         * posix/sys/wait.h: Don't define W* macros etc. if
1103         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1105 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
1107         * io/sys/stat.h: Declare fchmod for XPG7.
1108         * conform/data/sys/stat.h-data: Fix up for XPG7.
1110         * termios/termios.h: Define pid_t for XPG7.
1112         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1113         * conform/data/tgmath.h-data: Likewise.
1115         * conform/data/time.h-data: Fix POSIX tests.
1117         * conform/data/wchar.h-data: Fix up XPG7 tests.
1119         * include/features.h: Fix __USE_ISOC95 handling.
1121         * conform/data/wordexp.h-data: Fix typo in last change.
1123         * conform/data/unistd.h-data: Fix up older POSIX tests.
1125         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1126         * posix/unistd.h: Likewise.
1128         * posix/unistd.h: Include environments.h also for XPG6 and up.
1129         Define intptr_t for XPG6 and up.
1130         Fix up for XPG7.
1131         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1133         * conform/data/sys/types.h-data: Fix up for XPG7.
1135         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1136         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1137         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1138         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1139         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1140         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1141         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1142         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1143         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1145         * bits/confname.h: Fix typo in last change.
1147         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1149 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1151         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1152         and SA_RESETHAND now available in Base.
1153         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1154         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1155         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1156         * conform/data/signal.h-data: Update for XPG7.
1158         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1160         * string/strings.h: Don't declare obsolete functions for XPG7.
1161         Declare ffs only for XSI.
1162         * conform/data/strings.h-data: Update for XPG7.
1164 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
1166         [BZ #11125]
1167         * libio/stdio.h: Define va_list, off_t, and ssize_t.
1169         * posix/glob.h: Define size_t.
1171         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1173         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1175 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1177         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1178         be self-contained.
1180         * conform/data/stdio.h-data: Expect off_t and ssize_t.
1182 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
1184         * libio/stdio.h: Define va_list also for XPG7.
1186         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1187         * conform/data/ctype.h-data: Likewise.
1188         * conform/data/dirent.h-data: Likewise.
1189         * conform/data/errno.h-data: Likewise.
1190         * conform/data/fcntl.h-data: Likewise.
1191         * conform/data/fmtmsg.h-data: Likewise.
1192         * conform/data/fnmatch.h-data: Likewise.
1193         * conform/data/ftw.h-data: Likewise.
1194         * conform/data/glob.h-data: Likewise.
1195         * conform/data/grp.h-data: Likewise.
1196         * conform/data/iconv.h-data: Likewise.
1197         * conform/data/langinfo.h-data: Likewise.
1198         * conform/data/libgen.h-data: Likewise.
1199         * conform/data/limits.h-data: Likewise.
1200         * conform/data/locale.h-data: Likewise.
1201         * conform/data/math.h-data: Likewise.
1202         * conform/data/monetary.h-data: Likewise.
1203         * conform/data/mqueue.h-data: Likewise.
1204         * conform/data/ndbm.h-data: Likewise.
1205         * conform/data/netdb.h-data: Likewise.
1206         * conform/data/pthread.h-data: Likewise.
1207         * conform/data/pwd.h-data: Likewise.
1208         * conform/data/regex.h-data: Likewise.
1209         * conform/data/sched.h-data: Likewise.
1210         * conform/data/search.h-data: Likewise.
1211         * conform/data/semaphore.h-data: Likewise.
1212         * conform/data/setjmp.h-data: Likewise.
1213         * conform/data/signal.h-data: Likewise.
1214         * conform/data/spawn.h-data: Likewise.
1215         * conform/data/stdio.h-data: Likewise.
1216         * conform/data/stdlib.h-data: Likewise.
1217         * conform/data/string.h-data: Likewise.
1218         * conform/data/strings.h-data: Likewise.
1219         * conform/data/sys/ipc.h-data: Likewise.
1220         * conform/data/sys/msg.h-data: Likewise.
1221         * conform/data/sys/resource.h-data: Likewise.
1222         * conform/data/sys/sem.h-data: Likewise.
1223         * conform/data/sys/shm.h-data: Likewise.
1224         * conform/data/sys/socket.h-data: Likewise.
1225         * conform/data/sys/stat.h-data: Likewise.
1226         * conform/data/sys/time.h-data: Likewise.
1227         * conform/data/sys/types.h-data: Likewise.
1228         * conform/data/sys/uio.h-data: Likewise.
1229         * conform/data/sys/wait.h-data: Likewise.
1230         * conform/data/syslog.h-data: Likewise.
1231         * conform/data/tar.h-data: Likewise.
1232         * conform/data/termios.h-data: Likewise.
1233         * conform/data/time.h-data: Likewise.
1234         * conform/data/ulimit.h-data: Likewise.
1235         * conform/data/unistd.h-data: Likewise.
1236         * conform/data/utmpx.h-data: Likewise.
1237         * conform/data/wchar.h-data: Likewise.
1238         * conform/data/wctype.h-data: Likewise.
1239         * conform/data/wordexp.h-data: Likewise.
1241         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1242         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1243         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1244         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1245         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1246         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1247         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1248         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1249         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1250         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1252         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1253         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1254         Declare mkstemp and getsubopt for XPG7.
1255         Declare posix_openpt for XPG6 XSI.
1257         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1258         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1260         * string/string.h: Declare strdup for XPG7.
1262 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1264         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1265         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1267         * dirent/dirent.h: Really fix feature selection.
1269         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1270         Fix all users.
1271         * locale/C-address.c: Fix all users.
1272         * locale/C-collate.c: Likewise.
1273         * locale/C-ctype.c: Likewise.
1274         * locale/C-identification.c: Likewise.
1275         * locale/C-measurement.c: Likewise.
1276         * locale/C-messages.c: Likewise.
1277         * locale/C-monetary.c: Likewise.
1278         * locale/C-name.c: Likewise.
1279         * locale/C-numeric.c: Likewise.
1280         * locale/C-paper.c: Likewise.
1281         * locale/C-telephone.c: Likewise.
1282         * locale/C-time.c: Likewise.
1283         * locale/findlocale.c: Likewise.
1284         * locale/global-locale.c: Likewise.
1285         * locale/loadarchive.c: Likewise.
1286         * locale/loadlocale.c: Likewise.
1287         * locale/nl_langinfo_l.c: Likewise.
1288         * locale/setlocale.c: Likewise.
1289         * locale/xlocale.c: Likewise.
1290         * locale/xlocale.h: Likewise.
1291         * stdio-common/vfscanf.c: Likewise.
1292         * stdlib/strfmon_l.c: Likewise.
1293         * stdlib/strtod_l.c: Likewise.
1294         * stdlib/strtol_l.c: Likewise.
1295         * string/strcoll_l.c: Likewise.
1296         * string/strxfrm_l.c: Likewise.
1297         * time/alt_digit.c: Likewise.
1298         * time/asctime.c: Likewise.
1299         * time/era.c: Likewise.
1300         * time/lc-time-cleanup.c: Likewise.
1301         * time/strftime_l.c: Likewise.
1302         * time/strptime_l.c: Likewise.
1303         * wcsmbs/wcsmbsload.c: Likewise.
1304         * wcsmbs/wcsmbsload.h: Likewise.
1306         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1307         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1308         for XPG7.
1309         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1310         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1311         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1312         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1313         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1314         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1316 2010-01-07  Roland McGrath  <roland@redhat.com>
1318         * elf/elf.h (PN_XNUM): New macro.
1320         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1321         literal 2.
1323 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1325         * dirent/dirent.h: Fix typo in feature selection macro use.
1327 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1329         [BZ #11115]
1330         * stdlib/tst-makecontext3.c: New file.
1331         * stdlib/Makefile (tests): Add new test.
1333         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1335 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1337         * configure.in: Enable multi-arch by default if the assembler
1338         supports gnu_indirect_function symbol type and the architecture
1339         supports it.
1341 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1343         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1344         is defined.
1346 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1348         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1349         MACH_PORT_NULL when id != cttyid.
1351 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1353         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1354         __mach_port_deallocate on rootdevid.
1356 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1358         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1359         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1360         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1361         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1363 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1365         [BZ #10992]
1366         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1367         Patch by Eric Blake <ebb9@byu.net>.
1369 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1371         [BZ #11093]
1372         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1373         POLLWRBAND also for POSIX 2008.
1374         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1375         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1377         * include/link.h (struct link_map): Move l_used into its own word.
1378         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1379         still zero.
1380         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1381         never really used.
1383 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1385         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1386         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1387         check processor feature.
1388         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1389         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1390         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1391         (index_SSE2): Likewise.
1393 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1395         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1396         if __ASSEMBLER__ is defined.
1397         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1398         (bit_SSE4_2): Likewise.
1399         (index_SSSE3): Likewise.
1400         (index_SSE4_2): Likewise.
1401         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1402         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1403         check processor feature.
1404         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1405         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1406         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1407         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1408         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1409         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1410         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1412 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1414         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1416 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1418         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1420 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1422         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1423         O_DSYNC to match 2.6.33+ kernels.
1424         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1425         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1426         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1427         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1428         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1429         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1431 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1433         [BZ #11000]
1434         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1435         *herrnop before returning.
1436         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1437         Likewise.
1438         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1439         TRYAGAIN errors separately.
1440         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1441         *name4_r after functions.
1443 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1445         [BZ #11046]
1446         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1447         version check.
1449 2009-11-05  Bruno Haible  <bruno@clisp.org>
1451         [BZ #11056]
1452         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1453         argv argument as non-NULL.
1454         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1456 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1458         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1459         recvmmsg.
1460         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1461         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1463 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1465         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1466         registers.
1467         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1468         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1469         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1471 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1473         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1474         SCHED_RESET_ON_FORK.
1476 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1478         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1479         only used on truly ancient kernel if configuration requires a more
1480         recent kernel.
1482 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1484         [BZ #3662]
1485         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1486         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1488         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1489         pass it on to __ptsname_internal.
1490         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1491         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1492         All the code from __ptsname_r but take additional parameter.  Use that
1493         instead of pointer to local stat64 variable.
1494         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1495         variable.
1496         * include/stdlib.h: Declare __ptsname_internal.
1498         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1499         before the exec.
1500         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1501         * login/programs/pt_chown.c (main): Don't print message on errors
1502         when doing real work.
1504         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1505         once.
1507         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1508         irel relocations split out from...
1509         (__libc_csu_init): ...here.
1510         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1512 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1514         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1515         for timestamps also if __USE_XOPEN2K8.
1516         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1517         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1518         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1519         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1521 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1523         * nscd/connections.c (restart): Try harder to re-exec.
1525         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1527         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1528         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1529         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1530         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1531         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1532         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1534         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1535         Define.
1536         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1538 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1540         [BZ #10162]
1541         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1542         than software pipeline.  Properly recover from shorter read.
1544 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1546         [BZ #10958]
1547         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1548         initialized before using it.
1549         (_IO_putwc_unlocked): Likewise.
1551         [BZ #10918]
1552         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1553         in cast to not throw away const-ness of parameters.
1554         (__CPU_EQUAL_S): Likewise.
1555         (__CPU_OP_S): Likewise.
1557         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1558         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1559         this gratuitous change and we have to keep compatibility.
1560         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1561         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1563         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1564         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1565         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1567 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1569         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1570         of parameters of sync_file_range.
1571         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1572         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1573         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1574         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1575         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1576         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1578 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1580         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1581         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1582         is defined.
1583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1584         file.
1586 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1588         * posix/bug-regex30.c: New file.
1589         * posix/Makefile: Add rules to build and run bug-regex30.
1590         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1591         character lead bytes when there is a range in a COMPLEX_BRACKET.
1592         Reported by Oleg Bylatov.
1594 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1596         [BZ #10969]
1597         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1598         * locale/tst-duplocale.c: New file.
1599         * locale/Makefile (tests): Add tst-duplocale.
1601         [BZ #10968]
1602         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1603         Patch by Bruno Haible <bruno@clisp.org>.
1604         * locale/tst-locname.c: New file.
1605         * locale/Makefile (tests): Add tst-locname.
1607         [BZ #10972]
1608         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1609         constants from recent kernels.
1610         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1611         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1612         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1613         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1614         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1615         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1617 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1619         [BZ #10162]
1620         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1621         software pipeline.
1623 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1625         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1626         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1627         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1629 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1631         * posix/bug-regex29.c: Include stdio.h.
1633 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1635         [BZ #10939]
1636         * Versions.def: Define GLIBC_2.12 for libc.
1637         * manual/errno.texi: Add ERFKILL entry.
1638         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1639         for 2.12.
1640         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1641         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1643         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1644         F_GETOWN_EX definitions according to corrected kernel definitions.
1645         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1646         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1647         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1648         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1649         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1650         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1652 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1654         * version.h: Bump for 2.12 development.
1656 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1658         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1659         out of buffer space.
1660         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1661         map_v4v6_hostent running out of space.
1663 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1665         * string/bits/string3.h (memset): If the second parameter is constant
1666         and zero there is likely no transposition.
1667         Patch by Caolan McNamara <caolanm@redhat.com.
1669 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1671         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1672         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1674 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1676         * malloc/memusagestat.c (main): Fix spelling in an error message.
1678 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1680         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1681         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1683 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1686         readahead.
1688 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1690         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1691         relocate opd entry when resolving prelink conflicts.
1693 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1695         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1696         when -D_FILE_OFFSET_BITS=64.
1698         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1699         of last two arguments when -D_FILE_OFFSET_BITS=64.
1700         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1701         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1702         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1703         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1704         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1705         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1707 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1709         [BZ #4457]
1710         * sysdeps/generic/libgcc_s.h: New file.
1711         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1713 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1715         * malloc/hooks.c (free_check): Restore locking and call _int_free
1716         appropriately.
1718 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1720         * version.h (VERSION): Bump for 2.11 release.
1721         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1723         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1725         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1727         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1728         to avoid warning.
1729         * stdlib/tst-strtoll.c (tests): Likewise.
1731         [BZ #9986]
1732         * time/strftime_l.c (__strftime_internal): Allow %OC.
1734         * misc/mkostemps.c: New file.
1735         * misc/mkostemps64.c: New file.
1737 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1739         * locale/programs/locale-spec.c: Include <error.h> and
1740         <libintl.h>.
1742         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1744 2009-10-28  Roland McGrath  <roland@redhat.com>
1746         * Makefile (dist-prepare): New target.
1747         (tag-for-dist): Target removed.
1748         (glibc-%.tar): Pattern rule removed.
1749         (%.tar): New pattern rule, does simple use of git archive.
1750         (dist-version): Remove variable definition.
1751         (dist): Just depend on that.  Add .tar.xz dependency.
1752         If dist-version variable not set on command line, depend on
1753         dist-prepare, re-invoke with dist-version set via git describe.
1755         * Makerules (%.xz): New pattern rule.
1757 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1759         * elf/ifuncdep2.c: Include ifunc-sel.h.
1760         (global): Delete.
1761         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1762         * elf/ifuncmain1.c (global): Delete.
1763         * elf/ifuncmain1vis.c: Likewise.
1764         * elf/ifuncmain2.c: Likewise.
1765         * elf/ifuncmain5.c: Likewise.
1766         * elf/ifuncmod3.c: Likewise.
1767         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1768         (foo_ifunc): Use ifunc_one.
1769         * elf/ifuncmain7.c: Likewise.
1770         * elf/ifuncmod1.c: Include ifunc-sel.h.
1771         (global): Define protected var.
1772         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1773         * elf/ifuncmod5.c: Likewise.
1774         * sysdeps/generic/elf/ifunc-sel.h: New file.
1775         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1777 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1779         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1780         (R_PPC_REL16*): Correct comments.
1781         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1782         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1783          R_PPC64_REL16_HA): Define.
1784         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1785         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1786         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1787         Delete unused "reloc" param.
1788         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1789         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1790         Delete "reloc" param.
1791         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1792         R_PPC_IRELATIVE.
1793         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1794         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1795         relocations.
1797 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1799         [BZ #10315]
1800         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1801         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1802         UDP_ENCAP_L2TPINUDP.
1804         [BZ #10349]
1805         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1806         parameter, specifying length of prefix.
1807         * stdio-common/tempname.c: Likewise.
1808         * include/stdio.h: Adjust prototypes.
1809         * libio/oldtmpfile.c: Adjust caller.
1810         * misc/mkdtemp.c: Likewise.
1811         * misc/mkostemp.c: Likewise.
1812         * misc/mkostemp64.c: Likewise.
1813         * misc/mkstemp.c:  Likewise.
1814         * misc/mkstemp64.c: Likewise.
1815         * misc/mktemp.c: Likewise.
1816         * stdio-common/tempnam.c: Likewise.
1817         * stdio-common/tmpfile.c: Likewise.
1818         * stdio-common/tmpnam.c: Likewise.
1819         * stdio-common/tmpnam_r.c: Likewise.
1820         * misc/mkstemps.c: New file.
1821         * misc/mkstemps64.c: New file.
1822         * stdlib/stdlib.h: Add prototypes.
1823         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1824         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1826 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1828         * locale/iso-639.def: Add sml entry.
1830         [BZ #10391]
1831         * resolv/res_send.c (send_dg): Initialize resplen.
1833         [BZ #10446]
1834         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1835         definition to the kernel's.
1836         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1838 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1840         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1841         offsets and record sizes in assert()s and response sending.
1842         * nscd/grpcache.c: Likewise.
1843         * nscd/hstcache.c: Likewise.
1844         * nscd/initgrcache.c: Likewise.
1845         * nscd/pwdcache.c: Likewise.
1847 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1849         [BZ #10540]
1850         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1851         /etc/hosts does not exist set errnop and herrnop appropriately.
1852         Patch by Steve Langasek <vorlon@debian.org>.
1854         [BZ #10553]
1855         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1856         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1858         [BZ #10564]
1859         * login/utmp_file.c (TIMEOUT): Increase to 10.
1861         [BZ #10609]
1862         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1863         for file names in case the syscall is not available.
1864         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1865         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1866         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1867         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1868         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1869         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1870         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1871         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1872         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1873         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1874         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1875         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1876         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1877         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1878         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1879         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1880         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1882         [BZ #10643]
1883         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1884         creation filed, remove the request from the 'requests' list and signal
1885         the caller that the request is finished.
1887         [BZ #10692]
1888         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1889         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1891         [BZ #10713]
1892         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1893         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1895         [BZ #10780]
1896         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1897         overflows the int return type.
1899         [BZ #10717]
1900         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1901         have to compute maxsize_total, we have to update the variables, and
1902         the also_total handling must happen after the repair.
1904         [BZ #10742]
1905         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1906         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1908 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1910         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1911         errno is always set when returning unsuccessfully.
1913 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1915         * malloc/memusage.c (update_data): Fix index wraparound handling
1916         so that buffer_cnt is actually reset.
1918 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1920         [BZ #10784]
1921         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1922         of the directory we look at into the static buffer if there is one
1923         at the start of the loop.
1925         [BZ #10789]
1926         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1927         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1929         [BZ #10840]
1930         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1931         __ASSUME_F_GETOWN_EX.
1932         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1933         if possible.
1934         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1936         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1937         and f_owner_ex.
1938         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1939         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1940         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1941         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1942         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1943         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1945         [BZ #10847]
1946         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1947         getutmpx symbol.
1949         [BZ #10823]
1950         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1951         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1953 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1955         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1957 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1959         [BZ #10817]
1960         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1961         Reported by Ray Chason.
1963 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1965         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1966         strend-sse4.
1967         * sysdeps/x86_64/multiarch/strchr.S: New file.
1968         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1969         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1971 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1973         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1975 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1977         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1978         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1979         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1980         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1981         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1982         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1983         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1984         __ieee751_expl to handle overflow.
1986 2009-10-14  David S. Miller  <davem@davemloft.net>
1988         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1989         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1991 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1993         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1994         !USE_MULTIARCH.
1996 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1998         [BZ #10730]
1999         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
2000         Patch in part by Steve Ward <planet36@gmail.com>.
2002         [BZ #10731]
2003         * stdlib/rand_r.c: Fix typo.
2005         * po/cs.po: Update from translation team.
2007 2009-10-06  Andreas Schwab  <schwab@redhat.com>
2009         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
2010         returning if RTLD_NOLOAD.
2012 2009-10-06  Roland McGrath  <roland@redhat.com>
2014         * sysdeps/x86_64/multiarch/strstr-c.c
2015         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
2017         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
2018         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
2020         * sysdeps/x86_64/multiarch/init-arch.h
2021         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
2022         (HAS_CPU_FEATURE): New macro.
2023         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
2024         * sysdeps/x86_64/multiarch/init-arch.c
2025         (__get_cpu_features): #undef it before definition.
2027 2009-10-05  Andreas Schwab  <schwab@redhat.com>
2029         * locale/C-time.c: Revert week-1stday back to 19971130 and set
2030         first_weekday to 1 and first_workday to 2.
2032 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
2034         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
2035         F_GETOWN_EX.
2036         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2037         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2038         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2039         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2040         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2041         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2043 2009-09-28  Andreas Schwab  <schwab@redhat.com>
2045         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
2046         * stdio-common/vfprintf.c: Likewise.
2048 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2050         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
2051         (mkdirat): Call __directory_name_split_at instead of
2052         __directory_name_split.
2054 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
2056         * locale/programs/locale-spec.c (locale_special): If nothing matches
2057         fail with an appropriate message.
2059 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2061         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
2062         and XX.
2064 2009-09-25  Andreas Schwab  <schwab@redhat.com>
2066         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
2067         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
2069 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2071         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
2073 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
2075         * iconvdata/iso646.c (gconv_init): Correctly initialize the
2076         character size elements in step data.
2078 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
2080         * po/hu.po: Update from translation team.
2081         * po/vi.po: Likewise.
2083 2009-09-19  Roland McGrath  <roland@redhat.com>
2085         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2087 2009-09-15  Roland McGrath  <roland@redhat.com>
2089         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2090         * nptl/sysdeps/pthread/configure: Regenerated.
2091         * nptl/sysdeps/x86_64/configure: Regenerated.
2092         * sysdeps/unix/sysv/linux/configure: Regenerated.
2093         * sysdeps/x86_64/elf/configure: Regenerated.
2095         * Makefile (autoconf-it): Set execute bit only on top-level configure.
2097         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2098         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2099         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2100         * configure: Regenerated.
2102 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
2104         * posix/getconf.c (main): Handle -- on command line.
2106 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
2108         * configure.in: Support binutils 2.100 and 3.0.
2110 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2112         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2113         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2114         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2115         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2117 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
2119         * locale/programs/ld-collate.c (struct locale_collate_t): Add
2120         unnamed_section_defined field.
2121         (collate_read): Test and set unnamed_section_defined.
2123         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2124         _POSIX2_LINE_MAX.
2126 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
2128         * configure.in: Support binutils 2.20.
2130 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
2132         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2133         __strstr_ia32): Add attribute_hidden.
2135 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2137         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2138         parsing of group entry.
2140 2009-09-02  Andreas Schwab  <schwab@redhat.com>
2142         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2143         external buffer.  Always discard readahead in internal buffer.
2144         * libio/Makefile (tests): Add bug-wsetpos.
2145         * libio/bug-wsetpos.c: New file.
2147 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
2149         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2150         Add attribute_hidden.
2151         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2152         __strcasestr_sse2): Likewise.
2153         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2154         (__fma_fma): Make static.
2155         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2156         (__fmaf_fma): Make static.
2158 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2160         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2161         reformulate in-buffer optimisation check to match code in
2162         _IO_new_file_seekoff.
2164 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
2166         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2167         to srwi in 32-bit memcpy for power6.
2169 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2171         * include/stdio.h: Declare hidden proto for fflush.
2172         * libio/iofflush.c: Add hidden weak alias for fflush.
2174 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
2176         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2177         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2179 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2181         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2183 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
2185         [BZ #10560]
2186         * malloc/malloc.c: Add local assert definition to avoid problems with
2187         memory allocation in the real one.
2189 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2191         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2192         Removed.
2193         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2194         turn off SSSE3 on Atom.
2196 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
2198         * stdlib/tst-strtol.c (tests): More tests.
2199         * stdlib/tst-strtoll.c (tests): Likewise.
2201 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
2203         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2205         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2207 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2209         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2210         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2212         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2214         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2216         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2218 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
2220         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2222 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2224         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2225         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2227         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2229         * sysdeps/x86_64/fpu/s_signbit.S: New file.
2230         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2232         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2233         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2235         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2236         leftover YMM_SIZE definition.
2238 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2240         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2241         union.
2242         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2243         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2244         Redefine.
2245         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2247         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2248         and SET_FLOAT_WORD definitions.
2250 2009-08-24  Roland McGrath  <roland@redhat.com>
2252         * sysdeps/unix/syscall-template.S: New file.
2253         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2254         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2255         (compile-syscall): Pass mkdep and -g options as normal.
2256         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2257         (common-generated): Don't add them here.
2259 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2261         * math/s_fdim.c: In case of overflows set errno.
2262         * math/s_fdimf.c: Likewise.
2263         * math/s_fdiml.c: Likewise.
2265         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2266         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2267         are using the inline optimizations.
2269         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2270         (__signbitf): Likewise.
2272 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2274         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2275         terminated.
2276         * posix/Makefile (tests): Add bug-regex29.
2277         * posix/bug-regex29.c: New file.
2279         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2280         older POSIX versions are selected.
2282         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2283         as well.
2284         * stdio-common/printf_fphex.c: Likewise.
2285         * stdio-common/tstdiomisc.c: Add more tests.
2287         * locale/locale.h: Include xlocale.h and the thread-local locale
2288         declarations for XPG7, not XPG6.
2290 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2292         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2293         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2296         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2297         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2299 2009-08-20  Roland McGrath  <roland@redhat.com>
2301         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2302         Use l_addr instead of l_map_start (dli_fbase).
2303         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2304         address when there is no proximate symbol.
2305         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2306         Likewise.
2308 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2310         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2312 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2314         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2315         Also handle SIGINT.  In that case only do the cleanup and then
2316         re-raise the signal.
2317         (main): Install handler for SIGINT.
2319 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2321         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2322         clobber list.
2324 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2326         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2327         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2328         tst-auditmod7b.c.
2329         (tests): Add tst-audit6 tst-audit7.
2330         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2331         tst-auditmod7a tst-auditmod7b.
2332         ($(objpfx)tst-audit6): New.
2333         ($(objpfx)tst-audit6.out): Likewise.
2334         ($(objpfx)tst-audit7): Likewise.
2335         ($(objpfx)tst-audit7.out): Likewise.
2336         (tst-audit6-ENV): Likewise.
2337         (tst-audit7-ENV): Likewise.
2338         (CFLAGS-tst-auditmod6b.c): Likewise.
2339         (CFLAGS-tst-auditmod6c.c): Likewise.
2340         (CFLAGS-tst-auditmod7b.c): Likewise.
2341         * elf/tst-audit6.c: New file.
2342         * elf/tst-audit7.c: New file.
2343         * elf/tst-auditmod6a.c: New file.
2344         * elf/tst-auditmod6b.c: New file.
2345         * elf/tst-auditmod6c.c: New file.
2346         * elf/tst-auditmod7a.c: New file.
2347         * elf/tst-auditmod7b.c: New file.
2348         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2349         saving and restoring SSE/AVX registers to ...
2350         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2352 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2354         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2355         only if SHARED is defined.
2356         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2358 2009-08-03  Jim Meyering  <meyering@redhat.com>
2360         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2362 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2364         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2365         section as the other functions for this architecture.
2366         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2368 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2370         * sysdeps/x86_64/strcmp.S: Add support to compile with
2371         USE_SSSE3.  In this case palignr is used.
2372         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2373         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2374         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2375         Add strcmp-ssse3 and strncmp-ssse3.
2376         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2377         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2379         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2380         warning through fake initialization.
2382 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2384         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2386 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2388         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2389         unique symbols.
2391 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2393         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2394         EBX from EAX = 1.  Handle EAX = 11.
2396 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2398         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2399         inside ''.
2401 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2403         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2404         hidden IFUNC functions.
2405         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2407         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2409         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2410         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2411         strcasestr-c.
2412         (CFLAGS-strcspn-c.c): Define.
2413         (CFLAGS-strpbrk-c.c): Define.
2414         (CFLAGS-strspn-c.c): Define.
2415         (CFLAGS-strstr.c): Define.
2416         (CFLAGS-strcasestr.c): Define.
2417         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2418         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2419         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2420         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2421         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2422         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2423         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2424         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2425         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2426         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2427         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2428         -16L instead of 0xfffffffffffffff0L.
2429         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2431 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2433         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2435 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2437         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2438         another rewrite.  Much smaller and faster.
2439         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2441         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2442         ss_flags from the correct location.
2444 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2446         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2447         * sysdeps/i386/i686/cacheinfo.c: New file.
2448         * sysdeps/i386/i686/multiarch/Makefile: New file.
2449         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2450         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2451         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2452         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2453         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2454         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2455         (__cpuid_count): New. Provide the default.
2456         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2457         (__x86_64_preferred_memory_instruction): Define only if
2458         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2459         (intel_check_word): Use __cpuid.
2460         (handle_intel): Likewise.
2461         (handle_amd): Likewise.
2462         (__cache_sysconf): Likewise.
2463         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2464         (__cache_sysconf): Likewise.
2465         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2466         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2467         (get_common_indeces): Use __cpuid.
2468         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2469         if ENABLE_SSSE3_ON_ATOM is not defined.
2470         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2471         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2472         popcnt instead of popcntq.
2474 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2476         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2478 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2480         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2481         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2482         which always causes a compile error.
2484         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2486         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2487         comes from...
2488         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2489         which always causes a compile error.
2491         * debug/Makefile (tests): Add tst-longjmp_chk2.
2492         * debug/tst-longjmp_chk2.c: New file.
2494         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2495         Remove incorrect use of BP_SYM.
2496         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2497         here now since it is more complex than just a simple check.
2499         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2500         we make no more progress.
2502 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2504         * math/s_fma.c: Don't define alias if __fma is a macro.
2505         * math/s_fmaf.c: Likewise.
2506         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2507         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2508         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2510         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2511         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2512         New macro HAS_FMA.
2513         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2514         function.
2515         * include/libc-symbols.h (libm_ifunc): Define.
2516         * sysdeps/x86_64/multiarch/Versions: New file.
2518         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2520 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2522         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2524 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2526         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2527         call that registers used in calling conventions need to be preserved.
2528         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2529         to preserve register content if necessary.
2530         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2531         (_dl_x86_64_restore_sse): New function.
2532         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2533         is allowed to modify xmm/ymm registers.
2535         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2536         application's perspective.
2537         * stdio-common/scanf17.c: Likewise.
2539 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2541         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2542         size to memsz.
2543         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2544         here.
2545         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2546         two steps to catch bugs.
2548 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2550         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2551         determines which files are used in runtime lookups and only checks
2552         those for SSE use.
2553         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2554         testing.
2555         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2556         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2557         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2558         take a while.
2560         * elf/dl-open.c: Move _dl_scope_free to...
2561         * elf/dl-scope.c: ...here.  New file.
2562         * elf/Makefile (dl-routines): Add scope.
2564         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2565         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2566         RES_USE_DNSSEC.
2567         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2568         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2569         all the places we handled RES_USE_EDNS0 only before.
2570         Patch by Adam Tkac <atkac@redhat.com>.
2572 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2574         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2575         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2576         Update size when reallocating.
2578 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2580         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2581         functions used in ld.so modify xmm/ymm registers.
2582         * sysdeps/x86_64/Makefile:  Hook new test up.
2583         * sysdeps/x86_64/rtld-memchr.c: New file.
2584         * sysdeps/x86_64/rtld-memcmp.c: New file.
2585         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2586         * sysdeps/x86_64/rtld-strchr.S: New file.
2587         * sysdeps/x86_64/rtld-strlen.S: New file.
2588         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2589         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2591 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2593         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2594         strncmp-c.
2595         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2596         (exit): Likewise.
2597         (Byte1): Likewise.
2598         (Byte2): Likewise.
2599         (Byte3): Likewise.
2600         (Byte4): Likewise.
2601         (Byte5): Likewise.
2602         (Byte6): Likewise.
2603         (next_8_bytes): Likewise.
2604         (Byte0): Remove commented out codes.
2605         (unaligned_table): Align jump table at 8 bytes.
2606         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2607         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2608         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2609         * sysdeps/x86_64/strncmp.S: New file.
2611 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2613         [BZ #10422]
2614         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2615         kernels, dropped when eventfd2 support was added.
2616         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2617         kernels, dropped when signalfd4 support was added.
2618         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2619         added, name them.
2621         [BZ #10452]
2622         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2623         replies up.
2625         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2627 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2629         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2630         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2632         [BZ #10448]
2633         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2634         callback we must touch the status to avoid using stale value.
2636         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2637         compiled in.
2639 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2641         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2642         /lib/modules/* headers anymore.  We have sane headers in the standard
2643         place now.
2645 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2647         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2648         "etf3enh" and "highgprs" added.
2649         (_dl_s390_platforms): "z10" added.
2650         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2651         Increased for the new entries.
2652         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2653         HWCAP_S390_HIGH_GPRS added.
2655         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2656         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2657         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2658         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2659         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2661 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2663         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2664         avoid additional cpuid instructions.  Most of the information is
2665         stored somewhere.
2667         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2668         cache descriptors.
2669         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2671         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2672         SSSE3 bit for Atoms.
2673         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2674         here anymore.
2676         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2677         structure before copying it to avoid warning.
2678         * posix/tst-rfc3484-2.c (do_test): Likewise.
2679         * posix/tst-rfc3484-3.c (do_test): Likewise.
2681         [BZ #10416]
2682         * include/unistd.h: Make header file suitable for C++ test cases.
2683         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2685         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2686         stack alignment in the exit code.
2688         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2689         potentially be zero.
2691         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2692         unique symbol definition.
2693         Patch by Jakub Jelinek.
2694         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2695         make sure the object with the definition cannot be unloaded.  Adjust
2696         a few types.
2697         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2698         the unique symbol hash table should not be const.
2700 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2702         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2703         unnecesary variables.  Comment fixes.
2705 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2707         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2708         Use NONASCII_CASE information provided by the locale to determine
2709         whether optimized string load function can be used.  Minor cleanups.
2711 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2713         * string/strcasestr.c (STRCASESTR): New macro.
2714         (__strcasestr): Renamed to ..
2715         (STRCASESTR): ...this.
2716         * string/strstr.c (STRSTR): New macro.
2717         (strstr): Renamed to ..
2718         (STRSTR): ...this.
2719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2720         strstr-c strcasestr-c
2721         (CFLAGS-strstr.c): New.
2722         (CFLAGS-strcasestr.c): Likewise.
2723         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2724         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2725         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2726         * sysdeps/x86_64/multiarch/strstr.c: New file.
2728 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2730         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2731         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2732         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2733         _NL_CTYPE_NONASCII_CASE.
2734         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2735         field.
2736         (ctype_finish): Check whether there are any 8-bit characters outside
2737         the range ASCII has or whether the mapping isn't the same as for
2738         ASCII (±0x20).  Set nonascii_case appropriately.
2739         (ctype_output): Add output handler for nonascii_case.
2741 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2743         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2744         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2746 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2748         [BZ #10360]
2749         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2750         0xffff in the EDNS0 record.
2752 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2754         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2755         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2756         is written before the list head update.
2757         Patch by Andreas Schwab <aschwab@redhat.com>.
2759 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2760             Jakub Jelinek  <jakub@redhat.com>
2762         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2763         corruption thread-safe.
2765 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2767         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2768         overrides atomic_compare_and_exchange_val_rel, define to
2769         atomic_compare_and_exchange_val_rel by default, otherwise default
2770         to catomic_compare_and_exchange_val_acq.
2771         (catomic_compare_and_exchange_bool_rel): If arch overrides
2772         atomic_compare_and_exchange_bool_rel, define to
2773         atomic_compare_and_exchange_bool_rel by default.
2774         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2775         Use catomic_compare_and_exchange_val_rel instead of
2776         catomic_compare_and_exchange_val_acq.
2778 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2780         * sysdeps/generic/ldsodefs.h: Add prototype for
2781         _dl_higher_prime_number.
2782         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2784         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2785         restoring of ymm registers a bit.
2787 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2789         * sysdeps/x86_64/memcmp.S: New file.
2791 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2793         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2794         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2795         pointers in writable memory.
2797 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2799         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2800         * config.make.in: Add config-cflags-avx entry.
2801         * configure.in: Substitute libc_cv_cc_avx.
2802         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2803         * elf/tst-audit4.c: New file.
2804         * elf/tst-audit5.c: New file.
2805         * elf/tst-auditmod4a.c: New file.
2806         * elf/tst-auditmod4b.c: New file.
2807         * elf/tst-auditmod5a.c: New file.
2808         * elf/tst-auditmod5b.c: New file.
2809         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2810         link-defines.sym.
2811         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2812         (La_x86_64_vector): Likewise.
2813         (La_x86_64_regs): Append lr_vector.
2814         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2815         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2816         saving and restoring SSE registers to ...
2817         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2818         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2819         <link-defines.h>.
2820         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2821         La_x86_64_regs.  Allocate extra space and jump to memory at
2822         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2823         (save_and_restore_vector_sse): New.
2824         (save_and_restore_vector_avx): Likewise.
2825         (check_avx): Likewise.
2826         (save_and_restore_vector): Likewise.
2827         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2828         HAVE_AVX_SUPPORT.
2829         * sysdeps/x86_64/link-defines.sym: New file.
2831 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2833         * elf/do-lookup.h: Removed after folding content into...
2834         * elf/dl-lookup.c: ...here.
2836         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2838 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2840         * configure.in: Check for gnu_unique_symbol symbol type.
2841         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2842         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2843         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2844         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2845         change.
2846         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2847         unique symbol table.
2848         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2849         for first namespace.
2850         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2851         unique symbol hash table.
2852         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2853         * elf/tst-unique1.c: New file.
2854         * elf/tst-unique1mod1.c: New file.
2855         * elf/tst-unique1mod2.c: New file.
2856         * elf/tst-unique2.c: New file.
2857         * elf/tst-unique2mod1.c: New file.
2858         * elf/tst-unique2mod2.c: New file.
2860 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2862         * elf/elf.h (STB_GNU_UNIQUE): Define.
2864         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2865         from...
2866         * include/inline-hashtab.h: ...here.
2867         (htab_expand): Adjust for renamed function.  Correct memory handling.
2869 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2871         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2873 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2875         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2876         (PPC_FEATURE_HAS_VSX): Likewise.
2878 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2880         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2881         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2883         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2884         aligned to 16 byte boundaries.
2885         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2886         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2887         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2889 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2891         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2892         * config.make.in (config-cflags-sse4): New variable.
2893         * configure.in: Substitute libc_cv_cc_sse4.
2894         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2895         HAVE_SSE4_SUPPORT.
2896         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2897         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2898         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2899         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2900         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2901         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2902         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2903         * sysdeps/x86_64/multiarch/strspn.S: New file.
2905 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2907         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2908         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2909         (tests): Add tst-audit3 for x86_64.
2910         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2911         ($(objpfx)tst-audit3): Define.
2912         ($(objpfx)tst-audit3.out): Define.
2913         (tst-audit3-ENV): Define.
2914         * elf/tst-audit3.c: New file.
2915         * elf/tst-auditmod3a.c: New file.
2916         * elf/tst-auditmod3b.c: New file.
2917         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2918         and restore xmm6.
2920         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2921         (__stpncpy): Renamed to ...
2922         (STPNCPY): This.
2923         (stpncpy): Create alias only if STPNCPY is not defined.
2924         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2925         defined.
2926         (strncpy): Renamed to ...
2927         (STRNCPY): This.
2928         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2929          stpncpy-c strncpy-c for string.
2930         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2931         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2932         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2933         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2934         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2935         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2937 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2939         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2940         adding to fast bin list.
2942 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2944         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2945         inet_makeaddr.  This worked only with class-based networks.
2946         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2947         Likewise.
2949         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2950         recognize all types.
2951         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2952         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2953         be in host byte order.
2955 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2957         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2958         (MODEL_OFFSET): Define.
2959         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2960         family and model.
2961         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2962         out common code into new function get_common_indeces. Determine
2963         extended family and model for Intel processors.
2965 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2967         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2968         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2969         option.
2970         * resolv/res_send.c (reopen): New function.  Broken out of...
2971         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2972         fallback mechanism.  If single-request fails switch to
2973         single-request-reopen mode which opens a new socket for the second
2974         request.
2976 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2978         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2979         (CHECK_SP): Use it.
2981 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2983         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2984         for saved registers.
2985         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2986         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2987         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2989 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2991         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2993 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2995         * po/id.po: Update from translation team.
2997         * po/bg.po: Update from translation team.
2999 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3001         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
3002         defined.
3003         (strncmp): Renamed to STRNCMP.
3004         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3005         strncmp-c for string.
3006         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
3007         * sysdeps/x86_64/multiarch/strcmp.S: New file.
3008         * sysdeps/x86_64/multiarch/strncmp.S: New file.
3009         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
3011 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
3013         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
3014         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
3015         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
3016         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
3017         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
3018         ifuncmain7static.c.
3019         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
3020         ifuncmain7static, and ifuncmain7picstatic.
3021         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
3022         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
3023         $(objpfx)ifuncmain7pie.out.
3024         (modules-names): Add ifuncmod5 ifuncmod6
3025         (ifuncmod5.so-no-z-defs): Define.
3026         (ifuncmod6.so-no-z-defs): Define.
3027         (CFLAGS-ifuncmain5pic.c): Define.
3028         (CFLAGS-ifuncmain5picstatic.c): Define.
3029         (CFLAGS-ifuncmain5staticpic.c): Define.
3030         (CFLAGS-ifuncdep5pic.c): Define.
3031         (CFLAGS-ifuncmain7pic.c): Define.
3032         (CFLAGS-ifuncmain7picstatic.c): Define.
3033         (CFLAGS-ifuncmain1staticpie.c): Define.
3034         (CFLAGS-ifuncmain5pie.c): Define.
3035         (CFLAGS-ifuncmain6pie.c): Define.
3036         (CFLAGS-ifuncmain7pie.c): Define.
3037         ($(objpfx)ifuncmain1staticpie.out): Define.
3038         ($(objpfx)ifuncmain1staticpie): Define.
3039         ($(objpfx)ifuncmain5pie.out): Define.
3040         ($(objpfx)ifuncmain5pie): Define.
3041         ($(objpfx)ifuncmain6pie.out): Define.
3042         ($(objpfx)ifuncmain6pie): Define.
3043         ($(objpfx)ifuncmain5): Define.
3044         ($(objpfx)ifuncmain5pic): Define.
3045         ($(objpfx)ifuncmain5static): Define.
3046         ($(objpfx)ifuncmain5staticpic): Define.
3047         ($(objpfx)ifuncmain5picstatic): Define.
3048         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
3049         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
3050         ifuncmain6pie.out.
3051         * elf/b/elf/ifuncmain1staticpie.c: New file.
3052         * elf/ifuncdep5.c: New file.
3053         * elf/ifuncdep5pic.c: New file.
3054         * elf/ifuncmain5.c: New file.
3055         * elf/ifuncmain5pic.c: New file.
3056         * elf/ifuncmain5picstatic.c: New file.
3057         * elf/ifuncmain5pie.c: New file.
3058         * elf/ifuncmain5static.c: New file.
3059         * elf/ifuncmain5staticpic.c: New file.
3060         * elf/ifuncmain6pie.c: New file.
3061         * elf/ifuncmain7.c: New file.
3062         * elf/ifuncmain7pic.c: New file.
3063         * elf/ifuncmain7picstatic.c: New file.
3064         * elf/ifuncmain7pie.c: New file.
3065         * elf/ifuncmain7static.c: New file.
3066         * elf/ifuncmod5.c: New file.
3067         * elf/ifuncmod6.c: New file.
3069 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
3071         [BZ #10085]
3072         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
3073         (nss_endgrent): New variable.
3074         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
3075         fields. Change type of files to bool and adjust all users.
3076         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
3077         (internal_endgrent): Call nss_endgrent if necessary.
3078         (add_group): New function.  Broken out of...
3079         (check_and_add_group): ...here.
3080         (getgrent_next_nss): Remove test that any callback is available.
3081         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
3082         callback.  If there is no blacklist we can trust the results returned
3083         by the initgroups_dyn callback.  In case there is a callback and we
3084         find a group entry for the group ID but it doesn't contain the
3085         correct member, switch to the slow mode and use getgrent_r.
3086         (internal_getgrent_r): When we see a +: entry, determine whether
3087         there is any callback and which we can use the initgroups_dyn
3088         callback.
3090 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
3092         * malloc/malloc.c (_int_malloc): Add some consistency checks.
3093         (_int_free): Likewise.
3095         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3096         AF_IEEE802154.
3097         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3098         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3099         and ARPHRD_IEEE802154_PHY.
3101         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3102         relative to generic Linux version.
3104 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
3106         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3107         ($(objpfx)ifuncmain1vispie): Likewise.
3109 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3111         * login/Makefile: Build pt_chown as PIE.
3113 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
3115         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3116         a format string.
3117         * elf/sln.c (usage): Likewise.
3118         * malloc/memusage.sh (do_help): Likewise.
3119         * nss/getent.c (more_help): Likewise.
3120         * posix/getconf.c (main): Likewise.
3121         * sunrpc/rpcinfo.c (usage): Likewise.
3122         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3124 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3126         * login/programs/pt_chown.c: Use libcap to drop privileges other than
3127         those needed.
3128         * login/Makefile: If necessary link pt_chown with -lcap.
3129         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3130         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3132 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
3134         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3135         comparisons.
3136         * string/test-memchr.c (do_random_tests): Test very large lengths
3137         as well.
3139 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3141         * Makeconfig (+link-pie): Define.
3142         (+prectorS): Define.
3143         (+postctorS): Define.
3144         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3145         * nscd/Makefile ($(objpfx)nscd): Likewise.
3147 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
3149         [BZ #10107]
3150         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3151         with cmplwi.
3152         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3154 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3156         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3157         into ...
3158         * sysdeps/unix/grantpt.c: ...here.
3160 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
3162         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3163         chmod if it is necessary.
3165         [BZ #10166]
3166         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3167         when the slave device is in devpts or devfs.
3169         [BZ #10183]
3170         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3172         [BZ #10195]
3173         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3174         of nd_opt_home_agent_info_preference to uint16_t.
3175         Patch by Arnaud Ebalard <arno@natisbad.org>.
3177         [BZ #10207]
3178         * nss/getent.c: Add support for printing gshadow data.
3180         [BZ #10203]
3181         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3182         not just the currently used one and those which follow.
3183         Patch by Joe Landers <jlanders@vmware.com>.
3185         [BZ #10196]
3186         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3187         * libio/Makefile: Run tst-fgetwc with necessary envvar.
3188         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3190         [BZ #10217]
3191         * stdlib/abort.c: Define variable __abort_msg.
3192         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3193         * include/stdlib.h: Declare __abort_msg.
3194         * assert/assert-perr.c: Don't free buffer for message immediately.
3195         Store atomically in __abort_msg and free old buffer if necessary.
3196         * assert/assert.c: Likewise.
3197         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3198         store pointer in __abort_msg, and possibly free old string.
3199         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3201         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3203         [BZ #10211]
3204         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3205         handle leap seconds if they are available.
3206         Patch by Akinori Hattori <hattya@gentoo.org>.
3208         * timezone/tzselect.ksh: Update from tzcode2009i.
3209         * timezone/zdump.c: Likewise.
3210         * timezone/zic.c: Likewise.
3212         * timezone/africa: Update from tzdata2009i.
3213         * timezone/antarctica: Likewise.
3214         * timezone/asia: Likewise.
3215         * timezone/australasia: Likewise.
3216         * timezone/backward: Likewise.
3217         * timezone/etcetera: Likewise.
3218         * timezone/europe: Likewise.
3219         * timezone/factory: Likewise.
3220         * timezone/iso3166.tab: Likewise.
3221         * timezone/leapseconds: Likewise.
3222         * timezone/northamerica: Likewise.
3223         * timezone/pacificnew: Likewise.
3224         * timezone/solar87: Likewise.
3225         * timezone/solar88: Likewise.
3226         * timezone/solar89: Likewise.
3227         * timezone/southamerica: Likewise.
3228         * timezone/systemv: Likewise.
3229         * timezone/yearistype: Likewise.
3230         * timezone/zone.tab: Likewise.
3232 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3234         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3235         STT_GNU_IFUNC symbol or in 8 into type_class.
3237         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3238         instead of Elf64_Addr.
3240 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
3242         * po/sv.po: Update from translation team.
3244         [BZ #10229]
3245         * misc/sys/select.h (__NFDBITS): Expression should have type int.
3246         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3247         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3248         the C version.
3250 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3252         * Versions.def: Add GLIBC_2.11 for libpthread.
3254 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3256         * resolv/res_send.c (send_dg): Remember we switched to
3257         single-request mode.
3259 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3261         * dlfcn/dlfcn.h: Remove comma at end of enum.
3262         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3264         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3265         parsing mode string.
3267 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3269         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3271         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3273         * sysdeps/x86_64/multiarch/strlen.S: New file.
3274         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3275         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3276         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3277         content.
3279         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3280         is defined.
3282 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3284         * sysdeps/x86_64/strlen.S: Minor optimizations.
3286 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3288         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3289         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3290         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3291         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3292         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3293         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3294         ifuncmain3.c, ifuncmod3.c,.
3295         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3296         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3297         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3298         ifuncmain4picstatic.
3299         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3300         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3301         ifuncmain3, ifuncmain4.
3302         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3303         $(objpfx)ifuncmain1vispie.out.
3304         (modules-names): Add ifuncmod1 ifuncmod3.
3305         (generated): Add ifuncmain1pie ifuncmain1pie.out
3306         ifuncmain1vispie ifuncmain1vispie.out.
3307         Define rules to build and run the tests.
3308         * elf/ifuncdep1.c: New file.
3309         * elf/ifuncdep1pic.c: New file.
3310         * elf/ifuncdep2.c: New file.
3311         * elf/ifuncdep2pic.c: New file.
3312         * elf/ifuncmain1.c: New file.
3313         * elf/ifuncmain1pic.c: New file.
3314         * elf/ifuncmain1picstatic.c: New file.
3315         * elf/ifuncmain1pie.c: New file.
3316         * elf/ifuncmain1static.c: New file.
3317         * elf/ifuncmain1staticpic.c: New file.
3318         * elf/ifuncmain1vis.c: New file..
3319         * elf/ifuncmain1vispic.c: New file..
3320         * elf/ifuncmain1vispie.c: New file.
3321         * elf/ifuncmain2.c: New file.
3322         * elf/ifuncmain2pic.c: New file.
3323         * elf/ifuncmain2picstatic.c: New file.
3324         * elf/ifuncmain2static.c: New file.
3325         * elf/ifuncmain3.c: New file.
3326         * elf/ifuncmain4.c: New file.
3327         * elf/ifuncmain4picstatic.c: New file.
3328         * elf/ifuncmain4static.c: New file.
3329         * elf/ifuncmod1.c: New file.
3330         * elf/ifuncmod3.c: New file.
3332 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3334         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3336 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3338         [BZ #10221]
3339         * posix/Makefile (routines): Add execvpe.
3340         * posix/Versions: Export execvpe for GLIBC_2.11.
3341         * posix/execvp.c: Now only a wrapper.  Move code to...
3342         * posix/execvpe.c: ...here.  New file.
3343         * posix/unistd.h: Declare execvpe.
3345 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3347         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3348         for STT_GNU_IFUNC handling for efficiency.
3349         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3351         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3352         _exit.
3353         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3355 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3357         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3358         for !SHARED.
3360 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3362         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3363         is not defined.
3364         (__rela_iplt_start): New declaration.
3365         (__rela_iplt_end): Likewise.
3366         (__rel_iplt_start): Likewise.
3367         (__rel_iplt_end): Likewise.
3368         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3369         * elf/elf.h (R_386_IRELATIVE): New macro.
3370         (R_X86_64_IRELATIVE): New macro.
3371         (R_386_NUM): Updated.
3372         (R_X86_64_NUM): Likewise.
3373         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3374         (libc_ifunc_hidden_def): New macro.
3375         * sysdeps/generic/dl-irel.h: New file.
3376         * sysdeps/i386/dl-irel.h: New file.
3377         * sysdeps/x86_64/dl-irel.h: New file.
3378         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3379         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3380         Handle R_386_IRELATIVE.
3381         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3382         (elf_machine_lazy_rela): Likewise.
3383         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3384         R_X86_64_IRELATIVE.
3385         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3387 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3389         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3390         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3391         are no differences.  If an architecture has bits in CPUID index 1
3392         meaning different things the values for the COMMON_CPUID_INDEX_1
3393         index must not be set.
3394         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3395         (HAS_POPCOUNT): ...this.  New macro.
3396         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3397         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3398         to set the value for Intel and AMD architectures.
3399         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3400         INTEL_CPUID_INDEX_1.
3401         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3402         change.
3404 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3406         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3407         and $build.
3409 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3411         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3412         (__expm1l): Set errno to ERANGE on overflow.
3413         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3414         (__tanl): Set errno to EDOM for Â±Inf.
3415         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3416         (__cosl): Set errno to EDOM for Â±Inf.
3417         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3418         (__sinl): Set errno to EDOM for Â±Inf.
3420         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3421         defined, use it.
3422         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3423         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3424         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3426 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3428         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3429         code accessing it.
3430         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3432 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3434         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3435         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3436         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3437         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3439         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3440         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3441         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3442         defined.
3443         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3444         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3446 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3448         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3449         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3450         is, either do nothing at all if __ASSUME_ACCEPT4, or
3451         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3452         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3453         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3454         define.
3455         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3456         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3457         internal_accept4 in socket directory.
3459 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3461         * sysdeps/ia64/configure.in: New file.
3463 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3465         [BZ #10162]
3466         * sysdeps/ia64/memchr.S: Use speculative load.
3468         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3469         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3470         use it.
3472         * sysdeps/i386/__longjmp.S: Add .text.
3473         * sysdeps/x86_64/__longjmp.S: Likewise.
3475 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3477         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3478         __ASSUME_ACCEPT4 for IA-64.
3480 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3482         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3484         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3485         (SOCKOP_accept4): Define.
3487 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3489         Sun approved the change of the license.
3490         * sunrpc/auth_des.c: Replace license text.
3491         * sunrpc/auth_none.c: Likewise.
3492         * sunrpc/auth_unix.c: Likewise.
3493         * sunrpc/authdes_prot.c: Likewise.
3494         * sunrpc/authuxprot.c: Likewise.
3495         * sunrpc/bindrsvprt.c: Likewise.
3496         * sunrpc/clnt_gen.c: Likewise.
3497         * sunrpc/clnt_perr.c: Likewise.
3498         * sunrpc/clnt_raw.c: Likewise.
3499         * sunrpc/clnt_simp.c: Likewise.
3500         * sunrpc/clnt_tcp.c: Likewise.
3501         * sunrpc/clnt_udp.c: Likewise.
3502         * sunrpc/clnt_unix.c: Likewise.
3503         * sunrpc/des_crypt.c: Likewise.
3504         * sunrpc/des_soft.c: Likewise.
3505         * sunrpc/get_myaddr.c: Likewise.
3506         * sunrpc/getrpcport.c: Likewise.
3507         * sunrpc/key_call.c: Likewise.
3508         * sunrpc/key_prot.c: Likewise.
3509         * sunrpc/openchild.c: Likewise.
3510         * sunrpc/pm_getmaps.c: Likewise.
3511         * sunrpc/pm_getport.c: Likewise.
3512         * sunrpc/pmap_clnt.c: Likewise.
3513         * sunrpc/pmap_prot.c: Likewise.
3514         * sunrpc/pmap_prot2.c: Likewise.
3515         * sunrpc/pmap_rmt.c: Likewise.
3516         * sunrpc/rpc/auth.h: Likewise.
3517         * sunrpc/rpc/auth_unix.h: Likewise.
3518         * sunrpc/rpc/clnt.h: Likewise.
3519         * sunrpc/rpc/des_crypt.h: Likewise.
3520         * sunrpc/rpc/key_prot.h: Likewise.
3521         * sunrpc/rpc/netdb.h: Likewise.
3522         * sunrpc/rpc/pmap_clnt.h: Likewise.
3523         * sunrpc/rpc/pmap_prot.h: Likewise.
3524         * sunrpc/rpc/pmap_rmt.h: Likewise.
3525         * sunrpc/rpc/rpc.h: Likewise.
3526         * sunrpc/rpc/rpc_des.h: Likewise.
3527         * sunrpc/rpc/rpc_msg.h: Likewise.
3528         * sunrpc/rpc/svc.h: Likewise.
3529         * sunrpc/rpc/svc_auth.h: Likewise.
3530         * sunrpc/rpc/types.h: Likewise.
3531         * sunrpc/rpc/xdr.h: Likewise.
3532         * sunrpc/rpc_clntout.c: Likewise.
3533         * sunrpc/rpc_cmsg.c: Likewise.
3534         * sunrpc/rpc_common.c: Likewise.
3535         * sunrpc/rpc_cout.c: Likewise.
3536         * sunrpc/rpc_dtable.c: Likewise.
3537         * sunrpc/rpc_hout.c: Likewise.
3538         * sunrpc/rpc_main.c: Likewise.
3539         * sunrpc/rpc_parse.c: Likewise.
3540         * sunrpc/rpc_parse.h: Likewise.
3541         * sunrpc/rpc_prot.c: Likewise.
3542         * sunrpc/rpc_sample.c: Likewise.
3543         * sunrpc/rpc_scan.c: Likewise.
3544         * sunrpc/rpc_scan.h: Likewise.
3545         * sunrpc/rpc_svcout.c: Likewise.
3546         * sunrpc/rpc_tblout.c: Likewise.
3547         * sunrpc/rpc_util.c: Likewise.
3548         * sunrpc/rpc_util.h: Likewise.
3549         * sunrpc/rpcinfo.c: Likewise.
3550         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3551         * sunrpc/rpcsvc/key_prot.x: Likewise.
3552         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3553         * sunrpc/rpcsvc/mount.x: Likewise.
3554         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3555         * sunrpc/rpcsvc/rex.x: Likewise.
3556         * sunrpc/rpcsvc/rstat.x: Likewise.
3557         * sunrpc/rpcsvc/rusers.x: Likewise.
3558         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3559         * sunrpc/rpcsvc/spray.x: Likewise.
3560         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3561         * sunrpc/rtime.c: Likewise.
3562         * sunrpc/svc.c: Likewise.
3563         * sunrpc/svc_auth.c: Likewise.
3564         * sunrpc/svc_authux.c: Likewise.
3565         * sunrpc/svc_raw.c: Likewise.
3566         * sunrpc/svc_run.c: Likewise.
3567         * sunrpc/svc_simple.c: Likewise.
3568         * sunrpc/svc_tcp.c: Likewise.
3569         * sunrpc/svc_udp.c: Likewise.
3570         * sunrpc/svc_unix.c: Likewise.
3571         * sunrpc/svcauth_des.c: Likewise.
3572         * sunrpc/xcrypt.c: Likewise.
3573         * sunrpc/xdr.c: Likewise.
3574         * sunrpc/xdr_array.c: Likewise.
3575         * sunrpc/xdr_float.c: Likewise.
3576         * sunrpc/xdr_mem.c: Likewise.
3577         * sunrpc/xdr_rec.c: Likewise.
3578         * sunrpc/xdr_ref.c: Likewise.
3579         * sunrpc/xdr_sizeof.c: Likewise.
3580         * sunrpc/xdr_stdio.c: Likewise.
3582         * po/da.po: Update from translation team.
3584 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3586         * sysdeps/sh/____longjmp_chk.S: New file.
3587         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3588         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3590 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3591             Ulrich Drepper  <drepper@redhat.com>
3593         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3594         (__nscd_cache_search): Assume each entry in the
3595         hash chain needs one hashentry and half of datahead.  Use
3596         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3598 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3600         * posix/sys/wait.h: Fix typos.  Pretty printing.
3601         * stdlib/stdlib.h: Likewise.  Correct comments.
3603         [BZ #10159]
3604         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3606         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3607         patch.
3609 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3611         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3612         Use it if we absolutely cannot reach any more correct list elements
3613         because that many do not fit into the currently mapped database.
3615 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3617         * nscd/nscd_helper.c: Include stddef.h.
3618         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3619         in a couple of places.  Return NULL if trail is not less than
3620         datasize, don't consider dataheads with length smaller than
3621         offsetof (struct datahead, data) + datalen.
3622         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3623         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3624         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3625         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3626         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3627         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3628         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3630         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3631         Rename ...
3632         (fallocate64): ... to this.
3633         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3634         Rename ...
3635         (fallocate64): ... to this.
3636         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3637         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3638         fallocate64@@GLIBC_2.10.
3639         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3640         fallocate64@@GLIBC_2.11.
3641         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3643         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3644         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3646         * nscd/selinux.c (nscd_avc_destroy): Removed.
3647         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3648         * nscd/nscd.c (termination_handler): Don't call
3649         nscd_avc_destroy.
3651 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3653         * include/atomic.h: Formatting.
3654         (catomic_compare_and_exchange_val_acq): Don't define if already
3655         defined by bits/atomic.h.
3657 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3659         * math/libm-test.inc (expm1_test): Add test for range error.
3661         * Versions.def: Add GLIBC_2.11 for libc.
3662         * debug/Makefile (routines): Add longjmp_chk.
3663         Add rules to build and run tst-longjmp_chk.
3664         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3665         * debug/longjmp_chk.c: New file.
3666         * debug/tst-longjmp_chk.c: New file.
3667         * include/bits/setjmp2.: New file.
3668         * include/stdio.h: Mark __fortify_fail as internal_function.
3669         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3670         * setjmp/bits/setjmp2.h: New file.
3671         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3672         of the aliases.
3673         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3674         defined.
3675         * sysdeps/i386/____longjmp_chk.S: New file.
3676         * sysdeps/x86_64/____longjmp_chk.S: New file.
3677         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3678         * sysdeps/x86_64/__longjmp.S: Likewise.
3680         * version.h: Bump for 2.11 development.
3682         * elf/check-execstack.c: New file.
3683         * elf/Makefile: Add rules to build and run check-execstack.
3685 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3687         * version.h (VERSION): Bump to 2.10.1.
3689         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3690         compatibility functions.
3691         * nss/getXXent_r.c: Likewise.
3692         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3693         * gshadow/getsgnam_r.c: Likewise.
3694         * gshadow/Version: Remove duplicate entries.
3696         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3697         for recent processor.
3698         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3699         Likewise.
3701 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3703         * version.h (VERSION): Bump for 2.10 release.
3704         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3706         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3707         same place we add ASFLAGS-config.
3709 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3711         [BZ #10128]
3712         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3713         or FORMERR and the other NOERROR, don't raise an error.
3715 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3717         [BZ #10118]
3718         * Makeconfig (+asflags): New variable based upon ASFLAG or
3719         asflags-cpu.
3720         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3721         * config.make.in (asflags-cpu): Add variable based upon
3722         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3723         the assembler.
3724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3725         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3726         recognizes power6 instruction set due to passing -mcpu=power6 from
3727         --with-cpu=power6 when compiling .S files.
3728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3729         Likewise.
3730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3731         Likewise.
3732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3733         Likewise.
3735 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3737         * string/stratcliff.c (do_test): Test for zero length
3738         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3739         at the end of the page.
3741 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3743         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3745         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3746         count is zero.
3748         * po/da.po: Update from translation team.
3750 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3752         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3753         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3755 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3757         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3758         and READ_IMPLIES_EXEC.
3760 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3762         * po/da.po: Update from translation team.
3764 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3766         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3767         comment change.
3769 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3771         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3772         to MAP_ANON in PROT_NONE mmap64 call.
3773         (open_archive): Likewise.
3774         (file_data_available_p): Use mmap64 instead of mremap.
3775         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3776         Attempt to reserve address space after mmap64 region.
3778 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3780         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3781         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3782         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3784         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3785         atanh should set ERANGE.
3787         [BZ #10087]
3788         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3789         result of lookup to make call to implement STT_GNU_IFUNC.
3790         (_dl_profile_fixup): Likewise.
3791         Patch by H.J. Lu <hjl.tools@gmail.com>.
3793         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3794         warning.
3796         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3797         from definition.
3799         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3800         label if it is not used.
3802         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3803         of gmon_hist_hdr and gmon_hdr structures and use them.
3804         * elf/sprof.c: Likewise.
3806         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3807         warning.
3809         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3811         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3812         to avoid cast.
3814         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3815         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3816         to avoid warnings.
3817         (iruserok_af): Use ss_family instead of casts.
3819         * gmon/gmon.c (write_hist): Define real-type variant of
3820         gmon_hist_hdr structure and use it.
3821         (write_gmon): Likewise for gmon_hdr.
3823         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3824         function if we are not going to define it.
3825         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3827         * inet/inet6_option.c (option_alloc): Add temporary variable to
3828         avoid warning.
3830         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3831         name of VTable element.
3832         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3833         * libio/iovsscanf.c: Likewise.
3834         * libio/vasprintf.c: Likewise.
3835         * libio/vsnprintf.c: Likewise.
3836         * stdio-common/isoc99_vsscanf.c: Likewise.
3837         * stdlib/strfmon_l.c: Likewise.
3838         * debug/vasprintf_chk.c: Likewise.
3839         * debug/vsnprintf_chk.c: Likewise.
3840         * debug/vsprintf_chk.c: Likewise.
3842         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3843         function pointers.
3845 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3847         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3849 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3851         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3853         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3854         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3855         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3856         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3857         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3858         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3859         * math/libm-test.inc: Add tests for errno after tan calls with
3860         Â±Inf.
3862         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3863         errno value vor pow(+-0,neg).
3864         * math/libm-test.inc (pow_test): Add tests for errno value for
3865         pole errors.
3867         * math/w_fmod.c: Also handle x=±Inf as error.
3868         * math/w_fmodf.c: Likewise.
3869         * math/w_fmodl.c: Likewise.
3870         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3871         x=±Inf or y=0.
3873         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3874         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3875         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3876         * sysdeps/i386/fpu/s_sin.S: Likewise.
3877         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3878         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3879         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3880         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3881         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3882         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3883         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3884         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3885         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3886         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3887         Â±Inf.
3889         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3890         ERANGE for underflows.
3891         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3893         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3894         the 2001 revision.
3896         * libio/tst-widetext.input: Remove surrogates.
3898         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3900         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3901         for lgamma should set errno to ERANGE, not EDOM.
3902         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3904 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3906         [BZ #10093]
3907         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3908         UTF-16 surrogates.
3910         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3911         space when temporarily mapping the whole content of the old file.
3913         [BZ #10100]
3914         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3915         not zero.
3917 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3919         * iconvdata/sjis.c (BODY): Don't advance inptr before
3920         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3921         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3922         two byte chars.
3924 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3926         * locale/locarchive.h (struct locarhandle): Rename len field to
3927         mmaped and add new reserved field.
3928         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3929         (create_archive): Reserve address space and then map file into it.
3930         (open_archive): Likewise.
3931         (file_data_available_p): New function.
3932         (compare_from_file): New function.
3933         (close_archive): Adjust to member name changes.
3934         (add_locale): Before comparing locale data, check it is mapped.
3935         Otherwise fall back to reading from the file.
3937 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3939         * stdio-common/psiginfo.c: Include <errno.h>.
3941 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3943         [BZ #9920]
3944         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3945         to get consistency between 32 and 64 bit architectures.
3947         [BZ #10052]
3948         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3949         directory for dummy syscall rules.
3950         Patch by Chris Steinbroner <hesh@pobox.com>.
3952 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3954         [BZ #10092]
3955         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3956         MNT_EXPIRE.
3958 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3960         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3961         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3963 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3965         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3966         data from vector to temporary buffer and call PWRITEV after it
3967         instead of vice versa.
3968         * sysdeps/posix/preadv.c: Fix up comment.
3969         * misc/preadv.c: Likewise.
3970         * misc/preadv64.c: Likewise.
3971         * misc/pwritev.c: Likewise.
3972         * misc/pwritev64.c: Likewise.
3973         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3975 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3977         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3979         * shadow/Makefile (tests): Add tst-shadow.
3980         * shadow/tst-shadow.c: New file.
3982         [BZ #9955]
3983         * gshadow/Makefile: New file.
3984         * gshadow/Versions: New file.
3985         * gshadow/fgetsgent.c: New file.
3986         * gshadow/fgetsgent_r.c: New file.
3987         * gshadow/getsgent.c: New file.
3988         * gshadow/getsgent_r.c: New file.
3989         * gshadow/getsgnam.c: New file.
3990         * gshadow/getsgnam_r.c: New file.
3991         * gshadow/gshadow.h: New file.
3992         * gshadow/putsgent.c: New file.
3993         * gshadow/sgetsgent.c: New file.
3994         * gshadow/sgetsgent_r.c: New file.
3995         * gshadow/tst-gshadow.c: New file.
3996         * include/gshadow.h: New file.
3997         * Makeconfig (all-subdirs): Add gshadow.
3998         * Makefile (installed-headers): Add gshadow/gshadow.h.
3999         * nss/Makefile (databases): Add sgrp.
4000         * nss/Versions: Add gshadow functions as private exports.
4001         * nss/nsswitch.conf: Add gshadow entry.
4002         * nss/sgrp-lookup.c: New file.
4003         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
4004         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
4005         * nss/nss_files/files-sgrp.c: New file.
4006         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
4007         * sysdeps/unix/sysv/linux/paths.h: Likewise.
4009 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
4011         * stdio-common/printf.h: Add missing const to register_printf_modifier.
4012         * stdio-common/reg-modifier.c: Likewise.
4014 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
4016         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
4017         is no FPU.
4019 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
4021         [BZ #10086]
4022         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
4023         headers up to 2.6.30.
4025         * po/ca.po: Update from translation team.
4027 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
4029         [BZ #10069]
4030         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
4031         an object that uses static TLS if the TLS modid is higher than the
4032         reserve we always allocate.  At least for multi-threaded code.
4034 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
4036         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
4037         Numerically stable check for valid width.
4039         * locale/programs/locarchive.c (open_archive): Map the entire file
4040         and not just the administrative data.
4041         (add_locale): When we find a hash sum match compare the content
4042         to be sure.
4044         * malloc/malloc.c (malloc_info): Output address space information.
4046 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
4048         * malloc/malloc.c (malloc_info): Also output system memory information.
4050         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
4051         architectures have preadv/pwritev in 2.6.30.
4053         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
4054         * sysdeps/posix/readv.c: Likewise.
4055         Reported by Markus Armbruster <armbru@redhat.com>.
4057         * malloc/hooks.c (top_check): Force hook value into register.
4059 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4061         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
4062         calls to _dl_relocate_object.
4064 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4066         [BZ #9957]
4067         * malloc/malloc.c (force_reg): Define.
4068         (sYSMALLOc): Load hook variable into variable
4069         before test and force into register.
4070         (sYSTRIm): Likewise.
4071         (public_mALLOc): Force hook value into register.
4072         (public_fREe): Likewise.
4073         (public_rEALLOc): Likewise.
4074         (public_mEMALIGn): Likewise.
4075         (public_vALLOc): Likewise.
4076         (public_pVALLOc): Likewise.
4077         (public_cALLOc): Likewise.
4078         (__posix_memalign): Likewise.
4079         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
4080         before test and force into register.
4081         * malloc/hooks.c (top_check): Likewise.
4082         (public_sET_STATe): Pretty printing.
4084         * resolv/res_send.c (send_dg): Don't just ignore the result we got
4085         in case we only receive one reply in single-request mode.
4087 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
4089         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4090         are dlopened in statically linked program even for __LM_ID_CALLER.
4092 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4094         * resolv/res_send.c (send_dg): Don't switch into single-request
4095         mode if we already are in it.
4097 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
4099         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4100         are always at least 4 bytes in the returned line.
4102 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
4104         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4105         __libc_use_alloca (8192), if the stack is too small use 512 bytes
4106         instead of 8K.  Stop searching in /proc/stat after hitting first
4107         line not starting with cpu.
4108         (next_line): Truncate too long
4109         lines at buffer size * 3/4 instead of pretending there were line
4110         breaks inside of large lines.
4112 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4114         * sysdeps/x86_64/mp_clz_tab.c: New file.
4116 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
4117             Ulrich Drepper  <drepper@redhat.com>
4119         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4120         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4121         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4123 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
4125         * sysdeps/sh/libc-tls.c: New file.
4127         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4129 2009-04-14  Roland McGrath  <roland@redhat.com>
4131         * elf/elf.h: Add various missing ARM constants, to match binutils.
4133 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4135         Optimizations from GMP.
4136         * sysdeps/x86_64/add_n.S: New file.
4137         * sysdeps/x86_64/addmul_1.S: New file.
4138         * sysdeps/x86_64/lshift.S: New file.
4139         * sysdeps/x86_64/mul_1.S: New file.
4140         * sysdeps/x86_64/rshift.S: New file.
4141         * sysdeps/x86_64/sub_n.S: New file.
4142         * sysdeps/x86_64/submul_1.S: New file.
4144 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
4146         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4147         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4148         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4149         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4151 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4153         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4154         preadv/pwritev.
4156 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
4158         * sysdeps/x86-64/strrchr.S: New file.
4160 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
4162         * stdio-common/printf.h (struct printf_info): Add user element.
4163         New types printf_arginfo_size_function, printf_va_arg_function.
4164         Declare register_printf_specifier, register_printf_modifier,
4165         register_printf_type.
4166         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4167         (union printf_arg): Add pa_user element.
4168         Adjust __printf_arginfo_table type.
4169         Add __printf_va_arg_table, __printf_modifier_table,
4170         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4171         declarations.
4172         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4173         If registered arginfo call failed try normal specifier.
4174         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4175         function.
4176         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4177         * stdio-common/Versions: Export register_printf_modifier,
4178         register_printf_type, and register_printf_specifier for GLIBC_2.10.
4179         * stdio-common/reg-modifier.c: New file.
4180         * stdio-common/reg-type.c: New file.
4181         * stdio-common/reg-printf.c (__register_printf_specifier): New
4182         function.  Mostly the old __register_printf_function function but
4183         uses locking and type of third parameter changed.
4184         (__register_printf_function): Implement using
4185         __register_printf_specifier.
4186         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4187         calls to arginfo functions.  Allocate enough memory for user-defined
4188         types.  Call new va_arg functions to get user-defined types.
4189         Try installed handlers even for existing format specifiers first.
4191 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
4193         * sysdeps/x86_64/rawmemchr.S: New file.
4195         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4196         Simplified code and possible copy problem fixed.
4198         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4199         function if it is not defined.  Add some necessary casts.
4200         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4202         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4203         have preadv/pwritev in 2.6.30.
4205 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
4207         * malloc/malloc.c (malloc_info): New function.
4208         * malloc/malloc.h: Declare it.
4209         * malloc/Versions: Export malloc_info for GLIBC_2.10.
4211         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4212         to avoid PLT slot.
4214         * malloc/malloc.c (_int_realloc): Add parameter with old block
4215         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
4216         Adjust all callers.
4217         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4219 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
4221         * sysdeps/x86_64/strchrnul.S: New file.
4223         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4224         depending libcrypt on -lfreebl3.
4226         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4227         preadv/pwritev in 2.6.30.
4229         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4230         instead of __strcasecmp.
4232         * string/stratcliff.c (do_test): Add memchr tests..
4233         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4234         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4235         first read quad word.
4237 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
4239         * string/strverscmp.c (__strverscmp): Fix last cleanups.
4240         * string/tst-svc.input: Add new test case.
4241         * string/tst-svc.expect: Adjust.
4242         * string/Makefile: Don't ignore tst-svc error.
4244         * sysdeps/x86_64/memchr.S: New file.
4246         * resolv/resolv.h (RES_SNGLKUP): Define.
4247         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4248         * resolv/res_send.c (send_dg): If we sent two requests at once and
4249         only get one reply before timeout switch to mode where we send the
4250         second request only after the first answer has been received.
4252 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4254         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4255         * sysdeps/x86_64/strchr.S: Likewise.
4257 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4259         * configure.in: We need to test for the compiler earlier.
4261         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4262         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4263         GLIBC_2.10.
4264         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4265         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4266         and pwritev.
4267         * misc/preadv.c: New file.
4268         * misc/preadv64.c: New file.
4269         * misc/pwritev.c: New file.
4270         * misc/pwritev64.c: New file.
4271         * sysdeps/posx/preadv.c: New file.
4272         * sysdeps/posx/preadv64.c: New file.
4273         * sysdeps/posx/pwritev.c: New file.
4274         * sysdeps/posx/pwritev64.c: New file.
4275         * sysdeps/unix/sysv/linux/preadv.c: New file.
4276         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4277         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4278         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4279         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4280         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4282         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4283         compatibility code.
4284         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4286         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4287         __ASSUME_COMPLETE_READV_WRITEV.
4288         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4289         with modern kernels.
4290         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4292         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4293         to free a possible malloced buffer in case of cancellation.
4294         * sysdeps/posix/writev.c: Likewise for write.
4296 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4298         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4300         * configure.in: Recognize --enable-nss-crypt.
4301         * config.make.in: Add nss-crypt entry.
4302         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4303         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4304         and include path for NSS directory to compiler for md5-crypt,
4305         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4306         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4307         function implementation, use NSS.  Introduce wrappers around the
4308         hash function calls.  Little code size optimization.
4309         * crypt/sha256-crypt.c: Likewise.
4310         * crypt/sha512-crypt.c: Likewise.
4311         * scripts/check-local-headers.sh: Ignore nss3 directory.
4313         * configure.in: Rename pic_default to libc_cv_pic_default.
4314         * config.make.in: Likewise.
4316 2009-04-01  Roland McGrath  <roland@redhat.com>
4318         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4319         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4320         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4321         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4322         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4323         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4324         (R_SPARC_NUM): Update.
4325         From Dave Miller <davem@davemloft.net>.
4327 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4329         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4331 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4333         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4334         those which are used.
4335         * elf/dl-addr.c: Likewise.
4336         * elf/dl-caller.c: Likewise.
4337         * elf/dl-fini.c: Likewise.
4338         * elf/dl-iteratephdr.c: Likewise.
4339         * elf/dl-libc.c: Likewise.
4340         * elf/dl-load.c: Likewise.
4341         * elf/dl-support.c: Likewise.
4342         * elf/dl-sym.c: Likewise.
4343         * elf/rtld.c: Likewise.
4344         * sysdeps/generic/ldsodefs.h: Likewise.
4346         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4347         * elf/dl-minimal.c: Likewise.
4348         * elf/dl-misc.c: Likewise.
4349         * elf/rtld.c: Likewise.
4350         * sysdeps/generic/ldsodefs.h: Likewise.
4352 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4354         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4355         Avoid reuse of complex expression.
4357         * po/fr.po: Update from translation team.
4359 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4361         * include/dirent.h: Yet more changes to match sort function type
4362         change.
4363         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4364         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4365         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4367 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4369         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4371 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4373         * nscd/connections.c (restart): Try to preserve the process name
4374         by reading the /proc/self/exe symlink and using the return name.
4375         Patch by Jeff Bastian <jbastian@redhat.com>.
4377 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4379         [BZ #9733]
4380         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4381         if we are not loading a new audit library.
4382         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4383         Only use profiling trampoline for auditing if we are not relocating
4384         an audit library.
4385         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4386         * elf/rtld.c: Likewise.
4387         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4389         * elf/rtld.c (dl_main): Extend help message for --audit option.
4391         [BZ #9759]
4392         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4393         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4394         * dirent/alphasort.c: Adjust implementation to type change.
4395         * dirent/alphasort64.c: Likewise.
4396         * dirent/scandir.c: Likewise.
4397         * dirent/versionsort.c: Likewise.
4398         * dirent/versionsort64.c: Likewise.
4399         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4400         declaration.
4401         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4402         declaration.
4404         [BZ #9880]
4405         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4406         correctly.  Set segleft member in output as required.
4407         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4408         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4410         [BZ #9881]
4411         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4412         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4413         * inet/Makefile (tests): Add tst-inet6_rth.
4414         * inet/tst-inet6_rth.c: New file.
4416         [BZ #5807]
4417         * string/strlen.c (strlen): Fix omission in the expression to test
4418         for NUL bytes.
4420 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4422         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4424         * elf/dl-runtime.c (reloc_offset): Define.
4425         (reloc_index): Define.
4426         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4427         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4428         computing index from reloc_offset.
4429         (_dl_call_pltexit): Likewise.
4430         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4431         the relocation index to _dl_fixup.
4432         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4433         _dl_call_pltexit.
4434         * sysdeps/x86_64/dl-runtime.c: New file.
4436         [BZ #9893]
4437         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4438         alignment of La_x86_64_regs.  Store xmm parameters.
4439         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4441         [BZ #9913]
4442         * string/strverscmp.c (__strverscmp): Fix case of different digits
4443         in fractional part of string.
4444         Patch by Jingyu Liu <jyliu@fortinet.com>.
4445         * string/Makefile (tests): Add tst-svc2.
4446         * string/tst-svc2.c: New file.
4448         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4450         * locale/iso-639.def: Add Min Nan.
4452 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4454         [BZ #9948]
4455         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4457 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4459         * elf/dl-sysdep.c (auxvars): Compress data structure.
4461         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4462         STT_GNU_IFUNC handling.
4463         (elf_machine_rela): Likewise.
4465 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4467         * config.h.in (USE_MULTIARCH): Define.
4468         * configure.in: Handle --enable-multi-arch.
4469         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4470         (_dl_fixup_profile): Likewise.
4471         * elf/do-lookup.c (dl_lookup_x): Likewise.
4472         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4473         * elf/elf.h (STT_GNU_IFUNC): Define.
4474         * include/libc-symbols.h (libc_ifunc): Define.
4475         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4476         framework in init-arch.h to get CPUID values.
4477         * sysdeps/x86_64/multiarch/Makefile: New file.
4478         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4479         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4480         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4482         * config.make.in (experimental-malloc): Define.
4483         * configure.in: Handle --enable-experimental-malloc.
4484         * malloc/Makefile: Handle experimental-malloc flag.
4485         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4486         * malloc/arena.c: Likewise.
4487         * malloc/hooks.c: Likewise.
4488         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4490 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4492         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4493         prediction.  A few size optimizations.
4495 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4497         * time/tzset.c: Optimize a bit for size.
4499 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4501         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4502         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4504         * elf/sprof.c: Avoid warning about multi-line comment.
4506 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4508         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4509         DST name.
4510         * time/tst-posixtz.c: Add tests for quoted timezone names.
4512 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4514         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4515         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4516         200809L instead of 200112L.
4517         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4518         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4520         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4521         instead of __quick_exit_funcs to __run_exit_handlers.
4522         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4523         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4524         (__cxa_at_quick_exit): Remove attribute_hidden.
4525         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4526         to __run_exit_handlers.
4527         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4528         attribute_hidden.
4530 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4532         * po/id.po: Update from translation team.
4534 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4537         .machine push; .machine "power6" and .machine pop around mtfsf
4538         insns outside of _ARCH_PWR6 define.
4539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4541         Likewise.
4542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4543         Likewise.
4544         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4545         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4546         relax_fenv_state): Likewise.
4548 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4550         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4551         cxa_at_quick_exit.
4552         (static-only-routines): Add at_quick_exit.
4553         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4554         GLIBC_2.10.
4555         * stdlib/quick_exit.c: New file.
4556         * stdlib/at_quick_exit.c: New file.
4557         * stdlib/cxa_at_quick_exit.c: New file.
4558         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4559         it appropriately.
4560         (__internal_atexit): New function.
4561         (__new_exitfn): Now takes parameter to point to the list to use.
4562         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4563         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4564         (exit): ...here.  Just call __run_exit_handlers appropriately.
4565         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4566         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4567         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4568         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4570         * po/id.po: Update from translation team.
4572 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4574         * po/ru.po: Update from translation team.
4576 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4578         * po/nl.po: Update from translation team.
4580 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4582         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4583         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4584         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4585         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4586         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4587         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4588         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4590         * po/pl.po: Update from translation team.
4592 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4594         [BZ #7083]
4595         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4596         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4597         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4598         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4599         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4600         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4601         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4602         for GLIBC_2.10.
4603         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4604         Add fallocate and fallocate64.
4606         * io/fcntl.h: Pretty printing.
4608 2009-03-02  Richard Guenther  <rguenther@suse.de>
4610         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4611         attribute also for non-C99 inline semantics variant.
4613 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4615         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4616         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4617         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4618         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4620         Likewise.
4621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4622         Likewise.
4624 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4626         * po/cs.po: Update from translation team.
4628 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4630         * po/bg.po: Update from translation team.
4631         * po/sv.po: Likewise.
4632         * po/fi.po: Likewise.
4633         * po/vi.po: Likewise.
4635 2009-02-27  Roland McGrath  <roland@redhat.com>
4637         * Makeconfig (%.v.i): Depend on Makeconfig.
4638         Exclude % lines from initial #-comment removal.
4640 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4642         * po/ko.po: Update from translation team.
4644 2009-02-26  Roland McGrath  <roland@redhat.com>
4646         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4647         avoids unused warning.
4649 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4650             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4652         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4653         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4654         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4655         and asm/user.h.  Include asm/ptrace.h.
4656         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4657         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4658         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4659         Undefine.
4660         (start_thread): Don't undefine.
4661         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4662         Define.
4664 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4666         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4667         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4668         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4669         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4670         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4671         200112L to 200809L.
4672         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4673         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4674         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4675         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4676         _SC_THREAD_ROBUST_PRIO_PROTECT.
4677         * posix/unistd.h: fexecve is in POSIX 2008.
4678         * time/time.h: strftime_l is in POSIX 2008.
4679         * io/sys/stat.h: futimens is in POSIX 2008.
4680         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4681         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4682         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4683         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4684         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4685         open_memstream, and vdprintf are in POSIX 2008.
4687 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4689         * include/features.h: Define macros for XPG7/POSIX 2008.
4690         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4691         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4692         POSIX 2008.
4693         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4694         * locale/xlocale.h: Define locale_t type.
4695         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4696         in POSIX 2008.  Don't define locale_t here.
4697         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4698         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4699         UTIME_OMIT only with __USE_ATFILE.
4700         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4701         * stdio-common/psiginfo.c: New file.
4702         * stdio-common/psiginfo-data.h: New file.
4703         * stdio-common/psiginfo-define.h: New file.
4704         * stdio-common/Makefile (routines): Add psiginfo.
4705         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4706         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4707         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4708         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4709         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4710         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4711         * io/sys/stat.h: Move mknodat definition into same conditional as
4712         mknod.
4713         * time/sys/time.h: futimesat is not among the functions accepted
4714         into the POSIX standard.
4716         * include/features.h: If no feature selection given and we select
4717         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4718         * posix/Versions: Export __posix_getopt.
4719         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4720         Use it to alternatively initialize __posixly_correct.
4721         (_getopt_internal_r): Take addition parameter.  Pass on to
4722         _getopt_initialize.
4723         (_getopt_internal): Take addition parameter.  Pass on to
4724         _getopt_internal_r.
4725         (getopt): Pass additional zero to _getopt_internal.
4726         (__posix_getopt): New function.
4727         * posix/getopt.h: Add redirection for getopt.
4728         * posix/getopt1.c (getopt_long): Pass additional zero to
4729         _getopt_internal.
4730         (getopt_long_only): Likewise.
4731         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4732         (_getopt_long_only_r): Likewise.
4733         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4734         _getopt_internal_r.
4736 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4738         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4739         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4740         * sysdeps/posix/sysconf.c (__sysconf): Handle
4741         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4742         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4744 2009-02-24  Roland McGrath  <roland@redhat.com>
4746         [BZ #9895]
4747         * README.template: Reworded not to use substituted version number.
4748         Renamed to ...
4749         * README: ... here (no longer generated).
4750         * Makefile (README): Target removed.
4752 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4754         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4755         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4756         instead.
4758         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4760         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4762 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4764         * po/bg.po: Update from translation team.
4766 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4768         * stdlib/monetary.h: Uglify function parameter names.
4769         * sunrpc/rpc/pmap_clnt.h: Likewise.
4770         * sunrpc/rpc/svc.h: Likewise.
4771         * sunrpc/rpc/xdr.h: Likewise.
4772         * sunrpc/rpc/clnt.h: Likewise.
4773         * resolv/netdb.h: Likewise.
4774         * resolv/arpa/nameser.h: Likewise.
4775         * resolv/resolv.h: Likewise.
4776         * argp/argp.h: Likewise.
4777         * locale/langinfo.h: Likewise.
4778         * io/sys/stat.h: Likewise.
4779         * posix/spawn.h: Likewise.
4780         * nis/rpcsvc/nislib.h: Likewise.
4781         * malloc/obstack.h: Likewise.
4782         * sysdeps/ia64/bits/link.h: Likewise.
4783         * sysdeps/i386/bits/link.h: Likewise.
4784         * sysdeps/s390/bits/link.h: Likewise.
4785         * sysdeps/powerpc/bits/link.h: Likewise.
4786         * sysdeps/x86_64/bits/link.h: Likewise.
4787         * sysdeps/sparc/bits/link.h: Likewise.
4788         * sysdeps/sh/bits/link.h: Likewise.
4789         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4790         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4791         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4792         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4794 2008-12-01  Fredrik Unger  <fred@tree.se>
4796         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4797         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4798         _FP_UNPACK_RAW_2, fix up first argument.
4800 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4802         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4803         (GET_NPROCS_PARSER): Change parameters and use next_line.
4804         (__get_nprocs): Rewrite to not use stdio routines.
4805         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4806         Change parameters and use next_line.
4808 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4810         [BZ #5381]
4811         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4812         Change mempool_alloc prototype.
4813         * nscd/mem.c (gc): Don't handle mem_in_flight.
4814         (mempool_alloc): Third parameter now only indicates whether this is the
4815         first call (to allocate data) or not.  If it is, get db rdlock.
4816         Release it on error.  Don't handle mem_in_flight.
4817         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4818         Adjust third parameter of mempool_alloc calls.
4819         Nothing to do here in case mempool_alloc fails.
4820         Avoid local variable shadowing parameter.  No need to get db rdlock
4821         before calling cache_add.
4822         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4823         no mem_in_flight array anymore.
4824         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4825         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4826         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4827         in case mempool_alloc fails. No need to get db rdlock before calling
4828         cache_add.
4829         * nscd/hstcache.c (cache_addhst): Likewise.
4830         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4831         * nscd/servicescache.c (cache_addserv): Likewise.
4832         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4834 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4836         * po/lt.po: Update from translation team.
4838 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4840         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4841         defined, allow additional data to be added using the optional
4842         MORE_ELF_HEADER_DATA macro.
4843         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4844         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4846 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4848         * include/atomic.h: Define catomic_and if not already defined.
4849         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4850         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4852 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4854         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4855         Change all callers.
4856         (_int_realloc): Likewise.  Third argument is now padded size
4857         All _int_* functions are now static.
4859         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4860         * malloc/arena.c: Likewise.
4861         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4862         functions.
4864         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4865         easily.
4867         * malloc/malloc.c: Add branch prediction for use of the hooks.
4869         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4871 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4873         [BZ #7095]
4874         * bits/confname.h: Add SUSv7 macros for getconf environments.
4875         * bits/environments.h: Likewise.
4876         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4877         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4878         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4879         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4880         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4881         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4882         * posix/getconf.c: Likewise.
4883         * posix/sysconf.c: Likewise.
4884         * sysdeps/posix/sysconf.c: Likewise.
4885         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4886         environments.
4888 2009-01-16  Petr Baudis  <pasky@suse.cz>
4890         [BZ #9753]
4891         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4892         even if we currently have zero nscount.
4894 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4896         [BZ #9781]
4897         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4898         the input line is too long.
4900         * po/Makefile (libc.pot): Add f_print as function taking c-format
4901         parameter.
4903         * debug/xtrace.sh: Unify translatable messages.
4904         * elf/ldd.bash.in: Likewise.
4905         * elf/sprof.c: Likewise.
4906         * locale/programs/locale.c: Likewise.
4907         * malloc/memusage.sh: Likewise.
4908         * nss/getent.c: Likewise.
4910 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4912         * debug/pcprofiledump.c (print_version,
4913         argp_program_version_hook): New function.
4914         * elf/ldconfig.c (more_help): New function.
4915         (argp): Use it.
4916         * elf/sln.c (usage): New function.
4917         (main): Support --help and --version.
4918         * malloc/memusagestat.c (print_version): New function.
4919         (argp_program_version_hook): New variable.
4920         * nscd/nscd.c (more_help): New function.
4921         (argp): Use it.
4922         * posix/getconf.c (main): Send --version output to stdout.
4923         Support --help.
4924         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4925         arguments.  All callers changed.
4926         (print_version): New function.
4927         (parseargs): Support --help and --version.
4928         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4929         changed.
4930         (print_version): New function.
4931         (main): Use getopt_long.  Support --help and --version.
4932         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4933         --version.
4935 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4937         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4938         (update_data): Fix handling of wrapping back
4939         to the beginning of the buffer.
4941         [BZ #9823]
4942         * stdio-common/psignal.c (psignal): Fix test for empty string.
4944 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4946         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4947         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4948         move _null_auth to .rodata.
4950         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4951         value of 24.
4953         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4955         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4956         today than when the original code was written.  Use larger
4957         buffers.  This also makes it unnecessary to have stat information,
4958         if this causes extra efforts.
4959         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4960         __alloc_dir.
4962 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4964         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4965         is set.
4966         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4967         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4968         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4969         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4970         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4971         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4973 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4975         * po/ru.po: Update from translation team.
4977 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4979         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4980         Add _tid slot to maintain consistency with kernel.
4982 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4984         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4985         incomplete characters at end of input buffer.
4986         * libio/Makefile (tests): Add tst-fgetwc.
4987         * libio/tst-fgetwc.c: New file.
4988         * libio/tst-fgetwc.input: New file.
4990 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4992         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4994 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4996         [BZ #9793]
4997         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4998         *OUTBUFSTART unless the whole output fit into the buffer.
4999         * iconv/Makefile (tests): Add tst-iconv4.
5000         * iconv/tst-iconv4.c: New file.
5002 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
5004         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
5005         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5007 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
5009         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
5010         newer linker scripts.
5012 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
5014         [BZ #7040]
5015         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
5016         inotify_rm_watch should have type int.
5018 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
5020         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5021         Make aligned_restore_vmx a local symbol.
5022         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
5023         Likewise.
5025 2009-01-30  Andreas Jaeger  <aj@suse.de>
5027         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
5028         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
5029         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
5030         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
5031         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
5032         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
5033         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
5035 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
5037         [BZ #9726]
5038         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
5039         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
5041 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
5043         [BZ #9726]
5044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5045         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5047         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
5049 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
5051         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
5052         memcpy instead of memcmp.
5053         (_dl_setup_pointer_guard): Likewise.
5055 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
5057         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
5058         manipulated brk, use malloc_printerr.
5059         * misc/sbrk.c (__sbrk): Better error handling for nonsense
5060         requests.
5062 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
5064         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
5065         rindex): For C++ add inlines so that they can be recognized as
5066         builtins.
5067         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
5069 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
5070             Jakub Jelinek  <jakub@redhat.com>
5072         * string/string.h: Define correct C++ prototypes for gcc 4.4.
5073         * wcsmbs/wchar.h: Likewise.
5075 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
5077         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
5078         (stackinfo_sub_sp): Define.
5080 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5082         [BZ #9750]
5083         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
5084         * include/alloca.h (alloca_account): Define.
5085         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5086         (stackinfo_sub_sp): Define.
5088         * nscd/connections.c (nscd_init): If database file access fails
5089         check whether this is due to permission problems and bail in that
5090         case.
5092         [BZ #9741]
5093         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5094         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5096 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5098         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5099         Add "t" to clobber list.
5100         (INTERNAL_SYSCALL_NCS): Likewise.
5102 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5104         * nss/getent.c (print_networks): Don't print comma between aliases.
5106 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
5108         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5110         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5111         the hash table.
5112         * misc/Makefile (tests): Add bug-hsearch1.
5113         * misc/bug-hsearch1.c: New file.
5115 2009-01-22  Roland McGrath  <roland@redhat.com>
5117         * Makeconfig (%.v.i): Strip trailing # comments,
5118         not only whole-line comments.
5120 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
5122         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5123         one parameter.  If non-NULL use it to initialize return value.
5124         (_dl_setup_pointer_guard): New function.
5125         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5126         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5127         * elf/rtld.c (security_init): Pass _dl_random to
5128         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
5129         pointer_chk_guard.
5130         * elf/dl-sysdep.c (_dl_random): New variable.
5131         (_dl_sysdep_start): Handle AT_RANDOM.
5132         (_dl_show_auxv): Likewise.
5133         * elf/dl-support.c (_dl_random): New variable.
5134         (_dl_aux_init): Handle AT_RANDOM.
5135         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5136         to _dl_setup_stack_chk_guard.
5138         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5140 2009-01-10  Roland McGrath  <roland@redhat.com>
5142         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5144 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
5146         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5148         [BZ #9706]
5149         * nss/nss_files/files-parse.c (strtou32): New function.
5150         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5151         across 32-bit and 64-bit platforms.
5152         (INT_FIELD_MAYBE_NULL): Likewise.
5154 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
5156         [BZ #9720]
5157         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5158         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5159         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5160         Likewise.
5162 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
5164         [BZ #697]
5165         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5166         being NULL also if there are no backreferences.
5167         * posix/rxspencer/tests: Add testcases.
5169 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
5171         [BZ #9697]
5172         * posix/bug-regex17.c: Add testcases.
5173         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5174         handling.
5176 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5178         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5179         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5180         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5181         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5182         for elf subdir.
5183         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5184         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5185         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5186         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5187         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5188         * sysdeps/unix/sysv/linux/s390/Versions: New file.
5190 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
5192         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5193         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5194         re_string_skip_chars, re_string_reconstruct): Likewise.
5195         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5197 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
5199         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5200         adjust the buffer alignment.
5202 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5204         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5205         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5206         net/route.h.
5208         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5209         flavor to description only when flavor is not NULL.
5211         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5212         mutex after SIGIO/SIGURG lookup loop.
5214 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5216         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5218 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
5220         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5221         handling.
5223 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
5225         * sysdeps/unix/sysv/linux/kernel-features.h
5226         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5228         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5229         if no output is written.
5231         * version.h: Bump to 2.10 development.
5233         * posix/getconf.c: Update copyright year.
5234         * nss/getent.c: Likewise.
5235         * iconv/iconvconfig.c: Likewise.
5236         * iconv/iconv_prog.c: Likewise.
5237         * elf/ldconfig.c: Likewise.
5238         * catgets/gencat.c: Likewise.
5239         * csu/version.c: Likewise.
5240         * elf/ldd.bash.in: Likewise.
5241         * elf/sprof.c (print_version): Likewise.
5242         * locale/programs/locale.c: Likewise.
5243         * locale/programs/localedef.c: Likewise.
5244         * nscd/nscd.c (print_version): Likewise.
5245         * debug/xtrace.sh: Likewise.
5246         * malloc/memusage.sh: Likewise.
5247         * malloc/mtrace.pl: Likewise.
5248         * debug/catchsegv.sh: Likewise.
5250 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5252         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5253         script.
5255 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5257         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5258         gethostbyname4_r function call succeeded, just leave the loop.
5260         [BZ #9694]
5261         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5262         very end.
5263         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5264         * wctype/Makefile (tests): Add bug-wctypeh.
5265         * wctype/bug-wctypeh.c: New file.
5267         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5268         LOCALDOMAIN is defined.
5269         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5271         * sysdeps/x86_64/bits/select.h: New file.
5273         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5275 2008-12-21  Bruno Haible  <bruno@clisp.org>
5277         [BZ #9677]
5278         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5279         if no output is written.
5281 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5283         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5284         libc internal symbol __dup2 to avoid access through the PLT.
5286 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5288         [BZ #6545]
5289         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5290         available only for __USE_GNU.
5292         * inet/Makefile (tests): Add tst-getni2.
5293         * inet/tst-getni2.c: New file.
5295         [BZ #7080]
5296         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5297         NULL when NI_NAMEREQD is set.
5298         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5299         * inet/Makefile (tests): Add tst-getni1.
5300         * inet/tst-getni1.c: New file.
5302 2008-12-03  Petr Baudis  <pasky@suse.cz>
5304         [BZ #7067]
5305         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5306         instead of prune_lock.
5307         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5308         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5310 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5312         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5313         use.
5315         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5316         handling.
5318         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5319         after reading name server list.
5321         [BZ #7058]
5322         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5323         handling for host name aliases.
5325 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5327         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5328         instead of doing things manually.
5330 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5332         * posix/regex_internal.h (build_wcs_upper_buffer):
5333         Return type is reg_error_t.
5335 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5337         * posix/globtest.sh: Use mktemp to create temporary file and
5338         directory.
5340         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5341         sets correctly.
5342         (__CPU_CLR_S): Likewise.
5343         (__CPU_ISSET_S): Likewise.
5345 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5346             Ulrich Drepper  <drepper@redhat.com>
5348         * scripts/firstversion.awk: Use custom comparison function to compare
5349         version numbers.
5350         * scripts/versions.awk: Use sort invocation which can handle
5351         multi-digit sub-version numbers.
5353 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5355         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5356         * locale/iso-639.def: Add Chhattisgarhi entry.
5358 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5360         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5361         ESRCH return value.
5362         (_nss_dns_gethostbyname4_r): Likewise.
5363         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5364         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5365         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5366         the no_data variable.
5368         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5369         information at the correct index.
5371         * socket/sys/socket.h: Declare accept4.
5372         * socket/accept4.c: New file.
5373         * sysdeps/unix/sysv/linux/accept4.c: New file.
5374         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5375         * socket/Makefile (routines): Add accept4.
5376         * socket/Versions: Export accept4 with version GLIBC_2.10.
5377         * socket/paccept.c: Removed.
5378         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5379         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5380         * Versions.def: Define GLIBC_2.10 for libc.
5381         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5383         * nscd/connections.c: Use accept4.
5385         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5387 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5389         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5390         flag already set.
5392         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5393         not exist.
5394         * stdlib/Makefile (tests): Add tst-unsetenv1.
5395         * stdlib/tst-unsetenv1.c: New file.
5397 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5399         * login/utmp_file.c (file_writable): New variable.
5400         (setutent_file): Don't try to open file for writing.
5401         (pututline_file): Before writing, make descriptor writable if
5402         necessary.
5404 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5406         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5407         to IPv4 or IPv6 if an interface has been found.
5409 2008-11-26  Roland McGrath  <roland@redhat.com>
5411         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5412         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5414         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5415         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5416         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5418         * elf/elf.h (NT_386_IOPERM): New macro.
5419         (NT_PPC_VSX): New macro.
5421 2008-11-25  Roland McGrath  <roland@redhat.com>
5423         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5424         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5425         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5426         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5427         Subdirectories moved to ports repository.
5428         * configure.in (base_machine): Remove alpha case.
5430 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5432         * sysdeps/mach/strerror_l.c: New file.
5434 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5436         [BZ #6411]
5437         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5438         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5439         magic numbers.
5440         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5441         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5442         (relax_fenv_state): Same as above.
5443         (FPSCR_29): Reserve bit in ISA 2.05.
5444         (FPSCR_NI): Provide define for compat.
5445         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5446         magic numbers.
5447         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5448         magic numbers.
5449         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5450         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5451         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5452         access to hwcap to account for hwcap size increase to uint64_t.
5453         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5454         Likewise.
5455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5456         (*setcontext): Likewise.
5457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5458         New file.
5459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5460         New file.
5461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5462         (*setcontext): dynamically select mtfsf insn based on
5463         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5464         increase to uint64_t.
5465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5466         (*swapcontext): dynamically select mtfsf insn based on
5467         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5468         increase to uint64_t.
5469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5470         New file.
5471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5472         New file.
5473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5474         (*setcontext): dynamically select mtfsf insn based on
5475         PPC_FEATURE_HAS_DFP.
5476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5477         (*swapcontext): dynamically select mtfsf insn based on
5478         PPC_FEATURE_HAS_DFP.
5480 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5482         * version.h: Bump for 2.9 release.
5483         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5485         [BZ #7029]
5486         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5487         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5488         all the rounding.
5490 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5492         [BZ #7009]
5493         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5494         unknown request types for now.
5496 2008-11-11  Roland McGrath  <roland@redhat.com>
5498         * sysdeps/x86_64/configure: New file.
5500         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5501         * configure: Regenerated.
5503 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5505         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5506         correct instruction to remove the stack frame.
5508 2008-11-03  Michael Matz  <matz@suse.de>
5510         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5511         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5513 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5515         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5516         Remove.
5518         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5519         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5520         of the thread variable instead of void *.
5521         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5522         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5523         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5524         __libc_tsd_define arguments.
5525         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5526         __libc_tsd_address arguments.  Remove union hack.
5527         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5528         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5529         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5530         Adjust __libc_tsd_{set,get} arguments.
5531         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5532         __libc_tsd_define arguments.
5533         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5534         arguments.
5535         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5536         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5537         (LOCALE): Adjust __libc_tsd_define arguments.
5538         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5539         arguments.
5540         (LOCALE): Adjust __libc_tsd_define arguments.
5541         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5542         arguments.
5543         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5544         arguments.
5546 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5548         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5549         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5551 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5553         [BZ #6966]
5554         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5556 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5557             Ulrich Drepper  <drepper@redhat.com>
5559         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5560         definition for GCC 3.1 and later.
5562 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5564         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5565         refetch dtv, as it might have changed.
5566         * elf/Makefile: Add rules to build and run tst-tls18.
5567         * elf/tst-tls18.c: New test.
5568         * elf/tst-tlsmod18a.c: New file.
5570 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5572         [BZ #6875]
5573         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5575 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5577         [BZ #6867]
5578         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5580         [BZ #6919]
5581         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5582         Fix length of copy operation.
5584 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5586         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5587         and fix its calling convention.
5589 2008-10-07  Andreas Schwab  <schwab@suse.de>
5591         [BZ #6942]
5592         * resolv/res_send.c (send_vc): Fix last change.
5593         (send_dg): Align here as well.
5595 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5597         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5598         return value in case rlimit is RLIM_INFINITY.
5600         [BZ #6947]
5601         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5602         for UL_SETFSIZE.
5603         * resource/Makefile (tests): Add bug-ulimit1.
5604         * resource/bug-ulimit1.c: New file.
5606         [BZ #6974]
5607         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5608         without dot.  Properly terminate the string with a null byte.
5609         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5611         [BZ #6980]
5612         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5613         negative sizees.
5614         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5615         negative __size.
5617         [BZ #6995]
5618         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5620 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5622         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5623         abort if there is no initgroups_dyn function.
5625         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5626         result if any of the queries really provided an answer.
5628 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5630         * po/lt.po: Update from translation team.
5632 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5634         * po/id.po: Update from translation team.
5636 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5638         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5639         Fix tests for existence of second reply.
5641 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5643         * po/id.po: New file.
5644         Contributed by the Indonesian translation team.
5646 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5648         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5649         initialization.
5651 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5653         * elf/Makefile: Add rules to build and run tst-tls17.
5654         * elf/tst-tls17.c: New test.
5655         * elf/tst-tlsmod17a.c: New file.
5656         * elf/tst-tlsmod17b.c: Likewise.
5658 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5660         * stdlib/divmod_1.c: Use correct type for dummy variable.
5661         * stdlib/mod_1.c: Likewise.
5663 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5665         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5667 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5669         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5670         __nonnull order for C++.
5671         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5672         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5674 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5676         * stdlib/longlong.h: Update from GCC.
5678 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5679             David S. Miller  <davem@davemloft.net>
5681         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5682         make sure any registers used with 64-bit 'branch-on-register'
5683         instructions have their top 32-bits clear.
5684         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5685         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5687 2008-09-18  Andreas Schwab  <schwab@suse.de>
5689         [BZ #6942]
5690         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5691         Properly handle partial reads.
5693 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5695         * elf/elf.h (STO_MIPS_PLT): New.
5696         (R_MIPS_COPY): New.
5697         (R_MIPS_JUMP_SLOT): New.
5698         (R_MIPS_NUM): Redefine to 128.
5699         (DT_MIPS_PLTGOT): New.
5700         (DT_MIPS_RWPLT): New.
5701         (DT_MIPS_NUM): Redefine to 0x35.
5703 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5705         * timezone/africa: Update from tzdata2008f.
5706         * timezone/asia: Likewise.
5707         * timezone/australasia: Likewise.
5708         * timezone/europe: Likewise.
5709         * timezone/leapseconds: Likewise.
5710         * timezone/northamerica: Likewise.
5711         * timezone/southamerica: Likewise.
5712         * timezone/zone.tab: Likewise.
5714 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5716         * nscd/connections.c: Disable use of paccept for now.
5718 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5720         * socket/Versions: Remove paccept export for GLIBC_2.9.
5721         * socket/Makefile (routines): Remove paccept.
5722         * socket/sys/socket.h: Remove paccept declaration.
5724         * po/sv.po: Update from translation team.
5726 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5728         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5729         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5731 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5733         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5734         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5736 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5738         * sunrpc/rpc/svc.h: Declare svcfd_create.
5739         Patch by Michael Solberg <msolberg@redhat.com>.
5741 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5742             Ulrich Drepper  <drepper@redhat.com>
5744         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5745         _int_valloc fails.
5746         (public_pVALLOc): Likewise.
5748 2008-09-02  Andreas Jaeger  <aj@suse.de>
5750         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5751         commit.
5753 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5755         [BZ #6860]
5756         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5758 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5760         * Makefile (check-data): Check data directory in add-ons.
5761         * elf/Makefile (check-data): Likewise.
5763 2008-08-18  Roland McGrath  <roland@redhat.com>
5765         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5766         * configure: Regenerated.
5767         * config.make.in (cflags-cpu): New substituted variable.
5768         (with-cpu): Variable removed.
5769         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5771 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5773         [BZ #6845]
5774         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5775         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5776         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5777         redundant.  Functions which call floating point assembler operations
5778         should go into a sysdeps powerpc/fpu directory.
5780 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5782         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5783         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5785 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5787         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5789         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5790         change related to AT_EXECFN.  We cannot use that string.
5791         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5792         _dl_execfn member.
5793         * elf/dl-support.c: Remove _dl_execfn variable.
5794         (_dl_aux_init): Remove handling of AT_EXECFN.
5795         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5796         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5798 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5800         [BZ #6544]
5801         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5802         byte gets added to writes and seeks from the end use the length of
5803         the buffer and not the currently terminating NUL byte.
5805         [BZ #6634]
5806         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5807         Set to true if locking failed.
5808         (getutid_r_file): Adjust caller.
5809         (pututline_file): Likewise.  Return NULL in this case.
5810         Patch mostly by halesh.s@gmail.com.
5812 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5814         [BZ #6589]
5815         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5816         Define.
5817         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5819 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5821         [BZ #6839]
5822         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5823         macro since it is now available in elf/dynamic-link.h.
5825 2008-08-12  Roland McGrath  <roland@frob.com>
5827         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5828         in case used outside of libc.
5829         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5831 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5833         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5834         directly instead of going through dn_comp.
5836 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5838         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5839         Fix asm constraints.
5841 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5843         [BZ #6790]
5844         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5845         (IPV6_PMTUDISC_PROBE): Likewise.
5847 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5849         [BZ #6791]
5850         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5852 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5853             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5855         [BZ #6817]
5856         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5857         Added the members 'vsx' and 'arch_2_06'.
5858         (_dl_powerpc_platforms): Add the member 'power7'.
5859         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5860         to reflect the changes required by VSX and ISA 2.06.
5861         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5862         'power7'.
5863         Defined PPC_PLATFORM_POWER7.
5864         (_dl_string_platform): Add support for POWER7.
5865         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5866         capability and ISA 2.06.
5868 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5870         [BZ #6824]
5871         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5872         macro to detect use of 128 bit long double.
5873         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5875 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5877         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5879         [BZ #5794]
5880         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5881         parameters.
5882         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5883         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5885 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5887         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5888         guaranteed to be large enough to read inotify event.  Ignore
5889         EAGAIN error.  Better error message.  Add branch predicition.
5890         (main_loop_epoll): Likewise.
5892 2008-08-02  Roland McGrath  <roland@frob.com>
5894         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5895         Add memory clobbers.
5897 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5899         * manual/arith.texi: Avoid @strong{Note:}.
5900         * manual/creature.texi: Likewise.
5901         * manual/filesys.texi: Likewise.
5902         * manual/math.texi: Likewise.
5903         * manual/memory.texi: Likewise.
5904         * manual/resource.texi: Likewise.
5905         * manual/syslog.texi: Likewise.
5906         * manual/time.texi: Likewise.
5908         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5909         to prevent warning.
5911 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5913         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5914         new epoll_create1 interface.
5915         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5916         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5917         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5919         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5920         (NS_GET32): Likewise.
5922         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5923         syscalls, too.
5925         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5926         use the AT_EXECFN value if it is no absolute path.
5927         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5928         __ASSUME_AT_EXECFN.
5930         * Versions.def: Add GLIBC_2.9 to libresolv.
5931         * include/resolv.h: Remove hidden proto declarations for __ns_*
5932         functions.  Add them for __dn_count_labels and __p_secstodate.
5933         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5934         Define ns_msg_getflags macro here.
5935         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5936         and __p_secstodate.
5937         * resolv/Versions: Export functions from <arpa/nameser.h> from
5938         libresolv in version GLIBC_2.9.
5939         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5940         hidden definitions.
5941         * resolv/ns_netint.c: Likewise.
5942         * resolv/ns_parse.c: Likewise.
5943         * resolv/ns_print.c: Likewise.
5944         * resolv/ns_samedomain.c: Likewise.
5945         * resolv/ns_ttl.c: Likewise.
5946         * resolv/arpa/nameser_compat.h: Likewise.
5947         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5948         function calls.
5949         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5950         instead of ns_get16.
5951         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5952         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5953         (gaih_getanswer_slice): Likewise.
5954         * resolv/Makefile (libresolv-routines): Add ns_date.
5955         * resolv/ns_date.c: New file.
5957         * elf/Makefile (check-localplt.out): Also check libresolv and
5958         libcrypt.
5960 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5962         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5963         __ASSUME_O_CLOEXEC.
5965 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5967         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5968         buffer passed to NSS functions.
5970         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5972         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5973         Define.
5975         * misc/syslog.c (openlog_internal): Fix compile problem.
5977 2008-07-28  Roland McGrath  <roland@redhat.com>
5979         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5981 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5983         * io/ftw.c (add_object): Remove inline to avoid warning.
5985         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5987         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5988         Use it instead of locally defined resplen2 variable.
5989         (res_nsend): Adjust for __libc_res_nsend interface change.
5990         (send_vc): Initialize *resplen2 if necessary.  Read length of
5991         package into an appropriately aligned variable.  Store converted length
5992         in new variable and use it appropriately.
5993         Add branch prediction help.
5994         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5995         and pass it on to __libc_res_nsend.  Adjust all callers.
5996         (__libc_res_nsearch): Likewise.
5997         (__libc_res_nqeurydomain): Likewise.
5998         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5999         change.
6000         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
6001         Define resplen2 variable and pass it to __libc_res_nsearch and then
6002         to gaih_getanswer.
6003         (getanswer_r): In case of incorrect DNS data don't overread buffer.
6004         Add branch prediction.
6005         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
6006         (gaih_getanswer): Don't decode second slice if first one failed due
6007         to a too small buffer.  Don't let not found status of second
6008         decoder shadow results of the first.
6009         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
6010         and __libc_res_nquery interface changes
6011         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
6012         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
6013         __libc_res_nsearch, and __libc_res_nsend.
6014         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
6015         change.
6016         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
6017         __libc_res_nsearch interface changes.
6019 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
6021         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
6023         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
6024         file descriptors with close-on-exec set.
6025         (exec_comm_child): Fix the case where the write end of the pipe is
6026         STDOUT_FILENO already.  In case it is, clear close-on-exec.
6028         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
6029         * io/pipe2.c: Likewise.
6030         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
6031         instead of __ASSUME_PACCEPT.
6032         * include/unistd.h: Declare __have_pipe2.
6033         * libio/iopopen.c: Implement "e" flag.
6034         * libio/Makefile (tests): Add tst-popen1.
6035         * libio/tst-popen1.c: New file.
6037         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
6038         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6040 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
6042         [BZ #6771]
6043         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
6044         success call of _IO_SEEKOFF or calls which failed because the
6045         descriptor is for a pipe.
6047         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
6048         magic number.
6050         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
6052         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
6053         F_SETFD use if we know fopen set the flag.
6055         * login/utmp_file.c (setutent_file): Minor optimization in case
6056         O_CLOEXEC is available.
6058 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
6060         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
6061         * elf/Makefile: Use pie-ccflag variable.
6062         * nscd/Makefile: Likewise.
6063         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
6065 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
6067         [BZ #6724]
6068         * Versions.def: Add GLIBC_2.9 version tag for libutil.
6069         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
6070         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
6071         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
6072         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
6073         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
6074         utmp32, utmpx32 and login32.
6075         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
6076         versions of struct utmp functions to libc and libutil.
6077         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
6078         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
6079         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
6080         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
6081         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
6082         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
6083         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
6084         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
6085         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6086         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6087         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6088         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6089         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6090         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6091         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6092         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6093         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6094         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6095         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6096         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6097         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6098         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6100 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
6102         * scripts/gen-as-const.awk: Generate more widely usable code by
6103         using 64-bit arithmetic.
6105         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6106         the same treatment as narrow output code in last patch.
6108         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6110         [BZ #6763]
6111         * elf/dl-load.c (local_strdup): Remove inline.
6112         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6113         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6114         part of the object.
6116         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6118 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
6120         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6121         the new syscalls, too.
6123         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6124         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6126         [BZ #6698]
6127         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6128         parameter for end of buffer.  If temporary copy is too large use
6129         malloc.
6130         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6131         interface change.
6132         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
6133         string rewrite when allocating buffer.
6135         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6136         syscalls, too.
6138         * nscd/connections.c (nscd_init): Clean up fcntl call.
6140         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6141         SOCK_NONBLOCK if possible.
6143         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6144         SOCK_CLOEXEC if available.
6146         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6147         __libc_clntudp_bufcreate_internal.
6148         * include/sys/socket.h: Declare __have_sock_cloexec.
6149         * socket/Makefile (aux): Add have_sock_cloexec.
6150         * socket/have_sock_cloexec.c: New file.
6151         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6152         __libc_clntudp_bufcreate.
6153         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6154         which takes an additional parameter.  Create socket with non-blocking
6155         mode and close-on-exec flag set, if wanted.
6156         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6157         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6158         instead of clntudp_create.  The socket has already the close-on-exec
6159         flag set if SOCK_CLOEXEC is defined.
6161 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
6163         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6164         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6165         appropriate.
6166         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6167         non-blocking mode by using socket, paccept, and inotify_init1.
6169         * Versions.def (glibc): Add GLIBC_2.9.
6170         * io/Makefile (routines): Add dup3 and pipe2.
6171         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6172         * io/dup3.c: New file.
6173         * io/pipe2.c: New file.
6174         * posix/unistd.h: Declare dup3 and pipe2.
6175         * socket/Makefile (routines): Add paccept.
6176         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6177         * socket/paccept.c: New file.
6178         * socket/sys/socket.h: Declare paccept.
6179         * sysdeps/unix/syscalls.list: Add entry for dup3.
6180         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6181         epoll_create2 and inotify_init1.
6182         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6183         * sysdeps/unix/sysv/linux/paccept.c: New file.
6184         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6185         possible.
6186         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6187         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6188         inotify_init1, and pipe2 entries.
6189         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6190         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6191         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6192         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6193         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6194         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6195         SOCK_NONBLOCK.
6196         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6197         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6198         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6199         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6200         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6201         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6202         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6203         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6204         EPOLL_NONBLOCK.  Declare epoll_create2.
6205         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6206         EFD_NONBLOCK.
6207         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6208         IN_NONBLOCK.  Declare inotify_init1.
6209         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6210         SFD_NONBLOCK.
6211         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6212         TFD_NONBLOCK.
6214         * elf/elf.h: Define AT_EXECFN.
6215         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6216         LD_ORIGIN_PATH.
6217         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6218         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
6219         if __ASSUME_AT_EXECFN is defined.
6220         (_dl_aux_init): Handle AT_EXECFN.
6221         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6222         for 2.6.27 and up.
6223         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6224         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6225         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6226         _dl_execfn if available and avoid compatibility code if
6227         __ASSUME_AT_EXECFN is defined.
6229         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6230         _dl_discover_osversion only for older kernels.
6232 2008-07-22  Roland McGrath  <roland@frob.com>
6234         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6236 2008-07-21  Roland McGrath  <roland@frob.com>
6238         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6239         returned too much data out of line.
6241 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
6243         * locale/setlocale.c (setname): Remove inline to avoid compiler
6244         warning.
6246         [BZ #6712]
6247         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6249 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6251         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6252         doesn't manage to write anything, fail.
6254         * malloc/hooks.c (__malloc_check_init): Remove printf.
6256 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6258         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6260 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6262         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6263         from inotify.
6264         (main_loop_epoll): Likewise.
6266 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6268         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6270         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6271         if DEBUG is defined.
6273         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6274         query.  Adjust buffer size computation for padding.
6276 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6278         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6279         * stdio-common/tst-setvbuf1.c: New file.
6280         * stdio-common/tst-setvbuf1.expect: New file.
6282         [BZ #6719]
6283         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6284         when selecting fully-buffered stream.
6285         Patch by Wang Xin <wxinee@gmail.com>.
6287 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6289         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6290         (__open_2): New function.
6291         (__open64_2): New alias to __open_2.
6292         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6293         (__openat_2): New function.
6294         (__openat64_2): New alias to __openat_2.
6296 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6298         [BZ #6723]
6299         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6301 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6303         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6304         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6305         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6306         __hurd_dfail.
6307         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6308         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6309         * sysdeps/mach/hurd/send.c (__send): Likewise.
6310         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6311         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6313 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6315         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6316         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6317         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6318         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6319         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6320         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6322 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6324         [BZ #6657]
6325         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6326         of %EY.
6327         Patch by Petr Baudis.
6329 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6331         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6332         Patch by Peter Jones <pjones@redhat.com>.
6334 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6336         [BZ #6654]
6337         * stdlib/canonicalize.c (__realpath): readlink can write too much
6338         into the buffer on platforms without PATH_MAX.
6340 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6342         [BZ #6653]
6343         * posix/tst-regex.c (main): Rename to...
6344         (do_test): ... this. Remove cmdline option processing.
6345         (TIMEOUT): Define.
6346         (TEST_FUNCTION): Define.
6347         (CMDLINE_OPTIONS): Define.
6349 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6351         [BZ #5210]
6352         * configure.in: Add -Werror to -fstack-protector test to catch
6353         unsupported architectures.
6354         Patch by Gilles Esponasse <g.esp@free.fr>.
6356 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6358         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6359         getcontext returns ENOSYS.
6361 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6363         * nscd/connections.c (main_loop_poll): Fix test for read error.
6364         (main_loop_epoll): Likewise.
6366 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6368         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6369         better place so it is not called when nscd is used.
6371         * nscd/connections.c: Also recognize and handle changes to the
6372         resolver configuration file.
6374 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6376         * time/strftime.c: Pass reference to tzset_called around to handle
6377         recursive calls.
6379         [BZ #6612]
6380         * time/strftime.c (__strftime_internal): Call tzset() only
6381         when printing timezone-dependent values.
6382         Based on a patch by Petr Baudis <pasky@suse.cz>.
6384         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6385         unconditionally use second gaih_getanswer_slice result.
6387         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6388         (getaddrinfo): RES must always be non-NULL.
6390 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6392         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6393         cr[34] registers.
6394         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6395         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6396         Likewise.
6397         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6398         register.
6400 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6402         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6403         fields.
6404         * nscd/connections.c (inotify_fd): New variable.
6405         (nscd_init): Try to open an inotify descriptor.
6406         If successful, watch files for databases using inotify instead of
6407         having prune threads stat the files.
6408         (nscd_run_prune): Recognize clear_cache flag being set and call
6409         prune_cache appropriately.
6410         (main_loop_poll): Add inotify descriptor to wait set and handle the
6411         reported changes.
6412         (main_loop_epoll): Likewise.
6413         * nscd/cache.c (prune_cache): Don't stat files for databases if
6414         inotify is used.
6415         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6416         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6418         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6419         fixed-size portion of the record.
6420         * nscd/servicescache.c (cache_addserv): Likewise.
6421         * nscd/pwdcache.c (cache_addpw): Likewise.
6422         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6424 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6426         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6427         out we don't use uninitialized memory.
6429         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6430         the client.
6432 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6434         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6435         ignore T_DNAME messages.
6436         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6438 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6440         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6441         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6443 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6445         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6446         instead of portstr to nscd_getserv_r.  Patch by
6447         Roman Kagan <rkagan@mail.ru>.
6449 2008-05-26  Jim Meyering  <meyering@redhat.com>
6451         Remove more useless "if" tests before "free".
6452         * include/inline-hashtab.h (htab_delete): Likewise.
6453         * libio/freopen.c (freopen): Likewise.
6454         * libio/freopen64.c (freopen64): Likewise.
6455         * locale/programs/ld-collate.c (collate_read): Likewise.
6456         * misc/fstab.c (libc_freeres_fn): Likewise.
6457         * posix/glob.c (globfree): Likewise.
6459 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6461         * string/Makefile (strop-tests): Add memmem.
6462         * string/test-memmem.c: New file.
6463         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6464         (test_init): Size buf1 according to BUF1PAGES.
6466 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6468         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6469         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6470         (CFLAGS-scanf17.c): New.
6471         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6472         * stdio-common/scanf15.c (main): Likewise.
6473         * stdio-common/scanf16.c: New file.
6474         * stdio-common/scanf17.c: New file.
6476 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6478         * resolv/res_send.c (send_dg): If we already have one of two
6479         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6480         use the one answer insted of failing.
6482 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6484         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6485         being executed on PowerPC as the expected result exceeds IBM
6486         long double 128 __LDBL_MAX__.
6488 2008-05-21  Roland McGrath  <roland@redhat.com>
6490         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6492         * Makefile (check-data): Use $(abi-name) before other guesses.
6493         Look in $(add-ons) dirs before scripts/data/.
6494         * elf/Makefile (check-data): Likewise.
6496         * scripts/soversions.awk: Grok ABI line.
6497         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6498         Emit definition for abi-name variable.
6500 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6502         * string/endian.h: Define new fixed-size hto* and *toh macros only
6503         if [__USE_BSD].
6505         * iconvdata/Depend: Add localedata.
6507 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6509         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6511 2008-05-08  David S. Miller  <davem@davemloft.net>
6513         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6514         HIDDEN_JUMPTARGET.
6515         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6516         (__SYSCALL_CLOBBERS): Remove %g* registers.
6517         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6518         (__SYSCALL_CLOBBERS): Likewise.
6519         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6520         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6522 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6524         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6525         (CALL_ERRNO_LOCATION): Define.
6526         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6527         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6528         (CALL_ERRNO_LOCATION): Define.
6529         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6530         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6531         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6533 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6535         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6536         variable.
6538 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6540         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6541         (FIRST_FRAME_POINTER): Define.
6543 2008-05-09  David S. Miller  <davem@davemloft.net>
6545         * sysdeps/sparc/sparc64/backtrace.c: New file.
6547 2008-05-14  David S. Miller  <davem@davemloft.net>
6549         * sysdeps/sparc/machine-gmon.h: New file.
6550         * sysdeps/sparc/sparc-mcount.S: Likewise.
6551         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6552         sysdep_routines in gmon directory.
6554 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6556         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6558 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6560         * resolv/res_query.c (__libc_res_nquery): In case one of two
6561         answer was too short don't try to read that answer's header.
6563         * resolv/res_send.c (send_dg): In case of timeout and there are
6564         two queries and one has been answered, return value indicating
6565         success.
6567 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6569         * nscd/cache.c (cache_add): Take additional parameter specifying
6570         whether this is in response of a cache refill.  Check alignment
6571         of package data.  Revamp waking of pruning thread.
6572         (prune_cache): Small optimization.
6573         * nscd/nscd.h: Adjust cache_add prototypes.
6574         * nscd/aicache.c: Adjust cache_add calls.
6575         * nscd/grpcache.c: Likewise.
6576         * nscd/hstcache.c: Likewise.
6577         * nscd/initgrcache.c: Likewise.
6578         * nscd/pwdcache.c: Likewise.
6579         * nscd/servicescache.c: Likewise.
6580         * nscd/connections.c (restart): Really disable cache use before
6581         exec attempt.  If it fails, reenable cache.
6582         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6583         time to max to be able to notice concurrent cache additions.  Unlock
6584         prune_lock while performing gc.  Afterwards compute wakeup time with
6585         current wakeup_time value in mind.
6587 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6589         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6591         * nscd/mem.c (gc): Correctly determine highest used array element
6592         in mark.
6594         * nscd/mem.c (markrange): Add assert to check entries are all
6595         aligned.  Small cleanup in bitmap use.
6597         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6598         blockoff of type nscd_ssize_t.
6599         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6600         (mempoll_alloc): Record block offset and not address.
6602         * nscd/mem.c (gc): Fix test for stack overuse.
6604         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6605         more asserts.
6607         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6608         entry is available, believe it.
6610         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6611         no answers return NSS_STATUS_NOTFOUND.
6612         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6613         buffer does not have any content.
6615 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6617         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6619         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6620         lookup, don't assign canon unconditionally.
6622 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6624         * string/Makefile (distribute): Add str-two-way.h.
6626 2008-03-29  Eric Blake  <ebb9@byu.net>
6628         Rewrite string searches to O(n) rather than O(n^2).
6629         * string/str-two-way.h: New file.  For linear fixed-allocation
6630         string searching.
6631         * string/memmem.c: New implementation.
6632         * string/strstr.c: New implementation.
6633         * string/strcasestr.c: New implementation.
6635 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6637         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6638         opr.ctx_type.
6639         (calc_first): Initialize constraint field.
6640         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6641         Use search_duplicated_node to avoid loops.  Fix grammar.
6642         (duplicate_node): Merge constraint field for all node types.
6643         (calc_eclosure_iter): Look at constraint field for all node types.
6644         * posix/regex_internal.c (create_cd_newstate): Don't look at
6645         create_cd_newstate.
6647 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6649         [BZ #6428]
6650         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6652         [BZ #6442]
6653         * string/endian.h: Add macros for fixed-size endian conversion.
6654         * bits/byteswap.h: Allow inclusion from <endian.h>.
6655         * sysdeps/i386/bits/byteswap.h: Likewise.
6656         * sysdeps/ia64/bits/byteswap.h: Likewise.
6657         * sysdeps/s390/bits/byteswap.h: Likewise.
6658         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6659         * string/Makefile (tests): Add tst-endian.
6660         * string/tst-endian.c: New file.
6662         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6663         Patch by Reuben Thomas.
6665 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6667         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6669 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6671         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6673         [BZ #6461]
6674         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6675         Add missing braces.
6676         (BODY for __gconv_transform_internal_ascii): Likewise.
6678         [BZ #6472]
6679         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6680         to be treated like link-local addresses.
6681         (match_prefix): Don't treat IPv4 loopback address special when
6682         converting to v4 mapped addressed.
6684         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6685         if necessary.
6686         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6687         * posix/tst-rfc3484-2.c: Likewise.
6688         * posix/tst-rfc3484-3.c: Likewise.
6690         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6691         and SCTP.
6693         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6695         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6697         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6699 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6701         * po/lt.po: New file.  From Lituanian translation team.
6703 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6705         Introduce TLS descriptors for i386 and x86_64.
6706         * include/inline-hashtab.h: New file, copied from 2005's
6707         libiberty, with fix for memory leak imported afterwards by
6708         Glauber de Oliveira Costa.
6709         * elf/tlsdeschtab.h: New file.
6710         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6711         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6712         (CHECK_STATIC_TLS): Move to...
6713         * elf/dynamic-link.h: ... this file.
6714         (TRY_STATIC_TLS): New macro.
6715         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6716         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6717         R_386_TLS_DESC): Define.
6718         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6719         binutils.
6720         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6721         R_X86_64_TLSDESC): Define.
6722         (R_386_NUM, R_X86_64_NUM): Adjust.
6723         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6724         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6725         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6726         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6727         release tlsdesc_table.
6728         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6729         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6730         (elf_machine_rel): Handle R_386_TLS_DESC.
6731         (elf_machine_rela): Likewise.
6732         (elf_machine_lazy_rel): Likewise.
6733         (elf_machine_lazy_rela): Likewise.
6734         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6735         * sysdeps/i386/dl-tlsdesc.S: New file.
6736         * sysdeps/i386/dl-tlsdesc.h: New file.
6737         * sysdeps/i386/tlsdesc.c: New file.
6738         * sysdeps/i386/tlsdesc.sym: New file.
6739         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6740         tlsdesc_table.
6741         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6742         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6743         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6744         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6745         release tlsdesc_table.
6746         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6747         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6748         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6749         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6750         (elf_machine_rela): Likewise.
6751         (elf_machine_lazy_rel): Likewise.
6752         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6753         (__tls_get_addr): Do not declare for non-shared compiles.
6754         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6755         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6756         * sysdeps/x86_64/tlsdesc.c: New file.
6757         * sysdeps/x86_64/tlsdesc.sym: New file.
6758         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6759         tlsdesc_table for both 32- and 64-bit structs.
6761 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6763         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6764         its own function.  This reduces the frame setup costs and more.
6766 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6768         [BZ #3406]
6769         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6770         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6772 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6774         * io/openat.c (__openat_2): Also pass fd to __openat.
6775         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6776         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6778         * string/tester.c (test_memcmp): Add a few more tests.
6779         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6781 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6783         * nscd/cache.c (cache_add): Before returning with failure and this
6784         is the first use of the record, mark it as unusable.
6785         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6786         reporting a failure.
6787         * nscd/grpcache.c: Likewise
6788         * nscd/hstcache.c: Likewise.
6789         * nscd/initgrcache.c: Likewise.
6790         * nscd/pwdcache.c: Likewise.
6791         * nscd/servicescache.c: Likewise.
6793 2008-05-10  Roland McGrath  <roland@redhat.com>
6795         [BZ #6505]
6796         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6798 2008-05-08  David S. Miller  <davem@davemloft.net>
6800         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6802         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6803         (__ieee754_y0l): Likewise.
6804         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6805         (__ieee754_y1l): Likewise.
6806         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6807         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6808         frexpl and ldexpl.  math_private.h provides them and the latter
6809         is not even used.
6810         (__log1pl): Use __frexpl.
6812 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6814         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6815         prototypes.
6816         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6817         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6818         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6819         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6820         af==AF_UNSPEC.
6821         (_nss_nis_gethostbyname4_r): New function.
6822         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6823         Change to also handle af==AF_UNSPEC.
6824         (get_tablename): New function.  Use it to avoid duplication.
6825         (_nss_nisplus_gethostbyname4_r): New function.
6826         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6827         available.
6828         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6829         * nss/nss.h: Define struct gaih_addrtuple.
6830         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6831         af==AF_UNSPEC.
6832         (_nss_files_gethostbyname4_r): New function.
6833         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6834         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6835         calls.
6836         * resolv/res_query.c (__libc_res_nquery): Take two additional
6837         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6838         look up IPv4 and IPv6.
6839         Change all callers.
6840         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6841         for an additional query and answer buffer.  Pass to send_vc and
6842         send_dg.
6843         (send_vc): Send possibly two requests and receive two answers.
6844         (send_dg): Likewise.
6845         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6846         __libc_res_nquery.
6847         (_nss_dns_gethostbyname4_r): New function.
6848         (gaih_getanswer_slice): Likewise.
6849         (gaih_getanswer): Likewise.
6850         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6851         __libc_res_nquery call.
6852         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6853         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6854         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6855         available.
6857 2008-05-05  David S. Miller  <davem@davemloft.net>
6859         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6860         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6862 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6864         Fix termios bit macros.
6865         Move *DLY definitions where they belong, in termios.h.
6866         Add *[0-3] definitions.
6867         Fixes confusion between VT and FF.
6868         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6869         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6870         are already defined to avoid collision with termios.h.
6871         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6872         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6873         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6874         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6875         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6876         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6877         VTDLY, VT0, VT1): New macros.
6878         [__USE_GNU] (OLCUC): Change value of macro.
6879         [__USE_XOPEN] (OFILL): New macro.
6880         [__USE_BSD] (CRTSCTS): Change value.
6881         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6882         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6883         (B7200, B14400, B28800, B76800): New macros.
6885 2008-05-01  David S. Miller  <davem@davemloft.net>
6887         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6888         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6889         (gen-as-const-headers): Add it.
6890         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6891         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6892         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6893         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6895         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6896         six system call parameters.
6897         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6899 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6901         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6902         RUSAGE_LWP.
6903         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6904         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6906 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6908         * stdlib/tst-setcontext.c: Include unistd.h.
6910 2008-04-25  David S. Miller  <davem@davemloft.net>
6912         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6913         Pass "union semun" properly in to sys_ipc, it must be passed
6914         by value, not by reference.
6916 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6918         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6919         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6920         * nscd/connections.c (mem_in_flight): Likewise.
6922         * nscd/nscd.h (dbs): Make hidden.
6924         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6925         Avoid returning -1, return 0 instead.
6927 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6929         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6931 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6933         [BZ #5209]
6934         * sysdeps/unix/sysv/linux/times.c: New file.
6936         [BZ #5381]
6937         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6938         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6939         prototype.
6940         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6941         appropriate mem_in_flight element.
6942         (gc): Take allocations which have not yet been committed to the
6943         database into account.
6944         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6945         Reset mem_in_flight before returning.
6946         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6947         cue it up in mem_in_flight_list.
6948         * nscd/aicache.c: Adjust mempool_alloc call.
6949         * nscd/grpcache.c: Likewise.
6950         * nscd/hstcache.c: Likewise.
6951         * nscd/initgrcache.c: Likewise.
6952         * nscd/pwdcache.c: Likewise.
6953         * nscd/servicescache.c: Likewise.
6954         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6955         of -fpie.
6957         * nscd/connections.c (handle_request): Provide better error message
6958         in case SELinux forbids the service.
6960         * version.h (VERSION): Bump to 2.8.90.
6962 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6964         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6966 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6968         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6969         Also use for 32-bit.
6970         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6971         __nextafter instead of nextafter to avoid local PLT.
6972         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6973         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6975         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6977         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6978         __fe_nomask_env.
6979         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6980         <fenv_libc.h> instead of <fenv.h>.
6981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6984         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6986         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6987         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6988         function from fegetexcept and make old name weak alias.
6989         * include/fenv.h: Declare __fegetexcept.
6990         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6991         fegetexcept.
6992         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6993         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6994         to fetestexcept.
6995         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6996         instead of frexpl to avoid local PLT.
6997         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6998         ilogbl to avoid local PLT.
6999         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
7000         instead of ldexpl to avoid local PLT.
7001         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
7002         __roundl not roundl to avoid local PLT.
7003         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
7004         local PLTs.  Use __sincosl instead of separate sinl and cosl
7005         calls.
7006         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7008         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
7009         version for ppc64 to 2.4.21 since without it makecontext will fail.
7011         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
7012         to the ABI in use.
7013         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
7014         .__tls_get_addr.
7015         [__powerpc64__] (TLS_GD): Likewise.
7017 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
7019         [BZ #4997]
7020         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
7021         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
7022         mantissa.
7023         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
7024         Likewise.  Also account for when x is an odd number between 2^52
7025         and 2^53-1.
7026         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
7027         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
7028         * math/libm-test.inc (lround_test, llround_test): Added test cases to
7029         detect aforementioned erroneous conditions.
7031 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
7033         * configure.in: Check for -fno-section-anchors in addition to
7034         -fno-toplevel-reorder.
7036 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
7038         * include/features.h (__GLIBC_MINOR__): Bump to 8.
7040         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
7041         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
7042         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
7043         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
7044         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
7045         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
7047 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
7049         [BZ #5443]
7050         * time/era.c: Transform __libc_setlocale_lock into rwlock.
7051         * time/alt_digit.c: Likewise.
7052         * wcsmbs/wcsmbsload.c: Likewise.
7054 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
7056         * version.h (VERSION): Bump to 2.8.
7058         * timzeone/asia: Update from tzdata2008b.
7059         * timezone/backward: Likewise.
7060         * timezone/europe: Likewise.
7061         * timezone/northamerica: Likewise.
7062         * timezone/southamerica: Likewise.
7063         * timezone/iso3166.tab: Likewise.
7064         * timezone/leapseconds: Likewise.
7065         * timezone/zone.tab: Likewise.
7066         * timezone/private.h: Update from tzcode2008a.
7067         * timezone/zdump.c: Likewise.
7068         * timezone/zic.c: Likewise.
7070 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
7072         [BZ #5741]
7073         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
7074         Define additonal Data Cache Block instruction macros.
7075         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
7076         Replace dcbst with dcbf and sync with sync/isync.
7078 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
7080         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
7081         Always set ELF_RTYPE_CLASS_PLT.
7082         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
7084 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
7086         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7087         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7088         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7089         For ISA 2.01 and later replace mftb with mfspr 268.
7091 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
7093         [BZ #5768]
7094         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7095         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7097 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
7099         [BZ #5768]
7100         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7101         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7102         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7103         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7105 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
7107         * stdlib/tst-makecontext.c (othervar): New variable.
7108         (cf): Test sign extending the argument to long.
7110 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
7112         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7113         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7114         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7115         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7116         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7117         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7118         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7120 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
7122         * elf/Makefile (tests): Substitute tests-vis-yes here.
7123         (tests-vis-yes): Delete.
7124         (modules-name, modules-vis-yes): Similarly.
7126 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
7128         [BZ #4407]
7129         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7130         Preserve sign in signgamp when x is zero.
7132 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
7134         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7135         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7136         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7137         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7138         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7139         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7141 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7143         [BZ #4314]
7144         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7145         buffers.
7147         [BZ #5209]
7148         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7149         a reserved error value.
7151         * stdlib/tst-makecontext.c: Change parameter to cf to negative
7152         value to check for correct sign extension.
7154         [BZ #5436]
7155         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7156         Copy 64-bit parameter values even though this is not required in
7157         the standard.
7159         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7160         PC save.
7162 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
7164         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7165         PC save.
7167 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
7169         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7171 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7173         [BZ #5998]
7174         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7175         in line-buffered stream failed.
7176         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7178 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
7180         [BZ #6024]
7181         * scripts/abi-versions.awk: If the version specified by
7182         --enable-oldest-abi is older than the first version for this
7183         architecture, use the default version.
7185         * locale/programs/ld-collate.c (collate_read): Ignore script lines
7186         as well when ignoring the whole category.
7188 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7190         [BZ #6042]
7191         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7192         ETHERTYPE_* definitions.
7193         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7195 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7197         * stdlib/mbtowc.c (__no_r_state): Remove.
7198         (mbtowc): New static state variable.  Use it instead of
7199         __no_r_state.
7200         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7201         (__wctomb_state): New hidden variable.
7202         (wctomb): Use __wctomb_state instead of __no_r_state.
7203         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7204         (__wctomb_state): New extern decl.
7205         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7207 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7209         [BZ #5475]
7210         * resolv/res_init.c: Handle scope IDs in resolv.conf.
7212 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7214         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7216 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
7218         * po/nl.po: Update from translation team.
7220 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
7222         [BZ #6007]
7223         * string/strfry.c: Handle empty strings again.
7225 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7227         [BZ #5443]
7228         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7229         before looking for translation.
7230         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7231         * locale/freelocale.c: Likewise.
7232         * locale/newlocale.c: Likewise.
7233         * locale/setlocale.c: Likewise.
7234         Based partially on a patch by ryo@np.css.fujitsu.com.
7236 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
7238         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7239         acquiring wrlock.  Do conv_tab allocation while holding lock.
7240         * intl/Makefile: Add rules to build and run tst-gettext6.
7241         * intl/tst-gettext6.c: New test.
7242         * intl/tst-gettext6.sh: New file.
7244 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7246         * po/nl.po: Update from translation team.
7248         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7249         provided through st_blksize, try the default size before giving up.
7251 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7253         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7255         [BZ #5939]
7256         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7258         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7259         error message.  POSIX today does not require the messages to be in
7260         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7262         [BZ #5979]
7263         * sunrpc/auth_unix.c: Unify printed strings.
7264         * sunrpc/clnt_tcp.c: Likewise.
7265         * sunrpc/clnt_udp.c: Likewise.
7266         * sunrpc/clnt_unix.c: Likewise.
7267         * sunrpc/svc_tcp.c: Likewise.
7268         * sunrpc/svc_udp.c: Likewise.
7269         * sunrpc/svc_unix.c: Likewise.
7270         * sunrpc/xdr.c: Likewise.
7271         * sunrpc/xdr_array.c: Likewise.
7272         * sunrpc/xdr_rec.c: Likewise.
7273         * sunrpc/xdr_ref.c: Likewise.
7274         * locale/programs/ld-time.c (time_finish): Unify messages.
7275         * locale/programs/locfile.c (handle_copy): Fix typo.
7276         * nscd/nscd.c (options): Fix typo.
7278         [BZ #5995]
7279         * stdlib/strtod_l.c: Use correct sign for result in one more
7280         underflow case.
7281         Patch by Eric Blake <ebb9@byu.net>.
7283 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7285         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7286         and creat system calls.
7287         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7288         call.
7289         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7290         system calls.
7291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7292         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7293         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7295 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7297         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7298         <linux/limits.h> has defined it.
7299         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7300         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7301         headers.
7302         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7303         it instead of ARG_MAX.
7305 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7307         * posix/gai.conf: Fix comment for scope nullbits.
7308         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7309         default to 128 bits for v4 mapped addresses.
7311 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7313         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7314         ptrace call to get the ieee_instruction_pointer from the kernel.
7315         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7316         ptrace call to set the ieee_instructtion_pointer.
7317         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7318         Add comment that ieee_instruction_pointer is always 0.
7320 2008-03-09  Andreas Jaeger  <aj@suse.de>
7322         [BZ #5857]
7323         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7324         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7325         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7327         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7328         (rint_test): Likewise.
7330 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7332         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7333         call.
7334         (__nisfind_server): Similar for open readColdStartFile call.
7335         Patch partially by Jim Meyering.
7336         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7337         around internal_setent call.
7339         * po/vi.po: New Vietnamese translation.
7341         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7342         ADJ_OFFSET_SS_READ.
7344         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7345         remove CLONE_STOPPED.
7347 2008-02-10  Jim Meyering  <meyering@redhat.com>
7349         Remove useless "if" before "free":
7350         * elf/ldconfig.c (parse_conf_include): Likewise.
7351         * gmon/gmon.c (weak_alias): Likewise.
7352         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7353         * inet/rcmd.c (__validuser2_sa): Likewise.
7354         * intl/bindtextdom.c (set_binding_values): Likewise.
7355         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7356         * libio/genops.c (save_for_backup): Likewise.
7357         * libio/wgenops.c (save_for_wbackup): Likewise.
7358         * locale/programs/ld-collate.c (collate_read): Likewise.
7359         * locale/programs/linereader.c (get_string): Likewise.
7360         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7361         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7362         * resolv/res_debug.c (do_section): Likewise.
7363         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7364         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7365         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7366         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7367         * time/tzset.c (tzset_internal): Likewise.
7369 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7371         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7372         of ASSEMBLER.
7374 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7376         [BZ #5903]
7377         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7378         not stream for output file.  Open output file here.
7379         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7380         and output file name.
7381         (process_fd): Likewise.
7382         (process_file): Likewise.
7383         (main): Adjust callers of changed functions.
7384         * iconv/iconv_prog.h: Adjust prototype.
7386 2008-03-09  Andreas Jaeger  <aj@suse.de>
7388         [BZ #5753]
7389         * sysdeps/ia64/ieee754.h: Use protected namespace
7390         __BIG_ENDIAN/__LITTLE_ENDIAN.
7391         * sysdeps/ieee754/ieee754.h: Likewise.
7392         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7394 2008-03-08  Roland McGrath  <roland@frob.com>
7396         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7397         ignore a signal that came from a machine exception, treat it as a
7398         fatal core-dump signal instead.
7399         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7401         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7402         Clear DF bit in thread state's eflags.
7403         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7405 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7407         [BZ #5774]
7408         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7409         of NAN(...) sequence.
7410         * stdlib/Makefile (tests): Add tst-strtod6.
7411         * stdlib/tst-strtod6.c: New file.
7413         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7415         [BZ #5762]
7416         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7417         putting offending option character in quotes.  Clean up error
7418         messages.
7419         * po/be.po: Adjust msgstr in translation file.
7420         * po/bg.po: Likewise.
7421         * po/ca.po: Likewise.
7422         * po/cs.po: Likewise.
7423         * po/da.po: Likewise.
7424         * po/de.po: Likewise.
7425         * po/es.po: Likewise.
7426         * po/fr.po: Likewise.
7427         * po/hr.po: Likewise.
7428         * po/ko.po: Likewise.
7429         * po/nl.po: Likewise.
7430         * po/rw.po: Likewise.
7431         * po/sk.po: Likewise.
7432         * po/sv.po: Likewise.
7433         * po/tr.po: Likewise.
7434         * po/zh_CN.po: Likewise.
7435         * po/zh_TW.po: Likewise.
7437         [BZ #5760]
7438         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7439         Patch by Roland Bless <roland@bless.de>.
7441         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7442         .o file.
7443         * elf/Makefile (routines): Add dl-sysdep.
7444         (elide-routines.os): Likewise.
7446 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7448         [BZ #5786]
7449         * elf/dl-sysdep.c: Undefine ROUND after use.
7450         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7451         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7452         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7453         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7454         to ...
7455         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7456         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7457         if necessary.
7458         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7460         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7461         _dl_tls_get_addr_soft element.
7462         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7463         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7464         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7465         GLRO.
7466         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7467         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7468         of internal_function.
7470         * stdlib/Makefile (aux): Add tens_in_limb.
7471         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7472         * stdlib/tens_in_limb.c: ...here.  New file.
7474         [BZ #5778]
7475         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7476         __statfs_chown_restricted.
7477         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7478         for _PC_CHOWN_RESTRICTED.
7479         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7480         Implement __statfs_chown_restricted.
7481         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7482         _POSIX_CHOWN_RESTRICTED value to zero.
7483         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7484         defined to zero.
7486         * sysdeps/x86_64/rtld-memset.c: New file.
7488 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7490         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7492         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7493         Barcelona machine.  Make default fall through branch of
7494         __x86_64_preferred_memory_instruction check as the integer code path.
7496 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7498         * sysdeps/x86_64/cacheinfo.c
7499         (__x86_64_preferred_memory_instruction): New variable.
7500         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7502         * sysdeps/x86_64/memset.S: Rewrite.
7504 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7506         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7507         __obstack_printf_chk): New prototypes.
7508         (__vasprintf_chk, __vdprintf_chk,
7509         __obstack_vprintf_chk): Likewise.
7510         Add libc_hidden_proto.
7511         * libio/obprintf.c
7512         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7513         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7514         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7515         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7516         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7517         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7518         __obstack_vprintf_chk): New prototypes.
7519         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7520         obstack_vprintf): New inlines.
7521         * debug/dprintf_chk.c: New file.
7522         * debug/vdprintf_chk.c: New file.
7523         * debug/asprintf_chk.c: New file.
7524         * debug/vasprintf_chk.c: New file.
7525         * debug/obprintf_chk.c: New file.
7526         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7527         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7528         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7529         @@GLIBC_2.8.
7530         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7531         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7532         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7533         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7534         libc_hidden_proto.
7535         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7536         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7537         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7538         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7539         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7540         @@GLIBC_2.8.
7541         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7542         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7543         obstack_vprintf_chk.
7544         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7545         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7546         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7547         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7548         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7549         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7551 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7553         [BZ #5779]
7554         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7555         Patch by Roy Marples <roy@marples.name>.
7557         [BZ #5736]
7558         * malloc/malloc.c: Fix typo in comment.
7560         [BZ #5627]
7561         * locale/iso-639.def: Add Shuswap.
7563 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7565         [BZ #5790]
7566         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7567         overwrite *h_errnop/*errnop values from getanswer_r in case of
7568         failure.
7570 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7572         [BZ #5818]
7573         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7574         (verify_persistent_db): Remove one unnecessary test and add a new one
7575         for bad configuration.
7576         (nscd_init): Improve error reported when persistent database cannot
7577         be reused.
7578         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7579         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7580         .suggested_module and .max_db_size and case config file says the
7581         values are zero.
7582         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7584         [BZ #5854]
7585         * nis/ypclnt.c (yp_order): Fix handling of return value of
7586         do_ypcall_tr call.
7587         Patch by Jeff Moyer <jmoyer@redhat.com>.
7589         * po/fr.po: Update from translation team.
7591 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7592             Carlos O'Donell <carlos@systemhalted.org>
7594         [BZ #5012]
7595         * FAQ.in: Describe why glibc needs to be compiled with
7596         optimization.
7598 2008-02-19  Roland McGrath  <roland@redhat.com>
7600         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7602 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7604         [BZ #5737]
7605         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7606         __USE_MISC is defined.
7608 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7610         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7611         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7612         sys/timerfd.h.
7613         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7614         timerfd_gettime, timerfd_settime.
7615         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7616         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7618 2008-02-08  Roland McGrath  <roland@redhat.com>
7620         * elf/elf.h (NT_PPC_SPE): New macro.
7622 2008-02-06  Roland McGrath  <roland@redhat.com>
7624         * Makerules ($(common-objpfx)sysd-rules):
7625         Depend on $(sysdep-makeconfigs).
7627 2008-01-31  Roland McGrath  <roland@redhat.com>
7629         [BZ #5442]
7630         * configure.in: Use -print-file-name if it yields a directory,
7631         for each of include and include-fixed.
7632         * configure: Regenerated.
7634         * Makeconfig (sysd-rules-targets): New variable.
7635         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7636         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7638 2008-01-30  Roland McGrath  <roland@redhat.com>
7640         * manual/libc.texinfo: Update back-cover text.
7642         * elf/elf.h (NT_386_TLS): New macro.
7644 2008-01-29  Roland McGrath  <roland@redhat.com>
7646         * Makeconfig (sysd-rules-patterns): New variable.
7647         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7648         (check-inhibit-asm): New canned sequence, replaces ...
7649         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7650         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7651         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7652         (CFLAGS-rtld): Variable removed.
7654 2008-01-24  Roland McGrath  <roland@redhat.com>
7656         * configure.in: Let configure fragments set base_os.
7657         * configure: Regenerated.
7659 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7661         * po/ko.po: Update from translation team.
7663 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7665         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7667 2008-01-12  Andreas Jaeger  <aj@suse.de>
7669         [BZ #5040]
7670         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7671         Add EPOLLRDHUP.
7673 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7675         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7676         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7677         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7679 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7681         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7682         * elf/dl-close.c (_dl_close): Check for it.
7683         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7684         (_dl_allocate_static_tls): Likewise.
7685         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7686         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7687         to it.
7688         * elf/tst-tls16.c: New file.
7689         * elf/tst-tlsmod16a.c: New file.
7690         * elf/tst-tlsmod16b.c: New file.
7691         * elf/Makefile: Add rules to build and run tst-tls16.
7693 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7695         [BZ #5628]
7696         * bits/shm.h: Fix comment describing shmid_ds.
7697         * sysdeps/gnu/bits/shm.h: Likewise.
7698         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7699         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7700         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7701         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7702         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7703         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7704         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7705         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7706         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7708         [BZ #5607]
7709         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7710         prototypes.
7711         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7712         additional suffixes.
7713         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7714         Add optional functions mq_timedreceive and mq_timedsend.
7715         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7716         * conform/data/pthread.h-data: Fix prototype of
7717         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7718         * conform/data/semaphore.h-data: Allow time.h definitions.
7719         * conform/data/signal.h-data: Likewise.
7720         * conform/data/stdio.h-data: getw and putw are not required in v6.
7721         * conform/data/stdlib.h-data: Change setstate prototype.
7722         * conform/data/string.h-data: Fix strerror_r prototype.
7723         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7724         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7725         Fix readlink prototype.
7726         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7727         in6addr_loopback.
7728         * inet/netinet/in.h: Cleanup namespace.
7729         * posix/regex.h: Likewise.
7730         * resolv/netdb.h: Likewise.
7731         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7732         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7733         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7734         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7735         of names of in in6_addr.
7736         (default_precedence): Likewise.
7737         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7738         NULL definition.
7740 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7742         * conform/data/fmtmsg.h-data: Add missing allows.
7743         * conform/data/ftw.h-data: Likewise.
7744         * conform/data/inttypes.h-data: Likewise.
7745         * conform/data/math.h-data: Likewise.
7746         * conform/data/signal.h-data: Likewise.
7747         * conform/data/net/if.h-data: Likewise.
7748         * conform/data/netinet/in.h-data: Likewise.
7749         * conform/data/sys/socket.h-data: Likewise.
7751         [BZ #5614]
7752         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7753         (__strtok_r): Simplify.
7754         * string/tester.c (test_strtok_r): Add test case for futile search
7755         with single-character seach string.
7757 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7759         * po/ko.po: Update from translation team.
7761 2008-01-11  Andreas Jaeger  <aj@suse.de>
7763         [BZ #5600]
7764         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7765         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7766         kernel header.
7768 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7770         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7771         native interface lookup in all the relevant places.
7773 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7774             Ulrich Drepper  <drepper@redhat.com>
7776         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7777         field.  Use sockaddr_in6 for source_addr.
7778         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7779         (match_prefix): Likewise.
7780         (get_label): Likewise.
7781         (get_precedence): Likewise.
7782         (rfc3484_sort): Change to use indirect access to results array.
7783         Adjust to use of sockaddr_in6.  Replace service_order test with
7784         simple index comparison.
7785         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7786         service_order field.  Adjust qsort_t calls.  Access sorted result
7787         array indirectly through order array.
7788         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7789         * posix/tst-rfc3484-2.c: Likewise.
7790         * posix/tst-rfc3484-3.c: Likewise.
7792 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7794         [BZ #5541]
7795         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7796         pollfd structures.
7797         Patch by André Cruz.
7799         [BZ #5545]
7800         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7801         (clnt_spcreateerror): Likewise.
7803         [BZ #5553]
7804         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7805         (public_mEMALIGn): Likewise.
7806         Patch mostly by Daniel Jacobowitz.
7808 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7810         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7811         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7812         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7813         * stdlib/tst-makecontext2.c: New test.
7815 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7817         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7818         defined.
7819         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7820         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7821         transliteration hooks and REINIT_PARAMS afterwards.
7822         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7823         status.
7824         (REINIT_PARAMS): Define.
7825         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7826         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7827         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7828         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7829         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7830         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7831         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7832         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7833         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7834         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7835         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7836         * iconvdata/tst-iconv7.c: New test.
7838 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7840         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7842 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7844         [BZ #5112]
7845         * nscd/connections.c (restart): Fix condition.
7847 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7849         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7850         __ctype_toupper_loc): Add __THROW.
7852 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7854         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7855         recognition of interface family.
7857         * posix/getconf.c: Update copyright year.
7858         * nss/getent.c: Likewise.
7859         * iconv/iconvconfig.c: Likewise.
7860         * iconv/iconv_prog.c: Likewise.
7861         * elf/ldconfig.c: Likewise.
7862         * catgets/gencat.c: Likewise.
7863         * csu/version.c: Likewise.
7864         * elf/ldd.bash.in: Likewise.
7865         * elf/sprof.c (print_version): Likewise.
7866         * locale/programs/locale.c: Likewise.
7867         * locale/programs/localedef.c: Likewise.
7868         * nscd/nscd.c (print_version): Likewise.
7869         * debug/xtrace.sh: Likewise.
7870         * malloc/memusage.sh: Likewise.
7871         * malloc/mtrace.pl: Likewise.
7872         * debug/catchsegv.sh: Likewise.
7874 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7876         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7877         second lookup.
7879 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7881         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7882         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7884 2007-12-17  Roland McGrath  <roland@redhat.com>
7886         * inet/ether_line.c (ether_line): Remove unused variable.
7888 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7890         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7891         and winp.
7892         * login/openpty.c (openpty): Likewise.
7893         * login/pty.h (openpty, forkpty): Likewise.
7894         * manual/terminal.texi (openpty, forkpty): Likewise.
7896 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7898         * malloc/malloc.c (public_cALLOc): For arenas other than
7899         main_arena, count all bytes inside the mprotect_size range of the
7900         heap as uninitialized.
7902 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7904         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7905         executable stacks.
7907         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7908         mTRIm for all of them.
7909         (mTRIm): Additionally iterate over all free blocks and use madvise
7910         to free memory for all those blocks which contain at least one
7911         memory page.
7912         * malloc/tst-trim1.c: New file.
7913         * malloc/Makefile (tests): Add tst-trim1.
7915         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7917 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7919         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7920         First cast argument to long
7921         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7922         Return long.
7923         (__vdso_clock_gettime): Likewise.
7924         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7925         return long.
7927 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7929         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7930         * locale/nl_langinfo_l.c: Real implementation, copied from
7931         nl_langinfo.c.
7932         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7934 2007-12-01  Jim Meyering  <meyering@redhat.com>
7936         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7937         that would inhibit utf8-optimization of a regexp containing line-
7938         or buffer-anchors, e.g., `^', `$'.
7940 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7942         * time/bug-getdate1.c (do_test): Don't use century values which
7943         aren't valid on 32-bit systems.
7945 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7947         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7948         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7949         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7950         __strcat_g, __strncat_g): Add __asm__.
7952 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7954         [BZ #5477]
7955         * io/fchmodat.c: Fix typo in stub_warning use.
7956         Patch by Petr Salinger.
7958 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7960         * iconvdata/hp-thai8.c: New file.
7961         * iconvdata/Makefile: Add rules for hp-thai8.c.
7962         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7963         * iconvdata/gconv-modules: Likewise.
7965         [BZ #5464]
7966         * iconvdata/hp-greek8.c: New file.
7967         * iconvdata/Makefile: Add rules for hp-greek8.c.
7968         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7969         * iconvdata/gconv-modules: Likewise.
7971         [BZ #5463]
7972         * iconvdata/hp-turkish8.c: New file.
7973         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7974         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7975         * iconvdata/gconv-modules: Likewise.
7977         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7978         (shrink_heap): ... this new function.
7979         (heap_trim): Call shrink_heap instead of grow_heap.
7981         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7982         case don't call alloc_perturb.
7984 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7986         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7987         possible.
7988         * sysdeps/unix/sysv/linux/kernel-features.h
7989         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7990         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7992 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7994         [BZ #5424]
7995         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7996         * stdio-common/Makefile (tests): Add bug22.
7997         * stdio-common/bug22.c: New file.
7999         [BZ #5451]
8000         * time/getdate.c: Fix filling in default values.
8001         * time/bug-getdate1.c: New file.
8002         * time/Makefile: Add rules to build and run bug-getdate1.
8004         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
8005         * iconvdata/ebcdic-es.c: Likewise.
8006         * iconvdata/ebcdic-es-a.c: Likewise.
8007         * iconvdata/ebcdic-uk.c: Likewise.
8008         * iconvdata/iso8859-16.c: Likewise.
8009         * iconvdata/viscii.c: Likewise.
8010         * iconvdata/iso8859-9e.c: Likewise.
8011         * iconvdata/Makefile: Adjust appropriately.
8013         [BZ #5428]
8014         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
8015         __need_wint_t.
8017 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
8019         [BZ #5427]
8020         * iconvdata/hp-roman9.c: New file.
8021         * iconvdata/Makefile: Add rules for hp-roman9.c.
8022         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
8023         * iconvdata/gconv-modules: Likewise.
8025         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
8026         * iconvdata/Makefile: Adjust appropriately.
8028         [BZ #5441]
8029         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
8030         structure, it's allocated with alloca.
8031         * stdio-common/Makefile (tests): Add bug21.
8032         * stdio-common/bug21.c: New file.
8034 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
8036         [BZ #5452]
8037         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
8038         keyword for gcc's braced-groups.
8040 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
8042         [BZ #5454]
8043         * inet/ether_line.c: Strip hostname of whitespaces.
8044         * inet/Makefile (tests): Add tst-ether_line.
8045         * inet/tst-ether_line.c: New file.
8047 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
8049         [BZ #5439]
8050         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
8052         [BZ #5435]
8053         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
8055         * stdlib/tst-setcontext.c: Catch the case where the links gets
8056         messed up and we do not reach main again.
8058         * po/ca.po: Update from translation team.
8060 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
8062         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
8063         * posix/regex.h (REG_ENOSYS): Likewise.
8064         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
8066 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
8068         * nscd/nscd.h (MAX_STACK_USE): Define.
8069         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
8070         (gc): Initialize stack_used based on allocation in prune_cache.
8071         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
8072         Clear array before use.
8074         * nscd/aicache.c (addhstaiX): Update statistics counter in case
8075         memory allocation failed.
8076         * nscd/hstcache.c (cache_addhst): Likewise.
8077         * nscd/grpcache.c (cache_addgr): Likewise.
8078         * nscd/servicescache.c (cache_addserv): Likewise.
8079         * nscd/pwdcache.c (cache_addpw): Likewise.
8080         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8082 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
8084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
8085         and creat system calls.
8087         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8089 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8091         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8092         Add netiucv/iucv.h.
8093         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8094         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8095         protocol.
8096         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8097         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8098         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8100 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8102         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8103         strncat): Define as macros to avoid compile errors.
8105         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
8106         creat entries.
8108 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
8110         [BZ #5382]
8111         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8112         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8113         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8114         overflow it.
8115         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8117         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8118         Return zero in case the thread library is not NPTL.
8120         [BZ #5375]
8121         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8122         initializing interface list.
8124         [BZ #5378]
8125         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8126         use result of nss_getgrgid_r if nothing was found.  For other
8127         error return with a failure.
8128         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8130         * locale/programs/ld-collate.c (collate_read): Fix loop to match
8131         macro name.
8133 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8135         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8136         (get_scope): For IPv4 scope, use scopes table.
8137         (fini): Free scopes table if necessary.
8138         (free_scopelist): New function.
8139         (scopecmp): New function.
8140         (gaiconf_init): Also handle scopev4 entries.
8141         * posix/tst-rfc3484.c (do_test): Initialize scopes.
8142         * posix/tst-rfc3484-2.c (do_test): Likewise.
8143         * posix/gai.conf: Document scopev4 defaults.
8144         * posix/Makefile (tests): Add tst-rfc3484-3.
8145         * posix/tst-rfc3484-3.c: New file.
8147         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8148         Teredo tunnels.
8149         * posix/gai.conf: Update for current default tables.
8151 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8153         * po/tr.po: Update from translation team.
8155 2007-11-18  Roland McGrath  <roland@frob.com>
8157         * manual/arith.texi (Remainder Functions): Spelling fix.
8158         From Shaun Silk <genix@mysoul.com.au>.
8160         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8162 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
8164         * po/zh_CN.po: Update from translation team.
8166         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8167         Add sys/signalfd.h and sys/eventfd.h.
8169 2007-11-15  Bruno Haible  <bruno@clisp.org>
8171         [BZ #5346]
8172         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8173         union.
8174         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8175         (DCIGETTEXT): Change the allocation of the 'search' variable so that
8176         it needs only fixed stack space. Delay the initialization of
8177         msgid_len until it is needed.
8179 2007-11-15  Andreas Jaeger  <aj@suse.de>
8181         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8182         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8184 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
8186         * po/ko.po: Update from translation team.
8188 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
8190         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8191         significantly.  The device type is also part of the ifinfomsg data.
8193         * po/sv.po: Update from translation team.
8194         * po/nl.po: Likewise.
8196         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8197         to wake up in 24 hours.
8199         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
8201 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
8203         * po/cs.po: Update from translation team.
8204         * po/pl.po: Likewise.
8206         * include/ifaddrs.h: Remove in6ai_temporary.
8207         (struct in6addrinfo): Add index element.
8208         Declare __check_native.
8209         * inet/Makefile (aux): Add check_native.
8210         * sysdeps/unix/sysv/linux/check_native.c: New file.
8211         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8212         IFA_F_TEMPORARY.  Pass back ifa_index.
8213         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8214         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
8215         call __check_native if necessary.
8216         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
8217         to sort addresses.  Pass information about the results.
8218         * posix/tst-rfc3484.c: Adjust for addition of index field and change
8219         of rfc3484_sort interface.
8220         * posix/tst-rfc3484-2.c: Likewise.
8222         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
8223         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8224         for _quicksort.
8225         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8226         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
8227         on as third parameter to compare function and _quicksort.
8228         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8229         to the compare function.
8230         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8231         * Versions.def: Add GLIBC_2.8 for libc.
8233         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8234         * posix/tst-rfc3484-2.c: Likewise.
8236         * include/kernel-features.h: Moved to...
8237         * sysdeps/mach/hurd/kernel-features.h: ...here.
8239 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8241         * sysdeps/i386/i586/memcpy_chk.S: New file.
8242         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8243         * sysdeps/i386/i586/memset_chk.S: Likewise.
8245 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8247         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8248         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8249         list of interfaces.  Also store prefix length.
8250         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8251         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8252         prefix if source and destination address are in the same subnet.
8253         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8254         Always look for matching record in in6ai list.
8255         Correct source_addr_len value for IPv6->IPv4 converted records.
8257 2007-11-11  Roland McGrath  <roland@frob.com>
8259         * include/kernel-features.h: New file.
8261 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8263         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8264         complications for 64-bit platforms.
8266         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8267         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8268         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8269         open64_2.
8270         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8271         entries.
8272         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8273         * sysdeps/wordsize-64/alphasort.c: New file.
8274         * sysdeps/wordsize-64/alphasort64.c: New file.
8275         * sysdeps/wordsize-64/fseeko.c: New file.
8276         * sysdeps/wordsize-64/fseeko64.c: New file.
8277         * sysdeps/wordsize-64/ftello.c: New file.
8278         * sysdeps/wordsize-64/ftello64.c: New file.
8279         * sysdeps/wordsize-64/ftw.c: New file.
8280         * sysdeps/wordsize-64/ftw64.c: New file.
8281         * sysdeps/wordsize-64/iofgetpos.c: New file.
8282         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8283         * sysdeps/wordsize-64/iofopen.c: New file.
8284         * sysdeps/wordsize-64/iofopen64.c: New file.
8285         * sysdeps/wordsize-64/iofsetpos.c: New file.
8286         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8287         * sysdeps/wordsize-64/lockf.c: New file.
8288         * sysdeps/wordsize-64/lockf64.c: New file.
8289         * sysdeps/wordsize-64/mkostemp.c: New file.
8290         * sysdeps/wordsize-64/mkostemp64.c: New file.
8291         * sysdeps/wordsize-64/mkstemp.c: New file.
8292         * sysdeps/wordsize-64/mkstemp64.c: New file.
8293         * sysdeps/wordsize-64/scandir.c: New file.
8294         * sysdeps/wordsize-64/scandir64.c: New file.
8295         * sysdeps/wordsize-64/tmpfile.c: New file.
8296         * sysdeps/wordsize-64/tmpfile64.c: New file.
8297         * sysdeps/wordsize-64/versionsort.c: New file.
8298         * sysdeps/wordsize-64/versionsort64.c: New file.
8299         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8300         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8301         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8302         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8303         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8304         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8305         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8306         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8307         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8308         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8309         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8310         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8312         * crypt/sha256-crypt.c: Fix a comment.
8313         * crypt/sha512-crypt.c: Likewise.
8315 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8317         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8319 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8321         [BZ #5277]
8322         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8323         because output buffer is too small break, don't loop.
8324         * iconvdata/Makefile (tests): Add bug-iconv6.
8325         * iconvdata/bug-iconv6.c: New file.
8327 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8329         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8330         with size_t type.
8331         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8332         size_t.  Add casts where needed.
8334         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8335         old headers, don't call avc_has_perm if we don't have the
8336         permission information.
8338 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8340         * elf/rtld.c (dl_main): Use the page size to find the map start.
8342 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8344         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8345         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8347         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8348         when the lookup call failed.
8350         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8351         Add prune_cond and wakeup_time.
8352         (CACHE_PRUNE_INTERNAL): Define.
8353         Update declarations of prune_cache and setup_thread.
8354         * nscd/connections.c (dbs): Update initializers.
8355         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8356         (nscd_init): Default number of threads is now 4.
8357         (invalidate_cache): Take lock before calling prune_cache.
8358         (handle_request): If SELinux forbids the request, say so.
8359         (readylist_cond): Use static initializer.
8360         (nscd_run_prune): New function.  Used only by pruning threads.
8361         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8362         here.
8363         (fd_ready): Update nscd_run reference.
8364         (start_threads): No need to initialize readylist_cond.
8365         Start pruning threads separately.
8366         * nscd/nscd_setup_thread.c: Change return value type to int and always
8367         return 0.
8368         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8369         to int and return nonzero value if we can use the TID address hack.
8370         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8371         the database is later than the new entry's timeout, update the
8372         wakeup time and wake the cleanup thread.
8373         (prune_cache): Return seconds the next entry in the database is still
8374         valid.  Remove locking for pruning here.
8375         * nscd/nscd.conf: Document default number of threads.
8377 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8379         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8380         stack is properly aligned for the target function.
8381         Correct unwind info.
8383         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8384         when using auditing libraries.
8386 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8388         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8389         _nss_dns_getnetbyaddr2_r.
8390         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8391         extra parameter to getanswer_r.
8392         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8393         _nss_dns_getnetbyaddr2_r.
8395         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8396         gethstbynm3_r.
8397         * nscd/gethstbynm2_r.c: Remove.
8398         * nscd/gethstbynm3_r.c: New file.
8399         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8400         __gethostbyaddr_r.
8401         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8402         __gethostbyaddr_r compatibility wrapper.
8403         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8404         determining timeout of entry.
8405         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8406         __gethostbyaddr2_r.
8407         (addhstbyX): Pass reference to variable for TTL to lookup and
8408         cache_addhst.
8409         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8410         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8411         and __nss_next2.  Remove __nss_services_lookup.
8412         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8413         Add compat wrapper.
8414         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8415         __nss_next2.
8416         * nss/getXXent_r.c: Likewise.
8417         * nss/getnssent_r.c: Likewise.
8418         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8419         does not exist in module, try the optional second name.
8420         (__nss_next2): New function.
8421         (__nss_next): Now wrapper around __nss_next2.
8422         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8423         Declare __nss_next2.
8424         Adjust definition of db_lookup_function type.
8425         * nss/service-lookup.c: Define NO_COMPAT.
8426         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8427         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8428         * inet/ether_ntoh.c: Likewise.
8429         * sunrpc/netname.c: Likewise.
8430         * sunrpc/publickey.c: Likewise.
8431         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8432         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8433         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8434         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8435         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8437         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8439         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8441 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8443         [BZ #5204]
8444         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8445         * crypt/sha512c-test.c: Likewise.
8447         [BZ #5225]
8448         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8449         to keep track of end of %[ format string element.
8450         * stdio-common/Makefile (tests): Add bug20.
8451         * stdio-common/bug20.c: New file.
8453         [BZ #5222]
8454         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8455         path elements in counting mode.
8457 2007-10-27  Andreas Jaeger  <aj@suse.de>
8459         [BZ #5040]
8460         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8462         [BZ #3112]
8463         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8464         (__cleanup): Free shared library when exiting.
8465         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8466         (__cleanup): Free shared library when exiting.
8468 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8470         [BZ #2549]
8471         * math/libm-test.inc (check_float_internal): Support
8472         denormalized return.
8474 2007-10-23  Andreas Jaeger  <aj@suse.de>
8476         [BZ #5208]
8477         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8478         __LONG_LONG_PAIR to handle little endian byte order.
8479         Suggested by abhishekrai@google.com
8481 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8483         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8485 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8487         * nscd/cache.c (prune_cache): Move test for modified file outside
8488         of locking.
8490 2007-10-21  Andreas Jaeger  <aj@suse.de>
8492         * manual/texinfo.tex: Update to latest version.
8494         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8496         * manual/arith.texi (Status bit operations): Fix formatting.
8498         * manual/errno.texi (Error Messages): Fix formatting.
8500         * manual/sysinfo.texi (System Parameters): Fix formatting.
8502         * manual/libc.texinfo: Update VERSION and UPDATED.
8504 2007-10-19  Roland McGrath  <roland@redhat.com>
8506         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8508 2007-10-06  David S. Miller  <davem@davemloft.net>
8510         * configure.in: Add sparcv9v2 and sparc64v2.
8511         * scripts/config.sub: Likewise.
8512         * configure: Regenerate.
8513         * elf/elf.h (HWCAP_SPARC_N2): New.
8514         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8515         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8516         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8517         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8518         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8519         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8520         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8522 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8524         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8525         even if the poll result indicates there is data to read.
8526         Patch by Jeff Moyer <jmoyer@redhat.com>.
8528 2007-10-18  Roland McGrath  <roland@redhat.com>
8530         * elf/elf.h (NT_PPC_VMX): New macro.
8532 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8534         * version.h (VERSION): Set to 2.7.90.
8536 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8538         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8539         weak_alias.
8541 2007-10-17  Roland McGrath  <roland@frob.com>
8543         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8544         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8546 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8548         * version.h (VERSION): Bump to 2.7.
8549         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8551         [BZ #5186]
8552         * time/tzset.c (__tz_convert): Don't force testing for a change of
8553         TZ if not called from localtime.  But then also see whether the
8554         file changed, in case __use_tzfile is set.
8556         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8557         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8558         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8559         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8560         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8561         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8562         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8563         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8565 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8567         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8568         and admin selects to be able to replace the gai.conf file, lock
8569         data structures around the qsort call.
8571 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8573         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8574         new memset.
8575         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8576         too high for the improvements.  Implement bzero unconditionally for
8577         use in libc.
8579 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8580             Jakub Jelinek  <jakub@redhat.com>
8582         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8583         even when time_t is 32-bit.
8584         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8585         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8586         always set after the search.
8588 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8590         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8591         unreachable code on 32-bit machines.
8593 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8595         [BZ #5184]
8596         * time/strftime_l.c: Include stdbool.h.
8597         (my_strftime): New wrapper, old function renamed to...
8598         (__strftime_internal): ... new function.  Add tzset_called
8599         argument, pass it down to recursive calls, don't call tzset ()
8600         if already true, set to true after call to tzset ().
8602 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8604         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8605         into account when copying TZ string.
8607 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8609         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8610         num_transition rather than num_transitions - 1.
8612 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8614         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8615         PIC indirect jump.
8617         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8618         a local label rather than HIDDEN_JUMPTARGET.
8620 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8622         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8623         (init_cacheinfo): Initialize it.
8624         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8625         Always define bzero.
8626         Remove non-glibc code.
8627         * sysdeps/x86_64/bzero.S: Make an empty file.
8629 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8631         * sysdeps/x86_64/cacheinfo.c
8632         (__x86_64_preferred_memory_instruction): New.
8633         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8635         * sysdeps/x86_64/memset.S: Rewrite.
8637 2007-10-15  Roland McGrath  <roland@redhat.com>
8639         * po/libc.pot: Regenerated.
8641 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8643         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8644         pointers.
8646         [BZ #3425]
8647         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8648         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8649         address record to T_A/T_AAAA requests.
8651 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8653         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8655         * posix/glob.c: Add some branch prediction throughout.
8657         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8658         read from nscd.
8660         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8661         service_order.
8662         (rfc3484_sort): Make sure that even if qsort doesn't support
8663         stable sorting out sorting here is stable by comparing service_order.
8664         (getaddrinfo): Initialize service_order.
8665         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8666         service_order field to sorting structure.
8667         * posix/tst-rfc3484-2.c (do_test): Likewise.
8669         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8670         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8671         __tzset_parse_tz and updating of daylight, timezone, tzname into
8672         update_vars.
8673         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8674         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8675         happens in __tz_compute.
8676         * time/tzfile.c (__tzfile_read): Also read TZ string.
8677         (find_transition): Fold into __tzfile_compute.
8678         (__tzfile_compute): For times beyond the last transition try to
8679         use the TZ string.
8680         * timezone/tst-timezone.c: Information in daylight and tzname does
8681         change for Asia/Tokyo timezone with more concrete information.
8682         Remove the test.
8684         * include/stdio.h: Add libc_hidden_proto for ftello.
8685         * libio/ftello.c: Add libc_hidden_def.
8687         [BZ #1140]
8688         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8689         on the specified time and not the last entries in the file.  Move
8690         code to determine tzname[] to...
8691         (find_transition): ...here.  Add ugly guess for times before the
8692         first transition.
8694 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8696         [BZ #3195]
8697         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8698         no entry.
8699         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8700         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8701         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8702         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8704         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8705         read mechanism when there are no group members and avoid no-op
8706         read syscall in this case.
8708         [BZ #3242]
8709         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8710         (__readall): If reading failed due to EAGAIN error wait a bit
8711         and possibly try again.
8712         (__readvall): Likewise.
8714 2007-10-13  Bruno Haible  <bruno@clisp.org>
8716         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8717         when we cannot recode the message.
8719 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8721         [BZ #4359]
8722         * libio/__freading.c (__freading): Don't return true for
8723         write-only streams.  For read/write streams, check whether we
8724         performed a read operation already.
8725         * libio/Makefile (tests): Add tst-ext2.
8726         * libio/tst-ext2.c: New file.
8728 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8730         * locale/programs/repertoire.c (repertoire_read): Always free
8731         memory for repertoire file name [Coverity CID 270].
8733         * elf/cache.c (save_aux_cache): Free memory allocated for
8734         temporary file name [Coverity CID 267].
8736 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8738         * misc/Makefile (headers): Add bits/error.h.
8740 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8742         * posix/fnmatch_loop.c: Take rule index returned as part of
8743         findidx return value into account when accessing weights.
8744         * posix/regcomp.c: Likewise.
8745         * posix/regexec.c: Likewise.
8747         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8748         (skip_to): Fix problems with parameter of elifdef/elifndef.
8750 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8752         * iconv/gconv_simple.c: Add some branch prediction.
8754 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8756         * locale/programs/ld-collate.c (collate_read): If ignore_content
8757         and nowtok is tok_define, eat any tok_eol tokens.
8759 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8761         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8762         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8764         * inet/netinet/in.h: Don't include bits/socket.h.
8765         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8766         macro.
8767         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8769 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8771         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8772         and tok_elifndef.
8773         * locale/programs/locfile-kw.gperf: Likewise.
8774         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8776 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8778         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8779         (__find_specwc): Change into __extern_always_inline function.
8780         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8781         (__parse_one_specmb): Remove ps argument.
8782         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8783         Adjust __find_specmb and __parse_one_specmb callers.
8784         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8785         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8786         Removed.
8787         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8788         caller.
8790 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8792         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8793         with some Pentium Ds.
8795 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8797         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8798         __read not read.
8799         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8800         __write not write.
8802 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8804         [BZ #181]
8805         * locale/C-time.c: Set week_1stday data to 19971201.
8806         * locale/programs/ld-time.c (time_finish): Default for
8807         first_workday is Monday.
8809         [BZ #2633]
8810         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8812         [BZ #5103]
8813         * posix/glob.c (glob): Recognize patterns starting \/.
8814         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8815         (main): Add test for pattern starting \/.
8817         * misc/error.h: Use __const instead of const.
8818         * misc/bits/error.h: Likewise.
8820 2007-10-07  Andreas Jaeger  <aj@suse.de>
8822         * include/bits/error.h: New file.
8824         * misc/bits/error.h (error_at_line): Fix prototype.
8826 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8828         [BZ #3924]
8829         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8830         more little bugs in creating the stack frame when pltexit has to
8831         be called.
8833         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8834         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8836         [BZ #4407]
8837         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8838         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8839         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8840         * math/libm-test.inc: Add test for this case.
8842         [BZ #5010]
8843         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8844         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8845         map service succeeded.
8846         (svc_is_mapped): New function.
8847         (svc_unregister): Use it before trying to unmap service.
8849 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8851         * timezone/zic.c: Update from tzcode2007h.
8853         [BZ #5063]
8854         * timezone/africa: Update from tzdata2007h.
8855         * timezone/antarctica: Likewise.
8856         * timezone/asia: Likewise.
8857         * timezone/australasia: Likewise.
8858         * timezone/europe: Likewise.
8859         * timezone/leapseconds: Likewise.
8860         * timezone/northamerica: Likewise.
8861         * timezone/southamerica: Likewise.
8862         * timzeone/zone.tab: Likewise.
8864         [BZ #5104]
8865         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8867         [BZ #5113]
8868         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8869         avoid warning with -Wconversion.
8870         (__strndup): Likewise.
8871         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8873         [BZ #5112]
8874         * nscd/connections.c (restart): Don't resync if database is
8875         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8877         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8878         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8880         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8881         evetnfd_read, eventfd_write.
8882         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8883         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8884         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8885         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8886         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8887         eventfd_write for GLIBC_2.7.
8889         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8890         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8891         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8892         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8894 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8896         * stdlib/msort.c: Include stdint.h.
8897         (struct msort_param): New type.
8898         (msort_with_tmp): Use struct msort_param pointer for unchanging
8899         parameters.  Add optimized handling for several common sizes
8900         and indirect sorting mode.
8901         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8902         sorting.
8903         Suggested by Belazougui Djamel .
8905         * stdlib/Makefile (tests): Add tst-qsort2.
8906         * stdlib/tst-qsort2.c: New test.
8908 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8910         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8911         for dup2 in case another thread races with the current one.  Retry
8912         in this case.
8914         * misc/error.h: Remove support for use outside of libc.  We have to
8915         include <features.h> now.  Include <bits/error.h> if possible.
8916         * misc/bits/error.h: New file.
8918 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8920         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8921         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8922         __extern_always_inline functions unconditionally, drop macros.
8924         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8925         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8926         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8928         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8929         add __artificial__ attribute.
8931 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8933         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8934         backward to forward direction.
8936         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8938         [BZ #645]
8939         * locale/programs/ld-collate.c (collate_finish): Compare against last
8940         used section which is known to have rules defined.
8941         (collate_read): After order_start, correctly record order of sections
8942         and queue sections up.
8944 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8946         [BZ #5071]
8947         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8948         the same number of pages.
8949         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8951         * locale/programs/ld-collate.c (collate_read): After initial copy
8952         statement, continue in state 0.
8954         * include/stdio_ext.h (__fsetlocking): Define as macro.
8956 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8958         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8959         of section order.
8961         * po/pt_BR.po: Fix typo.
8963 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8965         * iconvdata/Makefile (modules): Add ISO8859-9E.
8966         (distribute): Add iso8859-9e.c.
8967         (gen-8bit-gap-modules): Add iso8859-9e.
8968         * iconvdata/iso8859-9e.c: New file.
8969         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8970         * iconvdata/TESTS: Likewise.
8971         * iconvdata/tst-tables.sh: Likewise.
8973         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8975         * locale/iso-639.def: Add several new entries.
8977 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8979         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8980         void * pointers instead of struct link_map **.
8981         (_dl_scope_free): Change argument type to void *.
8982         * include/link.h (struct link_map): Change type of l_reldeps
8983         to struct link_map_reldeps, move l_reldepsact into that
8984         struct too.
8985         * elf/dl-deps.c: Include atomic.h.
8986         (_dl_map_object_deps): Only change l->l_initfini when it is
8987         fully populated, use _dl_scope_free for freeing it.  Optimize
8988         removal of libs from reldeps by using l_reserved flag, when
8989         some removal is needed, allocate a new list instead of
8990         reallocating and free the old with _dl_scope_free.  Adjust
8991         for l_reldeps and l_reldepsact changes.
8992         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8993         searching in l_initfini and l_reldeps without holding dl_load_lock.
8994         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8995         l_reldepsact changes.
8996         * elf/dl-close.c (_dl_close_worker): Likewise.
8997         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8999 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
9001         * iconvdata/Makefile (modules): Add KOI8-RU.
9002         (distribute): Add koi8-ru.c.
9003         (gen-8bit-gap-modules): Add koi8-ru.
9004         * iconvdata/koi8-ru.c: New file.
9005         * iconvdata/gconv-modules: Add entries for KOI8-RU.
9006         * iconvdata/TESTS: Likewise.
9007         * iconvdata/tst-tables.sh: Likewise.
9009         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
9011 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
9013         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
9014         with __warning__/__error__ attributes.
9015         (__warnattr): Define.
9016         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
9017         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
9018         __warnattr.
9019         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
9020         of __*_chk if compile time detectable overflow is found.
9021         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
9022         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
9023         with __warnattr.
9024         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
9025         instead of __*_chk if compile time detectable overflow is found.
9026         (__gets_alias): Rename to...
9027         (__gets_warn): ... this.  Add __warnattr.
9028         (gets): Call __gets_warn instead of __gets_alias.
9029         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
9030         aliases with __warnattr.
9031         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
9032         time detectable overflow is found.
9033         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
9034         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
9035         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
9036         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
9037         __getdomainname_chk_warn): New aliases with __warnattr.
9038         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
9039         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
9040         __*_chk_warn instead of __*_chk if compile time detectable overflow
9041         is found.
9042         (__getgroups_chk): Rename argument to __listlen from listlen.
9043         (__getwd_alias): Rename to...
9044         (__getwd_warn): ... this.  Add __warnattr.
9045         (getwd): Call __getwd_warn instead of __getwd_alias.
9046         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
9047         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
9048         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
9049         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
9050         __wcsnrtombs_chk_warn): New aliases with __warnattr.
9051         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
9052         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
9053         compile time detectable overflow is found.
9054         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
9055         to use __*_chk or not.
9056         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
9057         in comparisons which function should be called and in __*_chk*
9058         arguments.  Call __*_chk_warn instead of __*_chk if compile time
9059         detectable overflow is found.
9060         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
9061         __*_chk argument.
9062         * debug/tst-chk1.c (do_test): Add a few more tests.
9064 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
9066         [BZ #5058]
9067         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
9068         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
9069         (_nl_unload_domain): Finalize conversions_lock.
9070         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
9071         handling table of known conversions.
9073 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
9075         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
9076         close_not_cancel_no_status instead of close.
9078 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
9080         [BZ #5028]
9081         * posix/regcomp.c (lookup_collation_sequence_value): Check that
9082         nrules != 0 for multibyte chars.
9084 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
9086         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9087         Provide better error message in case the type is unknown.
9089         [BZ #4963]
9090         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9091         * string/stratcliff.c: Make usable to test wide char functions.
9092         * wcsmbs/wcsatcliff.c: New file.
9093         * wcsmbs/Makefiel (tests): Add wcsatcliff.
9095         [BZ #4972]
9096         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9097         (distribute): Add mac-centraleurope.c.
9098         (gen-8bit-gap-modules): Add mac-centraleurope.
9099         * iconvdata/mac-centraleurope.c: New file.
9100         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9101         * iconvdata/TESTS: Likewise.
9102         * iconvdata/tst-tables.sh: Likewise.
9104         [BZ #5043]
9105         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9107 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
9109         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9110         from __x86_64_core_cache_size_half.
9111         (init_cacheinfo): Compute shared cache size for AMD processors with
9112         shared L3 correctly.
9113         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9114         name change.
9115         Patch in large parts by Evandro Menezes.
9117 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
9119         * elf/dl-lookup.c (add_dependency): Handle failing memory
9120         allocation for dependency list.  Remove unnecessary check.
9122         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9123         open/close when determining source addresses.
9125         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9126         sha512-crypt, and sha512.
9127         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9128         (distribute): Add sha256.h and sha512.h.
9129         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9130         and call the appropriate code.
9131         * crypt/sha256-crypt.c: New file.
9132         * crypt/sha256.c: New file.
9133         * crypt/sha256.h: New file.
9134         * crypt/sha256c-test.c: New file.
9135         * crypt/sha256test.c: New file.
9136         * crypt/sha512-crypt.c: New file.
9137         * crypt/sha512.c: New file.
9138         * crypt/sha512.h: New file.
9139         * crypt/sha512c-test.c: New file.
9140         * crypt/sha512test.c: New file.
9142 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
9144         * misc/bits/syslog.h (syslog): Remove extraneous argument from
9145         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9146         __syslog_chk.
9148 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
9150         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9151         %as in fscanf format strings.
9153         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9154         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9155         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9156         Likewise.
9157         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9158         Likewise.
9160         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9161         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9162         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9163         * elf/dl-sym.c (do_sym): Likewise.
9164         * include/link.h (struct link_map): Add l_serial field.
9165         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9166         * elf/dl-lookup.c (add_dependency): Add flags argument.
9167         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9168         flags, use THREAD_GSCOPE_RESET_FLAG before and
9169         THREAD_GSCOPE_SET_FLAG after
9170         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9171         Don't dereference map until it has been found on some list.
9172         If map->l_serial changed, return -1.
9174 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
9176         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9177         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9178         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9179         libc_hidden_proto.
9180         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9181         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9182         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9183         add libc_hidden_proto.
9184         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9185         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9186         conformance requested.
9187         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9188         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9189         conformance requested.
9190         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9191         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9192         conformance requested.
9193         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9194         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9195         ISO C99 or POSIX conformance requested.
9196         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9197         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9198         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9199         and __isoc99_vsscanf@@GLIBC_2.7.
9200         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9201         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9202         (tests): Add scanf14.
9203         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9204         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9205         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9206         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9207         CFLAGS-isoc99_scanf.c): Add $(exceptions).
9208         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9209         from using internal headers.
9210         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9211         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9212         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9213         and __isoc99_vswscanf@@GLIBC_2.7.
9214         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9215         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9216         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9217         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9218         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9219         * stdio-common/isoc99_scanf.c: New file.
9220         * stdio-common/isoc99_vsscanf.c: New file.
9221         * stdio-common/isoc99_vscanf.c: New file.
9222         * stdio-common/isoc99_vfscanf.c: New file.
9223         * stdio-common/isoc99_fscanf.c: New file.
9224         * stdio-common/isoc99_sscanf.c: New file.
9225         * wcsmbs/isoc99_fwscanf.c: New file.
9226         * wcsmbs/isoc99_vswscanf.c: New file.
9227         * wcsmbs/isoc99_swscanf.c: New file.
9228         * wcsmbs/isoc99_wscanf.c: New file.
9229         * wcsmbs/isoc99_vwscanf.c: New file.
9230         * wcsmbs/isoc99_vfwscanf.c: New file.
9231         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9232         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9233         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9234         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9235         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9236         * stdio-common/scanf14.c: New test.
9237         * stdio-common/scanf15.c: New test.
9238         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9239         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9240         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9241         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9242         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9243         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9244         __nldbl___isoc99_scanf@@GLIBC_2.7,
9245         __nldbl___isoc99_fscanf@@GLIBC_2.7,
9246         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9247         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9248         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9249         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9250         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9251         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9252         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9253         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9254         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9255         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9256         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9257         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9258         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9259         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9260         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9261         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9262         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9263         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9264         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9265         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9266         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9267         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9268         functions.
9269         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9270         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9271         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9272         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9273         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9274         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9275         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9276         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9277         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9278         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9279         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9280         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9282         * stdio-common/Makefile (tests): Add scanf13.
9283         (scanf13-ENV): New.
9284         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9285         m modifier followed by l.
9286         (STRING_ARG): Add width argument.
9287         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9288         <case L_('C')>: Handle %mlc and %mC.
9289         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9290         arguments.
9291         * stdio-common/scanf13.c: New test.
9293         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9294         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9296 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9298         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9299         type and __THROW marker of splice, vmsplice, and tee.
9300         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9301         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9302         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9303         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9304         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9305         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9306         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9307         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9308         as cancellation points.
9310 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9312         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9313         parse more than three parts of the version number.
9315 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9317         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9318         modifier.  Patch by Jakub Jelinek.
9320 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9322         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9323         call_fallocate in misc subdir.
9324         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9325         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9326         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9327         instead of __fallocate64.
9328         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9330 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9332         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9333         * rt/Makefile (headers): Add bits/mqueue2.h.
9334         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9335         optimizing with GCC and __va_arg_pack_len is defined.
9336         * rt/bits/mqueue2.h: New file.
9337         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9338         (mq_open): New strong_alias.
9339         (__mq_open_2): New function.
9340         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9341         (mq_open): New strong_alias.
9342         (__mq_open_2): New function.
9343         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9344         * Versions.def (librt): Add GLIBC_2.7 version.
9345         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9346         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9348         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9349         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9350         is defined rather than when not C++.
9351         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9352         __openat64_alias): New redirects.
9353         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9354         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9355         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9356         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9357         functions instead of function-like macros.
9359 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9361         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9362         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9363         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9365 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9367         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9368         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9370 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9372         * inet/tst-network.c: Increment ERRORS for failing tests.
9374 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9376         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9377         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9378         implement as __extern_always_inline function.
9379         (vsyslog): Define as __extern_always_inline function unconditionally.
9380         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9381         When __va_arg_pack is defined, implement as __extern_always_inline
9382         functions.
9383         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9384         __extern_always_inline functions unconditionally.
9385         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9386         bits/stdio2.h will be included.
9387         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9388         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9389         implement as __extern_always_inline functions.
9390         (vswprintf, vwprintf, vfwprintf): Define as
9391         __extern_always_inline functions unconditionally.
9392         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9394 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9396         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9397         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9398         attribute.
9399         * include/features.h (__USE_EXTERN_INLINES): Define only when
9400         __extern_inline is defined.
9401         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9402         is defined instead of when not __cplusplus.
9403         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9404         is defined instead of when not __cplusplus.
9405         * socket/sys/socket.h: Include bits/socket2.h when
9406         __extern_always_inline is defined instead of when not __cplusplus.
9407         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9408         is defined instead of when not __cplusplus.
9409         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9410         is defined instead of when not __cplusplus.
9411         * string/string.h: Include bits/string3.h when __extern_always_inline
9412         is defined instead of when not __cplusplus.
9413         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9414         is defined instead of when not __cplusplus.
9415         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9416         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9417         is not defined.
9418         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9419         defined __extern_always_inline instead of !defined __cplusplus.
9420         * libio/bits/stdio-ldbl.h: Likewise.
9421         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9422         * misc/bits/syslog.h (syslog): Don't define for C++.
9423         (vsyslog): Use __extern_always_inline function for C++ instead of
9424         a macro.
9425         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9426         whenever that macro is defined.
9427         (vprintf): Don't provide the inline for C++.
9428         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9429         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9430         define the macros for C++.
9431         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9432         __extern_always_inline functions for C++.
9433         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9434         stat64, lstat64, fstat64, fstatat64): Don't define if not
9435         __USE_EXTERN_INLINES.
9436         * wcsmbs/bits/wchar2.h: Fix #error message.
9437         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9438         (vswprintf, vwprintf, vfwprintf): Define using
9439         __extern_always_inline functions for C++.
9440         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9441         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9442         strncpy, strcat, strncat): Define as __extern_always_inline
9443         functions instead of macros for C++.
9444         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9445         defined __extern_inline.
9446         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9447         to __extern_inline whenever that macro is defined.
9448         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9449         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9450         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9451         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9452         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9453         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9454         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9455         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9456         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9457         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9458         prototypes.  Only provide __extern_inline routines if
9459         __USE_EXTERN_INLINES.
9460         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9461         tests.
9462         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9463         For now avoid some *printf tests in C++.  Skip all testing
9464         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9465         is not.
9466         * debug/tst-chk4.cc: New file.
9467         * debug/tst-chk5.cc: New file.
9468         * debug/tst-chk6.cc: New file.
9469         * debug/tst-lfschk4.cc: New file.
9470         * debug/tst-lfschk5.cc: New file.
9471         * debug/tst-lfschk6.cc: New file.
9472         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9473         prototypes in C++.
9474         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9475         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9476         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9478 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9480         * po/cs.po: Update from translation team.
9482 2007-09-11  Roland McGrath  <roland@redhat.com>
9484         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9485         compiling.
9487 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9489         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9491 2007-09-05  Roland McGrath  <roland@redhat.com>
9493         * manual/signal.texi (Signaling Another Process): Typo fix.
9494         From Karl Berry <karl@freefriends.org>.
9496 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9498         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9499         zero if not defined.
9500         (make_request): Recognize optimistic addresses and treat them like
9501         deprecated addresses.
9502         Reported by Neil Horman <nhorman@redhat.com>.
9504 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9506         * nscd/connections.c (send_ro_fd): Also transfer file size.
9507         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9508         file size don't call fstat.
9510         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9511         ahead and map the file.  This should always be correct and we can
9512         catch problems later.
9514 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9516         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9517         prototypes.
9518         (__fread_alias, __fread_unlocked_alias): New aliases.
9519         (fread): New extern inline.
9520         (fread_unlocked): Likewise.  Undef macro before definition of
9521         the inline function.
9522         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9523         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9524         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9525         and __fread_unlocked_chk@@GLIBC_2.7.
9526         * debug/fread_chk.c: New file.
9527         * debug/fread_u_chk.c: New file.
9528         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9530 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9532         * sysdeps/unix/sysv/linux/syscalls.list
9533         (personality): Change caller to EXTRA.
9535 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9537         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9538         to keep gcc quiet.
9539         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9541         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9542         NDEBUG is defined.
9544         * Makerules: Use -p option with mkdir.
9546         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9547         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9548         (_xdr_directory_obj): Likewise.
9549         (xdr_entry_obj): Likewise.
9550         (xdr_group_obj): Likewise.
9551         (xdr_link_obj): Likewise.
9552         (xdr_table_obj): Likewise.
9553         (_xdr_nis_result): Likewise.
9554         (_xdr_ns_request): Likewise.
9555         (_xdr_ib_request): Likewise.
9556         (_xdr_nis_taglist): Likewise.
9557         (xdr_cback_data): Likewise.
9558         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9559         (xdr_ypresp_maplist): Likewise.
9561         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9563         * posix/regex_internal.h: Prevent some declarations and definitions
9564         to be seen when used in tests.
9566         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9567         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9569         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9571         * config.make.in (datarootdir): Add to shut up configure.
9573         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9574         associativity for fully-associative caches.
9576         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9577         requests.  Fill on more associativity values for L2.
9578         Patch mostly by Evandro Menezes.
9580 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9582         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9583         (_libc_vdso_platform_setup): Avoid using exported variable by using
9584         alias.
9586         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9588         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9589         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9590         defined.
9592 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9594         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9595         align stack for call if pltexit is to be used.
9597         [BZ #3924]
9598         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9599         align for function call in case pltexit has to be called later.
9601         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9602         implicit atomic operation when storing function pointer.
9603         (_dl_runtime_profile): Likewise.
9605 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9607         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9608         NIS_NOTFOUND.
9610 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9612         [BZ #4566]
9613         * string/strtok.c: Fix typo in comment.
9615         [BZ #4582]
9616         * debug/segfault.c: Fix typos in comments.
9618         [BZ #4588]
9619         * stdio-common/tempnam.c: Fix comment, it is not checked that
9620         TMPDIR points to a writable directory.
9622         [BZ #4726]
9623         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9624         memory allocated for the name server address.
9626         [BZ #4946]
9627         * nscd/connections.c (handle_request): Using sendfile always
9628         requires that mmap is used for the database.
9629         Patch by Petr Baudis <pasky@suse.cz>.
9631         [BZ #4905]
9632         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9633         suddenly has two or more addresses, ignore it and remove the old
9634         entry.
9636         [BZ #4814]
9637         * resolv/res_hconf.c: Prepare for compiling outside libc.
9638         * nscd/res_hconf.c: New file.
9639         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9640         the new file.
9641         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9642         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9644         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9646         [BZ #4925]
9647         * debug/pcprofiledump.c: Turn on internationalization by calling
9648         setlocale.  Patch mostly by Benno Schulenberg.
9650         [BZ #4936]
9651         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9652         the state.
9653         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9654         * iconvdata/bug-iconv5.c: New file.
9656 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9658         [BZ #4896]
9659         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9660         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9661         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9662         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9663         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9664         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9665         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9666         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9668 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9670         [BZ #4937]
9671         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9672         lookup loop.  Suggested by John Reiser.
9674 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9676         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9678 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9680         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9681         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9682         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9683         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9684         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9685         to...
9686         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9688 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9690         * po/nl.po: Update from translation team.
9692 2007-08-16  Andreas Jaeger  <aj@suse.de>
9694         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9695         Reported by Peter Festner <peter.festner@ewetel.net>.
9697 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9699         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9701 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9703         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9704         to check for undefined symbols.
9706         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9707         If the syscall fails, set errno to the actual returned error number
9708         rather than EINVAL.
9709         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9710         arguments are incorrect, set errno to EINVAL, if the syscall
9711         fails, set errno to the actual returned error number.
9713         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9714         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9716         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9717         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9718         file.
9719         (ASI_PNF, ASI_BLK_P): Don't define.
9720         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9721         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9722         file.
9723         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9724         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9725         file.
9727 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9729         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9730         FE_UNDERFLOW on Niagara CPUs.
9732         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9733         exceptions.
9735 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9737         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9738         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9739         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9740         flush should be used or not inside of the function.
9741         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9743         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9744         __thread_start): Use HIDDEN_JUMPTARGET.
9745         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9746         __thread_start): Likewise.
9747         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9749         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9750         Add libc_hidden_proto.
9751         (STRTOF): Add libc_hidden_proto.
9752         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9753         (strtold_l, wcstold_l): Use them as second argument for
9754         long_double_symbol.
9756 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9758         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9760 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9762         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9764 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9766         * po/bg.po: New file.  From the translation team.
9768 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9770         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9771         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9772         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9773         when each feature was introduced.
9775         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9776         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9777         (CHECK_HASH): New macro.
9778         (PREPARE_VERSION): Use it.
9780         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9781         prototype if not __ASSUME_PSELECT.
9782         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9783         prototype if not __ASSUME_PPOLL.
9785         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9787         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9788         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9789         is defined.
9791 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9793         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9794         (_libc_vdso_platform_setup): If vDSO is not available point
9795         __vdso_gettimeofday to the vsyscall.
9796         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9797         __vdso_gettimeofday instead of vsyscall.
9799 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9801         * nscd/servicescache.c: Include kernel-features.h.
9802         * nscd/gai.c: Likewise.
9803         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9804         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9805         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9806         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9807         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9808         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9809         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9810         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9811         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9813 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9815         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9816         and _dl_get_origin defines anymore.
9818         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9819         Build fix for systems which might lack POSIX timer support.
9821         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9822         (_libc_vdso_platform_setup): Mangle function pointers before storing
9823         them.
9824         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9825         Demangle vdso pointer before use.
9826         (INTERNAL_VSYSCALL): Likewise.
9828         * elf/cache.c (primes): Mark as const.
9829         Noted by Roland McGrath.
9831 2007-08-01  Andreas Jaeger  <aj@suse.de>
9832             Jakub Jelinek  <jakub@redhat.com>
9834         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9835         (options): Add option.
9836         (parse_opt): Handle option.
9837         (manual_link): Adjust process_file caller.  Call implicit_soname.
9838         (search_dir): Formatting.  Use and populate auxiliary cache.
9839         (main): Load and save auxiliary cache.
9840         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9841         stat64 from fstat64 to caller.
9842         (implicit_soname): New function.
9843         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9844         leave *soname as NULL.
9845         * elf/cache.c: Include libgen.h.
9846         (print_entry, print_cache, compare, save_cache, add_to_cache):
9847         Formatting and cleanups.
9848         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9849         aux_cache_file): New structures.
9850         (AUX_CACHEMAGIC): Define.
9851         (primes): New array.
9852         (aux_hash_size, aux_hash): New variables.
9853         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9854         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9855         load_aux_cache, save_aux_cache): New functions.
9856         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9857         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9858         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9859         (process_file): Adjust prototype.
9861 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9863         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9864         with __need_size_t.
9866 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9868         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9869         r_found_version structure as second parameter.
9870         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9871         (_dl_vdso_vsym): Change type of second parameter accordingly.
9872         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9873         (_libc_vdso_platform_setup): Adjust.
9874         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9875         (_libc_vdso_platform_setup): Likewise.
9877         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9878         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9879         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9880         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9881         * csu/libc-start.c: Pretty printing.
9882         Use VDSO_SETUP if defined.
9883         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9884         and let generic code call into _libc_vdso_platform_setup.
9885         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9886         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9887         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9888         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9889         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9890         for GLIBC_PRIVATE.
9891         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9892         (sysdep_rountines): Add dl-vdso.
9894         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9895         of routines.
9897         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9898         attribute_hidden to __vdso_gettimeofday prototype.
9900 2007-08-12  Roland McGrath  <roland@redhat.com>
9902         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9903         From: Karl Berry <karl@freefriends.org>.
9905 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9907         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9908         an atime update for the files we read.
9910 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9912         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9914         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9915         instead of mkstemp.
9917         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9918         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9919         * misc/mkostemp.c: New file.
9920         * misc/mkostemp64.c: New file.
9921         * stdlib/stdlib.h: Declare the new functions.
9922         * sysdeps/posix/tempname.c: Add new parameter which is added to
9923         the flags for open.  Remove __GT_BIGFILE handling.
9924         * stdio-common/tempname.c: Likewise.
9925         * include/stdio.h: Adjust __gen_tempname prototype.
9926         Renumber __GT_* constants.
9927         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9928         * misc/mkdtemp.c: Likewise.
9929         * misc/mkstemp.c: Likewise.
9930         * misc/mkstemp64.c: Likewise.
9931         * misc/mktemp.c: Likewise.
9932         * stdio-common/tempnam.c: Likewise.
9933         * stdio-common/tmpfile.c: Likewise.
9934         * stdio-common/tmpfile64.c: Likewise.
9935         * stdio-common/tmpnam.c: Likewise.
9936         * stdio-common/tmpnam_r.c: Likewise.
9938 2007-08-10  Roland McGrath  <roland@frob.com>
9940         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9941         New macros.
9942         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9943         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9945 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9947         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9948         possible.
9949         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9950         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9951         * nss/nss_files/files-have_o_cloexec.c: New file.
9953         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9954         available.
9956 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9958         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9959         ___new_wcstold_l): New weak aliases.
9960         (strtold_l, wcstold_l): Use them as second argument for
9961         long_double_symbol.
9963 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9965         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9966         register in test for error.
9968         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9969         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9971         * po/sv.po: Update from translation team.
9973 2007-08-06  Roland McGrath  <roland@redhat.com>
9975         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9976         Remove __strto*_l inlines.
9977         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9978         * stdlib/strtod.c: Add libc_hidden_def.
9979         * stdlib/strtod_l.c: Likewise.
9980         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9981         for __new_strtold and __new_wcstold.
9982         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9983         __STRTOF, STRTOF.
9984         * stdlib/strtol.c: Add libc_hidden_def.
9985         * stdlib/strtol_l.c: Likewise.
9986         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9987         strtoq.
9989         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9991         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9992         * scripts/data/localplt-generic.data: ... here.
9993         * elf/Makefile (check-data): Get generic file if no other.
9994         ($(objpfx)check-localplt.out): Make target unconditional.
9996         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9997         Use ElfW(Nhdr).
9999 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
10001         * po/zh_CN.po: Updated translation from translation team.
10003 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
10005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
10006         Don't use CGOTSETUP and CGOTRESTORE macros.
10008 2007-08-04  Roland McGrath  <roland@redhat.com>
10010         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
10012 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
10014         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
10015         __extension__ around the whole statement expression.
10017 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
10019         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
10020         elements during initialization.
10022         * po/pl.po: Updated translation from translation team.
10023         * po/tr.po: Likewise.
10024         * po/nl.po: Likewise.
10026 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
10028         * rt/aio.h: Add __nonnull attributes.
10030 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
10032         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
10033         * stdlib/Makefile (tests): Add tst-strtod5.
10034         (tst-strtod5-ENV): New.
10035         * stdlib/tst-strtod5.c: New file.
10037         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
10038         failed.
10039         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
10040         on failure.
10042         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
10043         allocated.
10045 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
10047         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
10048         numbers.
10050 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
10052         * io/Makefile (aux): Add have_o_cloexec.
10053         * include/fcntl.h: Declare __have_o_cloexec.
10054         * io/have_o_cloexec.c: New file.
10055         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
10056         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
10057         fcntl call if not necessary.
10058         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
10059         of local variable.
10061         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
10062         Avoid memset, add explicit initialization.
10063         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
10064         to the end and change into zero-sized array.
10065         Move lock member to fill a hole on 64-bit platforms.
10067         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
10068         inline functions.
10069         * include/stdlib.h: Add __strto*_internal prototypes here.
10070         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
10071         inline functions.
10072         * include/wchar.h: Add __wcsto*_internal prototypes.
10073         * sysdeps/generic/inttypes.h: No need to protect the declaration
10074         of the __strto*_internal and __wcsto*_internal members here.
10076         * rt/mqueue.h: Change const to __const and add nonnull attributes.
10078 2007-08-02  Roland McGrath  <roland@redhat.com>
10080         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
10081         $(inst_bindir)/getconf if possible.
10083         * posix/Makefile ($(objpfx)getconf.speclist): New target.
10084         (generated): Add it.
10085         ($(inst_libexecdir)/getconf): Use it.
10087 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
10089         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10090         /proc is faster and sufficient.  /sys is still needed for
10091         __get_nprocs_conf.
10093 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
10095         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10096         syscall as __fallocate64.
10097         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10098         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10100 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
10102         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10103         value.
10105         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10106         if off_t is different rank from size_t.
10108         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10109         uw_frame_state_for): Avoid type punning warnings.
10110         * sysdeps/generic/unwind-dw2-fde-glibc.c
10111         (_Unwind_IteratePhdrCallback): Likewise.
10112         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10113         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10114         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10115         pointers.
10117 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
10119         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10120         total processors using sysfs.
10121         (__get_nprocs): Use sysfs to determine which processors are online.
10123 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
10125         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10126         syscall arguments count.
10128         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10130 2007-07-30  Roland McGrath  <roland@redhat.com>
10132         * manual/libc.texinfo: Update copyrights, formatting magic, and
10133         @dircategory.  From Karl Berry <karl@freefriends.org>.
10135 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
10137         [BZ #4860]
10138         * io/Makefile (headers): Add bits/fcntl2.h.
10140         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10141         using gcc builtin.
10142         (__CPU_EQUAL_S): Likewise.
10144         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10145         (tests): Add tst-cpuset.
10146         * posix/sched_cpualloc.c: New file.
10147         * posix/sched_cpufree.c: New file.
10148         * posix/tst-cpuset.c: New file.
10149         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10150         GLIBC_2.7.
10151         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10152         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10153         macros.  Define CPU_*_S macros.
10155 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10157         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10158         entry.
10160         [BZ #4858]
10161         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10162         #.0g and value rounded to 1.0.
10163         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10165 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
10167         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10168         for int_frac_digits and frac_digits.
10170         * login/logout.c (logout): Avoid aliasing violation.
10171         * login/logwtmp.c (logwtmp): Likewise.
10173         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10175         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10176         to avoid warning.
10177         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10178         warning.
10179         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10180         warning.
10181         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10182         to avoid warnings.
10184         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10185         void **.
10186         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10188         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10189         char * to avoid warning.
10190         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10192         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10194         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10195         allocate_arrays): Cast second argument to charmap_find_symbol
10196         to char * to avoid warnings.
10198         * locale/programs/repertoire.c (repertoire_new_char): Change
10199         from_nr, to_nr and cnt to unsigned long, adjust printf format
10200         string.
10202         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10203         Cast second argument to new_element to char * to avoid warnings.
10205         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10207         * intl/gettextP.h (struct loaded_domain): Change plural to const
10208         struct expression *.
10209         * intl/plural-eval.c (plural_eval): Change first argument to
10210         const struct expression *.
10211         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10212         argument to const struct expression **.
10213         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10214         prototypes.
10215         * intl/loadmsgcat (_nl_unload_domain): Cast away const
10216         in call to __gettext_free_exp.
10218         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10219         unitialized wstring/wpattern var warnings.
10221         * posix/runtests.c (struct a_test): Make data field const char *.
10223         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10224         vars if not LDBL_MANT_DIG >= 106.
10226         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10228         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10229         __find_specmb to avoid warning.
10231         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10233         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10234         to avoid warnings.
10236         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10237         initializer.
10239         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10240         tv var when it will be actually used.
10242         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10243         to avoid warnings.
10245         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10246         char array resp. pointer.
10247         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10248         char array.
10249         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10250         to const unsigned char **.
10251         (ucs4_to_cns11643): Change second argument to unsigned char *.
10252         * iconvdata/euc-tw.c (BODY): Change endp type to
10253         const unsigned char *.
10254         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10255         to unsigned char *.
10256         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10257         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10258         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10259         types to unsigned char pointers/arrays instead of char.
10260         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10261         to unsigned char *.
10262         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10263         * iconvdata/jis0212.h: Include assert.h.
10264         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10265         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10266         of trying to handle that.
10267         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10268         shut up a warning.
10269         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10270         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10271         two dimensional const unsigned char arrays.
10272         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10273         Initialize endp to inptr to shut up a warning.
10275 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10277         [BZ #4772]
10278         * time/strptime_l.c (__strptime_internal): Silently ignore
10279         strftime modifiers and field width in recursive calls.
10281         * include/time.h (enum ptime_locale_status): Remove.
10282         (__strptime_internal): Remove decided and era_cnt arguments,
10283         add statep argument.
10284         * time/strptime_l.c (__strptime_internal): Remove decided
10285         and era_cnt arguments, add statep argument.  Don't recompute
10286         any fields in recursive calls, only update caller's tm
10287         and state, if recursive call fails, don't change tm nor
10288         any state.
10289         (get_alt_number): Adjust.
10290         (recursive): Adjust caller.
10291         (strptime): Likewise.
10292         * time/strptime.c (strptime): Likewise.
10294 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10296         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10297         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10298         if from and to charsets are the same.
10299         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10300         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10301         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10303 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10305         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10306         Don't define wint_t when __need_mbstate_t unless it
10307         is necessary.
10308         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10309         in the typedef if possible.
10310         * wctype/wctype.h (wint_t): Define by including
10311         wchar.h with __need_wint_t instead of including stddef.h
10312         with __need_wint_t and as fallback definining it ourselves.
10313         * iconv/gconv.h (__need_wint_t): Define before including
10314         wchar.h.
10315         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10316         or _GLIBCPP_USE_WCHAR_T.
10317         (__need_wchar_t): Don't define
10318         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10319         (__need_wint_t): Don't define before including stddef.h,
10320         define before including wchar.h only if _LIBC or
10321         _GLIBCPP_USE_WCHAR_T.
10322         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10323         * sysdeps/mach/hurd/_G_config.h: Likewise.
10324         * sysdeps/generic/_G_config.h: Likewise.
10325         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10326         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10327         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10328         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10330 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10332         * sysdeps/posix/posix_fallocate64.c: Undefine
10333         __posix_fallocate64_l64 before alias handling.
10334         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10335         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10336         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10337         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10339         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10341 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10343         * locale/programs/ld-collate.c (atwc): New variable.
10344         (add_to_tablewc): New toplevel function, moved from collate_output.
10345         (collate_output): Remove add_to_tablewc nested function.
10347         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10348         (name_insert): New function.
10349         (write_output): Remove hash_table and hash_size vars and name_insert
10350         nested function.
10352 2007-07-24  Roland McGrath  <roland@redhat.com>
10354         * Makerules (install-others-programs-nosubdir): New target.
10355         (install-no-libc.a-nosubdir): Depend on it.
10357         * iconv/Makefile (install-others-programs): Set this instead of
10358         install-others.
10359         * login/Makefile (install-others-programs): Likewise.
10360         * posix/Makefile (install-others-programs): Likewise.
10362         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10363         dependencies.
10365 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10367         * io/Makefile (tests): Add tst-posix_fallocate.
10368         * io/tst-posix_fallocate.c: New file.
10370         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10371         __ASSUME_FALLOCATE.
10373 2007-07-22  Roland McGrath  <roland@frob.com>
10375         * hurd/getdport.c: Add missing copyright year update.
10377         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10378         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10380 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10382         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10384         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10385         O_CLOEXEC is needed.
10386         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10387         Avoid additional fcntl to set O_CLOEXEC if not needed.
10388         * nis/nss_compat/compat-initgroups.c: Likewise.
10389         * nis/nss_compat/compat-pwd.c: Likewise.
10390         * nis/nss_compat/compat-spwd.c: Likewise.
10392 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10394         [BZ #3665]
10395         * manual/errno.texi: Change ECANCELED value to 119.
10397         [BZ #4610]
10398         * mach/lock-intern.h: Include <sys/cdefs.h>.
10400         [BZ #4178]
10401         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10402         reading A.
10404         [BZ #4126]
10405         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10406         to __sigsuspend.
10408         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10410 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10412         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10413         `__ASSEMBLER__'.
10414         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10416 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10418         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10419         descriptor received from nscd.
10421         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10423         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10424         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10425         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10426         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10427         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10428         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10430 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10432         [BZ #4816]
10433         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10435         [BZ #4813]
10436         * login/forkpty.c (forkpty): Close master and slave fds on
10437         fork failure.  Patch by
10438         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10440 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10442         * include/features.h (__USE_ISOC95): New define.
10443         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10444         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10445         for -std=iso9899:199409.
10446         * CONFORMANCE: Remove comments about unsupported AMD1.
10448 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10450         * sysdeps/ia64/sched_cpucount.c: New file.
10451         * sysdeps/powerpc/sched_cpucount.c: New file.
10453         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10454         __BEGIN_DECLS/__END_DECLS around the prototype.
10455         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10456         pointer to const cpu_set_t.
10458         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10459         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10460         __need_size_t and include stddef.h.
10461         * sysvipc/sys/msg.h: Likewise.
10462         * posix/sched.h: Likewise.
10463         * hurd/hurd/signal.h (__need_size_t): Define.
10465         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10466         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10467         no longer defines wint_t or wchar_t.
10469         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10470         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10471         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10472         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10473         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10474         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10475         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10476         * debug/printf_chk.c (__printf_chk): Likewise.
10477         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10478         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10480         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10481         Define.
10483         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10484         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10486 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10488         [BZ #4792]
10489         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10490         * malloc/malloc.h (realloc): Likewise.
10492         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10493         if one of proc_file_chain streams has that fileno.
10494         * stdio-common/Makefile (tests): Add tst-popen2.
10495         * stdio-common/tst-popen2.c: New test.
10497 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10499         * elf/ldconfig.c: Allow GPLv2 or any later version.
10500         * elf/readlib.c: Likewise.
10501         * elf/chroot_canon.c: Likewise.
10502         * elf/cache.c: Likewise.
10503         * nscd/mem.c: Likewise.
10504         * nscd/getpwuid_r.c: Likewise.
10505         * nscd/grpcache.c: Likewise.
10506         * nscd/aicache.c: Likewise.
10507         * nscd/getsrvbynm_r.c: Likewise.
10508         * nscd/nscd.c: Likewise.
10509         * nscd/servicescache.c: Likewise.
10510         * nscd/getsrvbypt_r.c: Likewise.
10511         * nscd/initgrcache.c: Likewise.
10512         * nscd/gethstbyad_r.c: Likewise.
10513         * nscd/gethstbynm2_r.c: Likewise.
10514         * nscd/getgrnam_r.c: Likewise.
10515         * nscd/nscd_setup_thread.c: Likewise.
10516         * nscd/getpwnam_r.c: Likewise.
10517         * nscd/gai.c: Likewise.
10518         * nscd/connections.c: Likewise.
10519         * nscd/dbg_log.c: Likewise.
10520         * nscd/cache.c: Likewise.
10521         * nscd/hstcache.c: Likewise.
10522         * nscd/nscd_conf.c: Likewise.
10523         * nscd/getgrgid_r.c: Likewise.
10524         * nscd/pwdcache.c: Likewise.
10525         * catgets/gencat.c: Likewise.
10526         * locale/programs/linereader.h: Likewise.
10527         * locale/programs/locarchive.c: Likewise.
10528         * locale/programs/ld-paper.c: Likewise.
10529         * locale/programs/locfile-kw.h: Likewise.
10530         * locale/programs/ld-address.c: Likewise.
10531         * locale/programs/xmalloc.c: Likewise.
10532         * locale/programs/ld-time.c: Likewise.
10533         * locale/programs/localedef.c: Likewise.
10534         * locale/programs/simple-hash.c: Likewise.
10535         * locale/programs/xstrdup.c: Likewise.
10536         * locale/programs/ld-numeric.c: Likewise.
10537         * locale/programs/locfile-kw.gperf: Likewise.
10538         * locale/programs/ld-collate.c: Likewise.
10539         * locale/programs/charmap-kw.gperf: Likewise.
10540         * locale/programs/charmap.h: Likewise.
10541         * locale/programs/charmap-kw.h: Likewise.
10542         * locale/programs/config.h: Likewise.
10543         * locale/programs/locfile.c: Likewise.
10544         * locale/programs/ld-ctype.c: Likewise.
10545         * locale/programs/charmap.c: Likewise.
10546         * locale/programs/ld-messages.c: Likewise.
10547         * locale/programs/repertoire.h: Likewise.
10548         * locale/programs/locale.c: Likewise.
10549         * locale/programs/ld-name.c: Likewise.
10550         * locale/programs/linereader.c: Likewise.
10551         * locale/programs/locfile.h: Likewise.
10552         * locale/programs/3level.h: Likewise.
10553         * locale/programs/ld-monetary.c: Likewise.
10554         * locale/programs/ld-measurement.c: Likewise.
10555         * locale/programs/charmap-dir.c: Likewise.
10556         * locale/programs/ld-identification.c: Likewise.
10557         * locale/programs/localedef.h: Likewise.
10558         * locale/programs/charmap-dir.h: Likewise.
10559         * locale/programs/repertoire.c: Likewise.
10560         * locale/programs/simple-hash.h: Likewise.
10561         * locale/programs/ld-telephone.c: Likewise.
10562         * locale/programs/locale-spec.c: Likewise.
10563         * locale/programs/locfile-token.h: Likewise.
10564         * posix/getconf.c: Likewise.
10565         * iconv/dummy-repertoire.c: Likewise.
10566         * iconv/iconv_charmap.c: Likewise.
10567         * iconv/iconvconfig.c: Likewise.
10568         * iconv/iconv_prog.c: Likewise.
10569         * malloc/memusagestat.c: Likewise.
10570         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10572 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10574         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10575         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10576         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10577         check for the first argument.
10579 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10581         [BZ #4775]
10582         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10583         (__tgmath_real_type): Fix if expr is const int or other const
10584         qualified integral type.
10585         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10586         expressions and handle const qualified arguments.
10587         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10588         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10589         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10590         statement expressions.
10591         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10592         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10593         (__TGMATH_UNARY_IMAG): Define.
10594         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10595         * math/Makefile (tests): Add test-tgmath2.
10596         (CFLAGS-test-tgmath2.c): Add.
10597         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10598         count_cfloat, count_cldouble): New variables.
10599         (NCCALLS): Define.
10600         (main): Check number of complex calls as well.
10601         (F(compile_test)): Add complex tests and tests with const qualified
10602         arguments.
10603         (y, z, ccount): Define.
10604         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10605         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10606         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10607         F(cproj)): New functions.
10608         * math/test-tgmath2.c: New test.
10610 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10612         [BZ #4776]
10613         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10614         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10615         instead output ".".
10616         * dlfcn/Makefile (distribute): Add glreflib3.c.
10617         (module-names): Add glreflib3.
10618         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10619         glreflib1.so.
10620         (LDFLAGS_glreflib3.so): New.
10621         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10622         glreflib1.so.
10623         * dlfcn/glreflib3.c: New file.
10625         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10626         returned -1, return NULL.
10627         * intl/explodename.c (_nl_explode_name): Return -1 if
10628         _nl_normalize_codeset failed.
10630 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10632         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10633         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10634         and avoid branch misspredicts for > 31 bytes memset case.
10635         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10636         Remove toc ref to __cache_line_size.
10638         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10639         to get ISA-V2.0 branch hints.
10640         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10641         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10642         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10643         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10644         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10645         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10646         Remove toc ref to __cache_line_size.
10648         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10649         Include math_ldbl_opt.h.
10651 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10653         [BZ #4773]
10654         * time/strptime_l.c (__strptime_internal): Implement greedy
10655         matching of weekday and month names.
10657 2007-07-09  Roland McGrath  <roland@redhat.com>
10659         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10660         (ELF_NOTE_ABI): Use it.
10661         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10663 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10665         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10666         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10668 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10670         [BZ #4745]
10671         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10672         in loop to look for conversion specifier to avoid testing of
10673         wrong errno value.
10674         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10675         * stdio-common/bug18.c: New file.
10676         * stdio-common/bug18a.c: New file.
10677         * stdio-common/bug19.c: New file.
10678         * stdio-common/bug19a.c: New file.
10680 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10682         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10683         running awk script.
10685 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10687         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10688         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10689         Return NULL if mmap failed instead of asserting it does not.
10690         (calloc): Check for integer overflow.
10692         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10693         than LONG_MAX / 10.
10695 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10697         [BZ #4702]
10698         * nis/nss-default.c: Include errno.h.
10699         (init): Preserve errno.
10701 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10703         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10705 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10707         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10709 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10711         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10713 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10715         * sysdeps/s390/dl-procinfo.c: New file.
10716         * sysdeps/s390/dl-procinfo.h: New file.
10717         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10719 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10721         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10722         in PT_NOTE segments with multiple notes.
10723         * elf/readelflib.c (process_elf_file): Likewise.
10725 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10727         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10728         ISO C compliant.
10730 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10732         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10734 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10736         * include/link.h: Don't include rtld-lowlevel.h.
10737         (struct link_map): Remove l_scope_lock.
10738         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10739         (_dl_scope_free_list): New field (variable) in _rtld_global.
10740         (DL_LOOKUP_SCOPE_LOCK): Remove.
10741         (_dl_scope_free): New prototype.
10742         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10743         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10744         (_dl_profile_fixup): Likewise.
10745         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10746         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10747         THREAD_GSCOPE_RESET_FLAG around it.
10748         * elf/dl-close.c (_dl_close_worker): Don't use
10749         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10750         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10751         scopes were queued or if l_scope_mem has been abandoned.
10752         * elf/dl-open.c (_dl_scope_free): New function.
10753         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10754         * elf/dl-support.c (_dl_scope_free_list): New variable.
10755         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10756         Remove DL_LOOKUP_SCOPE_LOCK handling.
10757         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10758         handling.
10759         * elf/dl-object.c (_dl_new_object): Don't use
10760         __rtld_mrlock_initialize.
10762 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10764         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10765         to fill in holes
10766         (rtld_global_ro): Likewise.
10768 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10770         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10771         Move PT_LOAD checking to...
10772         (_dl_addr_inside_object): ... here, new function.
10773         * elf/dl-sym.c (do_sym): If not l_contiguous,
10774         call _dl_addr_inside_object.
10775         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10776         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10777         * elf/dl-open.c (dl_open_worker): Likewise.
10778         (_dl_addr_inside_object): New function if IS_IN_rtld.
10779         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10780         holes are present or are PROT_NONE protected.
10781         * include/link.h (struct link_map): Add l_contiguous field.
10782         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10784 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10785             Tomas Janousek  <tjanouse@redhat.com>
10786             Ulrich Drepper  <drepper@redhat.com>
10788         [BZ #4647]
10789         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10790         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10791         socket.
10792         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10793         unused member a bitmap.
10794         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10795         servers are configured.
10797 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10799         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10801 2007-06-17  Andreas Schwab  <schwab@suse.de>
10803         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10805 2007-06-16  Andreas Jaeger  <aj@suse.de>
10807         [BZ #4125]
10808         * sysdeps/unix/sysv/linux/sys/ptrace.h
10809         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10810         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10811         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10812         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10813         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10814         Define.
10815         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10816         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10817         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10818         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10820 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10822         [BZ #4599]
10823         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10824         determining whether there are IPv4/IPv6 addresses, ignore loopback
10825         addresses.
10827 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10829         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10830         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10831         as the return type.  Change type of "r" variable to CMPtype.
10832         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10833         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10834         * soft-fp/gedf2.c (__gedf2): Likewise.
10835         * soft-fp/gesf2.c (__gesf2): Likewise.
10836         * soft-fp/getf2.c (__getf2): Likewise.
10837         * soft-fp/ledf2.c (__ledf2): Likewise.
10838         * soft-fp/lesf2.c (__lesf2): Likewise.
10839         * soft-fp/letf2.c (__letf2): Likewise.
10840         * soft-fp/unorddf2 (__unorddf2): Likewise.
10841         * soft-fp/unordsf2 (__unordsf2): Likewise.
10842         * soft-fp/unordtf2 (__unordtf2): Likewise.
10844 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10846         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10847         make sure gcc doesn't mess around with this.
10849 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10851         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10853 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10855         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10856         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10857         at most once per _dl_close_worker.
10859 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10861         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10862         __sched_cpucount as const.
10863         * posix/sched_cpucount.c: Adjust.
10865         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10866         instruction for counting bits.
10867         * sysdeps/x86_64/sched_cpucount.c: New file.
10869 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10871         * configure.in: Avoid variable named BASH.
10872         * config.make.in: Likewise.
10873         Patch in part by Mike Frysinger.
10875 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10877         [BZ #4586]
10878         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10879         pseudo-zeros as zero.
10880         * sysdeps/x86_64/ldbl2mpn.c: New file.
10881         * sysdeps/ia64/ldbl2mpn.c: New file.
10883 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10885         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10886         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10887         Remove unreachable code at the end.
10889 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10891         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10892         ldbl-128ibm in comment.
10893         (fpclassifyl): Correct classification of denormals.
10894         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10895         return value for MIN denormal. Rewrite using long double math too
10896         correctly handle denormals and canonicalize the results.
10898 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10900         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10901         (__mpn_construct_long_double): Fix conversion where result ought
10902         to be smaller than __LDBL_MIN__, or the low double should be
10903         denormal.  Fix decision where to negate low double - honor round
10904         to even rules.
10905         * stdio-common/tst-sprintf2.c: Include string.h.
10906         (COMPARE_LDBL): Define.
10907         (TEST): Also test whether a string hexadecimal float representation
10908         can be parsed back to the number.
10909         (main): Add a couple of further tests.
10911 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10913         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10914         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10915         is non-zero, but smaller than 2 * __DBL_MIN__.
10916         * stdio-common/tst-sprintf2.c: New test.
10917         * stdio-common/Makefile (tests): Add tst-sprintf2.
10919         * math/test-misc.c (main): Don't run last batch of tests with
10920         IBM long double format.
10922 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10924         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10925         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10926         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10927         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10928         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10929         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10930         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10931         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10932         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10933         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10936         New file.
10937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10938         New file.
10939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10940         New file.
10941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10942         New file.
10943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10944         New file.
10945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10947         New file.
10948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10949         New file.
10950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10951         New file.
10952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10953         New file.
10954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10955         New file.
10957 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10959         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10960         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10961         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10962         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10963         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10964         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10965         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10966         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10968 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10970         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10971         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10972         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10973         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10974         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10975         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10976         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10977         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10979 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10981         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10982         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10983         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10984         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10986 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10988         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10989         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10991 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10993         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10994         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10995         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10996         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10998 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
11000         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
11001         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
11003 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
11005         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
11006         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
11008         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
11009         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
11010         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
11011         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11013 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
11015         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
11016         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
11017         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
11018         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
11020 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
11022         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
11023         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
11024         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
11025         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11026         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
11027         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
11029 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
11031         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
11032         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
11033         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
11034         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
11036 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
11038         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
11039         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
11040         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
11041         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
11042         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
11043         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
11044         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
11045         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
11046         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
11047         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
11048         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
11049         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
11050         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
11051         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
11052         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
11053         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
11055 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
11057         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
11058         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
11060 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
11062         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
11063         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
11065 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
11067         * sysdeps/powerpc/powerpc32/970/Implies: New file.
11068         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
11069         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
11070         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
11071         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
11072         * sysdeps/powerpc/powerpc64/970/Implies: New file.
11073         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
11074         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
11075         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
11076         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
11078 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
11080         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
11082 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
11084         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
11085         branch miss-predicts. Ensure that cache line crossing does not impact
11086         dispatch grouping.
11088 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
11090         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11091         "../../powerpc32/power4/memcopy.h".
11092         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11093         "../../powerpc32/power4/wordcopy.c".
11095 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
11097         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11098         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11099         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11100         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11101         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11102         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11104 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
11106         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11108 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
11110         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11111         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11112         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11113         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11114         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11115         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11116         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11117         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11119 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
11121         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11123 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
11125         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11126         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11127         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11128         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11129         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11130         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11131         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11133 2007-05-29  Roland McGrath  <roland@redhat.com>
11135         * po/Makefile (po-sed-cmd): New variable.
11136         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11138 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
11140         * crypt/md5-crypt.c: Fix comment.
11142         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11143         of crashing.  When this is the case or if the reply is malformed,
11144         don't try to close the new file descriptor since it does not
11145         exist.
11146         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11148 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
11150         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11151         if __NR_utimensat is not defined.
11153 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
11155         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11157 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
11159         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11160         (open): Fix comment typos.  Don't call __open_2 if flags
11161         is a compile time constant without O_CREAT.
11162         (__open64_2): Add nonnull attribute.
11163         (open64): Fix comment typos.  Don't call __open64_2 if flags
11164         is a compile time constant without O_CREAT.
11165         (__openat_2): Add nonnull attribute, fix nonnull attribute
11166         on redirect.
11167         (openat): Fix comment typos.  Don't call __openat_2 if flags
11168         is a compile time constant without O_CREAT.
11169         (__openat64_2): Add nonnull attribute, fix nonnull attribute
11170         on redirect.
11171         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
11172         is a compile time constant without O_CREAT.
11174 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
11176         * Makerules (sysd-rules): Define PTW for ptw-* files.
11177         * Versions: Define GLIBC_2.7 for libc.
11178         * include/stdio.h: Declare __fortify_fail.
11179         * debug/fortify_fail.c: New file.
11180         * debug/Makefile (routines): Add fortify_fail.
11181         * debug/chk_fail.c: Use __fortify_fail.
11182         * debug/stack_chk_fail.c: Likewise.
11183         * io/Versions: Export __open_2, __open64_2, __openat_2, and
11184         __openat64_2 for GLIBC_2.7.
11185         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11186         * io/open.c: Define *_2 variant of function which checks for O_CREAT
11187         and fails if necessary.
11188         * io/open64.c: Likewise.
11189         * io/openat.c: Likewise.
11190         * io/openat64.c: Likewise.
11191         * sysdeps/unix/sysv/linux/open64.c: Likewise.
11192         * sysdeps/unix/sysv/linux/openat.c: Likewise.
11193         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11194         * io/bits/fcntl2.h: New file.
11195         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11196         __openat64_2.
11197         * include/bits/fcntl2.h: New file.
11198         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11199         Add open_2.
11200         * sysdeps/unix/sysv/linux/open_2.c: New file.
11202 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
11204         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11205         as second parameter to handle_intel.
11207         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11208         the entry.
11210         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11211         handling to ...
11212         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
11213         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11214         cacheinfo.
11215         * sysdeps/x86_64/memcpy.S: Complete rewrite.
11216         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11217         Patch by Evandro Menezes <evandro.menezes@amd.com>.
11219         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11221 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
11223         [BZ #4525]
11224         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11225         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11226         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11228         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11230         [BZ #4514]
11231         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11232         reinitialize workend at the start of each do_positional format spec
11233         loop, free workstart before do_positional loops.
11234         (printf_unknown): Fix size of work_buffer.
11235         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11237         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11238         (public_sET_STATe): If ms->version < 3, put all chunks into
11239         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11240         chunks.
11242         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11243         * malloc/hooks.c: Likewise.
11244         * malloc/arena.c: Likewise.
11245         * malloc/malloc.c (do_check_malloc_state): Don't assert
11246         n_mmaps is not greater than n_mmaps_max.  This removes the need
11247         for the previous change.
11249         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11250         2007-05-07 commit.
11252 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11254         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11255         Define for kernel >= 2.6.22.
11257 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11259         * elf/dl-close.c (_dl_close_worker): When removing object from
11260         global scope, wait for all lookups to finish afterwards.
11261         * elf/dl-open.c (add_to_global): When global scope array must
11262         grow, allocate a new one and free old array only after all
11263         lookups finish.
11264         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11265         (_dl_lookup_symbol_x): Likewise.
11266         * elf/dl-support.c: Define _dl_wait_lookup_done.
11267         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11268         _dl_wait_lookup_done.
11270         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11271         not overlapping with arena.
11273         * malloc/mcheck.c (reallochook): If size==0, free the block.
11275         * rt/tst-shm.c: Use fstat64 instead of fstat.
11277         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11278         __NR_sync_file_range is not defined.
11280 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11282         Dummy files to prevent stub versions from being used.
11283         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11284         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11285         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11286         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11288         * version.h (VERSION): Set to 2.6.90.
11290 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11292         * version.h (VERSION): Define to 2.6.
11293         * include/features.h (__GLIBC_MINOR__): Define to 6.
11295         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11297         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11298         sizes.
11300 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11302         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11303         number of mmaps.  n_mmaps_max is the target.
11304         * malloc/hooks.c: Likewise.
11305         * malloc/arena.c: Likewise.
11307 2007-05-12  Andreas Jaeger  <aj@suse.de>
11309         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11310         getpid.
11312 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11314         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11315         adding new variables.
11317         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11318         optimize.  Completely extend global scope array before making the
11319         new entries visible.
11321 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11323         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11324         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11325         tst-getcpu.
11327         * include/link.h: Move l_version and l_nversion members around to
11328         fill gaps.
11330         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11332         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11333         (__sched_setaffinity_new): If syscall was successful and
11334         RESET_VGETCPU_CACHE is defined, use it before returning.
11335         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11337         * io/sys/stat.h: Make sure struct timespec is defined for
11338         __USE_ATFILE.
11340         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11341         UTIME_OMIT.
11342         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11343         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11344         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11345         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11346         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11347         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11348         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11349         * io/sys/stat.h: Declare utimensat, futimens.
11350         * io/utimensat.c: New file.
11351         * io/futimens.c: New file.
11352         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11353         * sysdeps/unix/sysv/linux/futimens.c: New file.
11354         * io/Makefile (routines): Add utimensat, futimens.
11355         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11356         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11357         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11358         available.
11360         * include/sys/cdefs.h: Redefine __nonnull so that test for
11361         incorrect parameters in the libc code itself are not omitted.
11363 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11365         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11366         exception in addition to inexact when asked to raise only FE_INEXACT.
11368         [BZ #3427]
11369         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11370         in *envp.
11372 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11374         [BZ #4403]
11375         * string/strfry.c (strfry): Make result more random.
11377 2007-05-07  Richard Henderson  <rth@redhat.com>
11379         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11380         if __NO_LONG_DOUBLE_MATH.
11381         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11382         available in the compiler, add .arch directive to the assembly.
11384 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11386         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11387         compat_symbol to GLIBC_2_1.
11388         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11389         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11390         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11391         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11392         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11393         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11394         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11395         libc, not libm.
11396         (__isnanl): New compat_symbol.
11398 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11399             Jakub Jelinek  <jakub@redhat.com>
11401         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11402         (new_heap): Initialize mprotect_size.
11403         (grow_heap): When growing, only mprotect from mprotect_size till
11404         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11405         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11407 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11408             Peter Bergner  <bergner@us.ibm.com>
11410         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11411         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11412         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11413         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11414         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11415         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11416         Call __fe_mask_env() if all FP exceptions disabled.
11417         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11418         from old FPSCR to new fenv to propagate DFP rounding modes.
11419         Call __fe_mask_env() if FP exceptions previously enabled.
11420         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11421         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11422         transitioning from all exceptions disabled to any exception enabled
11423         or visa versa.
11424         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11425         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11426         when transitioning from all exceptions disabled to any exception
11427         enabled or visa versa.
11428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11435 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11437         [BZ #4465]
11438         * posix/unistd.h: Remove __THROW from fdatasync.
11440 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11442         [BZ #4465]
11443         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11445 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11447         * stdio-common/vfprintf.c (process_string_arg): Optimize
11448         ridiculous precision in wide char code printing multi-byte string.
11449         Reported by Jim Meyering <jim@meyering.net>.
11451         [BZ #4131]
11452         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11453         boundaries to work around systems with overlapping binary loading.
11454         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11456 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11458         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11459         __mbsnrtowcs after last change.
11461         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11462         (get_ident): Likewise.
11464 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11466         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11467         with setting the sticky bit.
11468         * math/test-misc.c (main): Add more truncation tests.
11470 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11472         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11473         double in the function declaration.
11474         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11475         double in the function declaration.
11476         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11477         float in the function declaration.
11478         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11479         float in the function declaration.
11481         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11482         denormal operands.  Do not generate FP_EX_DENORM exception.
11483         (FP_UNPACK_RAW_EP): Ditto.
11484         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11485         undefined _FP_UNPACK_RAW_E.
11486         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11487         undefined _FP_UNPACK_RAW_EP.
11488         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11489         undefined _FP_PACK_RAW_E.
11490         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11491         undefined _FP_PACK_RAW_EP.
11493         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11494         _FP_FRAC_COPY_2.
11495         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11496         _FP_FRAC_COPY_4.
11498 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11499             Jakub Jelinek  <jakub@redhat.com>
11501         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11502         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11503         this case.
11504         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11506 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11508         * math/test-misc.c (main): Add tests for rounding long double
11509         values close to smallest double denormalized value to double.
11511 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11513         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11514         condition for truncating to 0.  Set sticky bit for such
11515         truncation.
11517 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11519         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11520         fixed length array for ignore.
11522 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11524         [BZ #4438]
11525         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11526         stack for large precisions.
11527         * stdio-common/test-vfprintf.c (main): Add test for large
11528         precision.
11530 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11532         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11533         for exponent 0.
11534         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11536         [BZ #4439]
11537         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11538         account in the size check.
11539         * resolv/tst-inet_ntop.c: New test.
11540         * resolv/Makefile (tests): Add tst-inet_ntop.
11542 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11543             Jakub Jelinek  <jakub@redhat.com>
11545         [BZ #4349]
11546         * malloc/malloc.c: Keep separate list for first blocks on the bin
11547         lists with a given size.  This helps skipping over list elements
11548         we know won't fit in two places.
11549         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11551 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11553         [BZ #4102]
11554         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11555         label to Teredo tunnel addresses 2001://32.
11557 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11559         * locale/programs/ld-collate.c (collate_read): Allow order_start
11560         after copy.
11562         * locale/programs/ld-collate.c (collate_read): Fix printing of
11563         error message.
11565         [BZ #3213]
11566         * locale/C-translit.h.in: Add entry for U2044.
11568         [BZ #4342]
11569         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11570         hexa-decimal floats without exponent.
11571         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11573 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11575         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11576         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11577         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11578         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11579         GLIBC_2.6.
11580         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11581         Add sched_getcpu.
11583 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11585         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11586         of 0 after the out_fail label.
11588 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11590         [BZ #4406]
11591         * iconv/gconv_charset.h (strip): Allow ':'.
11592         * iconv/iconv_open.c (iconv_open): Adjust comment.
11594 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11596         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11597         version.
11599 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11601         [BZ #4381]
11602         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11603         alignment of buffer and tmp_buffer.
11604         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11605         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11606         alignment of buffer.
11607         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11608         bigger than INT_MAX.
11609         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11610         h_errnop arguments.  Fail if buflen is too small.
11611         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11613 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11615         [BZ #4405]
11616         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11617         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11619 2007-04-22  Roland McGrath  <roland@redhat.com>
11621         * elf/elf.h (NT_PRXFPREG): New macro.
11623 2007-04-19  Andreas Jaeger  <aj@suse.de>
11625         [BZ #3905]
11626         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11627         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11628         Added.
11630 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11632         * include/sys/mman.h: Mark madvise hidden.
11633         * misc/madvise.c: Add libc_hidden_def.
11635 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11637         * nis/nis_domain_of.c (__nis_domain_of): New function.
11638         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11639         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11640         * nis/nis_call.c (rec_dirsearch): Likewise.
11641         (first_shoot): Likewise.  Remove search_parent_first argument.
11642         (struct nis_server_cache): Rename search_parent_first field
11643         to search_parent.
11644         (nis_server_cache_search, nis_server_cache_add): Rename
11645         search_parent_first argument to search_parent.
11646         (__nisfind_server): Likewise.  If search_parent, call
11647         __nis_domain_of.
11649 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11651         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11653 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11655         [BZ #4368]
11656         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11658 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11660         [BZ #4364]
11661         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11663 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11665         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11666         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11667         current number of locales in SUPPORTED.
11668         (create_archive): Initialize serial.
11669         (enlarge_archive): Preserve aliases rather than duplicating
11670         their locrecs.
11672 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11674         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11675         after _IO_un_link, not before it.
11677         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11678         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11679         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11681 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11683         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11684         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11685         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11686         Remove __THROW.
11687         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11688         _IO_file_xsgetn_maybe_mmap): Likewise.
11689         * libio/oldfileops.c (old_do_write): Likewise.
11690         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11691         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11692         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11693         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11694         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11695         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11696         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11697         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11698         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11699         _IO_file_underflow, _IO_file_underflow_mmap,
11700         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11701         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11702         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11703         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11704         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11705         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11706         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11707         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11708         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11709         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11710         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11711         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11712         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11713         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11714         _IO_adjust_column_internal, _IO_default_uflow_internal,
11715         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11716         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11717         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11718         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11719         _IO_file_close_it_internal, _IO_file_underflow_internal,
11720         _IO_file_overflow_internal, _IO_file_attach_internal,
11721         _IO_file_fopen_internal, _IO_file_sync_internal,
11722         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11723         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11724         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11725         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11726         _IO_seekpos_unlocked): Likewise.
11727         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11728         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11730 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11732         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11733         argument in xmalloc size computation.
11735 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11737         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11738         math_opt_barrier and math_force_eval macros.
11740 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11742         [BZ #3306]
11743         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11744         * sysdeps/i386/fpu/math_private.h: New file.
11745         * sysdeps/x86_64/fpu/math_private.h: New file.
11746         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11747         math_force_eval macros.  Use "+m" constraint on asm rather than
11748         "=m" and "m".
11749         * math/s_nextafter.c (__nextafter): Likewise.
11750         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11751         Likewise.
11752         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11753         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11754         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11755         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11756         math_opt_barrier and math_force_eval macros.
11757         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11758         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11759         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11760         (__nexttoward): Use math_opt_barrier and
11761         math_force_eval macros.  Use "+m" constraint on asm rather than
11762         "=m" and "m".  Only use asm to force double result if
11763         FLT_EVAL_METHOD is 2.
11764         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11765         (__nexttowardf): Use math_opt_barrier and
11766         math_force_eval macros.  Use "+m" constraint on asm rather than
11767         "=m" and "m".  Only use asm to force double result if
11768         FLT_EVAL_METHOD is not 0.
11769         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11770         (__nexttowardf): Use math_opt_barrier and
11771         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11772         x to float using asm.
11773         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11774         (__nldbl_nexttowardf): Use math_opt_barrier and
11775         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11776         x to float using asm.
11777         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11778         (__nexttowardf): Use math_opt_barrier and math_force_eval
11779         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11780         * math/bug-nextafter.c (zero, inf): New variables.
11781         (main): Add new tests.
11782         * math/bug-nexttoward.c (zero, inf): New variables.
11783         (main): Add new tests.
11785 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11787         [BZ #3427]
11788         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11789         exceptions both in SW and MXCSR.
11790         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11791         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11792         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11793         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11794         in MXCSR if SSE is available.
11795         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11796         and ldsodefs.h.
11797         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11798         Fix comment typo.
11799         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11800         Return 0 rather than 1.
11801         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11802         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11803         * math/test-fenv.c (feholdexcept_tests): New function.
11804         (main): Call it.
11806 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11808         [BZ #3427]
11809         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11810         in SW.
11812 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11814         [BZ #4344]
11815         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11816         Reported by David Anderson <davea42@earthlink.net>.
11818 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11820         * posix/sys/wait.h: Remove unnecessary forward declaration.
11822 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11824         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11825         with obj->do_servers after first_shoot.
11827 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11829         * posix/Makefile (routines): Add sched_cpucount.
11830         (tests): Add tst-cpucount.
11831         * posix/sched_cpucount.c: New file.
11832         * posix/tst-cpucount.c: New file.
11833         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11834         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11835         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11836         * posix/sched.h: Define CPU_COUNT.
11838 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11840         * posix/fnmatch.c (STRUCT): Define.
11841         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11842         * posix/fnmatch_loop.c (struct STRUCT): New type.
11843         (FCT): Add ends argument.  If ends != NULL and normal * is
11844         seen in the pattern, store current pattern and string pointers
11845         and return.  Adjust recursive calls.
11846         (EXT): Adjust FCT callers.
11847         (STRUCT): Undef at the end of the file.
11848         * posix/Makefile (tests): Add tst-fnmatch2.
11849         * posix/tst-fnmatch2.c: New test.
11851 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11853         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11854         and 1 on failure.
11856         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11857         Change last argument to unsigned int.
11859 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11861         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11863 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11865         * config.h.in (HAVE_LIBCAP): Add.
11866         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11867         sys/capabilities.h.
11868         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11869         free_caps.  Cast away const from 4th cap_set_flag argument.
11871 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11873         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11874         GLIBC_2.6.
11875         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11876         Add sync_file_range.
11877         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11879 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11881         * sysdeps/powerpc/bits/atomic.h
11882         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11883         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11884         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11885         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11886         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11887         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11888         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11889         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11890         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11891         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11892         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11893         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11894         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11895         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11896         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11897         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11898         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11899         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11900         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11901         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11903 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11905         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11906         (__cache_line_size): Define the variable here.  Add
11907         attribute_hidden, remove weak_extern.
11908         (__libc_start_main): Set __cache_line_size
11909         unconditionally.
11910         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11911         (__cache_line_size): Define the variable here.  Add
11912         attribute_hidden, remove weak_extern.
11913         (DL_PLATFORM_AUXV): Set __cache_line_size
11914         unconditionally.
11915         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11916         weak_extern, add attribute_hidden.
11917         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11918         defined in ld.so.
11919         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11920         definition.
11921         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11923 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11925         [BZ #4276]
11926         * timezone/africa: Update from tzdata2007d.
11927         * timezone/asia: Likewise.
11928         * timezone/australasia: Likewise.
11929         * timezone/backward: Likewise.
11930         * timezone/europe: Likewise.
11931         * timezone/iso3166.tab: Likewise.
11932         * timezone/leapseconds: Likewise.
11933         * timezone/northamerica: Likewise.
11934         * timezone/southamerica: Likewise.
11935         * timezone/zone.tab: Likewise.
11937         * timezone/private.h: Update from tzcode2007d.
11938         * timezone/zdump.c: Likewise.
11939         * timezone/zic.c: Likewise.
11941 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11943         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11944         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11945         variables.
11946         (nis_server_cache_search, nis_server_cache_add): New functions.
11947         (__nisfind_server): Use them.  Add dbp and flags argument, if
11948         call __nisbind_create.
11949         (__nisbind_create): Add server_used and current_ep arguments,
11950         only call __nis_findfastest if server_used is ~0.
11951         (__do_niscall2, __prepare_niscall): Adjust callers.
11952         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11953         ckey_cache_euid, ckey_cache_lock): New variables.
11954         (get_ckey): New function.
11955         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11956         __pmap_getnisport.  Save __pmap_getnisport result in
11957         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11958         key.
11959         * nis/nis_lookup.c (nis_lookup): Likewise.
11960         * nis/nis_table.c (nis_list): Likewise.
11961         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11962         prototypes.
11964         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11965         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11966         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11967         _nss_nisplus_getservbyport_r): Likewise.
11968         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11969         _nss_nisplus_getnetbyaddr_r): Likewise.
11970         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11971         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11972         _nss_nisplus_getntohost_r): Likewise.
11973         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11974         _nss_nisplus_getrpcbynumber_r): Likewise.
11976 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11978         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11979         * configure: Rebuilt.
11981         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11982         bit-fields.
11983         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11985 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11987         [BZ #2831]
11988         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11989         bit-fields.
11991 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11993         * nscd/gai.c: Include alloca.h.
11994         (__libc_use_alloca): Define.
11996 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11998         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11999         smaller scopes.
12000         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
12001         (DL_DST_REQUIRED): Adjust user.
12003         * include/dlfcn.h (struct link_map): New forward decl.
12005         * inet/getnameinfo.c: Include stddef.h.
12006         (getnameinfo): Use offsetof.
12008         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
12010         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
12012         * string/strerror_l.c: Include stdlib.h.
12014         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
12015         * config.make.in (gnu89-inline-CFLAGS): New variable.
12016         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
12017         -std=gnu99.
12018         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
12019         * argp/argp.h: Use it.
12020         * bits/mathinline.h: Likewise.
12021         * bits/sigset.h: Likewise.
12022         * bits/string.h: Likewise.
12023         * ctype/ctype.h: Likewise.
12024         * hurd/hurd.h: Likewise.
12025         * hurd/hurd/fd.h: Likewise.
12026         * hurd/hurd/port.h: Likewise.
12027         * hurd/hurd/signal.h: Likewise.
12028         * hurd/hurd/threadvar.h: Likewise.
12029         * hurd/hurd/userlink.h: Likewise.
12030         * io/sys/stat.h: Likewise.
12031         * libio/bits/stdio.h: Likewise.
12032         * libio/bits/stdio2.h: Likewise.
12033         * mach/lock-intern.h: Likewise.
12034         * mach/mach/mig_support.h: Likewise.
12035         * math/bits/cmathcalls.h: Likewise.
12036         * posix/bits/unistd.h: Likewise.
12037         * socket/bits/socket2.h: Likewise.
12038         * stdlib/bits/stdlib.h: Likewise.
12039         * stdlib/stdlib.h: Likewise.
12040         * string/argz.h: Likewise.
12041         * string/bits/string2.h: Likewise.
12042         * string/bits/string3.h: Likewise.
12043         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
12044         * sysdeps/generic/inttypes.h: Likewise.
12045         * sysdeps/generic/machine-lock.h: Likewise.
12046         * sysdeps/generic/machine-sp.h: Likewise.
12047         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
12048         * sysdeps/i386/i486/bits/string.h: Likewise.
12049         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
12050         * sysdeps/mach/alpha/machine-lock.h: Likewise.
12051         * sysdeps/mach/alpha/machine-sp.h: Likewise.
12052         * sysdeps/mach/i386/machine-lock.h: Likewise.
12053         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
12054         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
12055         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
12056         * sysdeps/s390/bits/string.h: Likewise.
12057         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
12058         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12059         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
12060         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12061         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12062         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
12063         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12064         * wcsmbs/bits/wchar2.h: Likewise.
12065         * wcsmbs/wchar.h: Likewise.
12066         * stdlib/gmp.h: Likewise.  Include <features.h> to get
12067         __extern_inline definition.
12069 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
12071         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
12072         NULL.
12074         [BZ #3919]
12075         * math/libm-test.inc (log_test): Test -Inf and NaN.
12076         (log10_test, log1p_test, log2_test): Test -Inf.
12077         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
12078         FE_INVALID when argument is qNaN.
12079         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
12080         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
12081         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
12082         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
12083         andb $1, %ah with testb $1, %ah, don't test for parity, instead
12084         testb $4, %ah and jump if non-zero.
12085         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12086         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12088         [BZ #4101]
12089         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12090         ancestors with the same depths.
12091         Patch by Niels Moeller <nisse@lysator.liu.se>.
12092         (filter_doc): Don't crash if argp is NULL.
12093         * argp/Makefile (tests): Add tst-argp2.
12094         * argp/tst-argp2.c: New test.
12096         [BZ #4130]
12097         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12098         open_not_cancel_2.
12099         (updwtmp_file): Likewise.
12101         [BZ #4181]
12102         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12103         (inet6_opt_append): Don't check extlen is big enough if extbuf
12104         is NULL.
12105         (inet6_opt_finish): Likewise.
12106         * inet/Makefile (tests): Add test-inet6_opt.
12107         * inet/test-inet6_opt.c: New test.
12109         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12110         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12111         NLMSG_ERR.  Instead use a page sized buffer.
12112         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12113         buffer.
12115 2007-03-14  Richard Henderson  <rth@redhat.com>
12117         * sysdeps/alpha/fpu/s_llround.c: New file.
12118         * sysdeps/alpha/fpu/s_llroundf.c: New file.
12119         * sysdeps/alpha/fpu/s_lround.c: New file.
12120         * sysdeps/alpha/fpu/s_lroundf.c: New file.
12121         * sysdeps/alpha/fpu/s_round.c: New file.
12122         * sysdeps/alpha/fpu/s_roundf.c: New file.
12123         * sysdeps/alpha/fpu/s_trunc.c: New file.
12124         * sysdeps/alpha/fpu/s_truncf.c: New file.
12126         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12127         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12128         * sysdeps/alpha/fpu/s_floor.c: Likewise.
12129         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12130         * sysdeps/alpha/fpu/s_rint.c: Likewise.
12131         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12133         * sysdeps/alpha/fpu/s_fmax.S: New file.
12134         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12135         * sysdeps/alpha/fpu/s_fmin.S: New file.
12136         * sysdeps/alpha/fpu/s_fminf.S: New file.
12137         * sysdeps/alpha/fpu/s_isnan.c: New file.
12138         * sysdeps/alpha/fpu/s_isnanf.c: New file.
12139         * sysdeps/alpha/fpu/s_llrint.c: New file.
12140         * sysdeps/alpha/fpu/s_llrintf.c: New file.
12141         * sysdeps/alpha/fpu/s_lrint.c: New file.
12142         * sysdeps/alpha/fpu/s_lrintf.c: New file.
12143         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12144         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12146         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12147         (__fdimf, fdimf, __fdim, fdim): Remove.
12148         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12149         (__isnanf, __isnan, __isnanl): New.
12151 2007-03-13  Richard Henderson  <rth@redhat.com>
12153         * sysdeps/ieee754/ldbl-128/Makefile: New file.
12155 2007-03-13  Richard Henderson  <rth@redhat.com>
12157         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12158         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12159         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12160         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12161         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12162         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12164 2007-03-13  Richard Henderson  <rth@redhat.com>
12166         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12167         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12168         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12169         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12170         Move to dl-auxv.h; initialize instead of extern weak.
12171         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12172         weak symbol.
12173         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12174         Extern instead of initialized.
12176 2007-03-13  Richard Henderson  <rth@redhat.com>
12178         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12179         __sigsuspend_nocancel.
12181 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
12183         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12184         172.16/12 address range.
12186 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
12188         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12189         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12190         message.
12192 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
12194         [BZ #4069]
12195         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12196         earlier.
12197         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12199         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12200         for x qNaN and y either +-inf or non-integer value.
12201         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12202         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12203         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12205 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
12207         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12208         from sysdep_headers.
12210 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
12212         * time/tzfile.c (find_transition): Instead of a linear search try to
12213         guess the transition index, use a linear search if the result is at
12214         most 10 transitions away from the guess or binary search otherwise.
12216 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
12218         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12219         memory reallocation.
12221 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
12223         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12224         and fix some typos.
12225         Optimize use of TOLOWER.
12227         [BZ #3325]
12228         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12229         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12230         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12232         [BZ #3458]
12233         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12234         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12236         [BZ #4076]
12237         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12238         (open_dir_stream): Likewise.
12239         * io/Makefile (tests): Add bug-ftw5.
12240         * io/bug-ftw5.c: New file.
12242         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12243         * nscd/servicescache.c (cache_addserv): Likewise.
12245         * nscd/grpcache.c (cache_addgr): In case a record changed on
12246         refresh, adjust key_copy.
12248         [BZ #4074]
12249         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12250         refresh, adjust key_copy.
12252         [BZ #4070]
12253         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12254         special cases.
12255         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12257 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12259         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12260         optimization.
12262         * stdio-common/vfscanf.c: Small cleanups throughout.
12264 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12266         [BZ #3325]
12267         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12268         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12269         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12270         Patch by Jared Casper <jaredcasper@gmail.com>.
12272         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12273         * sysdeps/unix/opendir.c: Likewise.
12274         * sysdeps/unix/readdir.c: Likewise.
12276         [BZ #2211]
12277         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12278         point numbers.
12279         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12281         * stdio-common/vfscanf.c: Fix problems in width accounting.
12282         * stdio-common/tst-sscanf.c (double_tests): New tests.
12283         (main): Hook them up.
12285         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12286         More simplifications of floating-point reader.
12288         * stdio-common/Makefile (tests): Add tst-swscanf.
12289         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12290         testing.
12291         * stdio-common/tst-swscanf.c: New file.
12293 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12295         [BZ #2633]
12296         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12297         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12298         Remove using for __jmp_buf_tag.
12299         * locale/locale.h (struct lconv): Also define in std namespace.
12300         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12302         [BZ #3842]
12303         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12304         using __libc_enable_secure.
12306         [BZ #3818]
12307         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12309         [BZ #3745]
12310         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12311         of names for ellipsises.
12313         [BZ #3348]
12314         * malloc/memusage.sh: Cleanups.
12315         * debug/xtrace.sh: Quoting and trap changes.
12317 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12319         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12321         * locale/iso-3166.def: Update entry for Serbia.
12322         * locale/iso-4217.def: Define RSD, remove CSD.
12324         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12325         and 64-bit operations.
12327         [BZ #4040]
12328         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12329         16-bit operations.
12331         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12332         of writev.
12334 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12336         [BZ #3991]
12337         * assert/assert.h (assert): Simplify.
12338         (assert_perror): Likewise.
12339         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12341         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12342         reqdata.
12344         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12345         change: don't pass NULL in place of an integer.
12347 2007-02-02  Bruno Haible  <bruno@clisp.org>
12349         [BZ #3954]
12350         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12351         Add mapping for U+327E.
12352         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12353         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12354         mapping of 0xD9 0xE8.
12355         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12356         mapping of U+327E.
12357         Reported by Jungshik Shin <jungshik@google.com>.
12359         [BZ #3955]
12360         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12361         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12362         Reported by Jungshik Shin <jungshik@google.com>.
12364 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12366         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12367         byte variants.
12369         [BZ #4040]
12370         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12371         byte variants.  Patch mostly be tom@tommay.net.
12373 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12375         [BZ #3996]
12376         * posix/glob.c (attribute_hidden): Define if not defined.
12377         (glob): Unescape dirname, filename or username when needed and not
12378         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12379         is NULL.  Handle unescaped [ in pattern without closing ].
12380         Don't pass GLOB_CHECK down to recursive glob for directories.
12381         (__glob_pattern_type): New function.
12382         (__glob_pattern_p): Implement using __glob_pattern_type.
12383         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12384         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12385         Remove unreachable code.
12386         * posix/globtest.sh: Add a couple of new tests.
12388 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12390         * po/ru.po: Update from translation team.
12392 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12394         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12395         to the list of i486+ CPUs.
12396         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12398 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12400         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12401         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12402         references.
12404 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12406         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12408         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12409         * resolv/res_mkquery.c: Define __res_nopt.
12410         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12411         try adding EDNS0 record.
12412         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12413         EDNS0 record was send make sure we don't try it again.
12414         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12415         * include/resolv.h: Declare __res_nopt.
12417 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12419         [BZ #3944]
12420         * time/strptime_l.c (__strptime_internal): Set have_mon for
12421         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12422         have been computed from tm_yday and tm_year.  Don't crash
12423         in day_of_the_week or day_of_the_year if not have_mon
12424         and tm_mon contains bogus value.
12425         * time/Makefile (tests): Add tst-strptime3.
12426         * time/tst-strptime3.c: New test.
12428 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12430         [BZ #3957]
12431         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12432         bit for RE_HAT_LISTS_NOT_NEWLINE.
12433         (build_charclass_op): Remove bogus comment.
12434         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12435         * posix/bug-regex27.c: New test.
12436         * posix/bug-regex28.c: New test.
12438 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12440         * po/sv.po: Update from translation team.
12442 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12444         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12446 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12448         * include/locale.h (__uselocale): Add libc_hidden_proto.
12449         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12451         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12452         gettimeofday.
12454 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12456         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12457         returning.
12458         (PTR_DEMANGLE): Real definition now that it's not the same as
12459         PRT_MANGLE anymore.
12460         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12462         * string/strerror_l.c: New file.
12463         * string/Makefile (routines): Add strerror_l.
12464         * string/string.h: Declare strerror_l.
12465         * string/Versions: Export strerror_l for GLIBC_2.6.
12467 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12469         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12470         as parameter.  Construct request record.  Try sending request
12471         before the first poll use, it usually succeeds.  Adjust all
12472         callers.
12473         * nscd/nscd-client.h: Define MAXKEYLEN.
12474         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12476 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12478         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12479         from return value.
12480         * nscd/nscd_helper.c: Include string.h.
12481         (__nscd_cache_search): Remove const qualifier from return value.
12482         On strict alignment architectures check hash entry and data head
12483         alignment.
12484         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12485         mmapped data during GC cycle contains garbage.  If
12486         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12487         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12488         dropped to 0.
12489         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12490         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12491         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12492         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12493         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12495 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12497         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12499 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12501         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12502         names not numbers in cfi_*.
12504 2007-01-26  Andreas Jaeger  <aj@suse.de>
12506         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12507         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12508         Correct values of PER_HPUX and PER_OSF4.
12510 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12512         * elf/dl-minimal.c: Undefine _itoa first.
12513         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12514         * malloc/mtrace.c: Revert last change.
12515         * posix/wordexp.c: Likewise.
12517 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12519         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12520         and __geode__ to the list of i486+ CPUs.
12521         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12523 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12525         * stdio-common/_itoa.c: Include <limits.h>.
12526         * stdio-common/_itowa.c: Likewise.
12528 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12530         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12531         platforms.
12532         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12533         64-bit platforms.
12534         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12535         possible.
12536         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12537         if possible.
12539         [BZ #3902]
12540         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12541         * stdio-common/Makefile (tests): Add bug17.
12542         * stdio-common/bug17.c: New file.
12544 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12546         * iconvdata/brf.c: New file.
12547         * iconvdata/testdata/BRF: New file.
12548         * iconvdata/testdata/BRF..UTF8: New file.
12549         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12550         * iconvdata/Makefile: Add rules to build BRF.
12551         * iconvdata/TESTS: Add BRF entry.
12552         * iconvdata/gconv-modules: Likewise.
12553         * iconvdata/tst-tables.sh: Likewise.
12555 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12557         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12558         type `long long int', not `long int'.
12559         (wcstoq): Likewise.
12561 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12563         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12564         of values on 64-bit platforms which are too large.
12566 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12567             Joe Kerian  <jkerian@us.us.ibm.com>
12569         [BZ #2749]
12570         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12571         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12572         (__copysignl): Use signbit() for comparison.
12573         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12574         SET_LDOUBLE_WORDS64.
12576         [BZ #2423, #2749]
12577         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12578         (__ceill): Remove calls to fegetround(), fesetround().
12579         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12580         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12581         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12583 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12585         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12587         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12589 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12591         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12592         demangle pointer.
12593         * csu/libc-start.c: Likewise.
12595 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12597         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12598         really work anyway.
12600 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12602         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12603         users.
12604         (handle_request): Remove unnecessary tests.
12606         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12608 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12610         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12611         workbits in semi-raw fraction.
12613         * math/test-misc.c: Add new tests.
12615 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12617         * math/basic-test.c: Include test-skeleton.c.
12618         (TEST_TRUNC): Define.
12619         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12620         (main): Rename to ...
12621         (do_test): ...this.  Run new tests.
12622         (TEST_FUNCTION): Define.
12624 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12625             Joe Kerian  <jkerian@us.us.ibm.com>
12627         [BZ #2749]
12628         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12629         handling for high words.
12630         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12631         and overflow for infinity.
12633 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12635         * nscd/connections.c (handle_request): Add a __builtin_expect.
12637         * nscd/connections.c (serv2db): Change type into structure which
12638         also says whether this is a request for data.  Renamed to
12639         servinfo.  All users changed.
12640         (handle_request): Much simpler test whether we should search the cache.
12642         * nscd/connections.c (handle_request): Fix thinko in selinux test
12643         invocation.
12645         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12646         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12647         it before getting dl_load_lock and then relock.
12648         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12649         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12650         case we unlocked the scope.
12651         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12652         _dl_lookup_symbol_x in case we locked the scope.
12653         (_dl_profile_fixup): Likewise.
12654         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12655         set DL_LOOKUP_SCOPE_LOCK.
12657 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12659         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12660         CFLAGS-getsrvbynpt_r.c.
12661         * nscd/getsrvbynm_r.c: New file.
12662         * nscd/getsrvbypt_r.c: New file.
12663         * nscd/nscd_getserv_r.c: New file.
12664         * nscd/servicescache.c: New file.
12665         * nscd/Makefile (routines): Add nscd_getserv_r.
12666         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12667         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12668         CFLAGS-getsrvbypt_r.c.
12669         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12670         table.  Add entries for services database.
12671         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12672         services database.
12673         (dbs): Add .reset_res and servdb initialization.
12674         (serv2db): Add entries for services database.
12675         (verify_persistent_db): Accept dbnr == servdb.
12676         (invalidate_cache): Rewrite database name recognition to use a table.
12677         Call res_init() if .reset_res is set for database.
12678         (handle_request): Add code to handle services database.
12679         * nscd/gai.c: Don't define __getservbyname_r.
12680         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12681         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12682         (serv_response_header): Define.
12683         (struct datahead): Add serv_response_header member.
12684         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12685         using table.
12686         * nscd/nscd.conf: Add entries for services database.
12687         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12688         Declare serv_iov_disabled.
12689         Declare addservbyname, readdservbyname, addservbyport, and
12690         readdservbyport.
12691         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12692         (find_db): Fix error message.
12693         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12694         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12695         * nscd/selinux.c (perms): Add entries for services database.
12696         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12697         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12699         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12700         * nscd/hstcache.c: Likewise.
12701         * nscd/pwdcache.c: Likewise.
12703         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12704         computation of keylen.
12706         * include/string.h: Only redefine strndupa if this is really for
12707         libc code.
12709 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12711         * nscd/nscd_gethst_r.c: Minor cleanups.
12713         * nscd/connections.c (handle_request): Check selinux permissions
12714         for all non-admin commands.
12716         * sysdeps/i386/i486/bits/atomic.h: Define
12717         atomic_compare_and_exchange_val_acq,
12718         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12719         using __sync_* built-ins for gcc >= 4.1.
12720         * sysdeps/x86_64/bits/atomic.h: Likewise.
12722         [BZ #3840]
12723         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12724         and .oS.d files.
12726 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12728         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12729         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12730         (do_test): Check errno and exit(0) if ENOSYS.
12732 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12734         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12735         thousands separators.
12736         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12737         * stdlib/tst-strtod4.c: New test.
12739         [BZ #3855]
12740         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12741         hexadecimal digit should accept just the initial 0.
12742         * stdlib/tst-strtod2.c (tests): New variable.
12743         (do_test): Run several tests rather than just one.
12745 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12747         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12748         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12750 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12752         * io/fts.c: Make sure fts_cur is always valid after return from
12753         fts_read.
12754         Patch by Miloslav Trmac <mitr@redhat.com>.
12756 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12758         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12759         (R_MIPS_NUM): Bump by 1.
12761 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12763         * posix/execvp.c: Include alloca.h.
12764         (allocate_scripts_argv): Renamed to...
12765         (scripts_argv): ... this.  Don't allocate buffer here nor count
12766         arguments.
12767         (execvp): Use alloca if possible.
12768         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12769         * posix/tst-vfork3.c: New test.
12771 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12773         * string/Makefile (tst-strxfrm2-ENV): Define.
12774         * stdlib/Makefile (tst-strtod3-ENV): Define.
12776 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12778         * posix/getconf.c: Update copyright year.
12779         * nss/getent.c: Likewise.
12780         * iconv/iconvconfig.c: Likewise.
12781         * iconv/iconv_prog.c: Likewise.
12782         * elf/ldconfig.c: Likewise.
12783         * catgets/gencat.c: Likewise.
12784         * csu/version.c: Likewise.
12785         * elf/ldd.bash.in: Likewise.
12786         * elf/sprof.c (print_version): Likewise.
12787         * locale/programs/locale.c: Likewise.
12788         * locale/programs/localedef.c: Likewise.
12789         * nscd/nscd.c (print_version): Likewise.
12790         * debug/xtrace.sh: Likewise.
12791         * malloc/memusage.sh: Likewise.
12792         * malloc/mtrace.pl: Likewise.
12793         * debug/catchsegv.sh: Likewise.
12795 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12797         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12798         attempts.
12800 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12802         * posix/wordexp.c: Remove some unnecessary tests.
12804 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12806         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12807         blacklist the group till after we look it up.
12809 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12811         * include/atomic.h (atomic_forced_read): New macro.
12813 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12815         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12817 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12819         * nss/getXXbyYY_r.c: Include atomic.h.
12820         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12821         add atomic_write_barrier () in between.
12823         * stdlib/Makefile (tests): Add tst-makecontext.
12824         * stdlib/tst-makecontext.c: New test.
12826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12827         (__makecontext): Don't realign uc_mcontext.uc_regs.
12829 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12831         * elf/dl-support.c: Include dl-procinfo.h.
12832         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12833         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12834         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12835         Define.
12836         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12837         hardcoded constants.
12838         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12839         PPC_PLATFORM_* macros for array designators.
12841 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12843         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12844         names to the beginning.
12845         (_dl_powerpc_platforms): Add "power6x".
12846         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12847         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12848         (_DL_PLATFORMS_COUNT): Increase.
12849         (_dl_string_platform): Handle power6x case.
12850         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12851         PPC_FEATURE_POWER6_EXT): Define.
12852         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12854 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12856         [BZ #3747]
12857         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12858         [-2^31 .. 2^31) range.
12859         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12860         targets.
12861         * stdlib/tst-rand48-2.c: New test.
12862         * stdlib/Makefile (tests): Add tst-rand48-2.
12864 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12866         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12868 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12870         * misc/tst-pselect.c (do_test): Make sure the helper process is
12871         terminating when the test is aborted.
12873 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12875         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12876         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12877         Handle relatime mount option.
12879         [BZ #2337]
12880         * libio/Makefile (tests): Add tst-setvbuf1.
12881         * libio/tst-setvbuf1.c: New file.
12883 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12885         [BZ #2337]
12886         * libio/genops.c (__uflow): Fix a typo.
12887         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12888         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12889         the narrow buffer size.
12891 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12893         [BZ #2337]
12894         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12895         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12896         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12897         in _flags.
12898         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12899         _IO_wstr_finish): Likewise.
12900         * libio/wmemstream.c (open_wmemstream): Likewise.
12901         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12902         even for wide streams.
12904 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12907         kernel-features.h.
12909 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12911         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12912         separators also if no non-zero digits found.
12913         * stdlib/Makefile (tests): Add tst-strtod3.
12915 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12917         [BZ #3632]
12918         * include/features.h: Fix comment about default value for
12919         _POSIX_C_SOURCE.
12921         [BZ #3664]
12922         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12923         empty parsed strings.
12924         * stdlib/Makefile (tests): Add tst-strtod2.
12925         * stdlib/tst-strtod2.c: New file.
12927         [BZ #3673]
12928         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12929         computation.
12930         * stdlib/Makefile (tests): Add tst-atof2.
12931         * stdlib/tst-atof2.c: New file.
12933         [BZ #3674]
12934         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12935         correctly if removing trailing zero of hex-float.
12936         * stdlib/Makefile (tests): Add tst-atof1.
12937         * stdlib/tst-atof1.c: New file.
12939 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12941         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12942         Start searching for next comma at p rather than rest.
12943         * misc/Makefile (tests): Add tst-mntent2.
12944         * misc/tst-mntent2.c: New test.
12946         * misc/getusershell.c (initshells): Check for integer overflows.
12947         Make strings buffer one bigger as fgets always succeeds when second
12948         argument is 1.  Don't use calloc for shells array.  Disallow
12949         / as shell.
12951 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12953         * malloc/memusage.c: Handle realloc with new size of zero and
12954         non-NULL pointer correctly.
12955         (me): Really write first record twice.
12956         (struct entry): Make format bi-arch safe.
12957         (dest): Write out more realloc statistics.
12958         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12960 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12962         * nis/nis_subr.c (nis_getnames): Revert last change.
12964 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12966         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12967         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12968         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12969         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12970         ENOTTY.
12971         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12972         * io/tst-ttyname_r.c: New test.
12974 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12976         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12978 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12980         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12981         jump table entries.
12983 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12985         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12986         `clone' function to ensure proper unwinding stop of gdb.
12987         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12989 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12991         * nscd/nscd.init: Remove obsolete and commented-out -S option
12992         handling.
12994 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12996         [BZ #3514]
12997         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12999         [BZ #3515]
13000         * manual/string.texi (strtok): Remove duplicate paragraph.
13002 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
13004         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
13005         libgcc not supporting `rflags' unwinding (register # >= 17).
13007 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
13009         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
13010         succeeded.
13012 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
13013             Jakub Jelinek  <jakub@redhat.com>
13014             Jan Kratochvil  <jan.kratochvil@redhat.com>
13016         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
13017         unwind information.
13018         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
13019         'restore_rt' even in the 'signal' directory.
13020         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
13022 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
13024         [BZ #3559]
13025         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
13026         malloc crashed.  Don't allocate memory unnecessarily in each
13027         loop.
13029 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
13031         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
13033 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
13035         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
13037 2006-11-18  Bruno Haible  <bruno@clisp.org>
13039         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
13040         __sysconf only after having tried to call getgroups32.
13042 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
13044         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
13045         addresses for IPv4 queries if they can be mapped.
13047 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
13049         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
13050         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
13051         (signmask): Add .size directive.
13052         (othermask): Add .type directive.
13054 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
13056         * po/nl.po: Update from translation team.
13058         * timezone/zdump.c: Redo fix for BZ #3137.
13060 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
13062         * nss/nss_files/files-alias.c (get_next_alias): Set line back
13063         to first_unused after parsing :include: file.
13065 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13067         * timezone/africa: Update from tzdata2006o.
13068         * timezone/antarctica: Likewise.
13069         * timezone/asia: Likewise.
13070         * timezone/australasia: Likewise.
13071         * timezone/backward: Likewise.
13072         * timezone/europe: Likewise.
13073         * timezone/iso3166.tab: Likewise.
13074         * timezone/northamerica: Likewise.
13075         * timezone/southamerica: Likewise.
13076         * timezone/zone.tab: Likewise.
13078         * time/tzfile.c (__tzfile_read): Extend to handle new file format
13079         on machines with 64-bit time_t.
13081         * timezone/checktab.awk: Update from tzcode2006o.
13082         * timezone/ialloc.c: Likewise.
13083         * timezone/private.h: Likewise.
13084         * timezone/scheck.c: Likewise.
13085         * timezone/tzfile.h: Likewise.
13086         * timezone/tzselect.ksh: Likewise.
13087         * timezone/zdump.c: Likewise.
13088         * timezone/zic.c: Likewise.
13090         [BZ #3483]
13091         * elf/ldconfig.c (main): Call setlocale and textdomain.
13092         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13094         [BZ #3480]
13095         * manual/argp.texi: Fix typos.
13096         * manual/charset.texi: Likewise.
13097         * manual/errno.texi: Likewise.
13098         * manual/filesys.texi: Likewise.
13099         * manual/lang.texi: Likewise.
13100         * manual/maint.texi: Likewise.
13101         * manual/memory.texi: Likewise.
13102         * manual/message.texi: Likewise.
13103         * manual/resource.texi: Likewise.
13104         * manual/search.texi: Likewise.
13105         * manual/signal.texi: Likewise.
13106         * manual/startup.texi: Likewise.
13107         * manual/stdio.texi: Likewise.
13108         * manual/sysinfo.texi: Likewise.
13109         * manual/syslog.texi: Likewise.
13110         * manual/time.texi: Likewise.
13111         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13113         [BZ #3465]
13114         * sunrpc/clnt_raw.c: Minimal message improvements.
13115         * sunrpc/pm_getmaps.c: Likewise.
13116         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13117         * nis/nis_print_group_entry.c: Likewise.
13118         * locale/programs/repertoire.c: Likewise.
13119         * locale/programs/charmap.c: Likewise.
13120         * malloc/memusage.sh: Likewise.
13121         * elf/dl-deps.c: Likewise.
13122         * locale/programs/ld-collate.c: Likewise.
13123         * libio/vswprintf.c: Likewise.
13124         * malloc/memusagestat.c: Likewise.
13125         * sunrpc/auth_unix.c: Likewise.
13126         * sunrpc/rpc_main.c: Likewise.
13127         * nscd/cache.c: Likewise.
13128         * locale/programs/repertoire.c: Unify output messages.
13129         * locale/programs/charmap.c: Likewise.
13130         * locale/programs/ld-ctype.c: Likewise.
13131         * locale/programs/ld-monetary.c: Likewise.
13132         * locale/programs/ld-numeric.c: Likewise.
13133         * locale/programs/ld-time.c: Likewise.
13134         * elf/ldconfig.c: Likewise.
13135         * nscd/selinux.c: Likewise.
13136         * elf/cache.c: Likewise.
13137         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13139         [BZ #3451]
13140         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13141         change atomic.
13142         (ceil): Likewise.
13144 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13146         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13147         if N is one bigger than return value.
13148         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13149         and l1 last arguments, if buf is defined, verify the return value
13150         equals to strlen (buf) and verify no byte beyond passed length
13151         is modified.
13153 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13155         * po/sv.po: Update from translation team.
13157 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13159         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13160         noinline attribute.
13162 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13164         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13165         noinline attribute.
13167         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13168         Use __new_sys_siglist instead of _sys_siglist_internal as
13169         second macro argument.
13170         (_old_sys_siglist): Use declare_symbol_alias macro instead of
13171         strong_alias.
13173 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13175         [BZ #3493]
13176         * posix/unistd.h (sysconf): Remove const attribute.
13178         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13179         temporary or deprecated addresses.
13180         Patch by Sridhar Samudrala <sri@us.ibm.com>.
13182         * string/Makefile (tests): Add tst-strxfrm2.
13183         * string/tst-strxfrm2.c: New file.
13185 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
13187         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13188         rather than r->r_brk.
13190 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
13192         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13193         optimization even if needed > n.
13195         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13196         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13197         return false, otherwise return true.
13198         (cache_rpath): Return decompose_rpath return value.
13200 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
13202         * include/libc-symbols.h (declare_symbol): Rename to...
13203         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
13204         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13205         .size directive.
13206         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13207         changes.
13208         * sysdeps/gnu/siglist.c: Likewise.
13210 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
13212         * sysdeps/powerpc/fpu/bits/mathinline.h
13213         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13214         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
13216 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
13218         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13219         Update handling of cache descriptor 0x49 for new models.
13220         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13221         Likewise.
13223 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
13225         * malloc/memusage.c (dest): Reset not_me back to false after
13226         printing statistics.
13228 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
13230         * configure.in: Work around ld --help change and avoid -z relro
13231         test completely if the architecture doesn't care about security.
13233 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
13235         * po/sv.po: Update from translation team.
13237 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
13239         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13240         generate compatibility version.
13242 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
13244         * configure.in: Relax -z relro requirement a bit.
13246         * po/sv.po: Update from translation team.
13248 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13250         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13251         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13252         * elf/dl-close.c (_dl_close_worker): Likewise.
13253         * elf/dl-open.c (_dl_open_worker): Likewise.
13254         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13256 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13258         * configure.in: Require assembler support for visibility, compiler
13259         support for visibility and aliases, linker support for various -z
13260         options.
13261         * Makeconfig: Remove conditional code which now is unnecessary.
13262         * config.h.in: Likewise.
13263         * config.make.in: Likewise.
13264         * dlfcn/Makefile: Likewise.
13265         * elf/Makefile: Likewise.
13266         * elf/dl-load.c: Likewise.
13267         * elf/rtld.c: Likewise.
13268         * include/libc-symbols.h: Likewise.
13269         * include/stdio.h: Likewise.
13270         * io/Makefile: Likewise.
13271         * io/fstat.c: Likewise.
13272         * io/fstat64.c: Likewise.
13273         * io/fstatat.c: Likewise.
13274         * io/fstatat64.c: Likewise.
13275         * io/lstat.c: Likewise.
13276         * io/lstat64.c: Likewise.
13277         * io/mknod.c: Likewise.
13278         * io/mknodat.c: Likewise.
13279         * io/stat.c: Likewise.
13280         * io/stat64.c: Likewise.
13281         * libio/stdio.c: Likewise.
13282         * nscd/Makefile: Likewise.
13283         * stdlib/Makefile: Likewise.
13284         * stdlib/atexit.c: Likewise.
13285         * sysdeps/generic/ldsodefs.h: Likewise.
13286         * sysdeps/i386/dl-machine.h: Likewise.
13287         * sysdeps/i386/sysdep.h: Likewise.
13288         * sysdeps/i386/i686/memcmp.S: Likewise.
13289         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13290         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13291         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13293         * Makerules: USE_TLS support is now default.
13294         * tls.make.c: Likewise.
13295         * csu/Versions: Likewise.
13296         * csu/libc-start.c: Likewise.
13297         * csu/libc-tls.c: Likewise.
13298         * csu/version.c: Likewise.
13299         * dlfcn/dlinfo.c: Likewise.
13300         * elf/dl-addr.c: Likewise.
13301         * elf/dl-cache.c: Likewise.
13302         * elf/dl-close.c: Likewise.
13303         * elf/dl-iteratephdr.c: Likewise.
13304         * elf/dl-load.c: Likewise.
13305         * elf/dl-lookup.c: Likewise.
13306         * elf/dl-object.c: Likewise.
13307         * elf/dl-open.c: Likewise.
13308         * elf/dl-reloc.c: Likewise.
13309         * elf/dl-support.c: Likewise.
13310         * elf/dl-sym.c: Likewise.
13311         * elf/dl-sysdep.c: Likewise.
13312         * elf/dl-tls.c: Likewise.
13313         * elf/ldconfig.c: Likewise.
13314         * elf/rtld.c: Likewise.
13315         * elf/tst-tls-dlinfo.c: Likewise.
13316         * elf/tst-tls1.c: Likewise.
13317         * elf/tst-tls10.h: Likewise.
13318         * elf/tst-tls14.c: Likewise.
13319         * elf/tst-tls2.c: Likewise.
13320         * elf/tst-tls3.c: Likewise.
13321         * elf/tst-tls4.c: Likewise.
13322         * elf/tst-tls5.c: Likewise.
13323         * elf/tst-tls6.c: Likewise.
13324         * elf/tst-tls7.c: Likewise.
13325         * elf/tst-tls8.c: Likewise.
13326         * elf/tst-tls9.c: Likewise.
13327         * elf/tst-tlsmod1.c: Likewise.
13328         * elf/tst-tlsmod13.c: Likewise.
13329         * elf/tst-tlsmod13a.c: Likewise.
13330         * elf/tst-tlsmod14a.c: Likewise.
13331         * elf/tst-tlsmod2.c: Likewise.
13332         * elf/tst-tlsmod3.c: Likewise.
13333         * elf/tst-tlsmod4.c: Likewise.
13334         * elf/tst-tlsmod5.c: Likewise.
13335         * elf/tst-tlsmod6.c: Likewise.
13336         * include/errno.h: Likewise.
13337         * include/link.h: Likewise.
13338         * include/tls.h: Likewise.
13339         * locale/global-locale.c: Likewise.
13340         * locale/localeinfo.h: Likewise.
13341         * malloc/arena.c: Likewise.
13342         * malloc/hooks.c: Likewise.
13343         * malloc/malloc.c: Likewise.
13344         * resolv/Versions: Likewise.
13345         * sysdeps/alpha/dl-machine.h: Likewise.
13346         * sysdeps/alpha/libc-tls.c: Likewise.
13347         * sysdeps/generic/ldsodefs.h: Likewise.
13348         * sysdeps/generic/tls.h: Likewise.
13349         * sysdeps/i386/dl-machine.h: Likewise.
13350         * sysdeps/ia64/dl-machine.h: Likewise.
13351         * sysdeps/ia64/libc-tls.c: Likewise.
13352         * sysdeps/mach/hurd/fork.c: Likewise.
13353         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13354         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13355         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13356         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13357         * sysdeps/s390/libc-tls.c: Likewise.
13358         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13359         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13360         * sysdeps/sh/dl-machine.h: Likewise.
13361         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13362         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13363         * sysdeps/x86_64/dl-machine.h: Likewise.
13365         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13366         split out locking and parameter checking.
13367         (_dl_close): Call _dl_close_worker after locking and checking.
13368         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13369         _dl_close.
13370         * elf/Makefile: Add rules to build and run tst-thrlock.
13371         * elf/tst-thrlock.c:  New file.
13373         [BZ #3426]
13374         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13375         reality.
13377         [BZ #3429]
13378         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13379         we are sure we do not need it anymore for _dl_close.  Also move
13380         the asserts inside the lock region.
13381         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13383 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13385         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13386         argument.
13387         (_dl_lookup_symbol_x): Adjust caller.
13389         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13390         _ns_global_scope.
13391         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13393         * elf/dl-libc.c: Revert l_scope name changes.
13394         * elf/dl-load.c: Likewise.
13395         * elf/dl-object.c: Likewise.
13396         * elf/rtld.c: Likewise.
13397         * elf/dl-close.c (_dl_close): Likewise.
13398         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13399         always use __rtld_mrlock_{change,done}.  Always free old scope list
13400         here if not l_scope_mem.
13401         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13402         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13403         the lookup and __rtld_mrlock_unlock it after the lookup.
13404         * elf/dl-sym.c: Likewise.
13405         * include/link.h (struct r_scoperec): Remove.
13406         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13407         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13409 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13411         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13413 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13415         * configure.in: Disable building profile libraries by default.
13417 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13419         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13420         as signed longs, check for x_base + pos overflow.
13421         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13422         * sunrpc/tst-xdrmem2.c: New test.
13424 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13426         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13427         _dl_lookup_symbol_x code.
13429 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13431         * elf/dl-runtime.c: Include sysdep-cancel.h.
13432         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13433         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13434         instead of catomic_* macros.
13435         * elf/dl-sym.c: Include sysdep-cancel.h.
13436         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13437         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13438         * elf/dl-close.c: Include sysdep-cancel.h.
13439         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13440         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13441         * elf/dl-open.c: Include sysdep-cancel.h.
13442         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13443         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13445 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13447         [BZ #3313]
13448         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13449         fastbin rather than end of fastbin array.
13451 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13453         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13454         body macro.
13455         * sysdeps/x86_64/bits/atomic.h
13456         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13457         (catomic_decrement): Use correct body macro.
13459 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13461         * include/atomic.h: Add a unique prefix to all local variables
13462         in macros.
13463         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13465 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13467         [BZ #3369]
13468         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13469         and 7.
13471 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13473         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13475 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13477         [BZ #3313]
13478         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13479         determine highest fast bin to consolidate, always look into all of
13480         them.
13481         (do_check_malloc_state): Only require for empty bins for large
13482         sizes in main arena.
13484         * libio/stdio.h: Add more __wur attributes.
13486         * elf/dl-minimal.c (realloc): Optimize last patch.
13488 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13490         [BZ #3352]
13491         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13492         and use memcpy() if it does.
13494 2006-11-12  Andreas Jaeger  <aj@suse.de>
13496         [BZ #2510]
13497         * manual/search.texi (Hash Search Function): Clarify.
13498         (Array Search Function): Clarify.
13500 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13502         [BZ #2830]
13503         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13504         shifting.
13505         * math/atest-exp2.c (read_mpn_hex): Likewise.
13506         * math/atest-sincos.c (main): Likewise.
13508 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13510         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13511         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13512         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13513         version GLIBC_2.6.
13514         * Versions.def: Add GLIBC_2.6 for libc.
13516         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13518         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13520 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13522         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13524         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13526         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13527         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13529 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13531         * include/atomic.c: Define catomic_* operations.
13532         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13533         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13534         * malloc/memusage.c: Likewise.
13535         * gmon/mcount.c: Likewise.
13536         * elf/dl-close.c: Likewise.
13537         * elf/dl-open.c: Likewise.
13538         * elf/dl-profile.c: Likewise.
13539         * elf/dl-sym.c: Likewise.
13540         * elf/dl-runtime.c: Likewise.
13541         * elf/dl-fptr.c: Likewise.
13542         * resolv/res_libc.c: Likewise.
13544 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13546         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13547         components which lack them.
13549         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13550         at least one entry consisting of the parameter concatenated with
13551         the domain.
13553 2006-10-10  Roland McGrath  <roland@frob.com>
13555         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13556         * sysdeps/mach/hurd/futimes.c: Likewise.
13557         * sysdeps/mach/hurd/lutimes.c: Likewise.
13559 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13560             Jakub Jelinek  <jakub@redhat.com>
13562         Implement reference counting of scope records.
13563         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13564         from the list in objects which remain.  Always allocate new scope
13565         record.
13566         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13567         don't resize, allocate a new one.
13568         * elf/dl-runtime.c: Update reference counters before using a scope
13569         array.
13570         * elf/dl-sym.c: Likewise.
13571         * elf/dl-libc.c: Adjust for l_scope name change.
13572         * elf/dl-load.c: Likewise.
13573         * elf/dl-object.c: Likewise.
13574         * elf/rtld.c: Likewise.
13575         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13576         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13577         Add l_scoperec_lock.
13578         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13579         * sysdeps/generic/rtld-lowlevel.h: New file.
13581         * include/atomic.h: Rename atomic_and to atomic_and_val and
13582         atomic_or to atomic_or_val.  Define new macros atomic_and and
13583         atomic_or which do not return values.
13584         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13585         Various cleanups.
13586         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13588         * po/sv.po: Update from translation team.
13590 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13592         * Versions.def: Add GLIBC_2.6 to libpthread.
13594         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13595         (versioned_symbol): Likewise.
13596         (compat_symbol): Likewise.
13598         * po/tr.po: Update from translation team.
13600 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13602         * nis/Banner: Removed.  It's been integral part forever and the
13603         author info is incomplete anyway.
13604         * libio/Banner: Likewise.
13606         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13607         code, make sure the nis_freeresult call doesn't crash and that the
13608         result is reported correctly.
13610 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13612         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13613         when callback is NULL.
13615         * nis/Versions (libnss_nisplus): Add
13616         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13617         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13618         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13619         _nss_create_tablename): Rename to...
13620         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13621         ... these.  No longer static.
13622         (internal_setgrent): Adjust users.
13623         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13624         Don't use locking around _nss_grp_create_tablename call.
13625         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13627 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13629         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13631 2006-10-06  Andreas Jaeger  <aj@suse.de>
13633         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13635 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13637         * po/pl.po: Update from translation team.
13639         * nscd/nscd.c (main): Fix typo in message.
13640         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13642 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13644         [BZ #3291]
13645         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13646         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13647         (__sigprocmask): Define.
13649 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13651         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13652         used.
13654 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13656         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13657         in oldtotal and newtotal calculation.
13658         * nscd/nscd-client.h (struct mapped_database): Add datasize
13659         field.
13660         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13661         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13662         increased.
13663         (__nscd_cache_search): Add checks to make sure we never reference
13664         data beyond the current mapping.
13666 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13668         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13669         variables const to avoid compiler warnings.
13671         * io/fts.c (fts_close): Remove redundant checks.
13672         (fts_build): Likewise.
13673         (fts_palloc): Likewise.
13675         * manual/message.texi (Advanced gettext functions,
13676         Using gettextized software): Fix typos.
13678 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13680         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13681         explain why there are no leaks.
13683 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13685         * libio/wmemstream.c: Include <wchar.h>.
13686         * libio/bug-wmemstream1.c: Likewise.
13687         * libio/tst-wmemstream1.c: Likewise.
13688         * libio/tst-wmemstream2.c: Likewise.
13690         * version.h (RELEASE): Bump to 2.5.
13691         * README: Regenerated.
13693         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13695         [BZ #3273]
13696         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13697         found no group members.
13698         Patch by Petr Baudis.
13700 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13702         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13703         assert bootstrap_map.l_tls_modid is zero.
13704         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13705         if USE___THREAD.
13707 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13709         * libio/stdio.h: Move open_wmemstream prototype to ...
13710         * wcsmbs/wchar.h: ... here.
13712 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13714         [BZ #3252]
13715         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13716         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13717         __{,l}chown to handle the rest.
13718         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13719         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13720         __{,l}chown to handle the rest.
13721         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13722         i386/fchownat.c.
13723         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13724         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13726         [BZ #3253]
13727         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13728         time, rather allocate increasingly bigger arrays of pointers, if
13729         possible with alloca, if too large with malloc.
13731 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13733         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13735         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13737 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13739         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13740         home addresses.
13741         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13742         IFA_F_HOMEADDRESS flag for interfaces.
13743         * include/ifaddrs.h (struct in6addrinfo): Define
13744         in6ai_homeaddress.
13746 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13748         [BZ #3225]
13749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13750         PTR_DEMANGLE3): Define.
13751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13752         PTR_DEMANGLE3): Likewise.
13753         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13754         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13755         Likewise.
13756         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13758 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13760         * po/libc.pot: Regenerated.
13761         * po/be.po: Updated.
13762         * po/ca.po: Likewise.
13763         * po/cs.po: Likewise.
13764         * po/da.po: Likewise.
13765         * po/de.po: Likewise.
13766         * po/el.po: Likewise.
13767         * po/en_GB.po: Likewise.
13768         * po/es.po: Likewise.
13769         * po/fi.po: Likewise.
13770         * po/fr.po: Likewise.
13771         * po/gl.po: Likewise.
13772         * po/hr.po: Likewise.
13773         * po/hu.po: Likewise.
13774         * po/ja.po: Likewise.
13775         * po/ko.po: Likewise.
13776         * po/nb.po: Likewise.
13777         * po/nl.po: Likewise.
13778         * po/pl.po: Likewise.
13779         * po/pt_BR.po: Likewise.
13780         * po/ru.po: Likewise.
13781         * po/rw.po: Likewise.
13782         * po/sk.po: Likewise.
13783         * po/sv.po: Likewise.
13784         * po/tr.po: Likewise.
13785         * po/zh_CN.po: Likewise.
13786         * po/zh_TW.po: Likewise.
13788         [BZ #3137]
13789         * iconv/iconv_prog.c (main): Fix spelling in error message.
13790         * iconv/iconvconfig.c (main): Likewise.
13791         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13792         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13793         * locale/programs/localedef.c (main): Likewise.
13794         * locale/programs/repertoire.c (repertoire_read): Likewise.
13795         * timezone/zdump.c (main): Likewise.
13796         * nscd/connections.c (handle_request): Fix spelling in log message.
13797         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13799 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13801         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13802         interfaces.
13804 2006-09-20  Andreas Jaeger  <aj@suse.de>
13806         * math/libm-test.inc (lrint_test_upward): Fix typo.
13808 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13810         [BZ #2592]
13811         * math/libm-test.inc (lrint_test_tonearest): New function.
13812         (lrint_test_towardzero): New function.
13813         (lrint_test_downward): New function.
13814         (lrint_test_upward): New function.
13815         (main): Run these new tests.
13816         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13817         of values near to 0.
13818         (two52): Use double not long double.
13819         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13820         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13821         (two23): Use float not double.
13822         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13823         (two23): Use float not double.
13824         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13825         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13826         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13827         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13829 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13831         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13832         Cast sp to unsigned long to avoid compiler warning.
13833         Use __makecontext_ret function instead of a trampoline on the stack.
13834         (__makecontext_ret): New function.
13835         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13837 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13839         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13840         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13841         bits.
13843 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13845         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13846         sure no reference to the unloaded map's search list remains in the
13847         dependency's scope.
13849 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13851         * elf/Makefile: Add rules to build and run unload7 test.
13852         * elf/unload7.c: New test.
13853         * elf/unload7mod1.c: New file.
13854         * elf/unload7mod2.c: New file.
13856 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13858         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13859         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13860         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13861         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13862         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13863         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13864         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13865         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13866         PTRACE_GETEVENTMSG): Likewise.
13867         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13868         values.
13870 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13872         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13873         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13874         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13875         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13877 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13879         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13880         write '\0' to the fd.
13881         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13882         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13883         Change regs to unsigned long pointer from unsigned int, fix fscr
13884         offset.
13886 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13888         * io/Makefile (CFLAGS-fstatat.c): Set.
13889         (CFLAGS-fstatat64.c): Likewise.
13890         (CFLAGS-mknodat.c): Likewise.
13892         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13893         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13894         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13895         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13897 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13898             Steven Munroe  <sjmunroe@us.ibm.com>
13900         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13901         names to the beginning.  Rename "cell" to "cellbe".
13902         (_dl_powerpc_platforms): New.
13903         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13904         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13905         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13906         (_DL_HWCAP_PLATFORM): Define to new mask.
13907         (_dl_platform_string, _dl_string_platform): New functions.
13908         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13909         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13911 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13913         [BZ #2526]
13914         * README.libm: Fix a thinko in sqrt algorithm description.
13916         [BZ #3143]
13917         * manual/string.texi (argz_delete): Fix prototype.
13918         Patch by <alpt@freaknet.org>.
13920 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13922         [BZ #3138]
13923         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13924         * io/tst-fcntl.c (do_prepare): Likewise.
13925         * posix/tst-exec.c (do_prepare): Likewise.
13926         * posix/tst-preadwrite.c (do_prepare): Likewise.
13927         * posix/tst-spawn.c (do_prepare): Likewise.
13928         * posix/tst-truncate.c (do_prepare): Likewise.
13929         * rt/tst-aio.c (do_prepare): Likewise.
13930         * rt/tst-aio64.c (do_prepare): Likewise.
13931         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13932         size_t.
13934 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13936         [BZ #2821]
13937         * time/mktime.c (guess_time_tm): Fix overflow detection.
13938         * time/Makefile (tests): Add bug-mktime1.
13939         * time/bug-mktime1.c: New file.
13941         [BZ #3189, #3188]
13942         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13943         (mremap): Likewise.
13945 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13947         [BZ #1006]
13948         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13949         Ensure relocation doesn't clobber any bits outside of the
13950         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13951         R_SPARC_HI22 and R_SPARC_H44.
13953         [BZ #2775]
13954         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13955         (long) (MINSIZE + nb - old_size) is positive.
13957         * malloc/arena.c (grow_heap): When growing bail even if new_size
13958         is negative.
13960         [BZ #3155]
13961         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13962         stack below r1.
13964 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13966         * posix/regex_internal.c (re_string_reconstruct): Handle
13967         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13968         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13969         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13970         re_string_context_at.
13971         * posix/Makefile: Add rules to build and run bug-regex26 test.
13972         * posix/bug-regex26.c: New test.
13974         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13975         rather than col_sym_free.  Move seqp declaration earlier.
13977         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13979 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13981         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13982         decl before first goto out.
13984 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13986         * Makerules (shlib.lds): If have-hash-style, put .hash section
13987         at the end of the RO segment.
13989 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13991         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13992         style hash table format is used.
13994 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13996         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13997         randomization rather than before.
13998         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
14000 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
14002         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
14004         * malloc/malloc.c (_int_malloc): Use full list insert and not
14005         shortcut which assumes the list is empty for large requests
14006         too.
14008         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
14010 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
14012         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
14013         and offout arguments to the prototype.
14014         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
14015         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
14016         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
14017         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
14018         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
14019         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
14020         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
14021         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
14023 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
14025         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
14027         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
14028         dlopen parameters.
14030 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
14032         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
14033         only if herrno is NETDB_INTERNAL.  Handle errors other than
14034         ERANGE outside of the loops, handle TRY_AGAIN.
14036         * locale/programs/ld-ctype.c (translit_flatten): Issue error
14037         if other's ctype category was missing.
14038         * locale/programs/ld-collate.c (collate_read): Return if
14039         copy_locale's collate category is missing.
14041 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
14043         [BZ #2684]
14044         * malloc/malloc.c (public_rEALLOc): Try harder by using other
14045         arenas if allocation failed.
14046         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
14048 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
14050         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
14051         waste bins[0..1].
14052         (malloc_state): Reduce bins size by 2.
14053         (_int_malloc): Fix test for large enough buffer for early termination.
14054         When no unsorted block matches perfectly and an exiting block has
14055         to be split, use full list insert and not shortcut which assumes
14056         the list is empty.
14058         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
14059         failure.
14061 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14063         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
14064         do anything.
14066         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
14067         symbol require exact match (these are PLTs).
14068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
14069         (_dl_ppc64_addr_sym_match): Likewise.
14071         [BZ #2683]
14072         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
14073         If symbol has a value use it.
14074         * elf/tst-dladdr1.c: New file.
14075         * elf/Makefile: Add rules to build and run tst-addr1.
14077 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
14079         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
14080         keeps failing and heap growth or new heap creation isn't
14081         successful either.
14082         * malloc/tst-malloc.c (main): Add new tests.
14084 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14086         [BZ #2734]
14087         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14088         as in the x86-64 code to use bswap.
14090 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
14092         [BZ #2680]
14093         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14094         __USE_UNIX98.
14095         * posix/bits/unistd.h: Likewise.
14097 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
14099         [BZ #2751]
14100         * string/strchr.c: Add cast to avoid warning.
14102 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14104         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14105         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
14106         limit is needed to avoid the exploding of the address space
14107         requirement for secondary heaps.
14108         * malloc/arena.c (HEAP_MAX_SIZE): Define using
14109         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14111 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
14113         [BZ #3018]
14114         * Makerules (depfiles): Handle extra-test-objs the same as
14115         extra-objs.
14116         (common-mostlyclean): Likewise.
14117         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14118         instead.
14119         * elf/Makefile (extra-objs): Likewise.
14120         * stdlib/Makefile (extra-objs): Likewise.
14122 2006-08-14  Eric Blake  <ebb9@byu.net>
14124         [BZ #3044]
14125         * misc/error.h: Assume C89 or better.
14126         * misc/error.c: Likewise.
14128 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14130         [BZ #3040]
14131         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14132         __ASSUME_ATFCTS is defined.
14134 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
14136         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14137         to sort in each call.
14139         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14140         is empty simply return and use next service.
14141         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14143         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
14144         tells us when not finding a charmap file is an error.
14145         * locale/programs/charmap.h: Adjust charmap_read prototype.
14146         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14147         cannot find a charmap.
14148         * locale/programs/localedef.c (main): Adjust charmap_read call.
14150 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
14152         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14153         sysdeps/posix/pause.c implementation instead.
14155 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
14157         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14158         to EPERM.
14160 2006-08-13  Andreas Schwab  <schwab@suse.de>
14162         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14163         Don't clobber caller's LRSAVE.
14164         (_dl_prof_resolve): Likewise.
14166 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
14168         [BZ #1996]
14169         * libio/memstream.c (open_memstream): Allocate initial buffer with
14170         calloc.
14171         * libio/wmemstream.c (open_wmemstream): Likewise.
14172         * libio/strops.c: Pretty printing.
14173         (_IO_str_overflow): Clear uninitialized part of the new buffer.
14174         (enlarge_userbuf): New function.
14175         (_IO_str_seekoff): Call it if seek position is larger than current
14176         buffer.
14177         * libio/wstrops.c: Likewise.
14178         * libio/vasprintf.c: Add comment as to why we do not have to use
14179         calloc instead of malloc to allocate initial buffer.
14180         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14181         * libio/bug-memstream1.c: New file.
14182         * libio/bug-wmemstream1.c: New file.
14184 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14186         * libio/wstrops.c: Remove dead macro definitions and comments.
14187         * libio/strops.c: Likewise.
14189         [BZ #2764]
14190         * login/utmpname.c (__utmpname): Remove unnecessary test.
14192 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
14194         [BZ #2832]
14195         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14196         0s from integers.
14198 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14200         [BZ #2987]
14201         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14202         for CPU clocks.
14203         * sysdeps/unix/clock_settime.c: Add support for platform-specific
14204         setting of CPU clocks.
14206 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14208         [BZ #2841]
14209         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14210         since C99 requires the result to promote to 'int' when uint_least8_t
14211         and uint_least16_t promote to 'int'.
14213 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
14215         [BZ #3013]
14216         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14217         lenght of one output field, correct bitmask creation.
14218         * locale/programs/ld-time.c: Add alignment.
14220         [BZ #2997]
14221         * misc/error.c: Add space between program name and message if file
14222         name is missing.
14224 2006-08-03  Eric Blake  <ebb9@byu.net>
14226         [BZ #2998]
14227         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14229 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
14231         * malloc/memusagestat.c: Silence warnings.
14233         * malloc/malloc.c: Dynamically size mmap treshold if the program
14234         frees mmaped blocks.
14235         Patch by Valerie Henson and Arjan van de Ven.
14237 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
14239         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14240         __USE_GNU.
14242         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14243         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14244         (DEF): Don't put the var into .gnu.linkonce.r.* section.
14245         Only provide var definitions in strtol_l (or for *ull*
14246         in strtoll_l).
14248         * stdio-common/bug16.c (tests): New array.
14249         (do_tests): Allow the first hexadecimal digit
14250         to be 1, 2, 4 or 8.  Do 3 additional tests.
14252         * sysdeps/s390/fpu/libm-test-ulps: Update.
14254         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14255         fchownat syscall if available.
14256         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14257         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14258         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14260 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14262         * nis/nis_xdr.c: Avoid some function calls.
14264 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14265             Ulrich Drepper  <drepper@redhat.com>
14267         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14268         short cut if only one name component is stripped away.
14270 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14272         * nis/nis_call.c: Minor cleanups throughout.
14273         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14274         (first_shoot): Add search_parent_first parameter.  Only if it is set
14275         search parent server first.
14276         If directory for table found through cold start cache is not the same
14277         as referenced in the cache, don't use it.
14278         (__nisfind_server): Take additional parameter.  Pass it on to
14279         first_shoot.
14280         (__prepare_niscall): Adjust __nisfind_server call.
14281         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14282         * nis/nis_table.c: Adjust __nisfind_server call.
14283         * nis/nis_lookup.c: Likewise.
14284         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14286 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14288         [BZ #2182]
14289         * math/s_cacosh.c: Return values from positive branch.
14290         * math/s_cacoshf.c: Likewise.
14291         * math/s_cacoshl.c: Likewise.
14293         [BZ #2883]
14294         * sysvipc/sys/msg.h: Change return value to ssize_t.
14295         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14296         * sysvipc/msgrcv.c: Likewise.
14297         * include/sys/msg.h: Likewise.
14299         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14300         test introduced in patch for bz #661.
14301         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14302         element for NEWGROUPS.
14304         [BZ #2908]
14305         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14306         'f', use '1' as leading digit not '\1'.
14307         * stdio-common/Makefile (tests): Add bug16.
14308         * stdio-common/bug16.c: New file.
14310         [BZ #2914]
14311         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14312         and don't try to open it.  The patch introducing the macro
14313         contained a bug and used the same file name as the new file
14314         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14315         this out completely.
14317         [BZ #2926]
14318         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14319         Patch by Jerry James <Jerry.James@usu.edu>.
14321         * rt/Makefile (tests): Add tst-clock2.
14322         * rt/tst-clock2.c: New file.
14324         [BZ #2978]
14325         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14326         function and its parameters and pass it to new thread.
14327         (__gai_notify): Add support for alternative waiting for completion.
14328         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14329         waiting for completion.
14330         * resolv/getaddrinfo_a.c: Likewise.
14331         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14332         waiting for completion is used.
14333         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14334         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14335         * resolv/gai_error.c: Likewise.
14336         * resolv/gai_sigqueue.c: Likewise.
14338 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14340         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14341         errno to EBADF and return MACH_PORT_NULL.
14343 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14345         [BZ #2980]
14346         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14348 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14350         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14351         walk them instead of the symbol table.
14353 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14355         [BZ #2098]
14356         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14357         status of NSS calls, not the number of returned entries.
14359         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14360         request_key, keyctl.
14362 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14364         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14366 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14368         * elf/tst-auditmod1.c: Fix typo in #error.
14370 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14372         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14374         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14376 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14378         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14379         that the directory is empty even on non-POSIX filesystems.
14381 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14383         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14385         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14386         the backend NSS module.  If backend setgrent call failed, don't have
14387         internal_setgrent fail.  Just remember this until it is needed.
14388         * nis/nss_compat/compat-pwd.c: Likewise.
14389         * nis/nss_compat/compat-spwd.c: Likewise.
14391 2006-07-30  Roland McGrath  <roland@redhat.com>
14393         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14394         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14395         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14396         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14398         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14399         (nanosleep_not_cancel): New macro.
14400         (sigsuspend_not_cancel): new macro.
14401         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14402         (do_sigsuspend): Define as inline.
14403         (__sigsuspend): Always use do_sigsuspend.
14404         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14405         * include/signal.h: Declare __sigsuspend_nocancel.
14406         * sysdeps/posix/pause.c
14407         [! NO_CANCELLATION] (__pause_nocancel): New function.
14409         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14410         * include/time.h (__nanosleep_nocancel): Likewise.
14412 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14414         * locale/programs/localedef.c (add_to_readlist): Rename local
14415         variables to avoid confusion.
14417         * locale/programs/charmap.c (charmap_read): Emit error message if
14418         charmap couldn't be found or read.
14420 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14422         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14423         __ASSUME_FUTEX_LOCK_PI.
14424         * include/time.h: Declare __nanosleep_nocancel.
14425         * include/unistd.h: Declare __pause_nocancel.
14427         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14428         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14429         get the __stack_chk_fail_local definition when it's needed.
14431 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14433         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14434         * dlfcn/bug-atexit3.c: New file.
14435         * dlfcn/bug-atexit3-lib.cc: New file.
14437         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14438         used when the namespace is not the base namespace.
14440 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14442         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14443         (__new_exitfn): Bump it in every successful call.
14444         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14445         more exit handlers, call them right away.
14446         * stdlib/exit.h: Declare __new_exitfn_called.
14448 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14450         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14451         calling registered handler.
14453         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14454         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14455         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14456         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14457         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14458         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14459         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14460         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14462 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14464         * elf/dl-lookup.c (dl_new_hash): New functions.
14465         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14466         value here.  Compute new-style hash value.  Pass new hash value
14467         and reference to variable with the old value to do_lookup_x.
14468         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14469         old-style hash table.
14470         (_dl_debug_bindings): Pass new hash value and reference to variable
14471         with the old value to do_lookup_x.
14472         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14473         new-style hash value and change old-style hash value parameter to
14474         be a reference.  Reoganize functions to determine whether
14475         new-style hash table is available.  Only fall back on old-style
14476         table.  If old-style hash value is needed, compute it here.
14477         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14478         entry.
14479         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14480         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14481         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14482         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14483         * Makeconfig: If linker supports --hash-style option add it to all
14484         linker command lines to build DSOs.
14485         * config.make.in: Define have-hash-style.
14486         * configure.in: Test whether linker supports --hash-style option.
14488         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14489         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14491 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14493         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14494         auditing.
14496         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14497         RPATH of main map twice.
14499 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14501         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14502         look further, return original strings.
14503         (_nl_find_msg): Do not return found translation if the conversion
14504         failed.  Either signal the string is unusable or that something went
14505         wrong and the original should be used.
14507 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14509         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14511 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14513         [BZ #2766]
14514         * misc/insremque.c (insque): Handle prev == NULL.
14515         * misc/Makefile (tests): Add tst-insremque.
14516         * misc/tst-insremque.c: New test.
14518 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14520         [BZ #2792]
14521         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14522         conflict with DL_DST_REQUIRED.
14524 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14526         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14527         match what Solaris does.
14529 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14531         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14532         local_setegid instead of seteuid and setegid.
14533         * sysdeps/generic/local-setxid.h: New file.
14534         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14536         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14538         * string/Makefile (tests): Add bug-envz1.
14539         * string/bug-envz1.c: New file.
14541 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14543         * posix/regex_internal.c (re_string_skip_chars): If no character has
14544         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14545         to the byte which couldn't be converted.
14546         (re_string_reconstruct): Don't clear valid_raw_len before calling
14547         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14548         tip_context using re_string_context_at.
14549         * posix/Makefile: Add rules to build and run bug-regex25 test.
14550         * posix/bug-regex25.c: New test.
14552 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14554         [BZ #2703]
14555         * string/envz.c (envz_strip): Correct erroneously reversed src
14556         and dest parameters to memmove() invocation.
14558 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14560         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14561         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14562         to make sure the database has been already invalidated.
14563         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14564         after the cache has been invalidated.  Use pthread_mutex_lock rather
14565         than pthread_mutex_trylock if fd != -1.
14566         * nscd/connections.c (invalidate_cache): Add fd argument, write
14567         response to fd if not calling prune_cache, pass fd to prune_cache.
14568         (handle_request): Adjust invalidate_cache caller.
14569         (nscd_run): Pass -1 as fd to prune_cache.
14571 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14573         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14574         the correct place.
14576 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14578         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14579         * nscd/cache.c (prune_cache): Take prunelock before starting the
14580         work.  Just return in case it is already taken.
14581         * nscd/connections.c (dbs): Initialize .prunelock.
14583 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14585         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14586         copying.  No need to allocate new array for group members.  Just
14587         move the pointers and update the size.
14589         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14590         Avoid memory leak in case realloc fails.  Simplification for
14591         better code generation.
14593         Avoid deprecation warning because of libc_hidden_proto for
14594         inet6_option_alloc.
14595         * inet/inet6_option.c (option_alloc): Renamed from
14596         inet6_option_alloc.  Made static.
14597         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14598         (inet6_option_append): Call option_alloc.
14599         * include/netinet/in.h: Remove libc_hidden_proto for
14600         inet6_option_alloc.
14602         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14603         for cleanup when cb!=NULL [Coverity CID 233].
14605 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14607         [BZ #2693]
14608         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14609         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14610         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14611         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14612         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14613         and inet6_rth_getaddr.
14614         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14615         array.
14616         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14617         Mark inet6_option_* interfaces as deprecated.
14618         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14619         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14620         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14621         inet6_rth_segments, and inet6_rth_getaddr.
14622         * inet/inet6_opt.c: New file.
14623         * inet/inet6_rth.c: New file.
14625         * inet/netinet/icmp6.h: Pretty printing.
14627         [BZ #2683]
14628         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14630 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14632         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14633         doing it all here.  When server does not know the answer do not
14634         fail immediate, try parent first.
14636         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14637         overflow test.
14639 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14641         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14642         from __do_niscall.
14643         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14644         and exported.
14645         (__follow_path): New function.  Split out from nis_list.
14646         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14647         _xdr_nis_result.
14648         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14649         _xdr_nis_result.
14650         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14651         and __follow_path.
14652         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14653         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14654         from libnsl for version GLIBC_PRIVATE.
14655         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14656         Remove entry parameter from _nss_nisplus_parse_pwent and
14657         _nss_nisplus_parse_grent.
14658         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14659         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14660         again.  Rewrite getpwent handling to not use nis_first_entry and
14661         nis_next_entry.  Roll out own niscall handling.
14662         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14664         * sunrpc/xdr_rec.c: Fix typo in comment.
14666 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14668         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14669         handling.
14671         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14672         to allocate memory for my_pollfd.  Better initialization of
14673         cb_is_running.  Use TEMP_FAILURE_RETRY.
14675         * malloc/memusage.sh (memusageso): Add quotes.
14676         (memusagestat): Likewise.
14677         * debug/xtrace.sh (pcprofileso): Likewise.
14678         (pcprofiledump): Likewise.
14679         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14680         replacement.
14681         * malloc/Makefile ($(objpfx)memusage): Likewise.
14683         * nis/nis_callback.c (__nis_create_callback): Calls to
14684         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14685         asprintf call fails.
14687         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14688         no uninitialized memory is passed to sendto.
14690 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14692         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14693         of snprintf+strdup.  Handle OOM.
14694         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14695         cb->serv together.  Remove now obsolete free calls.
14696         (__nis_destroy_callback): Remove now obsolete free call.
14698 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14700         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14701         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14702         and ULA respectively). Set precedence for IPv4 address to 10 as
14703         defined in RFC3484 for preferring IPv6.
14704         * posix/gai.conf: Update to match the new default tables.
14706 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14708         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14709         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14710         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14711         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14713         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14714         Removed.
14715         (init_nss_interface): Remove initialization of these variables.
14717 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14719         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14720         nis_free_directory forward to avoid duplication.
14722 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14724         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14725         rec_dirsearch returning NULL.
14726         (first_shoot): Handle __nis_finddirectory returning NULL.
14727         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14729         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14730         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14732 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14734         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14735         pid changed.
14737 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14739         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14741         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14742         * nscd/nscd_getgr_r.c: Likewise.
14744         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14746         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14747         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14749         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14751         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14753         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14755         * include/rpc/auth.h: Mark xdr_des_block_internal and
14756         xdr_opaque_auth_internal as hidden.
14758         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14759         hidden.
14761         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14763         * misc/getusershell.c (okshells): Don't use static initializers,
14764         do it dynamically.
14766         * stdlib/fmtmsg.c (keywords): Change type of len element to
14767         uint32_t to not waste space on 64bit machines.
14769         * locale/setlocale.c: Change _nl_category_names into a string.
14770         Add new _nl_category_name_idxs.  Change all users.
14771         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14772         Declare _nl_category_name_idxs.
14773         * locale/findlocale.c: Adjust for _nl_category_names change.
14774         * locale/loadlocale.c: Likewise.
14775         * locale/newlocale.c: Likewise.
14776         * intl/dcigettext.c: Likewise.
14778         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14779         (add_alias2): ...here.  New function.
14780         (__gconv_read_conf): Simplify builtin alias handling.
14781         (builtin_aliases): Convert to string to avoid relocations.
14782         * iconv/gconv_builtin.h: Add comment about correct formatting.
14784 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14786         * resolv/res_debug.c (loc_ntoa): Make error const.
14788 2006-05-14  Andreas Schwab  <schwab@suse.de>
14790         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14792 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14794         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14795         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14796         sizeof (cpu_set_t).
14798 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14800         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14802         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14804         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14805         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14807         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14808         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14810         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14811         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14812         xdr_cback_data.
14814         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14815         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14816         xdr_ypupdate_args.
14818         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14819         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14821         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14822         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14824         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14825         * include/rpcsvc/nis_callback.h: New file.
14827         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14828         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14830         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14831         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14833         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14834         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14836         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14837         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14839         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14840         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14841         xdr_ypdelete_args.
14843         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14844         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14846         * nis/nis_error.c: Remove table of strings.  Use position
14847         independent mechanism.
14848         * nis/nis_error.h: New file.
14850 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14852         * locale/programs/ld-time.c (time_finish): If wide era name or
14853         format aren't provided, set both wname and wformat to L"".
14855 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14857         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14858         results if the call was succesful.
14860         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14862         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14863         as hidden.
14865 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14867         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14869 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14871         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14872         caller makes sure this is not the case.
14873         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14875 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14877         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14878         calls.
14880         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14881         [Coverity CID 229, 230]
14883         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14884         DGETTEXT calls.
14885         (hol_help): Likewise.  [Coverity CID 226, 227]
14887         * string/argz-replace.c (__argz_replace): Unconditionally call
14888         free on SRC.  [Coverity CID 225]
14890         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14891         the return value of __nis_default_owner and __nis_default_group,
14892         it has been especially allocated.  [Coverity CID 224]
14894         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14895         searchgroup and searchowner.  Significantly simplified.
14896         (__nis_default_owner): Remove duplication.  Do not locally copy the
14897         string before duplicating it.
14898         (__nis_default_group): Likewise.
14900         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14901         we must clear the variable before calling __nisfind_server.
14903         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14904         nis_getnames.  [Coverity CID 223]
14906         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14907         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14909         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14910         allocate memory for the input to add_bytes.  [Coverity CID 221]
14912         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14913         was allocated here.  [Coverity CID 219, 220]
14915         * posix/getconf.c (print_all): Free confstr data after printing.
14916         [Coverity CID 218]
14918         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14919         list allocation fails.  [Coverity CID 215]
14921         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14922         [Coverity CID 213]
14924         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14925         string is NULL.  [Coverity CID 212]
14926         * argp/Makefile: Add rules to build and run bug-argp1.
14927         * argp/bug-argp1.c: New file.
14929         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14930         end of string.
14931         * stdlib/canonicalize.c (__realpath): Likewise.
14933         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14934         pointer.  [Coverity CID 206]
14936         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14937         in statically linked code.
14938         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14939         statically built code, be prepared to have no link map.
14940         [Coverity CID 205]
14942         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14943         dgettext calls. [Coverity CID 204]
14945         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14946         the one user.
14947         (uparam_names): Reduce size.  Avoid relative relocations.
14948         Moved to read-only segment.
14949         (fill_in_uparams): Update for new layout.
14951         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14952         assumed to always be != NULL. [Coverity CID 202]
14954         * argp/argp-help.c (hol_entry_help): Remove some dead code
14955         [Coverity CID 200].
14957         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14958         away a few more unconditional yperr2nss calls.
14959         (_nss_nis_getservbyname_r): Likewise.
14961 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14963         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14964         architectures.
14966         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14967         that unused memory passed to sendto is nevertheless initialized.
14969         [BZ #2499]
14970         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14971         possibly unaligned memory accesses.
14973         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14974         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14975         and __putlong respectively.  Correct buffer overflow check for
14976         NS_NOTIFY_OP.
14978         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14980         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14981         (send_dg): Rewrite error handling to be more compact and avoid
14982         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14984         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14986         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14987         instead of ns_get16.
14988         (res_queriesmatch): Likewise.  Minor optimization.
14990         [BZ #2499]
14991         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14992         __libc_res_nsend might reallocate the buffer for the answer.  In
14993         this case we have to reload the HP pointer.
14995 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14997         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14998         some branch prediction hints.
15000         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
15001         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15002         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15003         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15004         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15005         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15006         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
15007         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15009 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
15011         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
15012         by a GOT relocation to make Scrt1.o position independent.
15013         * sysdeps/s390/s390-64/elf/start.S: Likewise.
15015         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
15016         six system call parameters.
15017         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15019 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
15021         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
15022         malloc&bzero.
15024         * sunrpc/svc_udp.c (BZERO): Remove definition.
15025         (CALLOC): Define.
15026         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
15028         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
15029         (des_SPtrans): Use uint32_t type.
15030         (des_skb): Likewise.
15032         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
15034 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
15036         [BZ #2509]
15037         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
15038         on 32-bit arches.
15040 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
15042         * locale/programs/ld-address.c (address_finish): Fix one more
15043         place where the iso639 array might be accessed beyond the limits.
15045 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
15047         * nis/nis_table.c (nis_list): Avoid clearing res twice before
15048         filling it for the first time.
15050         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
15051         Adjust all callers.
15052         Free res object content before returning.
15054         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
15056         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
15057         client->cl_auth.
15059         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
15060         cleanup for initial thread, just the free call on TVP.
15062         * nscd/gai.c (__getline): Define.
15065 See ChangeLog.16 for earlier changes.