Fix definition and testing of S_ISSOCK.
[glibc.git] / ChangeLog
bloba178be5de4a9c854fdceec8fe7b8d3637fb698a3
1 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
3         * conform/data/sys/stat.h-data: Fix testing of S_IS* macros.
5         [BZ #11279]
6         * io/sys/stat.h: Always define S_ISSOCK for XPG6 and up.
8         [BZ #11287]
9         * csu/Makefile ($(objpfx)version-info.h): Handle newer kernel headers
10         which don't define UTS_RELEASE.
12 2010-04-04  H.J. Lu  <hongjiu.lu@intel.com>
13             Ulrich Drepper  <drepper@redhat.com>
15         [BZ #11292]
16         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Allow
17         concurrent initialization and use of __cpu_features.
19 2010-04-04  Ulrich Drepper  <drepper@redhat.com>
21         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add tag to
22         the enum.
24 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
26         [BZ #11333]
27         * sysdeps/unix/readdir_r.c (__READDIR_R): Add support for platforms
28         which include unnecessary padding in d_reclen.
29         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Select work-around for
30         unnecessary padding.
32         [BZ #11387]
33         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlin): Don't abort on
34         unknown interface, return -1.
35         (getifaddrs_internal): Rename from getifaddrs.  Handle errors in
36         map_newlink be returning -EAGAIN.
37         (getifaddrs): If -EAGAIN is returned from getifaddrs_internal try
38         again.
40 2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
42         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
43         redundant and incorrect else block which overwrites current line
44         with the partial next line.
46 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
48         [BZ #11438]
49         * posix/gai.conf: Document problems with IPv4 site-local addresses and
50         NATs.
52         [BZ #11449]
53         * crypt/crypt_util.c (__init_des_r): Add memory barrier before setting
54         small_tables_initialized.
56         * malloc/malloc.c (_int_free): Add one more sanity check for fastbins.
58         * malloc/malloc.c (set_max_fast): Fix computation of the value.
60 2010-03-30  David S. Miller  <davem@davemloft.net>
62         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
63         MMAP2_PAGE_SHIFT test.
65 2010-03-29  Ulrich Drepper  <drepper@redhat.com>
67         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
69 2010-03-28  Thomas Schwinge  <thomas@schwinge.name>
71         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Adapt to auxv
72         changes in the generic code.
73         * elf/rtld.c (dl_main): Conditionalize the code that dereferences auxv
74         to [HAVE_AUX_VECTOR].
76 2010-03-27  Ulrich Drepper  <drepper@redhat.com>
78         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): If
79         __ASSUME_AT_PAGESIZE we can rely on the value being set.
81         * include/wchar.h: Undefine __need_mbstate_t and __need_wint_t
82         unconditionally in the end.
84         * posix/glob.c (glob): Initialize oldcount early, too.
86 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
88         * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
89         only if needed.
90         Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
92 2010-03-26  Richard Henderson  <rth@redhat.com>
94         * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
96         * stdio-common/psiginfo.c (psiginfo): Fix printf format
97         warning for si_band.
99         * locale/setlocale.c (free_category): Finish renaming
100         struct locale_data to __locale_data.
102         * csu/gmon-start.c (ENTRY_POINT, etext): Declare as char[], not void.
103         * elf/dl-sysdep.c (_end): Likewise.
104         * sysdeps/unix/sysv/dl-sysdep.c (frob_brk): Likewise with locally
105         declared _end, and associated variables.
107 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
109         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't assume success always
110         means aborting the loop over the NSS methods.
112 2010-03-25  Andreas Schwab  <schwab@redhat.com>
114         * sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
115         each action.
117 2010-03-26  Ulrich Drepper  <drepper@redhat.com>
119         * malloc/malloc.c: Remove stale reference to website.
121 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
123         [BZ #11389]
124         * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
125         CLOCK_MONOTONIC_COARSE.
126         * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
127         CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
128         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
129         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
131 2010-03-25  Andreas Schwab  <schwab@redhat.com>
133         * sysdeps/posix/cuserid.c: Fix typo.
135 2010-03-16  Chris Demetriou  <cgd@google.com>
137         [BZ #11394]
138         * locale/programs/simple-hash.c: Include inttypes.h.
139         (hashval_t): Defined to be uint32_t.
140         * locale/programs/simple_hash.h: Include inttypes.h.
141         (compute_hashval): Change return type to uint32_t.
143 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
145         * sysdeps/unix/sysv/linux/getlogin_r.c: New file.
146         * sysdeps/unix/sysv/linux/getlogin.c: New file.
147         * sysdeps/unix/getlogin_r.c: Allow compiling getlogin as static
148         function.
149         * sysdeps/unix/getlogin.c: Likewise.  Move name variable to toplevel.
150         * include/unistd.h: Declare __getlogin_r_loginuid.
152         [BZ #11397]
153         * sysdeps/posix/cuserid.c (cuserid): Make sure the returned string
154         is NUL terminated.
155         Patch by Jonathan Geisler <jgeisler@cse.taylor.edu>.
157         * sysdeps/unix/sysv/linux/mmap64.c: Allow variable shift values.
159 2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
161         * sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
162         is defined.
164 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
166         * string/test-memcmp.c (check_result): New function.
167         (do_one_test): Use it.
168         (check1): New function.
169         (test_main): Use it.
171 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
173         * posix/tst-gnuglob.c: Add tests with empty patterns.  For this
174         rewrite the tests to add support for failing glob calls.
175         Some other minor cleanups.
176         * posix/bug-glob3.c: New file.
177         * posix/Makefile (tests): Add bug-glob3.
179 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
180             Andreas Schwab  <andreas@redhat.com>
182         * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
183         If pattern is "" bail out early
185 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
187         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
188         but tab->size != 0, just unlock and goto success, without
189         allocating anything or entering anything into the hash table.
190         (_dl_debug_bindings): Temporarily set tab->entries to NULL
191         around do_lookup_x in undef_map->l_local_scope[0].  If
192         undef_map->l_symbolic_in_local_scope, lookup also in
193         symbolic_searchlist of following libraries in l_local_scope
194         that have DT_SYMBOLIC set.
195         * elf/dl-deps.c (_dl_map_object_deps): Compute
196         l_symbolic_in_local_scope.
197         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
198         bitfield.
200 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
202         [BZ #11410]
203         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
205         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
206         C++ prototype handling to a better place.
208 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
210         * elf/dl-load.c (open_verify): Extend expected to the full size of the
211         e_ident array.  When loading, check that the fields in e_ident we don't
212         know are zero to allow future extensions.
214 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
216         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
217         when exit from loop.
219 2010-03-16  Andreas Schwab  <schwab@redhat.com>
221         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
222         address in debug statement.
223         (send_dg): Pass correct buffer pointer to DprintQ.
225 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
227         * libc-abis: Add a few more entries.
229 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
231         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
232         Not used here.
233         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
234         interface.
235         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
236         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
237         is Linux.
238         Fix includes.
239         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
241         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
242         definition to follow generic code.
244 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
246         * posix/getconf.c: Update copyright year.
247         * nss/getent.c: Likewise.
248         * iconv/iconvconfig.c: Likewise.
249         * iconv/iconv_prog.c: Likewise.
250         * elf/ldconfig.c: Likewise.
251         * catgets/gencat.c: Likewise.
252         * csu/version.c: Likewise.
253         * elf/ldd.bash.in: Likewise.
254         * elf/sprof.c (print_version): Likewise.
255         * locale/programs/locale.c: Likewise.
256         * locale/programs/localedef.c: Likewise.
257         * nscd/nscd.c (print_version): Likewise.
258         * debug/xtrace.sh: Likewise.
259         * malloc/memusage.sh: Likewise.
260         * malloc/mtrace.pl: Likewise.
261         * debug/catchsegv.sh: Likewise.
263         * Makerules: Add rule for libc-abis.h.
264         * csu/version.c: Use LIBC_ABIS_STRING string if available.
265         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
266         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
267         Add extra call to VALID_ELF_ABIVERSION.
269 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
271         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
273 2010-03-12  Andreas Schwab  <schwab@redhat.com>
275         * elf/dl-dst.h: Include "trusted-dirs.h".
276         (DL_DST_REQUIRED): Take $LIB into account.
278 2010-03-11  Roland McGrath  <roland@redhat.com>
280         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
281         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
283 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
285         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
286         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
288 2010-03-09  David S. Miller  <davem@davemloft.net>
290         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
291         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
292         64-bit ones.
294         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
296         * sysdeps/sparc/sparc32/strlen.S: Optimize.
297         * sysdeps/sparc/sparc64/strlen.S: Likewise.
298         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
299         XCC): Delete definitions, not needed.
301 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
303         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
304         Little follow-up patch from last change.
306 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
308         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
309         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
311 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
313         * resolv/res_send.c: Fixed DEBUG statements.
314         Moved tmpbuf declaration to block beginning and
315         updated pointer names used in multiple DprintQ() calls
317 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
319         * config.make.in (config-asflags-i686): Define.
320         * configure.in: Substitute libc_cv_as_i686.
321         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
322         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
323         if assembler supports -mtune=i686.
324         (ASFLAGS-.oX): Likewise.
326 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
328         * elf/elf.h (R_X86_64_SIZE32): Define.
329         (R_X86_64_SIZE64): Define.
331 2010-03-02  Richard Guenther  <rguenther@suse.de>
333         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
334         is sign-extending.
336 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
338         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
339         the kernel headers.
341 2010-03-04  David S. Miller  <davem@davemloft.net>
343         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
345         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
346         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
348 2010-03-03  David S. Miller  <davem@davemloft.net>
350         * math/math_private.h (INSERT_WORDS64): Fix argument order.
352 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
354         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
356 2010-03-03  David S. Miller  <davem@davemloft.net>
358         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
359         pass '1' for 't' argument to sparc_fixup_plt.
360         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
361         Likewise.
362         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
363         (sparc_fixup_plt): Document 't' argument.  Enable branch
364         optimization and use v9 branches when possible.  Explain why we
365         cannot unconditionally patch the branch into the first PLT
366         instruction.
367         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
368         argument.  Use v9 branches when possible.  Explain why we can in
369         fact unconditionally use a branch in the first PLT instruction
370         here.
372 2010-02-28  Roland McGrath  <roland@redhat.com>
374         * elf/elf.h (NT_X86_XSTATE): New macro.
376 2010-02-25  David S. Miller  <davem@davemloft.net>
378         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
379         * sysdeps/sparc/sparc64/align-cpy.S: New.
380         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
381         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
382         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
383         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
384         Remove.
385         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
386         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
387         Remove.
388         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
389         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
390         Remove.
392         * sysdeps/sparc/sparc32/bcopy.c: Delete.
393         * sysdeps/sparc/sparc32/memmove.c: Delete.
394         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
395         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
396         * sysdeps/sparc/sparc64/bcopy.c: Delete.
397         * sysdeps/sparc/sparc64/memmove.c: Delete.
398         * sysdeps/sparc/sparc64/memcopy.h: New.
399         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
400         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
401         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
402         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
403         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
405         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
406         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
407         gen-as-const-headers.
408         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
409         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
410         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
411         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
412         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
413         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
414         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
415         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
416         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
417         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
418         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
419         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
420         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
421         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
422         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
423         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
424         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
425         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
426         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
427         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
428         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
429         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
430         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
431         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
433 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
435         [BZ #11332]
436         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
437         and cfi_restore_state only if USE_AS_STRNCMP is defined.
439 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
441         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
443 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
445         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
446         (bk_write_less32bytes_2): Renamed to ...
447         (bk_write_less48bytes): This.
448         Use unsigned conditional jumps.
449         Correct unwind info.
450         Use add/sub instead of lea if possible.
451         (shl_0_gobble_cache_loop_tail): Removed.
452         (large_page): Properly adjust ECX.
454         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
455         conditional jumps.
456         Correct unwind info.
458         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
459         punpcklbw.
460         Use unsigned conditional jumps.
461         (128bytesormore_nt): Renamed to ...
462         (128bytesormore_endof_L1): This.
463         Use add instead of lea if possible.
464         Correct unwind info.
465         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
466         punpcklbw.
467         Use unsigned conditional jumps.
468         Use add instead of lea if possible.
469         Correct unwind info.
471 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
473         [BZ #11319]
474         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
475         undoing the stream because _IO_FINISH doesn't report failures.
477         [BZ #5553]
478         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
479         (public_pVALLOc): Likewise.
480         Patch by Petr Baudis.
482 2010-02-22  Jim Meyering  <meyering@redhat.com>
484         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
486         * manual/charset.texi: Adjust grammar.
488         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
489         * manual/charset.texi (Selecting the Conversion): Likewise.
490         * manual/getopt.texi (Getopt Long Options): Likewise.
491         * manual/memory.texi (Resizing the Data Segment): Likewise.
492         * manual/message.texi (GUI program problems): Likewise.
493         * manual/resource.texi (CPU Affinity): Likewise.
494         * manual/stdio.texi (Streams and Threads): Likewise.
495         * manual/time.texi (High Accuracy Clock): Likewise.
497 2009-02-20  David S. Miller  <davem@davemloft.net>
499         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
500         Adjust rela->r_offset by l->l_addr when rewriting PLT.
502         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
503         test end of buffer.
505         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
506         (__makecontext): Adjust arg counter properly when copying arg
507         stack slots.
509 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
511         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
512         Adjust rela->r_offset by l->l_addr when rewriting PLT.
514 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
516         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
517         non-existent `tiocsctty_port'.
519 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
521         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
522         instead of FEATURE_OFFSET.
523         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
525         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
526         Fix one unwind info problem.
528         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
530         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
532 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
533             Ulrich Drepper  <drepper@redhat.com>
535         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
536         Clean up a bit.
538 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
540         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
541         (tiocsctty_port): ...this new function.
543         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
544         `ioctl_handler_t'.
546 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
548         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
549         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
550         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
551         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
553         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
554         undefined code.
556 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
558         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
559         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
560         memcmp-c, memcmp-ssse3, and memcmp-sse4.
561         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
562         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
563         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
564         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
565         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
566         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
567         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
568         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
569         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
570         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
572 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
574         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
575         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
576         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
577         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
578         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
579         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
580         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
581         is not supported.
582         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
583         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
584         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
585         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
586         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
587         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
588         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
589         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
590         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
591         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
592         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
593         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
594         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
595         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
596         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
597         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
598         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
600         Likewise.
601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
602         Likewise.
603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
604         Likewise.
605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
606         Likewise.
607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
609 2010-02-12  Alan Modra  <amodra@gmail.com>
611         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
612         Define and use for __powerpc64__ too.
613         [__powerpc__] (TLS_LD): Add r3 to clobbers.
614         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
615         [__powerpc64__] (TLS_GD): Make __result r3 reg.
616         [__powerpc64__] (TLS_IE): Relax output constraint.
618 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
620         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
621         instructions cu21 and cu24.  Add well-formedness checking
622         parameter and adjust the software implementation.
623         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
625 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
627         [BZ #11271]
628         * io/ftw.c (ftw_startup): Close descriptor for initial directory
629         after changing back to it.
631 2010-02-05  David S. Miller  <davem@davemloft.net>
633         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
634         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
635         ifunc relocs.
636         (elf_machine_lazy_rel): Likewise.
637         (sparc_fixup_plt): Pull out to...
638         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
639         * sysdeps/sparc/sparc32/dl-irel.h: New file.
640         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
641         ifunc relocs.
642         (elf_machine_lazy_rel): Likewise.
643         (sparc64_fixup_plt): Pull out to...
644         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
645         * sysdeps/sparc/sparc64/dl-irel.h: New file.
647 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
649         * elf/elf.h: Define m68k TLS relocations.
651 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
653         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
654         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
655         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
656         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
658         64-bit power7 fpu path.
659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
660         32-bit power7 fpu math.
662 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
664         * sysdeps/i386/rshift.S: More compact unwind information.
666         * sysdeps/i386/lshift.S: Fix unwind information.
668 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
670         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
671         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
672         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
673         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
674         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
675         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
676         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
677         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
678         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
679         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
680         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
681         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
683 2010-02-08  Andreas Schwab  <schwab@redhat.com>
685         * include/fenv.h: Add hidden proto for fegetenv.
686         * math/fegetenv.c: Add hidden alias.
687         * sysdeps/i386/fpu/fegetenv.c: Likewise.
688         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
689         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
690         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
691         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
692         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
693         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
695 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
697         [BZ #11230]
698         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
699         during recovery.
701 2010-01-26  Andreas Schwab  <schwab@redhat.com>
703         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
704         interface.
705         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
706         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
707         utmpx interface.
709         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
710         entry for 2.12.
712 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
714         [BZ #11235]
715         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
716         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
717         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
718         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
719         MS_ACTIVE, and MS_NOUSER.
720         (MS_RMT_MASK): Update according to current kernels.
722         [BZ #11242]
723         * misc/getusershell.c (initshells): Allocate one more byte in input
724         buffer so that fgets doesn't loop undefinitely.
726 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
728         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
729         __libc_use_alloca tells us not to.  Fix memory leak in an error
730         situation.  Based partially on patch by Jim Meyering.
732 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
734         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
735         get_phys_pages, get_avphys_pages): Add weak aliases.
737 2010-01-25  Andreas Schwab  <schwab@redhat.com>
739         * iconv/iconv_prog.c (write_output): Fix check for open failure.
741 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
743         [BZ #11200]
744         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
745         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
747 2010-01-22  Jim Meyering  <jim@meyering.net>
749         [BZ #11193]
750         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
751         buffer length computation.
753         [BZ #11192]
754         * posix/regexec.c (re_copy_regs): Don't leak when allocation
755         of the start buffer succeeds but allocation of the "end" one fails.
757         [BZ #11191]
758         * posix/regexec.c (re_search_2_stub): Check for overflow
759         when adding the sizes of the two strings.
761         [BZ #11190]
762         * posix/regexec.c (re_search_internal): Avoid overflow
763         in computing re_malloc buffer size.
765         [BZ #11189]
766         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
767         in computing re_malloc buffer size.
769         [BZ #11188]
770         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
771         in size calculation.
773         [BZ #11187]
774         * posix/regexec.c (re_search_2_stub): Use simpler method than
775         boolean for freeing internal storage.
777 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
779         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
780         failed mbrtowc call.
782 2010-01-22  Jim Meyering  <jim@meyering.net>
784         [BZ #11186]
785         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
786         fits in wchar_t.  Problem reported by Eric Blake.
788         [BZ #11185]
789         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
790         and stores into set-but-not-used local, "q".
792         [BZ #11184]
793         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
794         detection test.  Patch by Paul Eggert.
796         [BZ #11183]
797         * posix/regex_internal.c (re_string_realloc_buffers):
798         Detect and handle internal overflow.  Patch by Paul Eggert
800 2010-01-20  Andreas Schwab  <schwab@redhat.com>
802         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
803         (CHECK_SP): Fix check for alternate stack.
804         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
805         (CHECK_SP): Likewise.
807 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
809         * sysdeps/i386/i686/multiarch/memmove.S: Also check
810         bit_Fast_Rep_String when SHARED isn't defined.
812 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
814         [BZ #11194]
815         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
817 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
819         * sysdeps/mach/hurd/bits/libc-lock.h
820         (__rtld_lock_recursive_t): New type.
821         (__rtld_lock_initialize): New macro.
823 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
825         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
826         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
830 2010-01-18  Andreas Schwab  <schwab@redhat.com>
832         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
833         definitions of O_DSYNC and O_RSYNC.
835         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
836         casting d_tag.
838         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
839         dynamic entry types.
841 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
843         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
844         constant.
845         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
846         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
847         overflow.
848         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
850         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
851         math_opt_barrier and math_force_eval macros.
853 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
855         * posix/regcomp.c: Fix a few more cases of ignored return values.
856         * posix/regex_internal.c: Likewise.
857         * posix/regexec.c: Likewise.
859         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
860         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
861         if _XOPEN_SOURCE is not defined as well.
863 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
865         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
866         high gprs kernel facility.
867         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
868         Added high gprs check for DSOs.
869         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
870         new elf header flag.
872 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
874         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
875         dl_main.
876         * elf/dl-open.c (_dl_sysdep_start): Likewise..
877         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
878         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
879         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
880         started.
882 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
884         [BZ #11027]
885         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
886         to RFC 2474.
887         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
889         [BZ #11141]
890         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
891         addresses.
893         [BZ #11127]
894         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
895         re_node_set_insert failure; return REG_ESPACE.
896         Patch by Paul Eggert.
898         * bits/confname.h: Make pre-C99-safe.
900 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
902         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
903         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
904         files are found by GCC.
906 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
908         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
909         brk, and sbrk.
911         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
912         index, and rindex.
914         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
916         * Versions.def: Add GLIBC_2.12 for libpthread.
918         [BZ #11126]
919         * malloc/malloc.c (malloc_info): Initialize malloc if not already
920         done.  Handle empty bin lists.
922         * posix/unistd.h: Change getpagesize and getdtablesize declaration
923         visibility some more.
925         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
927         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
929         [BZ #11120]
930         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
931         needed outside libc.
933 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
935         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
937 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
939         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
941 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
943         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
945 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
947         * conform/data/complex.h-data: Test for POSIX2008.
949         * conform/data/ctype.h-data: Fix POSIX testing.
951         * conform/data/dirent.h-data: ino_t only needed for XSI.
953         * grp/grp.h: Declare getgrent and endgrent for XPG7.
955         * conform/data/inttypes.h-data: Use same types as the headers.
957         * resolv/netdb.h: Don't define old resolver macros for XPG7.
959         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
961         * conform/conformtest.pl: Implement tag for allow-header.
962         Fix newline handling in allow-header implementation.
964         * conform/data/time.h-data: Use allow-header instead of duplicating
965         information.
967         * conform/data/time.h-data: Allow sigevent tag.
969         * posix/sched.h: Define time_t and pid_t for XPG7.
971 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
973         * sysdeps/i386/i686/bcopy.S: New file.
975         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
977         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
978         and END_CHK.
979         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
980         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
981         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
983         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
985         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
986         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
987         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
988         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
989         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
990         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
991         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
992         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
993         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
994         * sysdeps/i386/i686/multiarch/bzero.S: New file.
995         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
996         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
997         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
998         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
999         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
1000         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
1001         * sysdeps/i386/i686/multiarch/memmove.S: New file.
1002         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
1003         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
1004         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
1005         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
1006         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
1007         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
1008         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
1009         * sysdeps/i386/i686/multiarch/memset.S: New file.
1010         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
1012         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
1013         (END_CHK): Likewise.
1015         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
1016         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
1017         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
1019         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
1020         for 0x0e and 0x80.
1021         (__x86_64_data_cache_size): New.
1022         (init_cacheinfo): Set __x86_64_data_cache_size.
1024         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
1025         on bit_Fast_Rep_String for Intel Core i7.
1027         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
1028         (index_Fast_Rep_String): Likewise.
1029         (FEATURE_INDEX_1): Likewise.
1030         (FEATURE_INDEX_MAX): Likewise.
1031         (cpu_features): Add feature.
1033 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
1035         * conform/data/sys/select.h-data: Fix up for XPG7.
1037 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
1039         * posix/sys/wait.h: Don't define W* macros etc. if
1040         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
1042 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
1044         * io/sys/stat.h: Declare fchmod for XPG7.
1045         * conform/data/sys/stat.h-data: Fix up for XPG7.
1047         * termios/termios.h: Define pid_t for XPG7.
1049         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
1050         * conform/data/tgmath.h-data: Likewise.
1052         * conform/data/time.h-data: Fix POSIX tests.
1054         * conform/data/wchar.h-data: Fix up XPG7 tests.
1056         * include/features.h: Fix __USE_ISOC95 handling.
1058         * conform/data/wordexp.h-data: Fix typo in last change.
1060         * conform/data/unistd.h-data: Fix up older POSIX tests.
1062         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
1063         * posix/unistd.h: Likewise.
1065         * posix/unistd.h: Include environments.h also for XPG6 and up.
1066         Define intptr_t for XPG6 and up.
1067         Fix up for XPG7.
1068         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
1070         * conform/data/sys/types.h-data: Fix up for XPG7.
1072         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
1073         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1074         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1075         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1076         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1077         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1078         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1079         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1080         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1082         * bits/confname.h: Fix typo in last change.
1084         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
1086 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1088         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
1089         and SA_RESETHAND now available in Base.
1090         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1091         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1092         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1093         * conform/data/signal.h-data: Update for XPG7.
1095         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
1097         * string/strings.h: Don't declare obsolete functions for XPG7.
1098         Declare ffs only for XSI.
1099         * conform/data/strings.h-data: Update for XPG7.
1101 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
1103         [BZ #11125]
1104         * libio/stdio.h: Define va_list, off_t, and ssize_t.
1106         * posix/glob.h: Define size_t.
1108         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
1110         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
1112 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
1114         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
1115         be self-contained.
1117         * conform/data/stdio.h-data: Expect off_t and ssize_t.
1119 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
1121         * libio/stdio.h: Define va_list also for XPG7.
1123         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
1124         * conform/data/ctype.h-data: Likewise.
1125         * conform/data/dirent.h-data: Likewise.
1126         * conform/data/errno.h-data: Likewise.
1127         * conform/data/fcntl.h-data: Likewise.
1128         * conform/data/fmtmsg.h-data: Likewise.
1129         * conform/data/fnmatch.h-data: Likewise.
1130         * conform/data/ftw.h-data: Likewise.
1131         * conform/data/glob.h-data: Likewise.
1132         * conform/data/grp.h-data: Likewise.
1133         * conform/data/iconv.h-data: Likewise.
1134         * conform/data/langinfo.h-data: Likewise.
1135         * conform/data/libgen.h-data: Likewise.
1136         * conform/data/limits.h-data: Likewise.
1137         * conform/data/locale.h-data: Likewise.
1138         * conform/data/math.h-data: Likewise.
1139         * conform/data/monetary.h-data: Likewise.
1140         * conform/data/mqueue.h-data: Likewise.
1141         * conform/data/ndbm.h-data: Likewise.
1142         * conform/data/netdb.h-data: Likewise.
1143         * conform/data/pthread.h-data: Likewise.
1144         * conform/data/pwd.h-data: Likewise.
1145         * conform/data/regex.h-data: Likewise.
1146         * conform/data/sched.h-data: Likewise.
1147         * conform/data/search.h-data: Likewise.
1148         * conform/data/semaphore.h-data: Likewise.
1149         * conform/data/setjmp.h-data: Likewise.
1150         * conform/data/signal.h-data: Likewise.
1151         * conform/data/spawn.h-data: Likewise.
1152         * conform/data/stdio.h-data: Likewise.
1153         * conform/data/stdlib.h-data: Likewise.
1154         * conform/data/string.h-data: Likewise.
1155         * conform/data/strings.h-data: Likewise.
1156         * conform/data/sys/ipc.h-data: Likewise.
1157         * conform/data/sys/msg.h-data: Likewise.
1158         * conform/data/sys/resource.h-data: Likewise.
1159         * conform/data/sys/sem.h-data: Likewise.
1160         * conform/data/sys/shm.h-data: Likewise.
1161         * conform/data/sys/socket.h-data: Likewise.
1162         * conform/data/sys/stat.h-data: Likewise.
1163         * conform/data/sys/time.h-data: Likewise.
1164         * conform/data/sys/types.h-data: Likewise.
1165         * conform/data/sys/uio.h-data: Likewise.
1166         * conform/data/sys/wait.h-data: Likewise.
1167         * conform/data/syslog.h-data: Likewise.
1168         * conform/data/tar.h-data: Likewise.
1169         * conform/data/termios.h-data: Likewise.
1170         * conform/data/time.h-data: Likewise.
1171         * conform/data/ulimit.h-data: Likewise.
1172         * conform/data/unistd.h-data: Likewise.
1173         * conform/data/utmpx.h-data: Likewise.
1174         * conform/data/wchar.h-data: Likewise.
1175         * conform/data/wctype.h-data: Likewise.
1176         * conform/data/wordexp.h-data: Likewise.
1178         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1179         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1180         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1181         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1182         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1183         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1184         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1185         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1186         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1187         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1189         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1190         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1191         Declare mkstemp and getsubopt for XPG7.
1192         Declare posix_openpt for XPG6 XSI.
1194         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1195         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1197         * string/string.h: Declare strdup for XPG7.
1199 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1201         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1202         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1204         * dirent/dirent.h: Really fix feature selection.
1206         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1207         Fix all users.
1208         * locale/C-address.c: Fix all users.
1209         * locale/C-collate.c: Likewise.
1210         * locale/C-ctype.c: Likewise.
1211         * locale/C-identification.c: Likewise.
1212         * locale/C-measurement.c: Likewise.
1213         * locale/C-messages.c: Likewise.
1214         * locale/C-monetary.c: Likewise.
1215         * locale/C-name.c: Likewise.
1216         * locale/C-numeric.c: Likewise.
1217         * locale/C-paper.c: Likewise.
1218         * locale/C-telephone.c: Likewise.
1219         * locale/C-time.c: Likewise.
1220         * locale/findlocale.c: Likewise.
1221         * locale/global-locale.c: Likewise.
1222         * locale/loadarchive.c: Likewise.
1223         * locale/loadlocale.c: Likewise.
1224         * locale/nl_langinfo_l.c: Likewise.
1225         * locale/setlocale.c: Likewise.
1226         * locale/xlocale.c: Likewise.
1227         * locale/xlocale.h: Likewise.
1228         * stdio-common/vfscanf.c: Likewise.
1229         * stdlib/strfmon_l.c: Likewise.
1230         * stdlib/strtod_l.c: Likewise.
1231         * stdlib/strtol_l.c: Likewise.
1232         * string/strcoll_l.c: Likewise.
1233         * string/strxfrm_l.c: Likewise.
1234         * time/alt_digit.c: Likewise.
1235         * time/asctime.c: Likewise.
1236         * time/era.c: Likewise.
1237         * time/lc-time-cleanup.c: Likewise.
1238         * time/strftime_l.c: Likewise.
1239         * time/strptime_l.c: Likewise.
1240         * wcsmbs/wcsmbsload.c: Likewise.
1241         * wcsmbs/wcsmbsload.h: Likewise.
1243         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1244         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1245         for XPG7.
1246         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1247         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1249         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1251         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1253 2010-01-07  Roland McGrath  <roland@redhat.com>
1255         * elf/elf.h (PN_XNUM): New macro.
1257         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1258         literal 2.
1260 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1262         * dirent/dirent.h: Fix typo in feature selection macro use.
1264 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1266         [BZ #11115]
1267         * stdlib/tst-makecontext3.c: New file.
1268         * stdlib/Makefile (tests): Add new test.
1270         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1272 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1274         * configure.in: Enable multi-arch by default if the assembler
1275         supports gnu_indirect_function symbol type and the architecture
1276         supports it.
1278 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1280         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1281         is defined.
1283 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1285         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1286         MACH_PORT_NULL when id != cttyid.
1288 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1290         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1291         __mach_port_deallocate on rootdevid.
1293 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1295         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1296         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1297         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1298         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1300 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1302         [BZ #10992]
1303         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1304         Patch by Eric Blake <ebb9@byu.net>.
1306 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1308         [BZ #11093]
1309         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1310         POLLWRBAND also for POSIX 2008.
1311         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1312         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1314         * include/link.h (struct link_map): Move l_used into its own word.
1315         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1316         still zero.
1317         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1318         never really used.
1320 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1322         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1323         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1324         check processor feature.
1325         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1326         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1327         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1328         (index_SSE2): Likewise.
1330 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1332         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1333         if __ASSEMBLER__ is defined.
1334         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1335         (bit_SSE4_2): Likewise.
1336         (index_SSSE3): Likewise.
1337         (index_SSE4_2): Likewise.
1338         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1339         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1340         check processor feature.
1341         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1342         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1343         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1344         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1345         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1346         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1347         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1349 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1351         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1353 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1355         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1357 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1359         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1360         O_DSYNC to match 2.6.33+ kernels.
1361         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1362         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1363         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1364         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1365         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1366         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1368 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1370         [BZ #11000]
1371         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1372         *herrnop before returning.
1373         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1374         Likewise.
1375         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1376         TRYAGAIN errors separately.
1377         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1378         *name4_r after functions.
1380 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1382         [BZ #11046]
1383         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1384         version check.
1386 2009-11-05  Bruno Haible  <bruno@clisp.org>
1388         [BZ #11056]
1389         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1390         argv argument as non-NULL.
1391         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1393 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1395         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1396         recvmmsg.
1397         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1398         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1400 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1402         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1403         registers.
1404         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1405         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1406         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1408 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1410         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1411         SCHED_RESET_ON_FORK.
1413 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1415         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1416         only used on truly ancient kernel if configuration requires a more
1417         recent kernel.
1419 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1421         [BZ #3662]
1422         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1423         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1425         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1426         pass it on to __ptsname_internal.
1427         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1428         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1429         All the code from __ptsname_r but take additional parameter.  Use that
1430         instead of pointer to local stat64 variable.
1431         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1432         variable.
1433         * include/stdlib.h: Declare __ptsname_internal.
1435         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1436         before the exec.
1437         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1438         * login/programs/pt_chown.c (main): Don't print message on errors
1439         when doing real work.
1441         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1442         once.
1444         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1445         irel relocations split out from...
1446         (__libc_csu_init): ...here.
1447         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1449 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1451         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1452         for timestamps also if __USE_XOPEN2K8.
1453         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1454         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1455         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1456         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1458 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1460         * nscd/connections.c (restart): Try harder to re-exec.
1462         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1464         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1465         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1466         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1467         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1468         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1469         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1471         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1472         Define.
1473         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1475 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1477         [BZ #10162]
1478         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1479         than software pipeline.  Properly recover from shorter read.
1481 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1483         [BZ #10958]
1484         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1485         initialized before using it.
1486         (_IO_putwc_unlocked): Likewise.
1488         [BZ #10918]
1489         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1490         in cast to not throw away const-ness of parameters.
1491         (__CPU_EQUAL_S): Likewise.
1492         (__CPU_OP_S): Likewise.
1494         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1495         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1496         this gratuitous change and we have to keep compatibility.
1497         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1498         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1499         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1500         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1501         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1502         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1504 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1506         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1507         of parameters of sync_file_range.
1508         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1509         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1510         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1511         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1512         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1513         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1515 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1517         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1518         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1519         is defined.
1520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1521         file.
1523 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1525         * posix/bug-regex30.c: New file.
1526         * posix/Makefile: Add rules to build and run bug-regex30.
1527         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1528         character lead bytes when there is a range in a COMPLEX_BRACKET.
1529         Reported by Oleg Bylatov.
1531 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1533         [BZ #10969]
1534         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1535         * locale/tst-duplocale.c: New file.
1536         * locale/Makefile (tests): Add tst-duplocale.
1538         [BZ #10968]
1539         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1540         Patch by Bruno Haible <bruno@clisp.org>.
1541         * locale/tst-locname.c: New file.
1542         * locale/Makefile (tests): Add tst-locname.
1544         [BZ #10972]
1545         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1546         constants from recent kernels.
1547         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1548         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1549         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1550         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1551         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1552         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1554 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1556         [BZ #10162]
1557         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1558         software pipeline.
1560 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1562         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1563         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1564         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1566 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1568         * posix/bug-regex29.c: Include stdio.h.
1570 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1572         [BZ #10939]
1573         * Versions.def: Define GLIBC_2.12 for libc.
1574         * manual/errno.texi: Add ERFKILL entry.
1575         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1576         for 2.12.
1577         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1578         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1580         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1581         F_GETOWN_EX definitions according to corrected kernel definitions.
1582         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1583         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1584         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1585         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1586         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1587         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1589 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1591         * version.h: Bump for 2.12 development.
1593 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1595         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1596         out of buffer space.
1597         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1598         map_v4v6_hostent running out of space.
1600 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1602         * string/bits/string3.h (memset): If the second parameter is constant
1603         and zero there is likely no transposition.
1604         Patch by Caolan McNamara <caolanm@redhat.com.
1606 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1608         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1609         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1611 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1613         * malloc/memusagestat.c (main): Fix spelling in an error message.
1615 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1617         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1618         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1620 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1623         readahead.
1625 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1627         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1628         relocate opd entry when resolving prelink conflicts.
1630 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1632         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1633         when -D_FILE_OFFSET_BITS=64.
1635         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1636         of last two arguments when -D_FILE_OFFSET_BITS=64.
1637         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1638         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1639         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1640         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1641         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1642         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1644 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1646         [BZ #4457]
1647         * sysdeps/generic/libgcc_s.h: New file.
1648         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1650 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1652         * malloc/hooks.c (free_check): Restore locking and call _int_free
1653         appropriately.
1655 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1657         * version.h (VERSION): Bump for 2.11 release.
1658         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1660         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1662         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1664         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1665         to avoid warning.
1666         * stdlib/tst-strtoll.c (tests): Likewise.
1668         [BZ #9986]
1669         * time/strftime_l.c (__strftime_internal): Allow %OC.
1671         * misc/mkostemps.c: New file.
1672         * misc/mkostemps64.c: New file.
1674 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1676         * locale/programs/locale-spec.c: Include <error.h> and
1677         <libintl.h>.
1679         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1681 2009-10-28  Roland McGrath  <roland@redhat.com>
1683         * Makefile (dist-prepare): New target.
1684         (tag-for-dist): Target removed.
1685         (glibc-%.tar): Pattern rule removed.
1686         (%.tar): New pattern rule, does simple use of git archive.
1687         (dist-version): Remove variable definition.
1688         (dist): Just depend on that.  Add .tar.xz dependency.
1689         If dist-version variable not set on command line, depend on
1690         dist-prepare, re-invoke with dist-version set via git describe.
1692         * Makerules (%.xz): New pattern rule.
1694 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1696         * elf/ifuncdep2.c: Include ifunc-sel.h.
1697         (global): Delete.
1698         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1699         * elf/ifuncmain1.c (global): Delete.
1700         * elf/ifuncmain1vis.c: Likewise.
1701         * elf/ifuncmain2.c: Likewise.
1702         * elf/ifuncmain5.c: Likewise.
1703         * elf/ifuncmod3.c: Likewise.
1704         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1705         (foo_ifunc): Use ifunc_one.
1706         * elf/ifuncmain7.c: Likewise.
1707         * elf/ifuncmod1.c: Include ifunc-sel.h.
1708         (global): Define protected var.
1709         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1710         * elf/ifuncmod5.c: Likewise.
1711         * sysdeps/generic/elf/ifunc-sel.h: New file.
1712         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1714 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1716         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1717         (R_PPC_REL16*): Correct comments.
1718         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1719         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1720          R_PPC64_REL16_HA): Define.
1721         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1722         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1723         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1724         Delete unused "reloc" param.
1725         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1726         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1727         Delete "reloc" param.
1728         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1729         R_PPC_IRELATIVE.
1730         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1731         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1732         relocations.
1734 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1736         [BZ #10315]
1737         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1738         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1739         UDP_ENCAP_L2TPINUDP.
1741         [BZ #10349]
1742         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1743         parameter, specifying length of prefix.
1744         * stdio-common/tempname.c: Likewise.
1745         * include/stdio.h: Adjust prototypes.
1746         * libio/oldtmpfile.c: Adjust caller.
1747         * misc/mkdtemp.c: Likewise.
1748         * misc/mkostemp.c: Likewise.
1749         * misc/mkostemp64.c: Likewise.
1750         * misc/mkstemp.c:  Likewise.
1751         * misc/mkstemp64.c: Likewise.
1752         * misc/mktemp.c: Likewise.
1753         * stdio-common/tempnam.c: Likewise.
1754         * stdio-common/tmpfile.c: Likewise.
1755         * stdio-common/tmpnam.c: Likewise.
1756         * stdio-common/tmpnam_r.c: Likewise.
1757         * misc/mkstemps.c: New file.
1758         * misc/mkstemps64.c: New file.
1759         * stdlib/stdlib.h: Add prototypes.
1760         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1761         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1763 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1765         * locale/iso-639.def: Add sml entry.
1767         [BZ #10391]
1768         * resolv/res_send.c (send_dg): Initialize resplen.
1770         [BZ #10446]
1771         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1772         definition to the kernel's.
1773         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1775 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1777         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1778         offsets and record sizes in assert()s and response sending.
1779         * nscd/grpcache.c: Likewise.
1780         * nscd/hstcache.c: Likewise.
1781         * nscd/initgrcache.c: Likewise.
1782         * nscd/pwdcache.c: Likewise.
1784 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1786         [BZ #10540]
1787         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1788         /etc/hosts does not exist set errnop and herrnop appropriately.
1789         Patch by Steve Langasek <vorlon@debian.org>.
1791         [BZ #10553]
1792         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1793         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1795         [BZ #10564]
1796         * login/utmp_file.c (TIMEOUT): Increase to 10.
1798         [BZ #10609]
1799         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1800         for file names in case the syscall is not available.
1801         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1802         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1803         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1804         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1805         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1806         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1807         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1808         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1809         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1810         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1811         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1812         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1813         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1814         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1815         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1816         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1817         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1819         [BZ #10643]
1820         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1821         creation filed, remove the request from the 'requests' list and signal
1822         the caller that the request is finished.
1824         [BZ #10692]
1825         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1826         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1828         [BZ #10713]
1829         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1830         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1832         [BZ #10780]
1833         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1834         overflows the int return type.
1836         [BZ #10717]
1837         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1838         have to compute maxsize_total, we have to update the variables, and
1839         the also_total handling must happen after the repair.
1841         [BZ #10742]
1842         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1843         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1845 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1847         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1848         errno is always set when returning unsuccessfully.
1850 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1852         * malloc/memusage.c (update_data): Fix index wraparound handling
1853         so that buffer_cnt is actually reset.
1855 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1857         [BZ #10784]
1858         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1859         of the directory we look at into the static buffer if there is one
1860         at the start of the loop.
1862         [BZ #10789]
1863         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1864         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1866         [BZ #10840]
1867         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1868         __ASSUME_F_GETOWN_EX.
1869         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1870         if possible.
1871         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1873         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1874         and f_owner_ex.
1875         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1876         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1877         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1878         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1879         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1880         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1882         [BZ #10847]
1883         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1884         getutmpx symbol.
1886         [BZ #10823]
1887         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1888         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1890 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1892         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1894 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1896         [BZ #10817]
1897         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1898         Reported by Ray Chason.
1900 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1902         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1903         strend-sse4.
1904         * sysdeps/x86_64/multiarch/strchr.S: New file.
1905         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1906         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1908 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1910         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1912 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1914         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1915         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1916         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1917         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1918         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1919         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1920         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1921         __ieee751_expl to handle overflow.
1923 2009-10-14  David S. Miller  <davem@davemloft.net>
1925         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1926         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1928 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1930         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1931         !USE_MULTIARCH.
1933 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1935         [BZ #10730]
1936         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1937         Patch in part by Steve Ward <planet36@gmail.com>.
1939         [BZ #10731]
1940         * stdlib/rand_r.c: Fix typo.
1942         * po/cs.po: Update from translation team.
1944 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1946         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1947         returning if RTLD_NOLOAD.
1949 2009-10-06  Roland McGrath  <roland@redhat.com>
1951         * sysdeps/x86_64/multiarch/strstr-c.c
1952         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1954         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1955         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1957         * sysdeps/x86_64/multiarch/init-arch.h
1958         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1959         (HAS_CPU_FEATURE): New macro.
1960         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1961         * sysdeps/x86_64/multiarch/init-arch.c
1962         (__get_cpu_features): #undef it before definition.
1964 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1966         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1967         first_weekday to 1 and first_workday to 2.
1969 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1971         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1972         F_GETOWN_EX.
1973         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1974         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1975         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1976         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1977         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1978         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1980 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1982         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1983         * stdio-common/vfprintf.c: Likewise.
1985 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1987         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1988         (mkdirat): Call __directory_name_split_at instead of
1989         __directory_name_split.
1991 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1993         * locale/programs/locale-spec.c (locale_special): If nothing matches
1994         fail with an appropriate message.
1996 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1998         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1999         and XX.
2001 2009-09-25  Andreas Schwab  <schwab@redhat.com>
2003         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
2004         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
2006 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2008         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
2010 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
2012         * iconvdata/iso646.c (gconv_init): Correctly initialize the
2013         character size elements in step data.
2015 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
2017         * po/hu.po: Update from translation team.
2018         * po/vi.po: Likewise.
2020 2009-09-19  Roland McGrath  <roland@redhat.com>
2022         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
2024 2009-09-15  Roland McGrath  <roland@redhat.com>
2026         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
2027         * nptl/sysdeps/pthread/configure: Regenerated.
2028         * nptl/sysdeps/x86_64/configure: Regenerated.
2029         * sysdeps/unix/sysv/linux/configure: Regenerated.
2030         * sysdeps/x86_64/elf/configure: Regenerated.
2032         * Makefile (autoconf-it): Set execute bit only on top-level configure.
2034         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
2035         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
2036         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
2037         * configure: Regenerated.
2039 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
2041         * posix/getconf.c (main): Handle -- on command line.
2043 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
2045         * configure.in: Support binutils 2.100 and 3.0.
2047 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2049         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
2050         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
2051         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
2052         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
2054 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
2056         * locale/programs/ld-collate.c (struct locale_collate_t): Add
2057         unnamed_section_defined field.
2058         (collate_read): Test and set unnamed_section_defined.
2060         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
2061         _POSIX2_LINE_MAX.
2063 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
2065         * configure.in: Support binutils 2.20.
2067 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
2069         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
2070         __strstr_ia32): Add attribute_hidden.
2072 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2074         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
2075         parsing of group entry.
2077 2009-09-02  Andreas Schwab  <schwab@redhat.com>
2079         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
2080         external buffer.  Always discard readahead in internal buffer.
2081         * libio/Makefile (tests): Add bug-wsetpos.
2082         * libio/bug-wsetpos.c: New file.
2084 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
2086         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
2087         Add attribute_hidden.
2088         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
2089         __strcasestr_sse2): Likewise.
2090         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
2091         (__fma_fma): Make static.
2092         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
2093         (__fmaf_fma): Make static.
2095 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2097         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
2098         reformulate in-buffer optimisation check to match code in
2099         _IO_new_file_seekoff.
2101 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
2103         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
2104         to srwi in 32-bit memcpy for power6.
2106 2009-09-01  Andreas Schwab  <schwab@redhat.com>
2108         * include/stdio.h: Declare hidden proto for fflush.
2109         * libio/iofflush.c: Add hidden weak alias for fflush.
2111 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
2113         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
2114         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
2116 2009-08-31  Andreas Schwab  <schwab@redhat.com>
2118         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
2120 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
2122         [BZ #10560]
2123         * malloc/malloc.c: Add local assert definition to avoid problems with
2124         memory allocation in the real one.
2126 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2128         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
2129         Removed.
2130         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
2131         turn off SSSE3 on Atom.
2133 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
2135         * stdlib/tst-strtol.c (tests): More tests.
2136         * stdlib/tst-strtoll.c (tests): Likewise.
2138 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
2140         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
2142         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
2144 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2146         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
2147         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
2149         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
2151         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
2153         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
2155 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
2157         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
2159 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
2161         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
2162         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2164         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2166         * sysdeps/x86_64/fpu/s_signbit.S: New file.
2167         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2169         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2170         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2172         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2173         leftover YMM_SIZE definition.
2175 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2177         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2178         union.
2179         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2180         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2181         Redefine.
2182         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2184         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2185         and SET_FLOAT_WORD definitions.
2187 2009-08-24  Roland McGrath  <roland@redhat.com>
2189         * sysdeps/unix/syscall-template.S: New file.
2190         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2191         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2192         (compile-syscall): Pass mkdep and -g options as normal.
2193         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2194         (common-generated): Don't add them here.
2196 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2198         * math/s_fdim.c: In case of overflows set errno.
2199         * math/s_fdimf.c: Likewise.
2200         * math/s_fdiml.c: Likewise.
2202         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2203         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2204         are using the inline optimizations.
2206         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2207         (__signbitf): Likewise.
2209 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2211         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2212         terminated.
2213         * posix/Makefile (tests): Add bug-regex29.
2214         * posix/bug-regex29.c: New file.
2216         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2217         older POSIX versions are selected.
2219         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2220         as well.
2221         * stdio-common/printf_fphex.c: Likewise.
2222         * stdio-common/tstdiomisc.c: Add more tests.
2224         * locale/locale.h: Include xlocale.h and the thread-local locale
2225         declarations for XPG7, not XPG6.
2227 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2229         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2230         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2233         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2234         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2236 2009-08-20  Roland McGrath  <roland@redhat.com>
2238         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2239         Use l_addr instead of l_map_start (dli_fbase).
2240         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2241         address when there is no proximate symbol.
2242         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2243         Likewise.
2245 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2247         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2249 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2251         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2252         Also handle SIGINT.  In that case only do the cleanup and then
2253         re-raise the signal.
2254         (main): Install handler for SIGINT.
2256 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2258         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2259         clobber list.
2261 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2263         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2264         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2265         tst-auditmod7b.c.
2266         (tests): Add tst-audit6 tst-audit7.
2267         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2268         tst-auditmod7a tst-auditmod7b.
2269         ($(objpfx)tst-audit6): New.
2270         ($(objpfx)tst-audit6.out): Likewise.
2271         ($(objpfx)tst-audit7): Likewise.
2272         ($(objpfx)tst-audit7.out): Likewise.
2273         (tst-audit6-ENV): Likewise.
2274         (tst-audit7-ENV): Likewise.
2275         (CFLAGS-tst-auditmod6b.c): Likewise.
2276         (CFLAGS-tst-auditmod6c.c): Likewise.
2277         (CFLAGS-tst-auditmod7b.c): Likewise.
2278         * elf/tst-audit6.c: New file.
2279         * elf/tst-audit7.c: New file.
2280         * elf/tst-auditmod6a.c: New file.
2281         * elf/tst-auditmod6b.c: New file.
2282         * elf/tst-auditmod6c.c: New file.
2283         * elf/tst-auditmod7a.c: New file.
2284         * elf/tst-auditmod7b.c: New file.
2285         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2286         saving and restoring SSE/AVX registers to ...
2287         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2289 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2291         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2292         only if SHARED is defined.
2293         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2295 2009-08-03  Jim Meyering  <meyering@redhat.com>
2297         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2299 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2301         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2302         section as the other functions for this architecture.
2303         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2305 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2307         * sysdeps/x86_64/strcmp.S: Add support to compile with
2308         USE_SSSE3.  In this case palignr is used.
2309         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2310         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2311         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2312         Add strcmp-ssse3 and strncmp-ssse3.
2313         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2314         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2316         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2317         warning through fake initialization.
2319 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2321         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2323 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2325         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2326         unique symbols.
2328 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2330         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2331         EBX from EAX = 1.  Handle EAX = 11.
2333 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2335         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2336         inside ''.
2338 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2340         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2341         hidden IFUNC functions.
2342         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2344         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2346         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2347         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2348         strcasestr-c.
2349         (CFLAGS-strcspn-c.c): Define.
2350         (CFLAGS-strpbrk-c.c): Define.
2351         (CFLAGS-strspn-c.c): Define.
2352         (CFLAGS-strstr.c): Define.
2353         (CFLAGS-strcasestr.c): Define.
2354         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2355         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2356         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2357         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2358         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2359         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2360         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2361         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2362         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2363         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2364         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2365         -16L instead of 0xfffffffffffffff0L.
2366         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2368 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2370         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2372 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2374         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2375         another rewrite.  Much smaller and faster.
2376         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2378         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2379         ss_flags from the correct location.
2381 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2383         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2384         * sysdeps/i386/i686/cacheinfo.c: New file.
2385         * sysdeps/i386/i686/multiarch/Makefile: New file.
2386         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2387         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2388         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2389         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2390         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2391         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2392         (__cpuid_count): New. Provide the default.
2393         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2394         (__x86_64_preferred_memory_instruction): Define only if
2395         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2396         (intel_check_word): Use __cpuid.
2397         (handle_intel): Likewise.
2398         (handle_amd): Likewise.
2399         (__cache_sysconf): Likewise.
2400         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2401         (__cache_sysconf): Likewise.
2402         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2403         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2404         (get_common_indeces): Use __cpuid.
2405         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2406         if ENABLE_SSSE3_ON_ATOM is not defined.
2407         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2408         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2409         popcnt instead of popcntq.
2411 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2413         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2415 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2417         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2418         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2419         which always causes a compile error.
2421         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2423         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2424         comes from...
2425         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2426         which always causes a compile error.
2428         * debug/Makefile (tests): Add tst-longjmp_chk2.
2429         * debug/tst-longjmp_chk2.c: New file.
2431         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2432         Remove incorrect use of BP_SYM.
2433         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2434         here now since it is more complex than just a simple check.
2436         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2437         we make no more progress.
2439 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2441         * math/s_fma.c: Don't define alias if __fma is a macro.
2442         * math/s_fmaf.c: Likewise.
2443         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2444         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2445         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2447         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2448         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2449         New macro HAS_FMA.
2450         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2451         function.
2452         * include/libc-symbols.h (libm_ifunc): Define.
2453         * sysdeps/x86_64/multiarch/Versions: New file.
2455         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2457 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2459         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2461 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2463         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2464         call that registers used in calling conventions need to be preserved.
2465         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2466         to preserve register content if necessary.
2467         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2468         (_dl_x86_64_restore_sse): New function.
2469         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2470         is allowed to modify xmm/ymm registers.
2472         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2473         application's perspective.
2474         * stdio-common/scanf17.c: Likewise.
2476 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2478         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2479         size to memsz.
2480         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2481         here.
2482         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2483         two steps to catch bugs.
2485 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2487         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2488         determines which files are used in runtime lookups and only checks
2489         those for SSE use.
2490         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2491         testing.
2492         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2493         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2494         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2495         take a while.
2497         * elf/dl-open.c: Move _dl_scope_free to...
2498         * elf/dl-scope.c: ...here.  New file.
2499         * elf/Makefile (dl-routines): Add scope.
2501         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2502         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2503         RES_USE_DNSSEC.
2504         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2505         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2506         all the places we handled RES_USE_EDNS0 only before.
2507         Patch by Adam Tkac <atkac@redhat.com>.
2509 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2511         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2512         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2513         Update size when reallocating.
2515 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2517         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2518         functions used in ld.so modify xmm/ymm registers.
2519         * sysdeps/x86_64/Makefile:  Hook new test up.
2520         * sysdeps/x86_64/rtld-memchr.c: New file.
2521         * sysdeps/x86_64/rtld-memcmp.c: New file.
2522         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2523         * sysdeps/x86_64/rtld-strchr.S: New file.
2524         * sysdeps/x86_64/rtld-strlen.S: New file.
2525         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2526         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2528 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2530         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2531         strncmp-c.
2532         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2533         (exit): Likewise.
2534         (Byte1): Likewise.
2535         (Byte2): Likewise.
2536         (Byte3): Likewise.
2537         (Byte4): Likewise.
2538         (Byte5): Likewise.
2539         (Byte6): Likewise.
2540         (next_8_bytes): Likewise.
2541         (Byte0): Remove commented out codes.
2542         (unaligned_table): Align jump table at 8 bytes.
2543         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2544         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2545         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2546         * sysdeps/x86_64/strncmp.S: New file.
2548 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2550         [BZ #10422]
2551         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2552         kernels, dropped when eventfd2 support was added.
2553         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2554         kernels, dropped when signalfd4 support was added.
2555         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2556         added, name them.
2558         [BZ #10452]
2559         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2560         replies up.
2562         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2564 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2566         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2567         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2569         [BZ #10448]
2570         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2571         callback we must touch the status to avoid using stale value.
2573         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2574         compiled in.
2576 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2578         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2579         /lib/modules/* headers anymore.  We have sane headers in the standard
2580         place now.
2582 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2584         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2585         "etf3enh" and "highgprs" added.
2586         (_dl_s390_platforms): "z10" added.
2587         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2588         Increased for the new entries.
2589         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2590         HWCAP_S390_HIGH_GPRS added.
2592         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2593         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2594         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2595         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2596         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2598 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2600         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2601         avoid additional cpuid instructions.  Most of the information is
2602         stored somewhere.
2604         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2605         cache descriptors.
2606         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2608         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2609         SSSE3 bit for Atoms.
2610         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2611         here anymore.
2613         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2614         structure before copying it to avoid warning.
2615         * posix/tst-rfc3484-2.c (do_test): Likewise.
2616         * posix/tst-rfc3484-3.c (do_test): Likewise.
2618         [BZ #10416]
2619         * include/unistd.h: Make header file suitable for C++ test cases.
2620         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2622         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2623         stack alignment in the exit code.
2625         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2626         potentially be zero.
2628         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2629         unique symbol definition.
2630         Patch by Jakub Jelinek.
2631         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2632         make sure the object with the definition cannot be unloaded.  Adjust
2633         a few types.
2634         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2635         the unique symbol hash table should not be const.
2637 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2639         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2640         unnecesary variables.  Comment fixes.
2642 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2644         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2645         Use NONASCII_CASE information provided by the locale to determine
2646         whether optimized string load function can be used.  Minor cleanups.
2648 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2650         * string/strcasestr.c (STRCASESTR): New macro.
2651         (__strcasestr): Renamed to ..
2652         (STRCASESTR): ...this.
2653         * string/strstr.c (STRSTR): New macro.
2654         (strstr): Renamed to ..
2655         (STRSTR): ...this.
2656         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2657         strstr-c strcasestr-c
2658         (CFLAGS-strstr.c): New.
2659         (CFLAGS-strcasestr.c): Likewise.
2660         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2661         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2662         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2663         * sysdeps/x86_64/multiarch/strstr.c: New file.
2665 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2667         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2668         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2669         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2670         _NL_CTYPE_NONASCII_CASE.
2671         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2672         field.
2673         (ctype_finish): Check whether there are any 8-bit characters outside
2674         the range ASCII has or whether the mapping isn't the same as for
2675         ASCII (±0x20).  Set nonascii_case appropriately.
2676         (ctype_output): Add output handler for nonascii_case.
2678 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2680         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2681         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2683 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2685         [BZ #10360]
2686         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2687         0xffff in the EDNS0 record.
2689 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2691         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2692         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2693         is written before the list head update.
2694         Patch by Andreas Schwab <aschwab@redhat.com>.
2696 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2697             Jakub Jelinek  <jakub@redhat.com>
2699         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2700         corruption thread-safe.
2702 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2704         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2705         overrides atomic_compare_and_exchange_val_rel, define to
2706         atomic_compare_and_exchange_val_rel by default, otherwise default
2707         to catomic_compare_and_exchange_val_acq.
2708         (catomic_compare_and_exchange_bool_rel): If arch overrides
2709         atomic_compare_and_exchange_bool_rel, define to
2710         atomic_compare_and_exchange_bool_rel by default.
2711         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2712         Use catomic_compare_and_exchange_val_rel instead of
2713         catomic_compare_and_exchange_val_acq.
2715 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2717         * sysdeps/generic/ldsodefs.h: Add prototype for
2718         _dl_higher_prime_number.
2719         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2721         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2722         restoring of ymm registers a bit.
2724 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2726         * sysdeps/x86_64/memcmp.S: New file.
2728 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2730         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2731         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2732         pointers in writable memory.
2734 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2736         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2737         * config.make.in: Add config-cflags-avx entry.
2738         * configure.in: Substitute libc_cv_cc_avx.
2739         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2740         * elf/tst-audit4.c: New file.
2741         * elf/tst-audit5.c: New file.
2742         * elf/tst-auditmod4a.c: New file.
2743         * elf/tst-auditmod4b.c: New file.
2744         * elf/tst-auditmod5a.c: New file.
2745         * elf/tst-auditmod5b.c: New file.
2746         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2747         link-defines.sym.
2748         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2749         (La_x86_64_vector): Likewise.
2750         (La_x86_64_regs): Append lr_vector.
2751         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2752         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2753         saving and restoring SSE registers to ...
2754         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2755         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2756         <link-defines.h>.
2757         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2758         La_x86_64_regs.  Allocate extra space and jump to memory at
2759         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2760         (save_and_restore_vector_sse): New.
2761         (save_and_restore_vector_avx): Likewise.
2762         (check_avx): Likewise.
2763         (save_and_restore_vector): Likewise.
2764         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2765         HAVE_AVX_SUPPORT.
2766         * sysdeps/x86_64/link-defines.sym: New file.
2768 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2770         * elf/do-lookup.h: Removed after folding content into...
2771         * elf/dl-lookup.c: ...here.
2773         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2775 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2777         * configure.in: Check for gnu_unique_symbol symbol type.
2778         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2779         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2780         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2781         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2782         change.
2783         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2784         unique symbol table.
2785         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2786         for first namespace.
2787         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2788         unique symbol hash table.
2789         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2790         * elf/tst-unique1.c: New file.
2791         * elf/tst-unique1mod1.c: New file.
2792         * elf/tst-unique1mod2.c: New file.
2793         * elf/tst-unique2.c: New file.
2794         * elf/tst-unique2mod1.c: New file.
2795         * elf/tst-unique2mod2.c: New file.
2797 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2799         * elf/elf.h (STB_GNU_UNIQUE): Define.
2801         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2802         from...
2803         * include/inline-hashtab.h: ...here.
2804         (htab_expand): Adjust for renamed function.  Correct memory handling.
2806 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2808         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2810 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2812         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2813         (PPC_FEATURE_HAS_VSX): Likewise.
2815 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2817         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2818         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2820         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2821         aligned to 16 byte boundaries.
2822         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2823         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2824         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2826 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2828         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2829         * config.make.in (config-cflags-sse4): New variable.
2830         * configure.in: Substitute libc_cv_cc_sse4.
2831         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2832         HAVE_SSE4_SUPPORT.
2833         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2834         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2835         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2836         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2837         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2838         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2839         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2840         * sysdeps/x86_64/multiarch/strspn.S: New file.
2842 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2844         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2845         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2846         (tests): Add tst-audit3 for x86_64.
2847         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2848         ($(objpfx)tst-audit3): Define.
2849         ($(objpfx)tst-audit3.out): Define.
2850         (tst-audit3-ENV): Define.
2851         * elf/tst-audit3.c: New file.
2852         * elf/tst-auditmod3a.c: New file.
2853         * elf/tst-auditmod3b.c: New file.
2854         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2855         and restore xmm6.
2857         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2858         (__stpncpy): Renamed to ...
2859         (STPNCPY): This.
2860         (stpncpy): Create alias only if STPNCPY is not defined.
2861         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2862         defined.
2863         (strncpy): Renamed to ...
2864         (STRNCPY): This.
2865         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2866          stpncpy-c strncpy-c for string.
2867         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2868         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2869         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2870         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2871         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2872         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2874 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2876         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2877         adding to fast bin list.
2879 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2881         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2882         inet_makeaddr.  This worked only with class-based networks.
2883         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2884         Likewise.
2886         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2887         recognize all types.
2888         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2889         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2890         be in host byte order.
2892 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2894         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2895         (MODEL_OFFSET): Define.
2896         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2897         family and model.
2898         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2899         out common code into new function get_common_indeces. Determine
2900         extended family and model for Intel processors.
2902 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2904         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2905         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2906         option.
2907         * resolv/res_send.c (reopen): New function.  Broken out of...
2908         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2909         fallback mechanism.  If single-request fails switch to
2910         single-request-reopen mode which opens a new socket for the second
2911         request.
2913 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2915         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2916         (CHECK_SP): Use it.
2918 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2920         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2921         for saved registers.
2922         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2923         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2924         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2926 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2928         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2930 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2932         * po/id.po: Update from translation team.
2934         * po/bg.po: Update from translation team.
2936 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2938         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2939         defined.
2940         (strncmp): Renamed to STRNCMP.
2941         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2942         strncmp-c for string.
2943         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2944         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2945         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2946         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2948 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2950         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2951         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2952         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2953         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2954         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2955         ifuncmain7static.c.
2956         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2957         ifuncmain7static, and ifuncmain7picstatic.
2958         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2959         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2960         $(objpfx)ifuncmain7pie.out.
2961         (modules-names): Add ifuncmod5 ifuncmod6
2962         (ifuncmod5.so-no-z-defs): Define.
2963         (ifuncmod6.so-no-z-defs): Define.
2964         (CFLAGS-ifuncmain5pic.c): Define.
2965         (CFLAGS-ifuncmain5picstatic.c): Define.
2966         (CFLAGS-ifuncmain5staticpic.c): Define.
2967         (CFLAGS-ifuncdep5pic.c): Define.
2968         (CFLAGS-ifuncmain7pic.c): Define.
2969         (CFLAGS-ifuncmain7picstatic.c): Define.
2970         (CFLAGS-ifuncmain1staticpie.c): Define.
2971         (CFLAGS-ifuncmain5pie.c): Define.
2972         (CFLAGS-ifuncmain6pie.c): Define.
2973         (CFLAGS-ifuncmain7pie.c): Define.
2974         ($(objpfx)ifuncmain1staticpie.out): Define.
2975         ($(objpfx)ifuncmain1staticpie): Define.
2976         ($(objpfx)ifuncmain5pie.out): Define.
2977         ($(objpfx)ifuncmain5pie): Define.
2978         ($(objpfx)ifuncmain6pie.out): Define.
2979         ($(objpfx)ifuncmain6pie): Define.
2980         ($(objpfx)ifuncmain5): Define.
2981         ($(objpfx)ifuncmain5pic): Define.
2982         ($(objpfx)ifuncmain5static): Define.
2983         ($(objpfx)ifuncmain5staticpic): Define.
2984         ($(objpfx)ifuncmain5picstatic): Define.
2985         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2986         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2987         ifuncmain6pie.out.
2988         * elf/b/elf/ifuncmain1staticpie.c: New file.
2989         * elf/ifuncdep5.c: New file.
2990         * elf/ifuncdep5pic.c: New file.
2991         * elf/ifuncmain5.c: New file.
2992         * elf/ifuncmain5pic.c: New file.
2993         * elf/ifuncmain5picstatic.c: New file.
2994         * elf/ifuncmain5pie.c: New file.
2995         * elf/ifuncmain5static.c: New file.
2996         * elf/ifuncmain5staticpic.c: New file.
2997         * elf/ifuncmain6pie.c: New file.
2998         * elf/ifuncmain7.c: New file.
2999         * elf/ifuncmain7pic.c: New file.
3000         * elf/ifuncmain7picstatic.c: New file.
3001         * elf/ifuncmain7pie.c: New file.
3002         * elf/ifuncmain7static.c: New file.
3003         * elf/ifuncmod5.c: New file.
3004         * elf/ifuncmod6.c: New file.
3006 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
3008         [BZ #10085]
3009         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
3010         (nss_endgrent): New variable.
3011         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
3012         fields. Change type of files to bool and adjust all users.
3013         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
3014         (internal_endgrent): Call nss_endgrent if necessary.
3015         (add_group): New function.  Broken out of...
3016         (check_and_add_group): ...here.
3017         (getgrent_next_nss): Remove test that any callback is available.
3018         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
3019         callback.  If there is no blacklist we can trust the results returned
3020         by the initgroups_dyn callback.  In case there is a callback and we
3021         find a group entry for the group ID but it doesn't contain the
3022         correct member, switch to the slow mode and use getgrent_r.
3023         (internal_getgrent_r): When we see a +: entry, determine whether
3024         there is any callback and which we can use the initgroups_dyn
3025         callback.
3027 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
3029         * malloc/malloc.c (_int_malloc): Add some consistency checks.
3030         (_int_free): Likewise.
3032         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
3033         AF_IEEE802154.
3034         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3035         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
3036         and ARPHRD_IEEE802154_PHY.
3038         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
3039         relative to generic Linux version.
3041 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
3043         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
3044         ($(objpfx)ifuncmain1vispie): Likewise.
3046 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3048         * login/Makefile: Build pt_chown as PIE.
3050 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
3052         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
3053         a format string.
3054         * elf/sln.c (usage): Likewise.
3055         * malloc/memusage.sh (do_help): Likewise.
3056         * nss/getent.c (more_help): Likewise.
3057         * posix/getconf.c (main): Likewise.
3058         * sunrpc/rpcinfo.c (usage): Likewise.
3059         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3061 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3063         * login/programs/pt_chown.c: Use libcap to drop privileges other than
3064         those needed.
3065         * login/Makefile: If necessary link pt_chown with -lcap.
3066         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
3067         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
3069 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
3071         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
3072         comparisons.
3073         * string/test-memchr.c (do_random_tests): Test very large lengths
3074         as well.
3076 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3078         * Makeconfig (+link-pie): Define.
3079         (+prectorS): Define.
3080         (+postctorS): Define.
3081         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
3082         * nscd/Makefile ($(objpfx)nscd): Likewise.
3084 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
3086         [BZ #10107]
3087         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
3088         with cmplwi.
3089         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3091 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
3093         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
3094         into ...
3095         * sysdeps/unix/grantpt.c: ...here.
3097 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
3099         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
3100         chmod if it is necessary.
3102         [BZ #10166]
3103         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
3104         when the slave device is in devpts or devfs.
3106         [BZ #10183]
3107         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
3109         [BZ #10195]
3110         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
3111         of nd_opt_home_agent_info_preference to uint16_t.
3112         Patch by Arnaud Ebalard <arno@natisbad.org>.
3114         [BZ #10207]
3115         * nss/getent.c: Add support for printing gshadow data.
3117         [BZ #10203]
3118         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
3119         not just the currently used one and those which follow.
3120         Patch by Joe Landers <jlanders@vmware.com>.
3122         [BZ #10196]
3123         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
3124         * libio/Makefile: Run tst-fgetwc with necessary envvar.
3125         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
3127         [BZ #10217]
3128         * stdlib/abort.c: Define variable __abort_msg.
3129         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
3130         * include/stdlib.h: Declare __abort_msg.
3131         * assert/assert-perr.c: Don't free buffer for message immediately.
3132         Store atomically in __abort_msg and free old buffer if necessary.
3133         * assert/assert.c: Likewise.
3134         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
3135         store pointer in __abort_msg, and possibly free old string.
3136         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
3138         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
3140         [BZ #10211]
3141         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
3142         handle leap seconds if they are available.
3143         Patch by Akinori Hattori <hattya@gentoo.org>.
3145         * timezone/tzselect.ksh: Update from tzcode2009i.
3146         * timezone/zdump.c: Likewise.
3147         * timezone/zic.c: Likewise.
3149         * timezone/africa: Update from tzdata2009i.
3150         * timezone/antarctica: Likewise.
3151         * timezone/asia: Likewise.
3152         * timezone/australasia: Likewise.
3153         * timezone/backward: Likewise.
3154         * timezone/etcetera: Likewise.
3155         * timezone/europe: Likewise.
3156         * timezone/factory: Likewise.
3157         * timezone/iso3166.tab: Likewise.
3158         * timezone/leapseconds: Likewise.
3159         * timezone/northamerica: Likewise.
3160         * timezone/pacificnew: Likewise.
3161         * timezone/solar87: Likewise.
3162         * timezone/solar88: Likewise.
3163         * timezone/solar89: Likewise.
3164         * timezone/southamerica: Likewise.
3165         * timezone/systemv: Likewise.
3166         * timezone/yearistype: Likewise.
3167         * timezone/zone.tab: Likewise.
3169 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3171         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3172         STT_GNU_IFUNC symbol or in 8 into type_class.
3174         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3175         instead of Elf64_Addr.
3177 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
3179         * po/sv.po: Update from translation team.
3181         [BZ #10229]
3182         * misc/sys/select.h (__NFDBITS): Expression should have type int.
3183         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3184         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3185         the C version.
3187 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3189         * Versions.def: Add GLIBC_2.11 for libpthread.
3191 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3193         * resolv/res_send.c (send_dg): Remember we switched to
3194         single-request mode.
3196 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3198         * dlfcn/dlfcn.h: Remove comma at end of enum.
3199         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3201         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3202         parsing mode string.
3204 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3206         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3208         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3210         * sysdeps/x86_64/multiarch/strlen.S: New file.
3211         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3212         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3213         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3214         content.
3216         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3217         is defined.
3219 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3221         * sysdeps/x86_64/strlen.S: Minor optimizations.
3223 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3225         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3226         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3227         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3228         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3229         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3230         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3231         ifuncmain3.c, ifuncmod3.c,.
3232         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3233         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3234         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3235         ifuncmain4picstatic.
3236         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3237         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3238         ifuncmain3, ifuncmain4.
3239         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3240         $(objpfx)ifuncmain1vispie.out.
3241         (modules-names): Add ifuncmod1 ifuncmod3.
3242         (generated): Add ifuncmain1pie ifuncmain1pie.out
3243         ifuncmain1vispie ifuncmain1vispie.out.
3244         Define rules to build and run the tests.
3245         * elf/ifuncdep1.c: New file.
3246         * elf/ifuncdep1pic.c: New file.
3247         * elf/ifuncdep2.c: New file.
3248         * elf/ifuncdep2pic.c: New file.
3249         * elf/ifuncmain1.c: New file.
3250         * elf/ifuncmain1pic.c: New file.
3251         * elf/ifuncmain1picstatic.c: New file.
3252         * elf/ifuncmain1pie.c: New file.
3253         * elf/ifuncmain1static.c: New file.
3254         * elf/ifuncmain1staticpic.c: New file.
3255         * elf/ifuncmain1vis.c: New file..
3256         * elf/ifuncmain1vispic.c: New file..
3257         * elf/ifuncmain1vispie.c: New file.
3258         * elf/ifuncmain2.c: New file.
3259         * elf/ifuncmain2pic.c: New file.
3260         * elf/ifuncmain2picstatic.c: New file.
3261         * elf/ifuncmain2static.c: New file.
3262         * elf/ifuncmain3.c: New file.
3263         * elf/ifuncmain4.c: New file.
3264         * elf/ifuncmain4picstatic.c: New file.
3265         * elf/ifuncmain4static.c: New file.
3266         * elf/ifuncmod1.c: New file.
3267         * elf/ifuncmod3.c: New file.
3269 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3271         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3273 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3275         [BZ #10221]
3276         * posix/Makefile (routines): Add execvpe.
3277         * posix/Versions: Export execvpe for GLIBC_2.11.
3278         * posix/execvp.c: Now only a wrapper.  Move code to...
3279         * posix/execvpe.c: ...here.  New file.
3280         * posix/unistd.h: Declare execvpe.
3282 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3284         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3285         for STT_GNU_IFUNC handling for efficiency.
3286         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3288         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3289         _exit.
3290         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3292 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3294         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3295         for !SHARED.
3297 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3299         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3300         is not defined.
3301         (__rela_iplt_start): New declaration.
3302         (__rela_iplt_end): Likewise.
3303         (__rel_iplt_start): Likewise.
3304         (__rel_iplt_end): Likewise.
3305         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3306         * elf/elf.h (R_386_IRELATIVE): New macro.
3307         (R_X86_64_IRELATIVE): New macro.
3308         (R_386_NUM): Updated.
3309         (R_X86_64_NUM): Likewise.
3310         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3311         (libc_ifunc_hidden_def): New macro.
3312         * sysdeps/generic/dl-irel.h: New file.
3313         * sysdeps/i386/dl-irel.h: New file.
3314         * sysdeps/x86_64/dl-irel.h: New file.
3315         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3316         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3317         Handle R_386_IRELATIVE.
3318         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3319         (elf_machine_lazy_rela): Likewise.
3320         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3321         R_X86_64_IRELATIVE.
3322         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3324 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3326         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3327         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3328         are no differences.  If an architecture has bits in CPUID index 1
3329         meaning different things the values for the COMMON_CPUID_INDEX_1
3330         index must not be set.
3331         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3332         (HAS_POPCOUNT): ...this.  New macro.
3333         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3334         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3335         to set the value for Intel and AMD architectures.
3336         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3337         INTEL_CPUID_INDEX_1.
3338         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3339         change.
3341 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3343         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3344         and $build.
3346 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3348         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3349         (__expm1l): Set errno to ERANGE on overflow.
3350         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3351         (__tanl): Set errno to EDOM for Â±Inf.
3352         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3353         (__cosl): Set errno to EDOM for Â±Inf.
3354         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3355         (__sinl): Set errno to EDOM for Â±Inf.
3357         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3358         defined, use it.
3359         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3360         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3361         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3363 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3365         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3366         code accessing it.
3367         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3369 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3371         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3372         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3373         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3374         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3376         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3377         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3378         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3379         defined.
3380         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3381         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3383 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3385         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3386         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3387         is, either do nothing at all if __ASSUME_ACCEPT4, or
3388         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3389         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3390         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3391         define.
3392         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3393         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3394         internal_accept4 in socket directory.
3396 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3398         * sysdeps/ia64/configure.in: New file.
3400 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3402         [BZ #10162]
3403         * sysdeps/ia64/memchr.S: Use speculative load.
3405         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3406         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3407         use it.
3409         * sysdeps/i386/__longjmp.S: Add .text.
3410         * sysdeps/x86_64/__longjmp.S: Likewise.
3412 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3414         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3415         __ASSUME_ACCEPT4 for IA-64.
3417 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3419         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3421         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3422         (SOCKOP_accept4): Define.
3424 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3426         Sun approved the change of the license.
3427         * sunrpc/auth_des.c: Replace license text.
3428         * sunrpc/auth_none.c: Likewise.
3429         * sunrpc/auth_unix.c: Likewise.
3430         * sunrpc/authdes_prot.c: Likewise.
3431         * sunrpc/authuxprot.c: Likewise.
3432         * sunrpc/bindrsvprt.c: Likewise.
3433         * sunrpc/clnt_gen.c: Likewise.
3434         * sunrpc/clnt_perr.c: Likewise.
3435         * sunrpc/clnt_raw.c: Likewise.
3436         * sunrpc/clnt_simp.c: Likewise.
3437         * sunrpc/clnt_tcp.c: Likewise.
3438         * sunrpc/clnt_udp.c: Likewise.
3439         * sunrpc/clnt_unix.c: Likewise.
3440         * sunrpc/des_crypt.c: Likewise.
3441         * sunrpc/des_soft.c: Likewise.
3442         * sunrpc/get_myaddr.c: Likewise.
3443         * sunrpc/getrpcport.c: Likewise.
3444         * sunrpc/key_call.c: Likewise.
3445         * sunrpc/key_prot.c: Likewise.
3446         * sunrpc/openchild.c: Likewise.
3447         * sunrpc/pm_getmaps.c: Likewise.
3448         * sunrpc/pm_getport.c: Likewise.
3449         * sunrpc/pmap_clnt.c: Likewise.
3450         * sunrpc/pmap_prot.c: Likewise.
3451         * sunrpc/pmap_prot2.c: Likewise.
3452         * sunrpc/pmap_rmt.c: Likewise.
3453         * sunrpc/rpc/auth.h: Likewise.
3454         * sunrpc/rpc/auth_unix.h: Likewise.
3455         * sunrpc/rpc/clnt.h: Likewise.
3456         * sunrpc/rpc/des_crypt.h: Likewise.
3457         * sunrpc/rpc/key_prot.h: Likewise.
3458         * sunrpc/rpc/netdb.h: Likewise.
3459         * sunrpc/rpc/pmap_clnt.h: Likewise.
3460         * sunrpc/rpc/pmap_prot.h: Likewise.
3461         * sunrpc/rpc/pmap_rmt.h: Likewise.
3462         * sunrpc/rpc/rpc.h: Likewise.
3463         * sunrpc/rpc/rpc_des.h: Likewise.
3464         * sunrpc/rpc/rpc_msg.h: Likewise.
3465         * sunrpc/rpc/svc.h: Likewise.
3466         * sunrpc/rpc/svc_auth.h: Likewise.
3467         * sunrpc/rpc/types.h: Likewise.
3468         * sunrpc/rpc/xdr.h: Likewise.
3469         * sunrpc/rpc_clntout.c: Likewise.
3470         * sunrpc/rpc_cmsg.c: Likewise.
3471         * sunrpc/rpc_common.c: Likewise.
3472         * sunrpc/rpc_cout.c: Likewise.
3473         * sunrpc/rpc_dtable.c: Likewise.
3474         * sunrpc/rpc_hout.c: Likewise.
3475         * sunrpc/rpc_main.c: Likewise.
3476         * sunrpc/rpc_parse.c: Likewise.
3477         * sunrpc/rpc_parse.h: Likewise.
3478         * sunrpc/rpc_prot.c: Likewise.
3479         * sunrpc/rpc_sample.c: Likewise.
3480         * sunrpc/rpc_scan.c: Likewise.
3481         * sunrpc/rpc_scan.h: Likewise.
3482         * sunrpc/rpc_svcout.c: Likewise.
3483         * sunrpc/rpc_tblout.c: Likewise.
3484         * sunrpc/rpc_util.c: Likewise.
3485         * sunrpc/rpc_util.h: Likewise.
3486         * sunrpc/rpcinfo.c: Likewise.
3487         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3488         * sunrpc/rpcsvc/key_prot.x: Likewise.
3489         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3490         * sunrpc/rpcsvc/mount.x: Likewise.
3491         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3492         * sunrpc/rpcsvc/rex.x: Likewise.
3493         * sunrpc/rpcsvc/rstat.x: Likewise.
3494         * sunrpc/rpcsvc/rusers.x: Likewise.
3495         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3496         * sunrpc/rpcsvc/spray.x: Likewise.
3497         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3498         * sunrpc/rtime.c: Likewise.
3499         * sunrpc/svc.c: Likewise.
3500         * sunrpc/svc_auth.c: Likewise.
3501         * sunrpc/svc_authux.c: Likewise.
3502         * sunrpc/svc_raw.c: Likewise.
3503         * sunrpc/svc_run.c: Likewise.
3504         * sunrpc/svc_simple.c: Likewise.
3505         * sunrpc/svc_tcp.c: Likewise.
3506         * sunrpc/svc_udp.c: Likewise.
3507         * sunrpc/svc_unix.c: Likewise.
3508         * sunrpc/svcauth_des.c: Likewise.
3509         * sunrpc/xcrypt.c: Likewise.
3510         * sunrpc/xdr.c: Likewise.
3511         * sunrpc/xdr_array.c: Likewise.
3512         * sunrpc/xdr_float.c: Likewise.
3513         * sunrpc/xdr_mem.c: Likewise.
3514         * sunrpc/xdr_rec.c: Likewise.
3515         * sunrpc/xdr_ref.c: Likewise.
3516         * sunrpc/xdr_sizeof.c: Likewise.
3517         * sunrpc/xdr_stdio.c: Likewise.
3519         * po/da.po: Update from translation team.
3521 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3523         * sysdeps/sh/____longjmp_chk.S: New file.
3524         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3525         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3527 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3528             Ulrich Drepper  <drepper@redhat.com>
3530         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3531         (__nscd_cache_search): Assume each entry in the
3532         hash chain needs one hashentry and half of datahead.  Use
3533         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3535 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3537         * posix/sys/wait.h: Fix typos.  Pretty printing.
3538         * stdlib/stdlib.h: Likewise.  Correct comments.
3540         [BZ #10159]
3541         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3543         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3544         patch.
3546 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3548         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3549         Use it if we absolutely cannot reach any more correct list elements
3550         because that many do not fit into the currently mapped database.
3552 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3554         * nscd/nscd_helper.c: Include stddef.h.
3555         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3556         in a couple of places.  Return NULL if trail is not less than
3557         datasize, don't consider dataheads with length smaller than
3558         offsetof (struct datahead, data) + datalen.
3559         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3560         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3561         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3562         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3563         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3564         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3565         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3567         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3568         Rename ...
3569         (fallocate64): ... to this.
3570         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3571         Rename ...
3572         (fallocate64): ... to this.
3573         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3574         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3575         fallocate64@@GLIBC_2.10.
3576         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3577         fallocate64@@GLIBC_2.11.
3578         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3580         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3581         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3583         * nscd/selinux.c (nscd_avc_destroy): Removed.
3584         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3585         * nscd/nscd.c (termination_handler): Don't call
3586         nscd_avc_destroy.
3588 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3590         * include/atomic.h: Formatting.
3591         (catomic_compare_and_exchange_val_acq): Don't define if already
3592         defined by bits/atomic.h.
3594 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3596         * math/libm-test.inc (expm1_test): Add test for range error.
3598         * Versions.def: Add GLIBC_2.11 for libc.
3599         * debug/Makefile (routines): Add longjmp_chk.
3600         Add rules to build and run tst-longjmp_chk.
3601         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3602         * debug/longjmp_chk.c: New file.
3603         * debug/tst-longjmp_chk.c: New file.
3604         * include/bits/setjmp2.: New file.
3605         * include/stdio.h: Mark __fortify_fail as internal_function.
3606         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3607         * setjmp/bits/setjmp2.h: New file.
3608         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3609         of the aliases.
3610         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3611         defined.
3612         * sysdeps/i386/____longjmp_chk.S: New file.
3613         * sysdeps/x86_64/____longjmp_chk.S: New file.
3614         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3615         * sysdeps/x86_64/__longjmp.S: Likewise.
3617         * version.h: Bump for 2.11 development.
3619         * elf/check-execstack.c: New file.
3620         * elf/Makefile: Add rules to build and run check-execstack.
3622 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3624         * version.h (VERSION): Bump to 2.10.1.
3626         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3627         compatibility functions.
3628         * nss/getXXent_r.c: Likewise.
3629         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3630         * gshadow/getsgnam_r.c: Likewise.
3631         * gshadow/Version: Remove duplicate entries.
3633         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3634         for recent processor.
3635         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3636         Likewise.
3638 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3640         * version.h (VERSION): Bump for 2.10 release.
3641         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3643         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3644         same place we add ASFLAGS-config.
3646 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3648         [BZ #10128]
3649         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3650         or FORMERR and the other NOERROR, don't raise an error.
3652 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3654         [BZ #10118]
3655         * Makeconfig (+asflags): New variable based upon ASFLAG or
3656         asflags-cpu.
3657         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3658         * config.make.in (asflags-cpu): Add variable based upon
3659         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3660         the assembler.
3661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3662         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3663         recognizes power6 instruction set due to passing -mcpu=power6 from
3664         --with-cpu=power6 when compiling .S files.
3665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3666         Likewise.
3667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3668         Likewise.
3669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3670         Likewise.
3672 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3674         * string/stratcliff.c (do_test): Test for zero length
3675         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3676         at the end of the page.
3678 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3680         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3682         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3683         count is zero.
3685         * po/da.po: Update from translation team.
3687 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3689         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3690         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3692 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3694         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3695         and READ_IMPLIES_EXEC.
3697 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3699         * po/da.po: Update from translation team.
3701 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3703         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3704         comment change.
3706 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3708         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3709         to MAP_ANON in PROT_NONE mmap64 call.
3710         (open_archive): Likewise.
3711         (file_data_available_p): Use mmap64 instead of mremap.
3712         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3713         Attempt to reserve address space after mmap64 region.
3715 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3717         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3718         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3719         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3721         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3722         atanh should set ERANGE.
3724         [BZ #10087]
3725         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3726         result of lookup to make call to implement STT_GNU_IFUNC.
3727         (_dl_profile_fixup): Likewise.
3728         Patch by H.J. Lu <hjl.tools@gmail.com>.
3730         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3731         warning.
3733         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3734         from definition.
3736         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3737         label if it is not used.
3739         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3740         of gmon_hist_hdr and gmon_hdr structures and use them.
3741         * elf/sprof.c: Likewise.
3743         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3744         warning.
3746         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3748         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3749         to avoid cast.
3751         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3752         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3753         to avoid warnings.
3754         (iruserok_af): Use ss_family instead of casts.
3756         * gmon/gmon.c (write_hist): Define real-type variant of
3757         gmon_hist_hdr structure and use it.
3758         (write_gmon): Likewise for gmon_hdr.
3760         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3761         function if we are not going to define it.
3762         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3764         * inet/inet6_option.c (option_alloc): Add temporary variable to
3765         avoid warning.
3767         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3768         name of VTable element.
3769         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3770         * libio/iovsscanf.c: Likewise.
3771         * libio/vasprintf.c: Likewise.
3772         * libio/vsnprintf.c: Likewise.
3773         * stdio-common/isoc99_vsscanf.c: Likewise.
3774         * stdlib/strfmon_l.c: Likewise.
3775         * debug/vasprintf_chk.c: Likewise.
3776         * debug/vsnprintf_chk.c: Likewise.
3777         * debug/vsprintf_chk.c: Likewise.
3779         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3780         function pointers.
3782 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3784         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3786 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3788         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3790         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3791         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3792         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3793         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3794         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3795         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3796         * math/libm-test.inc: Add tests for errno after tan calls with
3797         Â±Inf.
3799         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3800         errno value vor pow(+-0,neg).
3801         * math/libm-test.inc (pow_test): Add tests for errno value for
3802         pole errors.
3804         * math/w_fmod.c: Also handle x=±Inf as error.
3805         * math/w_fmodf.c: Likewise.
3806         * math/w_fmodl.c: Likewise.
3807         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3808         x=±Inf or y=0.
3810         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3811         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3812         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3813         * sysdeps/i386/fpu/s_sin.S: Likewise.
3814         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3815         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3816         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3817         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3818         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3819         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3820         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3821         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3822         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3823         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3824         Â±Inf.
3826         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3827         ERANGE for underflows.
3828         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3830         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3831         the 2001 revision.
3833         * libio/tst-widetext.input: Remove surrogates.
3835         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3837         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3838         for lgamma should set errno to ERANGE, not EDOM.
3839         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3841 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3843         [BZ #10093]
3844         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3845         UTF-16 surrogates.
3847         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3848         space when temporarily mapping the whole content of the old file.
3850         [BZ #10100]
3851         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3852         not zero.
3854 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3856         * iconvdata/sjis.c (BODY): Don't advance inptr before
3857         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3858         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3859         two byte chars.
3861 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3863         * locale/locarchive.h (struct locarhandle): Rename len field to
3864         mmaped and add new reserved field.
3865         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3866         (create_archive): Reserve address space and then map file into it.
3867         (open_archive): Likewise.
3868         (file_data_available_p): New function.
3869         (compare_from_file): New function.
3870         (close_archive): Adjust to member name changes.
3871         (add_locale): Before comparing locale data, check it is mapped.
3872         Otherwise fall back to reading from the file.
3874 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3876         * stdio-common/psiginfo.c: Include <errno.h>.
3878 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3880         [BZ #9920]
3881         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3882         to get consistency between 32 and 64 bit architectures.
3884         [BZ #10052]
3885         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3886         directory for dummy syscall rules.
3887         Patch by Chris Steinbroner <hesh@pobox.com>.
3889 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3891         [BZ #10092]
3892         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3893         MNT_EXPIRE.
3895 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3897         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3898         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3900 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3902         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3903         data from vector to temporary buffer and call PWRITEV after it
3904         instead of vice versa.
3905         * sysdeps/posix/preadv.c: Fix up comment.
3906         * misc/preadv.c: Likewise.
3907         * misc/preadv64.c: Likewise.
3908         * misc/pwritev.c: Likewise.
3909         * misc/pwritev64.c: Likewise.
3910         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3912 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3914         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3916         * shadow/Makefile (tests): Add tst-shadow.
3917         * shadow/tst-shadow.c: New file.
3919         [BZ #9955]
3920         * gshadow/Makefile: New file.
3921         * gshadow/Versions: New file.
3922         * gshadow/fgetsgent.c: New file.
3923         * gshadow/fgetsgent_r.c: New file.
3924         * gshadow/getsgent.c: New file.
3925         * gshadow/getsgent_r.c: New file.
3926         * gshadow/getsgnam.c: New file.
3927         * gshadow/getsgnam_r.c: New file.
3928         * gshadow/gshadow.h: New file.
3929         * gshadow/putsgent.c: New file.
3930         * gshadow/sgetsgent.c: New file.
3931         * gshadow/sgetsgent_r.c: New file.
3932         * gshadow/tst-gshadow.c: New file.
3933         * include/gshadow.h: New file.
3934         * Makeconfig (all-subdirs): Add gshadow.
3935         * Makefile (installed-headers): Add gshadow/gshadow.h.
3936         * nss/Makefile (databases): Add sgrp.
3937         * nss/Versions: Add gshadow functions as private exports.
3938         * nss/nsswitch.conf: Add gshadow entry.
3939         * nss/sgrp-lookup.c: New file.
3940         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3941         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3942         * nss/nss_files/files-sgrp.c: New file.
3943         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3944         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3946 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3948         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3949         * stdio-common/reg-modifier.c: Likewise.
3951 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3953         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3954         is no FPU.
3956 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3958         [BZ #10086]
3959         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3960         headers up to 2.6.30.
3962         * po/ca.po: Update from translation team.
3964 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3966         [BZ #10069]
3967         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3968         an object that uses static TLS if the TLS modid is higher than the
3969         reserve we always allocate.  At least for multi-threaded code.
3971 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3973         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3974         Numerically stable check for valid width.
3976         * locale/programs/locarchive.c (open_archive): Map the entire file
3977         and not just the administrative data.
3978         (add_locale): When we find a hash sum match compare the content
3979         to be sure.
3981         * malloc/malloc.c (malloc_info): Output address space information.
3983 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3985         * malloc/malloc.c (malloc_info): Also output system memory information.
3987         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3988         architectures have preadv/pwritev in 2.6.30.
3990         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3991         * sysdeps/posix/readv.c: Likewise.
3992         Reported by Markus Armbruster <armbru@redhat.com>.
3994         * malloc/hooks.c (top_check): Force hook value into register.
3996 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3998         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3999         calls to _dl_relocate_object.
4001 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4003         [BZ #9957]
4004         * malloc/malloc.c (force_reg): Define.
4005         (sYSMALLOc): Load hook variable into variable
4006         before test and force into register.
4007         (sYSTRIm): Likewise.
4008         (public_mALLOc): Force hook value into register.
4009         (public_fREe): Likewise.
4010         (public_rEALLOc): Likewise.
4011         (public_mEMALIGn): Likewise.
4012         (public_vALLOc): Likewise.
4013         (public_pVALLOc): Likewise.
4014         (public_cALLOc): Likewise.
4015         (__posix_memalign): Likewise.
4016         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
4017         before test and force into register.
4018         * malloc/hooks.c (top_check): Likewise.
4019         (public_sET_STATe): Pretty printing.
4021         * resolv/res_send.c (send_dg): Don't just ignore the result we got
4022         in case we only receive one reply in single-request mode.
4024 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
4026         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
4027         are dlopened in statically linked program even for __LM_ID_CALLER.
4029 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
4031         * resolv/res_send.c (send_dg): Don't switch into single-request
4032         mode if we already are in it.
4034 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
4036         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
4037         are always at least 4 bytes in the returned line.
4039 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
4041         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
4042         __libc_use_alloca (8192), if the stack is too small use 512 bytes
4043         instead of 8K.  Stop searching in /proc/stat after hitting first
4044         line not starting with cpu.
4045         (next_line): Truncate too long
4046         lines at buffer size * 3/4 instead of pretending there were line
4047         breaks inside of large lines.
4049 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4051         * sysdeps/x86_64/mp_clz_tab.c: New file.
4053 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
4054             Ulrich Drepper  <drepper@redhat.com>
4056         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
4057         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4058         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4060 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
4062         * sysdeps/sh/libc-tls.c: New file.
4064         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
4066 2009-04-14  Roland McGrath  <roland@redhat.com>
4068         * elf/elf.h: Add various missing ARM constants, to match binutils.
4070 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4072         Optimizations from GMP.
4073         * sysdeps/x86_64/add_n.S: New file.
4074         * sysdeps/x86_64/addmul_1.S: New file.
4075         * sysdeps/x86_64/lshift.S: New file.
4076         * sysdeps/x86_64/mul_1.S: New file.
4077         * sysdeps/x86_64/rshift.S: New file.
4078         * sysdeps/x86_64/sub_n.S: New file.
4079         * sysdeps/x86_64/submul_1.S: New file.
4081 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
4083         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
4084         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4085         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4086         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4088 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
4090         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
4091         preadv/pwritev.
4093 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
4095         * sysdeps/x86-64/strrchr.S: New file.
4097 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
4099         * stdio-common/printf.h (struct printf_info): Add user element.
4100         New types printf_arginfo_size_function, printf_va_arg_function.
4101         Declare register_printf_specifier, register_printf_modifier,
4102         register_printf_type.
4103         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
4104         (union printf_arg): Add pa_user element.
4105         Adjust __printf_arginfo_table type.
4106         Add __printf_va_arg_table, __printf_modifier_table,
4107         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
4108         declarations.
4109         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
4110         If registered arginfo call failed try normal specifier.
4111         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
4112         function.
4113         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
4114         * stdio-common/Versions: Export register_printf_modifier,
4115         register_printf_type, and register_printf_specifier for GLIBC_2.10.
4116         * stdio-common/reg-modifier.c: New file.
4117         * stdio-common/reg-type.c: New file.
4118         * stdio-common/reg-printf.c (__register_printf_specifier): New
4119         function.  Mostly the old __register_printf_function function but
4120         uses locking and type of third parameter changed.
4121         (__register_printf_function): Implement using
4122         __register_printf_specifier.
4123         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
4124         calls to arginfo functions.  Allocate enough memory for user-defined
4125         types.  Call new va_arg functions to get user-defined types.
4126         Try installed handlers even for existing format specifiers first.
4128 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
4130         * sysdeps/x86_64/rawmemchr.S: New file.
4132         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
4133         Simplified code and possible copy problem fixed.
4135         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
4136         function if it is not defined.  Add some necessary casts.
4137         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4139         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
4140         have preadv/pwritev in 2.6.30.
4142 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
4144         * malloc/malloc.c (malloc_info): New function.
4145         * malloc/malloc.h: Declare it.
4146         * malloc/Versions: Export malloc_info for GLIBC_2.10.
4148         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
4149         to avoid PLT slot.
4151         * malloc/malloc.c (_int_realloc): Add parameter with old block
4152         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
4153         Adjust all callers.
4154         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
4156 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
4158         * sysdeps/x86_64/strchrnul.S: New file.
4160         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
4161         depending libcrypt on -lfreebl3.
4163         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4164         preadv/pwritev in 2.6.30.
4166         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4167         instead of __strcasecmp.
4169         * string/stratcliff.c (do_test): Add memchr tests..
4170         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4171         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4172         first read quad word.
4174 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
4176         * string/strverscmp.c (__strverscmp): Fix last cleanups.
4177         * string/tst-svc.input: Add new test case.
4178         * string/tst-svc.expect: Adjust.
4179         * string/Makefile: Don't ignore tst-svc error.
4181         * sysdeps/x86_64/memchr.S: New file.
4183         * resolv/resolv.h (RES_SNGLKUP): Define.
4184         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4185         * resolv/res_send.c (send_dg): If we sent two requests at once and
4186         only get one reply before timeout switch to mode where we send the
4187         second request only after the first answer has been received.
4189 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4191         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4192         * sysdeps/x86_64/strchr.S: Likewise.
4194 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4196         * configure.in: We need to test for the compiler earlier.
4198         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4199         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4200         GLIBC_2.10.
4201         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4202         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4203         and pwritev.
4204         * misc/preadv.c: New file.
4205         * misc/preadv64.c: New file.
4206         * misc/pwritev.c: New file.
4207         * misc/pwritev64.c: New file.
4208         * sysdeps/posx/preadv.c: New file.
4209         * sysdeps/posx/preadv64.c: New file.
4210         * sysdeps/posx/pwritev.c: New file.
4211         * sysdeps/posx/pwritev64.c: New file.
4212         * sysdeps/unix/sysv/linux/preadv.c: New file.
4213         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4214         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4215         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4216         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4217         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4219         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4220         compatibility code.
4221         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4223         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4224         __ASSUME_COMPLETE_READV_WRITEV.
4225         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4226         with modern kernels.
4227         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4229         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4230         to free a possible malloced buffer in case of cancellation.
4231         * sysdeps/posix/writev.c: Likewise for write.
4233 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4235         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4237         * configure.in: Recognize --enable-nss-crypt.
4238         * config.make.in: Add nss-crypt entry.
4239         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4240         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4241         and include path for NSS directory to compiler for md5-crypt,
4242         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4243         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4244         function implementation, use NSS.  Introduce wrappers around the
4245         hash function calls.  Little code size optimization.
4246         * crypt/sha256-crypt.c: Likewise.
4247         * crypt/sha512-crypt.c: Likewise.
4248         * scripts/check-local-headers.sh: Ignore nss3 directory.
4250         * configure.in: Rename pic_default to libc_cv_pic_default.
4251         * config.make.in: Likewise.
4253 2009-04-01  Roland McGrath  <roland@redhat.com>
4255         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4256         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4257         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4258         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4259         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4260         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4261         (R_SPARC_NUM): Update.
4262         From Dave Miller <davem@davemloft.net>.
4264 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4266         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4268 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4270         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4271         those which are used.
4272         * elf/dl-addr.c: Likewise.
4273         * elf/dl-caller.c: Likewise.
4274         * elf/dl-fini.c: Likewise.
4275         * elf/dl-iteratephdr.c: Likewise.
4276         * elf/dl-libc.c: Likewise.
4277         * elf/dl-load.c: Likewise.
4278         * elf/dl-support.c: Likewise.
4279         * elf/dl-sym.c: Likewise.
4280         * elf/rtld.c: Likewise.
4281         * sysdeps/generic/ldsodefs.h: Likewise.
4283         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4284         * elf/dl-minimal.c: Likewise.
4285         * elf/dl-misc.c: Likewise.
4286         * elf/rtld.c: Likewise.
4287         * sysdeps/generic/ldsodefs.h: Likewise.
4289 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4291         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4292         Avoid reuse of complex expression.
4294         * po/fr.po: Update from translation team.
4296 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4298         * include/dirent.h: Yet more changes to match sort function type
4299         change.
4300         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4301         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4302         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4304 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4306         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4308 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4310         * nscd/connections.c (restart): Try to preserve the process name
4311         by reading the /proc/self/exe symlink and using the return name.
4312         Patch by Jeff Bastian <jbastian@redhat.com>.
4314 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4316         [BZ #9733]
4317         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4318         if we are not loading a new audit library.
4319         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4320         Only use profiling trampoline for auditing if we are not relocating
4321         an audit library.
4322         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4323         * elf/rtld.c: Likewise.
4324         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4326         * elf/rtld.c (dl_main): Extend help message for --audit option.
4328         [BZ #9759]
4329         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4330         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4331         * dirent/alphasort.c: Adjust implementation to type change.
4332         * dirent/alphasort64.c: Likewise.
4333         * dirent/scandir.c: Likewise.
4334         * dirent/versionsort.c: Likewise.
4335         * dirent/versionsort64.c: Likewise.
4336         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4337         declaration.
4338         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4339         declaration.
4341         [BZ #9880]
4342         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4343         correctly.  Set segleft member in output as required.
4344         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4345         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4347         [BZ #9881]
4348         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4349         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4350         * inet/Makefile (tests): Add tst-inet6_rth.
4351         * inet/tst-inet6_rth.c: New file.
4353         [BZ #5807]
4354         * string/strlen.c (strlen): Fix omission in the expression to test
4355         for NUL bytes.
4357 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4359         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4361         * elf/dl-runtime.c (reloc_offset): Define.
4362         (reloc_index): Define.
4363         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4364         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4365         computing index from reloc_offset.
4366         (_dl_call_pltexit): Likewise.
4367         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4368         the relocation index to _dl_fixup.
4369         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4370         _dl_call_pltexit.
4371         * sysdeps/x86_64/dl-runtime.c: New file.
4373         [BZ #9893]
4374         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4375         alignment of La_x86_64_regs.  Store xmm parameters.
4376         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4378         [BZ #9913]
4379         * string/strverscmp.c (__strverscmp): Fix case of different digits
4380         in fractional part of string.
4381         Patch by Jingyu Liu <jyliu@fortinet.com>.
4382         * string/Makefile (tests): Add tst-svc2.
4383         * string/tst-svc2.c: New file.
4385         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4387         * locale/iso-639.def: Add Min Nan.
4389 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4391         [BZ #9948]
4392         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4394 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4396         * elf/dl-sysdep.c (auxvars): Compress data structure.
4398         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4399         STT_GNU_IFUNC handling.
4400         (elf_machine_rela): Likewise.
4402 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4404         * config.h.in (USE_MULTIARCH): Define.
4405         * configure.in: Handle --enable-multi-arch.
4406         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4407         (_dl_fixup_profile): Likewise.
4408         * elf/do-lookup.c (dl_lookup_x): Likewise.
4409         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4410         * elf/elf.h (STT_GNU_IFUNC): Define.
4411         * include/libc-symbols.h (libc_ifunc): Define.
4412         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4413         framework in init-arch.h to get CPUID values.
4414         * sysdeps/x86_64/multiarch/Makefile: New file.
4415         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4416         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4417         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4419         * config.make.in (experimental-malloc): Define.
4420         * configure.in: Handle --enable-experimental-malloc.
4421         * malloc/Makefile: Handle experimental-malloc flag.
4422         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4423         * malloc/arena.c: Likewise.
4424         * malloc/hooks.c: Likewise.
4425         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4427 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4429         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4430         prediction.  A few size optimizations.
4432 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4434         * time/tzset.c: Optimize a bit for size.
4436 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4438         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4439         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4441         * elf/sprof.c: Avoid warning about multi-line comment.
4443 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4445         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4446         DST name.
4447         * time/tst-posixtz.c: Add tests for quoted timezone names.
4449 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4451         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4452         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4453         200809L instead of 200112L.
4454         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4455         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4457         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4458         instead of __quick_exit_funcs to __run_exit_handlers.
4459         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4460         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4461         (__cxa_at_quick_exit): Remove attribute_hidden.
4462         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4463         to __run_exit_handlers.
4464         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4465         attribute_hidden.
4467 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4469         * po/id.po: Update from translation team.
4471 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4474         .machine push; .machine "power6" and .machine pop around mtfsf
4475         insns outside of _ARCH_PWR6 define.
4476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4478         Likewise.
4479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4480         Likewise.
4481         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4482         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4483         relax_fenv_state): Likewise.
4485 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4487         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4488         cxa_at_quick_exit.
4489         (static-only-routines): Add at_quick_exit.
4490         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4491         GLIBC_2.10.
4492         * stdlib/quick_exit.c: New file.
4493         * stdlib/at_quick_exit.c: New file.
4494         * stdlib/cxa_at_quick_exit.c: New file.
4495         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4496         it appropriately.
4497         (__internal_atexit): New function.
4498         (__new_exitfn): Now takes parameter to point to the list to use.
4499         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4500         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4501         (exit): ...here.  Just call __run_exit_handlers appropriately.
4502         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4503         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4504         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4505         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4507         * po/id.po: Update from translation team.
4509 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4511         * po/ru.po: Update from translation team.
4513 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4515         * po/nl.po: Update from translation team.
4517 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4519         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4520         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4521         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4522         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4523         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4524         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4525         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4527         * po/pl.po: Update from translation team.
4529 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4531         [BZ #7083]
4532         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4533         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4534         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4535         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4536         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4537         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4538         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4539         for GLIBC_2.10.
4540         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4541         Add fallocate and fallocate64.
4543         * io/fcntl.h: Pretty printing.
4545 2009-03-02  Richard Guenther  <rguenther@suse.de>
4547         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4548         attribute also for non-C99 inline semantics variant.
4550 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4552         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4553         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4554         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4555         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4557         Likewise.
4558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4559         Likewise.
4561 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4563         * po/cs.po: Update from translation team.
4565 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4567         * po/bg.po: Update from translation team.
4568         * po/sv.po: Likewise.
4569         * po/fi.po: Likewise.
4570         * po/vi.po: Likewise.
4572 2009-02-27  Roland McGrath  <roland@redhat.com>
4574         * Makeconfig (%.v.i): Depend on Makeconfig.
4575         Exclude % lines from initial #-comment removal.
4577 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4579         * po/ko.po: Update from translation team.
4581 2009-02-26  Roland McGrath  <roland@redhat.com>
4583         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4584         avoids unused warning.
4586 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4587             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4589         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4590         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4591         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4592         and asm/user.h.  Include asm/ptrace.h.
4593         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4594         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4595         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4596         Undefine.
4597         (start_thread): Don't undefine.
4598         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4599         Define.
4601 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4603         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4604         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4605         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4606         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4607         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4608         200112L to 200809L.
4609         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4610         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4611         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4612         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4613         _SC_THREAD_ROBUST_PRIO_PROTECT.
4614         * posix/unistd.h: fexecve is in POSIX 2008.
4615         * time/time.h: strftime_l is in POSIX 2008.
4616         * io/sys/stat.h: futimens is in POSIX 2008.
4617         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4618         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4619         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4620         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4621         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4622         open_memstream, and vdprintf are in POSIX 2008.
4624 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4626         * include/features.h: Define macros for XPG7/POSIX 2008.
4627         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4628         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4629         POSIX 2008.
4630         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4631         * locale/xlocale.h: Define locale_t type.
4632         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4633         in POSIX 2008.  Don't define locale_t here.
4634         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4635         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4636         UTIME_OMIT only with __USE_ATFILE.
4637         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4638         * stdio-common/psiginfo.c: New file.
4639         * stdio-common/psiginfo-data.h: New file.
4640         * stdio-common/psiginfo-define.h: New file.
4641         * stdio-common/Makefile (routines): Add psiginfo.
4642         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4643         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4644         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4645         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4646         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4647         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4648         * io/sys/stat.h: Move mknodat definition into same conditional as
4649         mknod.
4650         * time/sys/time.h: futimesat is not among the functions accepted
4651         into the POSIX standard.
4653         * include/features.h: If no feature selection given and we select
4654         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4655         * posix/Versions: Export __posix_getopt.
4656         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4657         Use it to alternatively initialize __posixly_correct.
4658         (_getopt_internal_r): Take addition parameter.  Pass on to
4659         _getopt_initialize.
4660         (_getopt_internal): Take addition parameter.  Pass on to
4661         _getopt_internal_r.
4662         (getopt): Pass additional zero to _getopt_internal.
4663         (__posix_getopt): New function.
4664         * posix/getopt.h: Add redirection for getopt.
4665         * posix/getopt1.c (getopt_long): Pass additional zero to
4666         _getopt_internal.
4667         (getopt_long_only): Likewise.
4668         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4669         (_getopt_long_only_r): Likewise.
4670         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4671         _getopt_internal_r.
4673 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4675         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4676         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4677         * sysdeps/posix/sysconf.c (__sysconf): Handle
4678         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4679         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4681 2009-02-24  Roland McGrath  <roland@redhat.com>
4683         [BZ #9895]
4684         * README.template: Reworded not to use substituted version number.
4685         Renamed to ...
4686         * README: ... here (no longer generated).
4687         * Makefile (README): Target removed.
4689 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4691         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4692         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4693         instead.
4695         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4697         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4699 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4701         * po/bg.po: Update from translation team.
4703 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4705         * stdlib/monetary.h: Uglify function parameter names.
4706         * sunrpc/rpc/pmap_clnt.h: Likewise.
4707         * sunrpc/rpc/svc.h: Likewise.
4708         * sunrpc/rpc/xdr.h: Likewise.
4709         * sunrpc/rpc/clnt.h: Likewise.
4710         * resolv/netdb.h: Likewise.
4711         * resolv/arpa/nameser.h: Likewise.
4712         * resolv/resolv.h: Likewise.
4713         * argp/argp.h: Likewise.
4714         * locale/langinfo.h: Likewise.
4715         * io/sys/stat.h: Likewise.
4716         * posix/spawn.h: Likewise.
4717         * nis/rpcsvc/nislib.h: Likewise.
4718         * malloc/obstack.h: Likewise.
4719         * sysdeps/ia64/bits/link.h: Likewise.
4720         * sysdeps/i386/bits/link.h: Likewise.
4721         * sysdeps/s390/bits/link.h: Likewise.
4722         * sysdeps/powerpc/bits/link.h: Likewise.
4723         * sysdeps/x86_64/bits/link.h: Likewise.
4724         * sysdeps/sparc/bits/link.h: Likewise.
4725         * sysdeps/sh/bits/link.h: Likewise.
4726         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4727         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4728         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4729         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4731 2008-12-01  Fredrik Unger  <fred@tree.se>
4733         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4734         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4735         _FP_UNPACK_RAW_2, fix up first argument.
4737 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4739         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4740         (GET_NPROCS_PARSER): Change parameters and use next_line.
4741         (__get_nprocs): Rewrite to not use stdio routines.
4742         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4743         Change parameters and use next_line.
4745 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4747         [BZ #5381]
4748         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4749         Change mempool_alloc prototype.
4750         * nscd/mem.c (gc): Don't handle mem_in_flight.
4751         (mempool_alloc): Third parameter now only indicates whether this is the
4752         first call (to allocate data) or not.  If it is, get db rdlock.
4753         Release it on error.  Don't handle mem_in_flight.
4754         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4755         Adjust third parameter of mempool_alloc calls.
4756         Nothing to do here in case mempool_alloc fails.
4757         Avoid local variable shadowing parameter.  No need to get db rdlock
4758         before calling cache_add.
4759         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4760         no mem_in_flight array anymore.
4761         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4762         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4763         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4764         in case mempool_alloc fails. No need to get db rdlock before calling
4765         cache_add.
4766         * nscd/hstcache.c (cache_addhst): Likewise.
4767         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4768         * nscd/servicescache.c (cache_addserv): Likewise.
4769         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4771 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4773         * po/lt.po: Update from translation team.
4775 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4777         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4778         defined, allow additional data to be added using the optional
4779         MORE_ELF_HEADER_DATA macro.
4780         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4781         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4783 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4785         * include/atomic.h: Define catomic_and if not already defined.
4786         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4787         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4789 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4791         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4792         Change all callers.
4793         (_int_realloc): Likewise.  Third argument is now padded size
4794         All _int_* functions are now static.
4796         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4797         * malloc/arena.c: Likewise.
4798         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4799         functions.
4801         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4802         easily.
4804         * malloc/malloc.c: Add branch prediction for use of the hooks.
4806         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4808 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4810         [BZ #7095]
4811         * bits/confname.h: Add SUSv7 macros for getconf environments.
4812         * bits/environments.h: Likewise.
4813         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4814         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4815         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4816         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4817         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4818         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4819         * posix/getconf.c: Likewise.
4820         * posix/sysconf.c: Likewise.
4821         * sysdeps/posix/sysconf.c: Likewise.
4822         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4823         environments.
4825 2009-01-16  Petr Baudis  <pasky@suse.cz>
4827         [BZ #9753]
4828         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4829         even if we currently have zero nscount.
4831 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4833         [BZ #9781]
4834         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4835         the input line is too long.
4837         * po/Makefile (libc.pot): Add f_print as function taking c-format
4838         parameter.
4840         * debug/xtrace.sh: Unify translatable messages.
4841         * elf/ldd.bash.in: Likewise.
4842         * elf/sprof.c: Likewise.
4843         * locale/programs/locale.c: Likewise.
4844         * malloc/memusage.sh: Likewise.
4845         * nss/getent.c: Likewise.
4847 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4849         * debug/pcprofiledump.c (print_version,
4850         argp_program_version_hook): New function.
4851         * elf/ldconfig.c (more_help): New function.
4852         (argp): Use it.
4853         * elf/sln.c (usage): New function.
4854         (main): Support --help and --version.
4855         * malloc/memusagestat.c (print_version): New function.
4856         (argp_program_version_hook): New variable.
4857         * nscd/nscd.c (more_help): New function.
4858         (argp): Use it.
4859         * posix/getconf.c (main): Send --version output to stdout.
4860         Support --help.
4861         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4862         arguments.  All callers changed.
4863         (print_version): New function.
4864         (parseargs): Support --help and --version.
4865         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4866         changed.
4867         (print_version): New function.
4868         (main): Use getopt_long.  Support --help and --version.
4869         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4870         --version.
4872 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4874         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4875         (update_data): Fix handling of wrapping back
4876         to the beginning of the buffer.
4878         [BZ #9823]
4879         * stdio-common/psignal.c (psignal): Fix test for empty string.
4881 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4883         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4884         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4885         move _null_auth to .rodata.
4887         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4888         value of 24.
4890         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4892         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4893         today than when the original code was written.  Use larger
4894         buffers.  This also makes it unnecessary to have stat information,
4895         if this causes extra efforts.
4896         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4897         __alloc_dir.
4899 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4901         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4902         is set.
4903         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4904         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4905         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4906         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4907         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4908         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4910 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4912         * po/ru.po: Update from translation team.
4914 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4916         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4917         Add _tid slot to maintain consistency with kernel.
4919 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4921         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4922         incomplete characters at end of input buffer.
4923         * libio/Makefile (tests): Add tst-fgetwc.
4924         * libio/tst-fgetwc.c: New file.
4925         * libio/tst-fgetwc.input: New file.
4927 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4929         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4931 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4933         [BZ #9793]
4934         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4935         *OUTBUFSTART unless the whole output fit into the buffer.
4936         * iconv/Makefile (tests): Add tst-iconv4.
4937         * iconv/tst-iconv4.c: New file.
4939 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4941         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4942         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4944 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4946         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4947         newer linker scripts.
4949 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4951         [BZ #7040]
4952         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4953         inotify_rm_watch should have type int.
4955 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4957         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4958         Make aligned_restore_vmx a local symbol.
4959         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4960         Likewise.
4962 2009-01-30  Andreas Jaeger  <aj@suse.de>
4964         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4965         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4966         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4967         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4968         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4969         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4970         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4972 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4974         [BZ #9726]
4975         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4976         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4978 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4980         [BZ #9726]
4981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4982         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4984         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4986 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4988         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4989         memcpy instead of memcmp.
4990         (_dl_setup_pointer_guard): Likewise.
4992 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4994         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4995         manipulated brk, use malloc_printerr.
4996         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4997         requests.
4999 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
5001         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
5002         rindex): For C++ add inlines so that they can be recognized as
5003         builtins.
5004         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
5006 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
5007             Jakub Jelinek  <jakub@redhat.com>
5009         * string/string.h: Define correct C++ prototypes for gcc 4.4.
5010         * wcsmbs/wchar.h: Likewise.
5012 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
5014         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
5015         (stackinfo_sub_sp): Define.
5017 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5019         [BZ #9750]
5020         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
5021         * include/alloca.h (alloca_account): Define.
5022         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
5023         (stackinfo_sub_sp): Define.
5025         * nscd/connections.c (nscd_init): If database file access fails
5026         check whether this is due to permission problems and bail in that
5027         case.
5029         [BZ #9741]
5030         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
5031         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
5033 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5035         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
5036         Add "t" to clobber list.
5037         (INTERNAL_SYSCALL_NCS): Likewise.
5039 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
5041         * nss/getent.c (print_networks): Don't print comma between aliases.
5043 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
5045         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
5047         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
5048         the hash table.
5049         * misc/Makefile (tests): Add bug-hsearch1.
5050         * misc/bug-hsearch1.c: New file.
5052 2009-01-22  Roland McGrath  <roland@redhat.com>
5054         * Makeconfig (%.v.i): Strip trailing # comments,
5055         not only whole-line comments.
5057 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
5059         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
5060         one parameter.  If non-NULL use it to initialize return value.
5061         (_dl_setup_pointer_guard): New function.
5062         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5063         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
5064         * elf/rtld.c (security_init): Pass _dl_random to
5065         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
5066         pointer_chk_guard.
5067         * elf/dl-sysdep.c (_dl_random): New variable.
5068         (_dl_sysdep_start): Handle AT_RANDOM.
5069         (_dl_show_auxv): Likewise.
5070         * elf/dl-support.c (_dl_random): New variable.
5071         (_dl_aux_init): Handle AT_RANDOM.
5072         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
5073         to _dl_setup_stack_chk_guard.
5075         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
5077 2009-01-10  Roland McGrath  <roland@redhat.com>
5079         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
5081 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
5083         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
5085         [BZ #9706]
5086         * nss/nss_files/files-parse.c (strtou32): New function.
5087         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
5088         across 32-bit and 64-bit platforms.
5089         (INT_FIELD_MAYBE_NULL): Likewise.
5091 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
5093         [BZ #9720]
5094         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
5095         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
5096         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
5097         Likewise.
5099 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
5101         [BZ #697]
5102         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5103         being NULL also if there are no backreferences.
5104         * posix/rxspencer/tests: Add testcases.
5106 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
5108         [BZ #9697]
5109         * posix/bug-regex17.c: Add testcases.
5110         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5111         handling.
5113 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5115         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
5116         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
5117         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
5118         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
5119         for elf subdir.
5120         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
5121         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
5122         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
5123         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
5124         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5125         * sysdeps/unix/sysv/linux/s390/Versions: New file.
5127 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
5129         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5130         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5131         re_string_skip_chars, re_string_reconstruct): Likewise.
5132         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5134 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
5136         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
5137         adjust the buffer alignment.
5139 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5141         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
5142         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
5143         net/route.h.
5145         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
5146         flavor to description only when flavor is not NULL.
5148         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
5149         mutex after SIGIO/SIGURG lookup loop.
5151 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5153         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
5155 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
5157         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
5158         handling.
5160 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
5162         * sysdeps/unix/sysv/linux/kernel-features.h
5163         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5165         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5166         if no output is written.
5168         * version.h: Bump to 2.10 development.
5170         * posix/getconf.c: Update copyright year.
5171         * nss/getent.c: Likewise.
5172         * iconv/iconvconfig.c: Likewise.
5173         * iconv/iconv_prog.c: Likewise.
5174         * elf/ldconfig.c: Likewise.
5175         * catgets/gencat.c: Likewise.
5176         * csu/version.c: Likewise.
5177         * elf/ldd.bash.in: Likewise.
5178         * elf/sprof.c (print_version): Likewise.
5179         * locale/programs/locale.c: Likewise.
5180         * locale/programs/localedef.c: Likewise.
5181         * nscd/nscd.c (print_version): Likewise.
5182         * debug/xtrace.sh: Likewise.
5183         * malloc/memusage.sh: Likewise.
5184         * malloc/mtrace.pl: Likewise.
5185         * debug/catchsegv.sh: Likewise.
5187 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5189         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5190         script.
5192 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5194         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5195         gethostbyname4_r function call succeeded, just leave the loop.
5197         [BZ #9694]
5198         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5199         very end.
5200         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5201         * wctype/Makefile (tests): Add bug-wctypeh.
5202         * wctype/bug-wctypeh.c: New file.
5204         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5205         LOCALDOMAIN is defined.
5206         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5208         * sysdeps/x86_64/bits/select.h: New file.
5210         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5212 2008-12-21  Bruno Haible  <bruno@clisp.org>
5214         [BZ #9677]
5215         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5216         if no output is written.
5218 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5220         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5221         libc internal symbol __dup2 to avoid access through the PLT.
5223 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5225         [BZ #6545]
5226         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5227         available only for __USE_GNU.
5229         * inet/Makefile (tests): Add tst-getni2.
5230         * inet/tst-getni2.c: New file.
5232         [BZ #7080]
5233         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5234         NULL when NI_NAMEREQD is set.
5235         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5236         * inet/Makefile (tests): Add tst-getni1.
5237         * inet/tst-getni1.c: New file.
5239 2008-12-03  Petr Baudis  <pasky@suse.cz>
5241         [BZ #7067]
5242         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5243         instead of prune_lock.
5244         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5245         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5247 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5249         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5250         use.
5252         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5253         handling.
5255         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5256         after reading name server list.
5258         [BZ #7058]
5259         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5260         handling for host name aliases.
5262 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5264         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5265         instead of doing things manually.
5267 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5269         * posix/regex_internal.h (build_wcs_upper_buffer):
5270         Return type is reg_error_t.
5272 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5274         * posix/globtest.sh: Use mktemp to create temporary file and
5275         directory.
5277         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5278         sets correctly.
5279         (__CPU_CLR_S): Likewise.
5280         (__CPU_ISSET_S): Likewise.
5282 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5283             Ulrich Drepper  <drepper@redhat.com>
5285         * scripts/firstversion.awk: Use custom comparison function to compare
5286         version numbers.
5287         * scripts/versions.awk: Use sort invocation which can handle
5288         multi-digit sub-version numbers.
5290 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5292         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5293         * locale/iso-639.def: Add Chhattisgarhi entry.
5295 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5297         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5298         ESRCH return value.
5299         (_nss_dns_gethostbyname4_r): Likewise.
5300         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5301         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5302         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5303         the no_data variable.
5305         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5306         information at the correct index.
5308         * socket/sys/socket.h: Declare accept4.
5309         * socket/accept4.c: New file.
5310         * sysdeps/unix/sysv/linux/accept4.c: New file.
5311         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5312         * socket/Makefile (routines): Add accept4.
5313         * socket/Versions: Export accept4 with version GLIBC_2.10.
5314         * socket/paccept.c: Removed.
5315         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5316         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5317         * Versions.def: Define GLIBC_2.10 for libc.
5318         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5320         * nscd/connections.c: Use accept4.
5322         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5324 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5326         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5327         flag already set.
5329         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5330         not exist.
5331         * stdlib/Makefile (tests): Add tst-unsetenv1.
5332         * stdlib/tst-unsetenv1.c: New file.
5334 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5336         * login/utmp_file.c (file_writable): New variable.
5337         (setutent_file): Don't try to open file for writing.
5338         (pututline_file): Before writing, make descriptor writable if
5339         necessary.
5341 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5343         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5344         to IPv4 or IPv6 if an interface has been found.
5346 2008-11-26  Roland McGrath  <roland@redhat.com>
5348         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5349         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5351         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5352         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5353         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5355         * elf/elf.h (NT_386_IOPERM): New macro.
5356         (NT_PPC_VSX): New macro.
5358 2008-11-25  Roland McGrath  <roland@redhat.com>
5360         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5361         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5362         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5363         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5364         Subdirectories moved to ports repository.
5365         * configure.in (base_machine): Remove alpha case.
5367 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5369         * sysdeps/mach/strerror_l.c: New file.
5371 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5373         [BZ #6411]
5374         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5375         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5376         magic numbers.
5377         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5378         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5379         (relax_fenv_state): Same as above.
5380         (FPSCR_29): Reserve bit in ISA 2.05.
5381         (FPSCR_NI): Provide define for compat.
5382         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5383         magic numbers.
5384         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5385         magic numbers.
5386         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5387         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5388         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5389         access to hwcap to account for hwcap size increase to uint64_t.
5390         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5391         Likewise.
5392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5393         (*setcontext): Likewise.
5394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5395         New file.
5396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5397         New file.
5398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5399         (*setcontext): dynamically select mtfsf insn based on
5400         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5401         increase to uint64_t.
5402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5403         (*swapcontext): dynamically select mtfsf insn based on
5404         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5405         increase to uint64_t.
5406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5407         New file.
5408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5409         New file.
5410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5411         (*setcontext): dynamically select mtfsf insn based on
5412         PPC_FEATURE_HAS_DFP.
5413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5414         (*swapcontext): dynamically select mtfsf insn based on
5415         PPC_FEATURE_HAS_DFP.
5417 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5419         * version.h: Bump for 2.9 release.
5420         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5422         [BZ #7029]
5423         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5424         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5425         all the rounding.
5427 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5429         [BZ #7009]
5430         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5431         unknown request types for now.
5433 2008-11-11  Roland McGrath  <roland@redhat.com>
5435         * sysdeps/x86_64/configure: New file.
5437         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5438         * configure: Regenerated.
5440 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5442         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5443         correct instruction to remove the stack frame.
5445 2008-11-03  Michael Matz  <matz@suse.de>
5447         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5448         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5450 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5452         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5453         Remove.
5455         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5456         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5457         of the thread variable instead of void *.
5458         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5459         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5460         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5461         __libc_tsd_define arguments.
5462         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5463         __libc_tsd_address arguments.  Remove union hack.
5464         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5465         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5466         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5467         Adjust __libc_tsd_{set,get} arguments.
5468         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5469         __libc_tsd_define arguments.
5470         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5471         arguments.
5472         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5473         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5474         (LOCALE): Adjust __libc_tsd_define arguments.
5475         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5476         arguments.
5477         (LOCALE): Adjust __libc_tsd_define arguments.
5478         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5479         arguments.
5480         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5481         arguments.
5483 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5485         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5486         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5488 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5490         [BZ #6966]
5491         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5493 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5494             Ulrich Drepper  <drepper@redhat.com>
5496         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5497         definition for GCC 3.1 and later.
5499 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5501         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5502         refetch dtv, as it might have changed.
5503         * elf/Makefile: Add rules to build and run tst-tls18.
5504         * elf/tst-tls18.c: New test.
5505         * elf/tst-tlsmod18a.c: New file.
5507 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5509         [BZ #6875]
5510         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5512 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5514         [BZ #6867]
5515         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5517         [BZ #6919]
5518         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5519         Fix length of copy operation.
5521 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5523         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5524         and fix its calling convention.
5526 2008-10-07  Andreas Schwab  <schwab@suse.de>
5528         [BZ #6942]
5529         * resolv/res_send.c (send_vc): Fix last change.
5530         (send_dg): Align here as well.
5532 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5534         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5535         return value in case rlimit is RLIM_INFINITY.
5537         [BZ #6947]
5538         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5539         for UL_SETFSIZE.
5540         * resource/Makefile (tests): Add bug-ulimit1.
5541         * resource/bug-ulimit1.c: New file.
5543         [BZ #6974]
5544         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5545         without dot.  Properly terminate the string with a null byte.
5546         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5548         [BZ #6980]
5549         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5550         negative sizees.
5551         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5552         negative __size.
5554         [BZ #6995]
5555         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5557 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5559         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5560         abort if there is no initgroups_dyn function.
5562         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5563         result if any of the queries really provided an answer.
5565 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5567         * po/lt.po: Update from translation team.
5569 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5571         * po/id.po: Update from translation team.
5573 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5575         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5576         Fix tests for existence of second reply.
5578 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5580         * po/id.po: New file.
5581         Contributed by the Indonesian translation team.
5583 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5585         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5586         initialization.
5588 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5590         * elf/Makefile: Add rules to build and run tst-tls17.
5591         * elf/tst-tls17.c: New test.
5592         * elf/tst-tlsmod17a.c: New file.
5593         * elf/tst-tlsmod17b.c: Likewise.
5595 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5597         * stdlib/divmod_1.c: Use correct type for dummy variable.
5598         * stdlib/mod_1.c: Likewise.
5600 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5602         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5604 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5606         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5607         __nonnull order for C++.
5608         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5609         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5611 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5613         * stdlib/longlong.h: Update from GCC.
5615 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5616             David S. Miller  <davem@davemloft.net>
5618         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5619         make sure any registers used with 64-bit 'branch-on-register'
5620         instructions have their top 32-bits clear.
5621         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5622         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5624 2008-09-18  Andreas Schwab  <schwab@suse.de>
5626         [BZ #6942]
5627         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5628         Properly handle partial reads.
5630 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5632         * elf/elf.h (STO_MIPS_PLT): New.
5633         (R_MIPS_COPY): New.
5634         (R_MIPS_JUMP_SLOT): New.
5635         (R_MIPS_NUM): Redefine to 128.
5636         (DT_MIPS_PLTGOT): New.
5637         (DT_MIPS_RWPLT): New.
5638         (DT_MIPS_NUM): Redefine to 0x35.
5640 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5642         * timezone/africa: Update from tzdata2008f.
5643         * timezone/asia: Likewise.
5644         * timezone/australasia: Likewise.
5645         * timezone/europe: Likewise.
5646         * timezone/leapseconds: Likewise.
5647         * timezone/northamerica: Likewise.
5648         * timezone/southamerica: Likewise.
5649         * timezone/zone.tab: Likewise.
5651 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5653         * nscd/connections.c: Disable use of paccept for now.
5655 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5657         * socket/Versions: Remove paccept export for GLIBC_2.9.
5658         * socket/Makefile (routines): Remove paccept.
5659         * socket/sys/socket.h: Remove paccept declaration.
5661         * po/sv.po: Update from translation team.
5663 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5665         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5666         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5668 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5670         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5671         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5673 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5675         * sunrpc/rpc/svc.h: Declare svcfd_create.
5676         Patch by Michael Solberg <msolberg@redhat.com>.
5678 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5679             Ulrich Drepper  <drepper@redhat.com>
5681         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5682         _int_valloc fails.
5683         (public_pVALLOc): Likewise.
5685 2008-09-02  Andreas Jaeger  <aj@suse.de>
5687         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5688         commit.
5690 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5692         [BZ #6860]
5693         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5695 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5697         * Makefile (check-data): Check data directory in add-ons.
5698         * elf/Makefile (check-data): Likewise.
5700 2008-08-18  Roland McGrath  <roland@redhat.com>
5702         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5703         * configure: Regenerated.
5704         * config.make.in (cflags-cpu): New substituted variable.
5705         (with-cpu): Variable removed.
5706         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5708 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5710         [BZ #6845]
5711         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5712         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5713         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5714         redundant.  Functions which call floating point assembler operations
5715         should go into a sysdeps powerpc/fpu directory.
5717 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5719         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5720         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5722 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5724         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5726         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5727         change related to AT_EXECFN.  We cannot use that string.
5728         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5729         _dl_execfn member.
5730         * elf/dl-support.c: Remove _dl_execfn variable.
5731         (_dl_aux_init): Remove handling of AT_EXECFN.
5732         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5733         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5735 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5737         [BZ #6544]
5738         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5739         byte gets added to writes and seeks from the end use the length of
5740         the buffer and not the currently terminating NUL byte.
5742         [BZ #6634]
5743         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5744         Set to true if locking failed.
5745         (getutid_r_file): Adjust caller.
5746         (pututline_file): Likewise.  Return NULL in this case.
5747         Patch mostly by halesh.s@gmail.com.
5749 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5751         [BZ #6589]
5752         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5753         Define.
5754         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5756 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5758         [BZ #6839]
5759         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5760         macro since it is now available in elf/dynamic-link.h.
5762 2008-08-12  Roland McGrath  <roland@frob.com>
5764         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5765         in case used outside of libc.
5766         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5768 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5770         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5771         directly instead of going through dn_comp.
5773 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5775         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5776         Fix asm constraints.
5778 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5780         [BZ #6790]
5781         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5782         (IPV6_PMTUDISC_PROBE): Likewise.
5784 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5786         [BZ #6791]
5787         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5789 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5790             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5792         [BZ #6817]
5793         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5794         Added the members 'vsx' and 'arch_2_06'.
5795         (_dl_powerpc_platforms): Add the member 'power7'.
5796         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5797         to reflect the changes required by VSX and ISA 2.06.
5798         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5799         'power7'.
5800         Defined PPC_PLATFORM_POWER7.
5801         (_dl_string_platform): Add support for POWER7.
5802         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5803         capability and ISA 2.06.
5805 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5807         [BZ #6824]
5808         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5809         macro to detect use of 128 bit long double.
5810         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5812 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5814         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5816         [BZ #5794]
5817         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5818         parameters.
5819         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5820         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5822 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5824         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5825         guaranteed to be large enough to read inotify event.  Ignore
5826         EAGAIN error.  Better error message.  Add branch predicition.
5827         (main_loop_epoll): Likewise.
5829 2008-08-02  Roland McGrath  <roland@frob.com>
5831         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5832         Add memory clobbers.
5834 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5836         * manual/arith.texi: Avoid @strong{Note:}.
5837         * manual/creature.texi: Likewise.
5838         * manual/filesys.texi: Likewise.
5839         * manual/math.texi: Likewise.
5840         * manual/memory.texi: Likewise.
5841         * manual/resource.texi: Likewise.
5842         * manual/syslog.texi: Likewise.
5843         * manual/time.texi: Likewise.
5845         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5846         to prevent warning.
5848 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5850         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5851         new epoll_create1 interface.
5852         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5853         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5854         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5856         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5857         (NS_GET32): Likewise.
5859         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5860         syscalls, too.
5862         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5863         use the AT_EXECFN value if it is no absolute path.
5864         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5865         __ASSUME_AT_EXECFN.
5867         * Versions.def: Add GLIBC_2.9 to libresolv.
5868         * include/resolv.h: Remove hidden proto declarations for __ns_*
5869         functions.  Add them for __dn_count_labels and __p_secstodate.
5870         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5871         Define ns_msg_getflags macro here.
5872         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5873         and __p_secstodate.
5874         * resolv/Versions: Export functions from <arpa/nameser.h> from
5875         libresolv in version GLIBC_2.9.
5876         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5877         hidden definitions.
5878         * resolv/ns_netint.c: Likewise.
5879         * resolv/ns_parse.c: Likewise.
5880         * resolv/ns_print.c: Likewise.
5881         * resolv/ns_samedomain.c: Likewise.
5882         * resolv/ns_ttl.c: Likewise.
5883         * resolv/arpa/nameser_compat.h: Likewise.
5884         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5885         function calls.
5886         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5887         instead of ns_get16.
5888         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5889         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5890         (gaih_getanswer_slice): Likewise.
5891         * resolv/Makefile (libresolv-routines): Add ns_date.
5892         * resolv/ns_date.c: New file.
5894         * elf/Makefile (check-localplt.out): Also check libresolv and
5895         libcrypt.
5897 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5899         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5900         __ASSUME_O_CLOEXEC.
5902 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5904         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5905         buffer passed to NSS functions.
5907         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5909         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5910         Define.
5912         * misc/syslog.c (openlog_internal): Fix compile problem.
5914 2008-07-28  Roland McGrath  <roland@redhat.com>
5916         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5918 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5920         * io/ftw.c (add_object): Remove inline to avoid warning.
5922         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5924         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5925         Use it instead of locally defined resplen2 variable.
5926         (res_nsend): Adjust for __libc_res_nsend interface change.
5927         (send_vc): Initialize *resplen2 if necessary.  Read length of
5928         package into an appropriately aligned variable.  Store converted length
5929         in new variable and use it appropriately.
5930         Add branch prediction help.
5931         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5932         and pass it on to __libc_res_nsend.  Adjust all callers.
5933         (__libc_res_nsearch): Likewise.
5934         (__libc_res_nqeurydomain): Likewise.
5935         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5936         change.
5937         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5938         Define resplen2 variable and pass it to __libc_res_nsearch and then
5939         to gaih_getanswer.
5940         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5941         Add branch prediction.
5942         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5943         (gaih_getanswer): Don't decode second slice if first one failed due
5944         to a too small buffer.  Don't let not found status of second
5945         decoder shadow results of the first.
5946         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5947         and __libc_res_nquery interface changes
5948         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5949         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5950         __libc_res_nsearch, and __libc_res_nsend.
5951         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5952         change.
5953         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5954         __libc_res_nsearch interface changes.
5956 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5958         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5960         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5961         file descriptors with close-on-exec set.
5962         (exec_comm_child): Fix the case where the write end of the pipe is
5963         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5965         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5966         * io/pipe2.c: Likewise.
5967         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5968         instead of __ASSUME_PACCEPT.
5969         * include/unistd.h: Declare __have_pipe2.
5970         * libio/iopopen.c: Implement "e" flag.
5971         * libio/Makefile (tests): Add tst-popen1.
5972         * libio/tst-popen1.c: New file.
5974         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5975         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5977 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5979         [BZ #6771]
5980         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5981         success call of _IO_SEEKOFF or calls which failed because the
5982         descriptor is for a pipe.
5984         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5985         magic number.
5987         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5989         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5990         F_SETFD use if we know fopen set the flag.
5992         * login/utmp_file.c (setutent_file): Minor optimization in case
5993         O_CLOEXEC is available.
5995 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5997         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5998         * elf/Makefile: Use pie-ccflag variable.
5999         * nscd/Makefile: Likewise.
6000         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
6002 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
6004         [BZ #6724]
6005         * Versions.def: Add GLIBC_2.9 version tag for libutil.
6006         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
6007         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
6008         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
6009         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
6010         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
6011         utmp32, utmpx32 and login32.
6012         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
6013         versions of struct utmp functions to libc and libutil.
6014         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
6015         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
6016         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
6017         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
6018         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
6019         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
6020         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
6021         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
6022         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
6023         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
6024         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
6025         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
6026         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
6027         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
6028         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
6029         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
6030         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
6031         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
6032         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
6033         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
6034         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
6035         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
6037 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
6039         * scripts/gen-as-const.awk: Generate more widely usable code by
6040         using 64-bit arithmetic.
6042         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
6043         the same treatment as narrow output code in last patch.
6045         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
6047         [BZ #6763]
6048         * elf/dl-load.c (local_strdup): Remove inline.
6049         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
6050         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
6051         part of the object.
6053         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
6055 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
6057         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
6058         the new syscalls, too.
6060         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
6061         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
6063         [BZ #6698]
6064         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
6065         parameter for end of buffer.  If temporary copy is too large use
6066         malloc.
6067         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
6068         interface change.
6069         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
6070         string rewrite when allocating buffer.
6072         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
6073         syscalls, too.
6075         * nscd/connections.c (nscd_init): Clean up fcntl call.
6077         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
6078         SOCK_NONBLOCK if possible.
6080         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
6081         SOCK_CLOEXEC if available.
6083         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
6084         __libc_clntudp_bufcreate_internal.
6085         * include/sys/socket.h: Declare __have_sock_cloexec.
6086         * socket/Makefile (aux): Add have_sock_cloexec.
6087         * socket/have_sock_cloexec.c: New file.
6088         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
6089         __libc_clntudp_bufcreate.
6090         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
6091         which takes an additional parameter.  Create socket with non-blocking
6092         mode and close-on-exec flag set, if wanted.
6093         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
6094         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
6095         instead of clntudp_create.  The socket has already the close-on-exec
6096         flag set if SOCK_CLOEXEC is defined.
6098 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
6100         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6101         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
6102         appropriate.
6103         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
6104         non-blocking mode by using socket, paccept, and inotify_init1.
6106         * Versions.def (glibc): Add GLIBC_2.9.
6107         * io/Makefile (routines): Add dup3 and pipe2.
6108         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
6109         * io/dup3.c: New file.
6110         * io/pipe2.c: New file.
6111         * posix/unistd.h: Declare dup3 and pipe2.
6112         * socket/Makefile (routines): Add paccept.
6113         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
6114         * socket/paccept.c: New file.
6115         * socket/sys/socket.h: Declare paccept.
6116         * sysdeps/unix/syscalls.list: Add entry for dup3.
6117         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
6118         epoll_create2 and inotify_init1.
6119         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
6120         * sysdeps/unix/sysv/linux/paccept.c: New file.
6121         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
6122         possible.
6123         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
6124         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
6125         inotify_init1, and pipe2 entries.
6126         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
6127         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
6128         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
6129         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
6130         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
6131         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
6132         SOCK_NONBLOCK.
6133         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
6134         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
6135         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
6136         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
6137         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
6138         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
6139         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
6140         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
6141         EPOLL_NONBLOCK.  Declare epoll_create2.
6142         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
6143         EFD_NONBLOCK.
6144         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
6145         IN_NONBLOCK.  Declare inotify_init1.
6146         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
6147         SFD_NONBLOCK.
6148         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
6149         TFD_NONBLOCK.
6151         * elf/elf.h: Define AT_EXECFN.
6152         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
6153         LD_ORIGIN_PATH.
6154         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
6155         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
6156         if __ASSUME_AT_EXECFN is defined.
6157         (_dl_aux_init): Handle AT_EXECFN.
6158         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
6159         for 2.6.27 and up.
6160         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
6161         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
6162         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6163         _dl_execfn if available and avoid compatibility code if
6164         __ASSUME_AT_EXECFN is defined.
6166         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6167         _dl_discover_osversion only for older kernels.
6169 2008-07-22  Roland McGrath  <roland@frob.com>
6171         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6173 2008-07-21  Roland McGrath  <roland@frob.com>
6175         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6176         returned too much data out of line.
6178 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
6180         * locale/setlocale.c (setname): Remove inline to avoid compiler
6181         warning.
6183         [BZ #6712]
6184         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6186 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6188         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6189         doesn't manage to write anything, fail.
6191         * malloc/hooks.c (__malloc_check_init): Remove printf.
6193 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6195         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6197 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6199         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6200         from inotify.
6201         (main_loop_epoll): Likewise.
6203 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6205         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6207         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6208         if DEBUG is defined.
6210         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6211         query.  Adjust buffer size computation for padding.
6213 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6215         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6216         * stdio-common/tst-setvbuf1.c: New file.
6217         * stdio-common/tst-setvbuf1.expect: New file.
6219         [BZ #6719]
6220         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6221         when selecting fully-buffered stream.
6222         Patch by Wang Xin <wxinee@gmail.com>.
6224 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6226         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6227         (__open_2): New function.
6228         (__open64_2): New alias to __open_2.
6229         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6230         (__openat_2): New function.
6231         (__openat64_2): New alias to __openat_2.
6233 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6235         [BZ #6723]
6236         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6238 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6240         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6241         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6242         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6243         __hurd_dfail.
6244         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6245         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6246         * sysdeps/mach/hurd/send.c (__send): Likewise.
6247         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6248         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6250 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6252         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6253         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6254         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6255         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6256         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6257         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6259 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6261         [BZ #6657]
6262         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6263         of %EY.
6264         Patch by Petr Baudis.
6266 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6268         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6269         Patch by Peter Jones <pjones@redhat.com>.
6271 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6273         [BZ #6654]
6274         * stdlib/canonicalize.c (__realpath): readlink can write too much
6275         into the buffer on platforms without PATH_MAX.
6277 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6279         [BZ #6653]
6280         * posix/tst-regex.c (main): Rename to...
6281         (do_test): ... this. Remove cmdline option processing.
6282         (TIMEOUT): Define.
6283         (TEST_FUNCTION): Define.
6284         (CMDLINE_OPTIONS): Define.
6286 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6288         [BZ #5210]
6289         * configure.in: Add -Werror to -fstack-protector test to catch
6290         unsupported architectures.
6291         Patch by Gilles Esponasse <g.esp@free.fr>.
6293 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6295         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6296         getcontext returns ENOSYS.
6298 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6300         * nscd/connections.c (main_loop_poll): Fix test for read error.
6301         (main_loop_epoll): Likewise.
6303 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6305         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6306         better place so it is not called when nscd is used.
6308         * nscd/connections.c: Also recognize and handle changes to the
6309         resolver configuration file.
6311 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6313         * time/strftime.c: Pass reference to tzset_called around to handle
6314         recursive calls.
6316         [BZ #6612]
6317         * time/strftime.c (__strftime_internal): Call tzset() only
6318         when printing timezone-dependent values.
6319         Based on a patch by Petr Baudis <pasky@suse.cz>.
6321         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6322         unconditionally use second gaih_getanswer_slice result.
6324         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6325         (getaddrinfo): RES must always be non-NULL.
6327 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6329         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6330         cr[34] registers.
6331         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6332         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6333         Likewise.
6334         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6335         register.
6337 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6339         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6340         fields.
6341         * nscd/connections.c (inotify_fd): New variable.
6342         (nscd_init): Try to open an inotify descriptor.
6343         If successful, watch files for databases using inotify instead of
6344         having prune threads stat the files.
6345         (nscd_run_prune): Recognize clear_cache flag being set and call
6346         prune_cache appropriately.
6347         (main_loop_poll): Add inotify descriptor to wait set and handle the
6348         reported changes.
6349         (main_loop_epoll): Likewise.
6350         * nscd/cache.c (prune_cache): Don't stat files for databases if
6351         inotify is used.
6352         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6353         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6355         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6356         fixed-size portion of the record.
6357         * nscd/servicescache.c (cache_addserv): Likewise.
6358         * nscd/pwdcache.c (cache_addpw): Likewise.
6359         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6361 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6363         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6364         out we don't use uninitialized memory.
6366         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6367         the client.
6369 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6371         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6372         ignore T_DNAME messages.
6373         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6375 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6377         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6378         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6380 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6382         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6383         instead of portstr to nscd_getserv_r.  Patch by
6384         Roman Kagan <rkagan@mail.ru>.
6386 2008-05-26  Jim Meyering  <meyering@redhat.com>
6388         Remove more useless "if" tests before "free".
6389         * include/inline-hashtab.h (htab_delete): Likewise.
6390         * libio/freopen.c (freopen): Likewise.
6391         * libio/freopen64.c (freopen64): Likewise.
6392         * locale/programs/ld-collate.c (collate_read): Likewise.
6393         * misc/fstab.c (libc_freeres_fn): Likewise.
6394         * posix/glob.c (globfree): Likewise.
6396 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6398         * string/Makefile (strop-tests): Add memmem.
6399         * string/test-memmem.c: New file.
6400         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6401         (test_init): Size buf1 according to BUF1PAGES.
6403 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6405         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6406         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6407         (CFLAGS-scanf17.c): New.
6408         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6409         * stdio-common/scanf15.c (main): Likewise.
6410         * stdio-common/scanf16.c: New file.
6411         * stdio-common/scanf17.c: New file.
6413 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6415         * resolv/res_send.c (send_dg): If we already have one of two
6416         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6417         use the one answer insted of failing.
6419 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6421         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6422         being executed on PowerPC as the expected result exceeds IBM
6423         long double 128 __LDBL_MAX__.
6425 2008-05-21  Roland McGrath  <roland@redhat.com>
6427         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6429         * Makefile (check-data): Use $(abi-name) before other guesses.
6430         Look in $(add-ons) dirs before scripts/data/.
6431         * elf/Makefile (check-data): Likewise.
6433         * scripts/soversions.awk: Grok ABI line.
6434         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6435         Emit definition for abi-name variable.
6437 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6439         * string/endian.h: Define new fixed-size hto* and *toh macros only
6440         if [__USE_BSD].
6442         * iconvdata/Depend: Add localedata.
6444 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6446         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6448 2008-05-08  David S. Miller  <davem@davemloft.net>
6450         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6451         HIDDEN_JUMPTARGET.
6452         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6453         (__SYSCALL_CLOBBERS): Remove %g* registers.
6454         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6455         (__SYSCALL_CLOBBERS): Likewise.
6456         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6457         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6459 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6461         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6462         (CALL_ERRNO_LOCATION): Define.
6463         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6464         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6465         (CALL_ERRNO_LOCATION): Define.
6466         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6467         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6468         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6470 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6472         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6473         variable.
6475 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6477         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6478         (FIRST_FRAME_POINTER): Define.
6480 2008-05-09  David S. Miller  <davem@davemloft.net>
6482         * sysdeps/sparc/sparc64/backtrace.c: New file.
6484 2008-05-14  David S. Miller  <davem@davemloft.net>
6486         * sysdeps/sparc/machine-gmon.h: New file.
6487         * sysdeps/sparc/sparc-mcount.S: Likewise.
6488         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6489         sysdep_routines in gmon directory.
6491 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6493         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6495 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6497         * resolv/res_query.c (__libc_res_nquery): In case one of two
6498         answer was too short don't try to read that answer's header.
6500         * resolv/res_send.c (send_dg): In case of timeout and there are
6501         two queries and one has been answered, return value indicating
6502         success.
6504 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6506         * nscd/cache.c (cache_add): Take additional parameter specifying
6507         whether this is in response of a cache refill.  Check alignment
6508         of package data.  Revamp waking of pruning thread.
6509         (prune_cache): Small optimization.
6510         * nscd/nscd.h: Adjust cache_add prototypes.
6511         * nscd/aicache.c: Adjust cache_add calls.
6512         * nscd/grpcache.c: Likewise.
6513         * nscd/hstcache.c: Likewise.
6514         * nscd/initgrcache.c: Likewise.
6515         * nscd/pwdcache.c: Likewise.
6516         * nscd/servicescache.c: Likewise.
6517         * nscd/connections.c (restart): Really disable cache use before
6518         exec attempt.  If it fails, reenable cache.
6519         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6520         time to max to be able to notice concurrent cache additions.  Unlock
6521         prune_lock while performing gc.  Afterwards compute wakeup time with
6522         current wakeup_time value in mind.
6524 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6526         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6528         * nscd/mem.c (gc): Correctly determine highest used array element
6529         in mark.
6531         * nscd/mem.c (markrange): Add assert to check entries are all
6532         aligned.  Small cleanup in bitmap use.
6534         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6535         blockoff of type nscd_ssize_t.
6536         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6537         (mempoll_alloc): Record block offset and not address.
6539         * nscd/mem.c (gc): Fix test for stack overuse.
6541         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6542         more asserts.
6544         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6545         entry is available, believe it.
6547         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6548         no answers return NSS_STATUS_NOTFOUND.
6549         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6550         buffer does not have any content.
6552 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6554         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6556         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6557         lookup, don't assign canon unconditionally.
6559 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6561         * string/Makefile (distribute): Add str-two-way.h.
6563 2008-03-29  Eric Blake  <ebb9@byu.net>
6565         Rewrite string searches to O(n) rather than O(n^2).
6566         * string/str-two-way.h: New file.  For linear fixed-allocation
6567         string searching.
6568         * string/memmem.c: New implementation.
6569         * string/strstr.c: New implementation.
6570         * string/strcasestr.c: New implementation.
6572 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6574         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6575         opr.ctx_type.
6576         (calc_first): Initialize constraint field.
6577         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6578         Use search_duplicated_node to avoid loops.  Fix grammar.
6579         (duplicate_node): Merge constraint field for all node types.
6580         (calc_eclosure_iter): Look at constraint field for all node types.
6581         * posix/regex_internal.c (create_cd_newstate): Don't look at
6582         create_cd_newstate.
6584 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6586         [BZ #6428]
6587         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6589         [BZ #6442]
6590         * string/endian.h: Add macros for fixed-size endian conversion.
6591         * bits/byteswap.h: Allow inclusion from <endian.h>.
6592         * sysdeps/i386/bits/byteswap.h: Likewise.
6593         * sysdeps/ia64/bits/byteswap.h: Likewise.
6594         * sysdeps/s390/bits/byteswap.h: Likewise.
6595         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6596         * string/Makefile (tests): Add tst-endian.
6597         * string/tst-endian.c: New file.
6599         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6600         Patch by Reuben Thomas.
6602 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6604         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6606 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6608         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6610         [BZ #6461]
6611         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6612         Add missing braces.
6613         (BODY for __gconv_transform_internal_ascii): Likewise.
6615         [BZ #6472]
6616         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6617         to be treated like link-local addresses.
6618         (match_prefix): Don't treat IPv4 loopback address special when
6619         converting to v4 mapped addressed.
6621         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6622         if necessary.
6623         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6624         * posix/tst-rfc3484-2.c: Likewise.
6625         * posix/tst-rfc3484-3.c: Likewise.
6627         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6628         and SCTP.
6630         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6632         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6634         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6636 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6638         * po/lt.po: New file.  From Lituanian translation team.
6640 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6642         Introduce TLS descriptors for i386 and x86_64.
6643         * include/inline-hashtab.h: New file, copied from 2005's
6644         libiberty, with fix for memory leak imported afterwards by
6645         Glauber de Oliveira Costa.
6646         * elf/tlsdeschtab.h: New file.
6647         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6648         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6649         (CHECK_STATIC_TLS): Move to...
6650         * elf/dynamic-link.h: ... this file.
6651         (TRY_STATIC_TLS): New macro.
6652         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6653         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6654         R_386_TLS_DESC): Define.
6655         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6656         binutils.
6657         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6658         R_X86_64_TLSDESC): Define.
6659         (R_386_NUM, R_X86_64_NUM): Adjust.
6660         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6661         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6662         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6663         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6664         release tlsdesc_table.
6665         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6666         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6667         (elf_machine_rel): Handle R_386_TLS_DESC.
6668         (elf_machine_rela): Likewise.
6669         (elf_machine_lazy_rel): Likewise.
6670         (elf_machine_lazy_rela): Likewise.
6671         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6672         * sysdeps/i386/dl-tlsdesc.S: New file.
6673         * sysdeps/i386/dl-tlsdesc.h: New file.
6674         * sysdeps/i386/tlsdesc.c: New file.
6675         * sysdeps/i386/tlsdesc.sym: New file.
6676         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6677         tlsdesc_table.
6678         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6679         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6680         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6681         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6682         release tlsdesc_table.
6683         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6684         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6685         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6686         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6687         (elf_machine_rela): Likewise.
6688         (elf_machine_lazy_rel): Likewise.
6689         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6690         (__tls_get_addr): Do not declare for non-shared compiles.
6691         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6692         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6693         * sysdeps/x86_64/tlsdesc.c: New file.
6694         * sysdeps/x86_64/tlsdesc.sym: New file.
6695         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6696         tlsdesc_table for both 32- and 64-bit structs.
6698 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6700         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6701         its own function.  This reduces the frame setup costs and more.
6703 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6705         [BZ #3406]
6706         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6707         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6709 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6711         * io/openat.c (__openat_2): Also pass fd to __openat.
6712         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6713         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6715         * string/tester.c (test_memcmp): Add a few more tests.
6716         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6718 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6720         * nscd/cache.c (cache_add): Before returning with failure and this
6721         is the first use of the record, mark it as unusable.
6722         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6723         reporting a failure.
6724         * nscd/grpcache.c: Likewise
6725         * nscd/hstcache.c: Likewise.
6726         * nscd/initgrcache.c: Likewise.
6727         * nscd/pwdcache.c: Likewise.
6728         * nscd/servicescache.c: Likewise.
6730 2008-05-10  Roland McGrath  <roland@redhat.com>
6732         [BZ #6505]
6733         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6735 2008-05-08  David S. Miller  <davem@davemloft.net>
6737         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6739         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6740         (__ieee754_y0l): Likewise.
6741         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6742         (__ieee754_y1l): Likewise.
6743         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6744         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6745         frexpl and ldexpl.  math_private.h provides them and the latter
6746         is not even used.
6747         (__log1pl): Use __frexpl.
6749 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6751         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6752         prototypes.
6753         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6754         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6755         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6756         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6757         af==AF_UNSPEC.
6758         (_nss_nis_gethostbyname4_r): New function.
6759         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6760         Change to also handle af==AF_UNSPEC.
6761         (get_tablename): New function.  Use it to avoid duplication.
6762         (_nss_nisplus_gethostbyname4_r): New function.
6763         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6764         available.
6765         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6766         * nss/nss.h: Define struct gaih_addrtuple.
6767         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6768         af==AF_UNSPEC.
6769         (_nss_files_gethostbyname4_r): New function.
6770         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6771         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6772         calls.
6773         * resolv/res_query.c (__libc_res_nquery): Take two additional
6774         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6775         look up IPv4 and IPv6.
6776         Change all callers.
6777         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6778         for an additional query and answer buffer.  Pass to send_vc and
6779         send_dg.
6780         (send_vc): Send possibly two requests and receive two answers.
6781         (send_dg): Likewise.
6782         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6783         __libc_res_nquery.
6784         (_nss_dns_gethostbyname4_r): New function.
6785         (gaih_getanswer_slice): Likewise.
6786         (gaih_getanswer): Likewise.
6787         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6788         __libc_res_nquery call.
6789         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6790         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6791         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6792         available.
6794 2008-05-05  David S. Miller  <davem@davemloft.net>
6796         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6797         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6799 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6801         Fix termios bit macros.
6802         Move *DLY definitions where they belong, in termios.h.
6803         Add *[0-3] definitions.
6804         Fixes confusion between VT and FF.
6805         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6806         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6807         are already defined to avoid collision with termios.h.
6808         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6809         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6810         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6811         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6812         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6813         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6814         VTDLY, VT0, VT1): New macros.
6815         [__USE_GNU] (OLCUC): Change value of macro.
6816         [__USE_XOPEN] (OFILL): New macro.
6817         [__USE_BSD] (CRTSCTS): Change value.
6818         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6819         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6820         (B7200, B14400, B28800, B76800): New macros.
6822 2008-05-01  David S. Miller  <davem@davemloft.net>
6824         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6825         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6826         (gen-as-const-headers): Add it.
6827         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6828         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6829         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6830         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6832         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6833         six system call parameters.
6834         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6836 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6838         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6839         RUSAGE_LWP.
6840         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6841         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6843 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6845         * stdlib/tst-setcontext.c: Include unistd.h.
6847 2008-04-25  David S. Miller  <davem@davemloft.net>
6849         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6850         Pass "union semun" properly in to sys_ipc, it must be passed
6851         by value, not by reference.
6853 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6855         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6856         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6857         * nscd/connections.c (mem_in_flight): Likewise.
6859         * nscd/nscd.h (dbs): Make hidden.
6861         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6862         Avoid returning -1, return 0 instead.
6864 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6866         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6868 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6870         [BZ #5209]
6871         * sysdeps/unix/sysv/linux/times.c: New file.
6873         [BZ #5381]
6874         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6875         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6876         prototype.
6877         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6878         appropriate mem_in_flight element.
6879         (gc): Take allocations which have not yet been committed to the
6880         database into account.
6881         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6882         Reset mem_in_flight before returning.
6883         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6884         cue it up in mem_in_flight_list.
6885         * nscd/aicache.c: Adjust mempool_alloc call.
6886         * nscd/grpcache.c: Likewise.
6887         * nscd/hstcache.c: Likewise.
6888         * nscd/initgrcache.c: Likewise.
6889         * nscd/pwdcache.c: Likewise.
6890         * nscd/servicescache.c: Likewise.
6891         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6892         of -fpie.
6894         * nscd/connections.c (handle_request): Provide better error message
6895         in case SELinux forbids the service.
6897         * version.h (VERSION): Bump to 2.8.90.
6899 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6901         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6903 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6905         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6906         Also use for 32-bit.
6907         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6908         __nextafter instead of nextafter to avoid local PLT.
6909         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6910         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6912         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6914         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6915         __fe_nomask_env.
6916         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6917         <fenv_libc.h> instead of <fenv.h>.
6918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6921         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6923         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6924         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6925         function from fegetexcept and make old name weak alias.
6926         * include/fenv.h: Declare __fegetexcept.
6927         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6928         fegetexcept.
6929         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6930         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6931         to fetestexcept.
6932         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6933         instead of frexpl to avoid local PLT.
6934         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6935         ilogbl to avoid local PLT.
6936         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6937         instead of ldexpl to avoid local PLT.
6938         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6939         __roundl not roundl to avoid local PLT.
6940         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6941         local PLTs.  Use __sincosl instead of separate sinl and cosl
6942         calls.
6943         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6945         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6946         version for ppc64 to 2.4.21 since without it makecontext will fail.
6948         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6949         to the ABI in use.
6950         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6951         .__tls_get_addr.
6952         [__powerpc64__] (TLS_GD): Likewise.
6954 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6956         [BZ #4997]
6957         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6958         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6959         mantissa.
6960         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6961         Likewise.  Also account for when x is an odd number between 2^52
6962         and 2^53-1.
6963         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6964         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6965         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6966         detect aforementioned erroneous conditions.
6968 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6970         * configure.in: Check for -fno-section-anchors in addition to
6971         -fno-toplevel-reorder.
6973 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6975         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6977         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6978         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6979         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6980         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6981         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6982         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6984 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6986         [BZ #5443]
6987         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6988         * time/alt_digit.c: Likewise.
6989         * wcsmbs/wcsmbsload.c: Likewise.
6991 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6993         * version.h (VERSION): Bump to 2.8.
6995         * timzeone/asia: Update from tzdata2008b.
6996         * timezone/backward: Likewise.
6997         * timezone/europe: Likewise.
6998         * timezone/northamerica: Likewise.
6999         * timezone/southamerica: Likewise.
7000         * timezone/iso3166.tab: Likewise.
7001         * timezone/leapseconds: Likewise.
7002         * timezone/zone.tab: Likewise.
7003         * timezone/private.h: Update from tzcode2008a.
7004         * timezone/zdump.c: Likewise.
7005         * timezone/zic.c: Likewise.
7007 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
7009         [BZ #5741]
7010         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
7011         Define additonal Data Cache Block instruction macros.
7012         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
7013         Replace dcbst with dcbf and sync with sync/isync.
7015 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
7017         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
7018         Always set ELF_RTYPE_CLASS_PLT.
7019         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
7021 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
7023         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
7024         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
7025         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
7026         For ISA 2.01 and later replace mftb with mfspr 268.
7028 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
7030         [BZ #5768]
7031         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
7032         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
7034 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
7036         [BZ #5768]
7037         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
7038         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
7039         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
7040         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
7042 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
7044         * stdlib/tst-makecontext.c (othervar): New variable.
7045         (cf): Test sign extending the argument to long.
7047 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
7049         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
7050         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
7051         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
7052         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
7053         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
7054         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
7055         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
7057 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
7059         * elf/Makefile (tests): Substitute tests-vis-yes here.
7060         (tests-vis-yes): Delete.
7061         (modules-name, modules-vis-yes): Similarly.
7063 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
7065         [BZ #4407]
7066         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7067         Preserve sign in signgamp when x is zero.
7069 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
7071         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
7072         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
7073         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
7074         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7075         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
7076         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
7078 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7080         [BZ #4314]
7081         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
7082         buffers.
7084         [BZ #5209]
7085         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
7086         a reserved error value.
7088         * stdlib/tst-makecontext.c: Change parameter to cf to negative
7089         value to check for correct sign extension.
7091         [BZ #5436]
7092         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7093         Copy 64-bit parameter values even though this is not required in
7094         the standard.
7096         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
7097         PC save.
7099 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
7101         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
7102         PC save.
7104 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
7106         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
7108 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
7110         [BZ #5998]
7111         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
7112         in line-buffered stream failed.
7113         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7115 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
7117         [BZ #6024]
7118         * scripts/abi-versions.awk: If the version specified by
7119         --enable-oldest-abi is older than the first version for this
7120         architecture, use the default version.
7122         * locale/programs/ld-collate.c (collate_read): Ignore script lines
7123         as well when ignoring the whole category.
7125 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7127         [BZ #6042]
7128         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
7129         ETHERTYPE_* definitions.
7130         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
7132 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7134         * stdlib/mbtowc.c (__no_r_state): Remove.
7135         (mbtowc): New static state variable.  Use it instead of
7136         __no_r_state.
7137         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
7138         (__wctomb_state): New hidden variable.
7139         (wctomb): Use __wctomb_state instead of __no_r_state.
7140         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
7141         (__wctomb_state): New extern decl.
7142         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
7144 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
7146         [BZ #5475]
7147         * resolv/res_init.c: Handle scope IDs in resolv.conf.
7149 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
7151         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
7153 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
7155         * po/nl.po: Update from translation team.
7157 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
7159         [BZ #6007]
7160         * string/strfry.c: Handle empty strings again.
7162 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7164         [BZ #5443]
7165         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7166         before looking for translation.
7167         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7168         * locale/freelocale.c: Likewise.
7169         * locale/newlocale.c: Likewise.
7170         * locale/setlocale.c: Likewise.
7171         Based partially on a patch by ryo@np.css.fujitsu.com.
7173 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
7175         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7176         acquiring wrlock.  Do conv_tab allocation while holding lock.
7177         * intl/Makefile: Add rules to build and run tst-gettext6.
7178         * intl/tst-gettext6.c: New test.
7179         * intl/tst-gettext6.sh: New file.
7181 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7183         * po/nl.po: Update from translation team.
7185         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7186         provided through st_blksize, try the default size before giving up.
7188 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7190         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7192         [BZ #5939]
7193         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7195         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7196         error message.  POSIX today does not require the messages to be in
7197         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7199         [BZ #5979]
7200         * sunrpc/auth_unix.c: Unify printed strings.
7201         * sunrpc/clnt_tcp.c: Likewise.
7202         * sunrpc/clnt_udp.c: Likewise.
7203         * sunrpc/clnt_unix.c: Likewise.
7204         * sunrpc/svc_tcp.c: Likewise.
7205         * sunrpc/svc_udp.c: Likewise.
7206         * sunrpc/svc_unix.c: Likewise.
7207         * sunrpc/xdr.c: Likewise.
7208         * sunrpc/xdr_array.c: Likewise.
7209         * sunrpc/xdr_rec.c: Likewise.
7210         * sunrpc/xdr_ref.c: Likewise.
7211         * locale/programs/ld-time.c (time_finish): Unify messages.
7212         * locale/programs/locfile.c (handle_copy): Fix typo.
7213         * nscd/nscd.c (options): Fix typo.
7215         [BZ #5995]
7216         * stdlib/strtod_l.c: Use correct sign for result in one more
7217         underflow case.
7218         Patch by Eric Blake <ebb9@byu.net>.
7220 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7222         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7223         and creat system calls.
7224         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7225         call.
7226         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7227         system calls.
7228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7229         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7230         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7232 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7234         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7235         <linux/limits.h> has defined it.
7236         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7237         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7238         headers.
7239         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7240         it instead of ARG_MAX.
7242 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7244         * posix/gai.conf: Fix comment for scope nullbits.
7245         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7246         default to 128 bits for v4 mapped addresses.
7248 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7250         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7251         ptrace call to get the ieee_instruction_pointer from the kernel.
7252         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7253         ptrace call to set the ieee_instructtion_pointer.
7254         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7255         Add comment that ieee_instruction_pointer is always 0.
7257 2008-03-09  Andreas Jaeger  <aj@suse.de>
7259         [BZ #5857]
7260         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7261         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7262         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7264         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7265         (rint_test): Likewise.
7267 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7269         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7270         call.
7271         (__nisfind_server): Similar for open readColdStartFile call.
7272         Patch partially by Jim Meyering.
7273         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7274         around internal_setent call.
7276         * po/vi.po: New Vietnamese translation.
7278         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7279         ADJ_OFFSET_SS_READ.
7281         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7282         remove CLONE_STOPPED.
7284 2008-02-10  Jim Meyering  <meyering@redhat.com>
7286         Remove useless "if" before "free":
7287         * elf/ldconfig.c (parse_conf_include): Likewise.
7288         * gmon/gmon.c (weak_alias): Likewise.
7289         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7290         * inet/rcmd.c (__validuser2_sa): Likewise.
7291         * intl/bindtextdom.c (set_binding_values): Likewise.
7292         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7293         * libio/genops.c (save_for_backup): Likewise.
7294         * libio/wgenops.c (save_for_wbackup): Likewise.
7295         * locale/programs/ld-collate.c (collate_read): Likewise.
7296         * locale/programs/linereader.c (get_string): Likewise.
7297         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7298         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7299         * resolv/res_debug.c (do_section): Likewise.
7300         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7301         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7302         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7303         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7304         * time/tzset.c (tzset_internal): Likewise.
7306 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7308         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7309         of ASSEMBLER.
7311 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7313         [BZ #5903]
7314         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7315         not stream for output file.  Open output file here.
7316         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7317         and output file name.
7318         (process_fd): Likewise.
7319         (process_file): Likewise.
7320         (main): Adjust callers of changed functions.
7321         * iconv/iconv_prog.h: Adjust prototype.
7323 2008-03-09  Andreas Jaeger  <aj@suse.de>
7325         [BZ #5753]
7326         * sysdeps/ia64/ieee754.h: Use protected namespace
7327         __BIG_ENDIAN/__LITTLE_ENDIAN.
7328         * sysdeps/ieee754/ieee754.h: Likewise.
7329         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7331 2008-03-08  Roland McGrath  <roland@frob.com>
7333         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7334         ignore a signal that came from a machine exception, treat it as a
7335         fatal core-dump signal instead.
7336         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7338         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7339         Clear DF bit in thread state's eflags.
7340         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7342 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7344         [BZ #5774]
7345         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7346         of NAN(...) sequence.
7347         * stdlib/Makefile (tests): Add tst-strtod6.
7348         * stdlib/tst-strtod6.c: New file.
7350         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7352         [BZ #5762]
7353         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7354         putting offending option character in quotes.  Clean up error
7355         messages.
7356         * po/be.po: Adjust msgstr in translation file.
7357         * po/bg.po: Likewise.
7358         * po/ca.po: Likewise.
7359         * po/cs.po: Likewise.
7360         * po/da.po: Likewise.
7361         * po/de.po: Likewise.
7362         * po/es.po: Likewise.
7363         * po/fr.po: Likewise.
7364         * po/hr.po: Likewise.
7365         * po/ko.po: Likewise.
7366         * po/nl.po: Likewise.
7367         * po/rw.po: Likewise.
7368         * po/sk.po: Likewise.
7369         * po/sv.po: Likewise.
7370         * po/tr.po: Likewise.
7371         * po/zh_CN.po: Likewise.
7372         * po/zh_TW.po: Likewise.
7374         [BZ #5760]
7375         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7376         Patch by Roland Bless <roland@bless.de>.
7378         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7379         .o file.
7380         * elf/Makefile (routines): Add dl-sysdep.
7381         (elide-routines.os): Likewise.
7383 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7385         [BZ #5786]
7386         * elf/dl-sysdep.c: Undefine ROUND after use.
7387         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7388         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7389         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7390         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7391         to ...
7392         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7393         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7394         if necessary.
7395         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7397         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7398         _dl_tls_get_addr_soft element.
7399         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7400         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7401         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7402         GLRO.
7403         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7404         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7405         of internal_function.
7407         * stdlib/Makefile (aux): Add tens_in_limb.
7408         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7409         * stdlib/tens_in_limb.c: ...here.  New file.
7411         [BZ #5778]
7412         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7413         __statfs_chown_restricted.
7414         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7415         for _PC_CHOWN_RESTRICTED.
7416         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7417         Implement __statfs_chown_restricted.
7418         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7419         _POSIX_CHOWN_RESTRICTED value to zero.
7420         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7421         defined to zero.
7423         * sysdeps/x86_64/rtld-memset.c: New file.
7425 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7427         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7429         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7430         Barcelona machine.  Make default fall through branch of
7431         __x86_64_preferred_memory_instruction check as the integer code path.
7433 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7435         * sysdeps/x86_64/cacheinfo.c
7436         (__x86_64_preferred_memory_instruction): New variable.
7437         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7439         * sysdeps/x86_64/memset.S: Rewrite.
7441 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7443         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7444         __obstack_printf_chk): New prototypes.
7445         (__vasprintf_chk, __vdprintf_chk,
7446         __obstack_vprintf_chk): Likewise.
7447         Add libc_hidden_proto.
7448         * libio/obprintf.c
7449         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7450         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7451         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7452         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7453         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7454         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7455         __obstack_vprintf_chk): New prototypes.
7456         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7457         obstack_vprintf): New inlines.
7458         * debug/dprintf_chk.c: New file.
7459         * debug/vdprintf_chk.c: New file.
7460         * debug/asprintf_chk.c: New file.
7461         * debug/vasprintf_chk.c: New file.
7462         * debug/obprintf_chk.c: New file.
7463         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7464         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7465         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7466         @@GLIBC_2.8.
7467         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7468         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7469         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7470         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7471         libc_hidden_proto.
7472         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7473         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7474         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7475         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7476         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7477         @@GLIBC_2.8.
7478         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7479         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7480         obstack_vprintf_chk.
7481         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7482         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7483         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7484         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7485         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7486         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7488 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7490         [BZ #5779]
7491         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7492         Patch by Roy Marples <roy@marples.name>.
7494         [BZ #5736]
7495         * malloc/malloc.c: Fix typo in comment.
7497         [BZ #5627]
7498         * locale/iso-639.def: Add Shuswap.
7500 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7502         [BZ #5790]
7503         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7504         overwrite *h_errnop/*errnop values from getanswer_r in case of
7505         failure.
7507 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7509         [BZ #5818]
7510         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7511         (verify_persistent_db): Remove one unnecessary test and add a new one
7512         for bad configuration.
7513         (nscd_init): Improve error reported when persistent database cannot
7514         be reused.
7515         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7516         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7517         .suggested_module and .max_db_size and case config file says the
7518         values are zero.
7519         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7521         [BZ #5854]
7522         * nis/ypclnt.c (yp_order): Fix handling of return value of
7523         do_ypcall_tr call.
7524         Patch by Jeff Moyer <jmoyer@redhat.com>.
7526         * po/fr.po: Update from translation team.
7528 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7529             Carlos O'Donell <carlos@systemhalted.org>
7531         [BZ #5012]
7532         * FAQ.in: Describe why glibc needs to be compiled with
7533         optimization.
7535 2008-02-19  Roland McGrath  <roland@redhat.com>
7537         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7539 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7541         [BZ #5737]
7542         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7543         __USE_MISC is defined.
7545 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7547         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7548         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7549         sys/timerfd.h.
7550         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7551         timerfd_gettime, timerfd_settime.
7552         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7553         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7555 2008-02-08  Roland McGrath  <roland@redhat.com>
7557         * elf/elf.h (NT_PPC_SPE): New macro.
7559 2008-02-06  Roland McGrath  <roland@redhat.com>
7561         * Makerules ($(common-objpfx)sysd-rules):
7562         Depend on $(sysdep-makeconfigs).
7564 2008-01-31  Roland McGrath  <roland@redhat.com>
7566         [BZ #5442]
7567         * configure.in: Use -print-file-name if it yields a directory,
7568         for each of include and include-fixed.
7569         * configure: Regenerated.
7571         * Makeconfig (sysd-rules-targets): New variable.
7572         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7573         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7575 2008-01-30  Roland McGrath  <roland@redhat.com>
7577         * manual/libc.texinfo: Update back-cover text.
7579         * elf/elf.h (NT_386_TLS): New macro.
7581 2008-01-29  Roland McGrath  <roland@redhat.com>
7583         * Makeconfig (sysd-rules-patterns): New variable.
7584         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7585         (check-inhibit-asm): New canned sequence, replaces ...
7586         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7587         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7588         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7589         (CFLAGS-rtld): Variable removed.
7591 2008-01-24  Roland McGrath  <roland@redhat.com>
7593         * configure.in: Let configure fragments set base_os.
7594         * configure: Regenerated.
7596 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7598         * po/ko.po: Update from translation team.
7600 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7602         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7604 2008-01-12  Andreas Jaeger  <aj@suse.de>
7606         [BZ #5040]
7607         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7608         Add EPOLLRDHUP.
7610 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7612         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7613         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7614         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7616 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7618         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7619         * elf/dl-close.c (_dl_close): Check for it.
7620         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7621         (_dl_allocate_static_tls): Likewise.
7622         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7623         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7624         to it.
7625         * elf/tst-tls16.c: New file.
7626         * elf/tst-tlsmod16a.c: New file.
7627         * elf/tst-tlsmod16b.c: New file.
7628         * elf/Makefile: Add rules to build and run tst-tls16.
7630 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7632         [BZ #5628]
7633         * bits/shm.h: Fix comment describing shmid_ds.
7634         * sysdeps/gnu/bits/shm.h: Likewise.
7635         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7636         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7637         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7638         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7639         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7640         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7641         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7642         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7643         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7645         [BZ #5607]
7646         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7647         prototypes.
7648         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7649         additional suffixes.
7650         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7651         Add optional functions mq_timedreceive and mq_timedsend.
7652         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7653         * conform/data/pthread.h-data: Fix prototype of
7654         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7655         * conform/data/semaphore.h-data: Allow time.h definitions.
7656         * conform/data/signal.h-data: Likewise.
7657         * conform/data/stdio.h-data: getw and putw are not required in v6.
7658         * conform/data/stdlib.h-data: Change setstate prototype.
7659         * conform/data/string.h-data: Fix strerror_r prototype.
7660         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7661         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7662         Fix readlink prototype.
7663         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7664         in6addr_loopback.
7665         * inet/netinet/in.h: Cleanup namespace.
7666         * posix/regex.h: Likewise.
7667         * resolv/netdb.h: Likewise.
7668         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7669         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7670         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7671         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7672         of names of in in6_addr.
7673         (default_precedence): Likewise.
7674         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7675         NULL definition.
7677 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7679         * conform/data/fmtmsg.h-data: Add missing allows.
7680         * conform/data/ftw.h-data: Likewise.
7681         * conform/data/inttypes.h-data: Likewise.
7682         * conform/data/math.h-data: Likewise.
7683         * conform/data/signal.h-data: Likewise.
7684         * conform/data/net/if.h-data: Likewise.
7685         * conform/data/netinet/in.h-data: Likewise.
7686         * conform/data/sys/socket.h-data: Likewise.
7688         [BZ #5614]
7689         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7690         (__strtok_r): Simplify.
7691         * string/tester.c (test_strtok_r): Add test case for futile search
7692         with single-character seach string.
7694 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7696         * po/ko.po: Update from translation team.
7698 2008-01-11  Andreas Jaeger  <aj@suse.de>
7700         [BZ #5600]
7701         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7702         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7703         kernel header.
7705 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7707         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7708         native interface lookup in all the relevant places.
7710 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7711             Ulrich Drepper  <drepper@redhat.com>
7713         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7714         field.  Use sockaddr_in6 for source_addr.
7715         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7716         (match_prefix): Likewise.
7717         (get_label): Likewise.
7718         (get_precedence): Likewise.
7719         (rfc3484_sort): Change to use indirect access to results array.
7720         Adjust to use of sockaddr_in6.  Replace service_order test with
7721         simple index comparison.
7722         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7723         service_order field.  Adjust qsort_t calls.  Access sorted result
7724         array indirectly through order array.
7725         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7726         * posix/tst-rfc3484-2.c: Likewise.
7727         * posix/tst-rfc3484-3.c: Likewise.
7729 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7731         [BZ #5541]
7732         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7733         pollfd structures.
7734         Patch by André Cruz.
7736         [BZ #5545]
7737         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7738         (clnt_spcreateerror): Likewise.
7740         [BZ #5553]
7741         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7742         (public_mEMALIGn): Likewise.
7743         Patch mostly by Daniel Jacobowitz.
7745 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7747         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7748         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7749         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7750         * stdlib/tst-makecontext2.c: New test.
7752 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7754         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7755         defined.
7756         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7757         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7758         transliteration hooks and REINIT_PARAMS afterwards.
7759         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7760         status.
7761         (REINIT_PARAMS): Define.
7762         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7763         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7764         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7765         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7766         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7767         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7768         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7769         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7770         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7771         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7772         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7773         * iconvdata/tst-iconv7.c: New test.
7775 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7777         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7779 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7781         [BZ #5112]
7782         * nscd/connections.c (restart): Fix condition.
7784 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7786         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7787         __ctype_toupper_loc): Add __THROW.
7789 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7791         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7792         recognition of interface family.
7794         * posix/getconf.c: Update copyright year.
7795         * nss/getent.c: Likewise.
7796         * iconv/iconvconfig.c: Likewise.
7797         * iconv/iconv_prog.c: Likewise.
7798         * elf/ldconfig.c: Likewise.
7799         * catgets/gencat.c: Likewise.
7800         * csu/version.c: Likewise.
7801         * elf/ldd.bash.in: Likewise.
7802         * elf/sprof.c (print_version): Likewise.
7803         * locale/programs/locale.c: Likewise.
7804         * locale/programs/localedef.c: Likewise.
7805         * nscd/nscd.c (print_version): Likewise.
7806         * debug/xtrace.sh: Likewise.
7807         * malloc/memusage.sh: Likewise.
7808         * malloc/mtrace.pl: Likewise.
7809         * debug/catchsegv.sh: Likewise.
7811 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7813         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7814         second lookup.
7816 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7818         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7819         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7821 2007-12-17  Roland McGrath  <roland@redhat.com>
7823         * inet/ether_line.c (ether_line): Remove unused variable.
7825 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7827         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7828         and winp.
7829         * login/openpty.c (openpty): Likewise.
7830         * login/pty.h (openpty, forkpty): Likewise.
7831         * manual/terminal.texi (openpty, forkpty): Likewise.
7833 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7835         * malloc/malloc.c (public_cALLOc): For arenas other than
7836         main_arena, count all bytes inside the mprotect_size range of the
7837         heap as uninitialized.
7839 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7841         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7842         executable stacks.
7844         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7845         mTRIm for all of them.
7846         (mTRIm): Additionally iterate over all free blocks and use madvise
7847         to free memory for all those blocks which contain at least one
7848         memory page.
7849         * malloc/tst-trim1.c: New file.
7850         * malloc/Makefile (tests): Add tst-trim1.
7852         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7854 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7856         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7857         First cast argument to long
7858         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7859         Return long.
7860         (__vdso_clock_gettime): Likewise.
7861         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7862         return long.
7864 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7866         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7867         * locale/nl_langinfo_l.c: Real implementation, copied from
7868         nl_langinfo.c.
7869         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7871 2007-12-01  Jim Meyering  <meyering@redhat.com>
7873         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7874         that would inhibit utf8-optimization of a regexp containing line-
7875         or buffer-anchors, e.g., `^', `$'.
7877 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7879         * time/bug-getdate1.c (do_test): Don't use century values which
7880         aren't valid on 32-bit systems.
7882 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7884         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7885         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7886         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7887         __strcat_g, __strncat_g): Add __asm__.
7889 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7891         [BZ #5477]
7892         * io/fchmodat.c: Fix typo in stub_warning use.
7893         Patch by Petr Salinger.
7895 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7897         * iconvdata/hp-thai8.c: New file.
7898         * iconvdata/Makefile: Add rules for hp-thai8.c.
7899         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7900         * iconvdata/gconv-modules: Likewise.
7902         [BZ #5464]
7903         * iconvdata/hp-greek8.c: New file.
7904         * iconvdata/Makefile: Add rules for hp-greek8.c.
7905         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7906         * iconvdata/gconv-modules: Likewise.
7908         [BZ #5463]
7909         * iconvdata/hp-turkish8.c: New file.
7910         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7911         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7912         * iconvdata/gconv-modules: Likewise.
7914         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7915         (shrink_heap): ... this new function.
7916         (heap_trim): Call shrink_heap instead of grow_heap.
7918         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7919         case don't call alloc_perturb.
7921 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7923         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7924         possible.
7925         * sysdeps/unix/sysv/linux/kernel-features.h
7926         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7927         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7929 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7931         [BZ #5424]
7932         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7933         * stdio-common/Makefile (tests): Add bug22.
7934         * stdio-common/bug22.c: New file.
7936         [BZ #5451]
7937         * time/getdate.c: Fix filling in default values.
7938         * time/bug-getdate1.c: New file.
7939         * time/Makefile: Add rules to build and run bug-getdate1.
7941         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7942         * iconvdata/ebcdic-es.c: Likewise.
7943         * iconvdata/ebcdic-es-a.c: Likewise.
7944         * iconvdata/ebcdic-uk.c: Likewise.
7945         * iconvdata/iso8859-16.c: Likewise.
7946         * iconvdata/viscii.c: Likewise.
7947         * iconvdata/iso8859-9e.c: Likewise.
7948         * iconvdata/Makefile: Adjust appropriately.
7950         [BZ #5428]
7951         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7952         __need_wint_t.
7954 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7956         [BZ #5427]
7957         * iconvdata/hp-roman9.c: New file.
7958         * iconvdata/Makefile: Add rules for hp-roman9.c.
7959         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7960         * iconvdata/gconv-modules: Likewise.
7962         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7963         * iconvdata/Makefile: Adjust appropriately.
7965         [BZ #5441]
7966         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7967         structure, it's allocated with alloca.
7968         * stdio-common/Makefile (tests): Add bug21.
7969         * stdio-common/bug21.c: New file.
7971 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7973         [BZ #5452]
7974         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7975         keyword for gcc's braced-groups.
7977 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7979         [BZ #5454]
7980         * inet/ether_line.c: Strip hostname of whitespaces.
7981         * inet/Makefile (tests): Add tst-ether_line.
7982         * inet/tst-ether_line.c: New file.
7984 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7986         [BZ #5439]
7987         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7989         [BZ #5435]
7990         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7992         * stdlib/tst-setcontext.c: Catch the case where the links gets
7993         messed up and we do not reach main again.
7995         * po/ca.po: Update from translation team.
7997 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7999         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
8000         * posix/regex.h (REG_ENOSYS): Likewise.
8001         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
8003 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
8005         * nscd/nscd.h (MAX_STACK_USE): Define.
8006         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
8007         (gc): Initialize stack_used based on allocation in prune_cache.
8008         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
8009         Clear array before use.
8011         * nscd/aicache.c (addhstaiX): Update statistics counter in case
8012         memory allocation failed.
8013         * nscd/hstcache.c (cache_addhst): Likewise.
8014         * nscd/grpcache.c (cache_addgr): Likewise.
8015         * nscd/servicescache.c (cache_addserv): Likewise.
8016         * nscd/pwdcache.c (cache_addpw): Likewise.
8017         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8019 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
8021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
8022         and creat system calls.
8024         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
8026 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8028         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
8029         Add netiucv/iucv.h.
8030         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
8031         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
8032         protocol.
8033         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
8034         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
8035         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
8037 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8039         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
8040         strncat): Define as macros to avoid compile errors.
8042         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
8043         creat entries.
8045 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
8047         [BZ #5382]
8048         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
8049         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
8050         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
8051         overflow it.
8052         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8054         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
8055         Return zero in case the thread library is not NPTL.
8057         [BZ #5375]
8058         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
8059         initializing interface list.
8061         [BZ #5378]
8062         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
8063         use result of nss_getgrgid_r if nothing was found.  For other
8064         error return with a failure.
8065         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
8067         * locale/programs/ld-collate.c (collate_read): Fix loop to match
8068         macro name.
8070 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8072         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
8073         (get_scope): For IPv4 scope, use scopes table.
8074         (fini): Free scopes table if necessary.
8075         (free_scopelist): New function.
8076         (scopecmp): New function.
8077         (gaiconf_init): Also handle scopev4 entries.
8078         * posix/tst-rfc3484.c (do_test): Initialize scopes.
8079         * posix/tst-rfc3484-2.c (do_test): Likewise.
8080         * posix/gai.conf: Document scopev4 defaults.
8081         * posix/Makefile (tests): Add tst-rfc3484-3.
8082         * posix/tst-rfc3484-3.c: New file.
8084         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
8085         Teredo tunnels.
8086         * posix/gai.conf: Update for current default tables.
8088 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
8090         * po/tr.po: Update from translation team.
8092 2007-11-18  Roland McGrath  <roland@frob.com>
8094         * manual/arith.texi (Remainder Functions): Spelling fix.
8095         From Shaun Silk <genix@mysoul.com.au>.
8097         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
8099 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
8101         * po/zh_CN.po: Update from translation team.
8103         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8104         Add sys/signalfd.h and sys/eventfd.h.
8106 2007-11-15  Bruno Haible  <bruno@clisp.org>
8108         [BZ #5346]
8109         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
8110         union.
8111         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
8112         (DCIGETTEXT): Change the allocation of the 'search' variable so that
8113         it needs only fixed stack space. Delay the initialization of
8114         msgid_len until it is needed.
8116 2007-11-15  Andreas Jaeger  <aj@suse.de>
8118         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
8119         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
8121 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
8123         * po/ko.po: Update from translation team.
8125 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
8127         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
8128         significantly.  The device type is also part of the ifinfomsg data.
8130         * po/sv.po: Update from translation team.
8131         * po/nl.po: Likewise.
8133         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
8134         to wake up in 24 hours.
8136         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
8138 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
8140         * po/cs.po: Update from translation team.
8141         * po/pl.po: Likewise.
8143         * include/ifaddrs.h: Remove in6ai_temporary.
8144         (struct in6addrinfo): Add index element.
8145         Declare __check_native.
8146         * inet/Makefile (aux): Add check_native.
8147         * sysdeps/unix/sysv/linux/check_native.c: New file.
8148         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
8149         IFA_F_TEMPORARY.  Pass back ifa_index.
8150         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
8151         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
8152         call __check_native if necessary.
8153         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
8154         to sort addresses.  Pass information about the results.
8155         * posix/tst-rfc3484.c: Adjust for addition of index field and change
8156         of rfc3484_sort interface.
8157         * posix/tst-rfc3484-2.c: Likewise.
8159         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
8160         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
8161         for _quicksort.
8162         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8163         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
8164         on as third parameter to compare function and _quicksort.
8165         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8166         to the compare function.
8167         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8168         * Versions.def: Add GLIBC_2.8 for libc.
8170         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8171         * posix/tst-rfc3484-2.c: Likewise.
8173         * include/kernel-features.h: Moved to...
8174         * sysdeps/mach/hurd/kernel-features.h: ...here.
8176 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8178         * sysdeps/i386/i586/memcpy_chk.S: New file.
8179         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8180         * sysdeps/i386/i586/memset_chk.S: Likewise.
8182 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8184         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8185         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8186         list of interfaces.  Also store prefix length.
8187         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8188         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8189         prefix if source and destination address are in the same subnet.
8190         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8191         Always look for matching record in in6ai list.
8192         Correct source_addr_len value for IPv6->IPv4 converted records.
8194 2007-11-11  Roland McGrath  <roland@frob.com>
8196         * include/kernel-features.h: New file.
8198 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8200         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8201         complications for 64-bit platforms.
8203         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8204         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8205         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8206         open64_2.
8207         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8208         entries.
8209         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8210         * sysdeps/wordsize-64/alphasort.c: New file.
8211         * sysdeps/wordsize-64/alphasort64.c: New file.
8212         * sysdeps/wordsize-64/fseeko.c: New file.
8213         * sysdeps/wordsize-64/fseeko64.c: New file.
8214         * sysdeps/wordsize-64/ftello.c: New file.
8215         * sysdeps/wordsize-64/ftello64.c: New file.
8216         * sysdeps/wordsize-64/ftw.c: New file.
8217         * sysdeps/wordsize-64/ftw64.c: New file.
8218         * sysdeps/wordsize-64/iofgetpos.c: New file.
8219         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8220         * sysdeps/wordsize-64/iofopen.c: New file.
8221         * sysdeps/wordsize-64/iofopen64.c: New file.
8222         * sysdeps/wordsize-64/iofsetpos.c: New file.
8223         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8224         * sysdeps/wordsize-64/lockf.c: New file.
8225         * sysdeps/wordsize-64/lockf64.c: New file.
8226         * sysdeps/wordsize-64/mkostemp.c: New file.
8227         * sysdeps/wordsize-64/mkostemp64.c: New file.
8228         * sysdeps/wordsize-64/mkstemp.c: New file.
8229         * sysdeps/wordsize-64/mkstemp64.c: New file.
8230         * sysdeps/wordsize-64/scandir.c: New file.
8231         * sysdeps/wordsize-64/scandir64.c: New file.
8232         * sysdeps/wordsize-64/tmpfile.c: New file.
8233         * sysdeps/wordsize-64/tmpfile64.c: New file.
8234         * sysdeps/wordsize-64/versionsort.c: New file.
8235         * sysdeps/wordsize-64/versionsort64.c: New file.
8236         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8237         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8238         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8239         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8240         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8241         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8242         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8243         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8244         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8245         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8246         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8247         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8249         * crypt/sha256-crypt.c: Fix a comment.
8250         * crypt/sha512-crypt.c: Likewise.
8252 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8254         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8256 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8258         [BZ #5277]
8259         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8260         because output buffer is too small break, don't loop.
8261         * iconvdata/Makefile (tests): Add bug-iconv6.
8262         * iconvdata/bug-iconv6.c: New file.
8264 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8266         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8267         with size_t type.
8268         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8269         size_t.  Add casts where needed.
8271         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8272         old headers, don't call avc_has_perm if we don't have the
8273         permission information.
8275 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8277         * elf/rtld.c (dl_main): Use the page size to find the map start.
8279 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8281         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8282         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8284         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8285         when the lookup call failed.
8287         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8288         Add prune_cond and wakeup_time.
8289         (CACHE_PRUNE_INTERNAL): Define.
8290         Update declarations of prune_cache and setup_thread.
8291         * nscd/connections.c (dbs): Update initializers.
8292         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8293         (nscd_init): Default number of threads is now 4.
8294         (invalidate_cache): Take lock before calling prune_cache.
8295         (handle_request): If SELinux forbids the request, say so.
8296         (readylist_cond): Use static initializer.
8297         (nscd_run_prune): New function.  Used only by pruning threads.
8298         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8299         here.
8300         (fd_ready): Update nscd_run reference.
8301         (start_threads): No need to initialize readylist_cond.
8302         Start pruning threads separately.
8303         * nscd/nscd_setup_thread.c: Change return value type to int and always
8304         return 0.
8305         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8306         to int and return nonzero value if we can use the TID address hack.
8307         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8308         the database is later than the new entry's timeout, update the
8309         wakeup time and wake the cleanup thread.
8310         (prune_cache): Return seconds the next entry in the database is still
8311         valid.  Remove locking for pruning here.
8312         * nscd/nscd.conf: Document default number of threads.
8314 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8316         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8317         stack is properly aligned for the target function.
8318         Correct unwind info.
8320         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8321         when using auditing libraries.
8323 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8325         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8326         _nss_dns_getnetbyaddr2_r.
8327         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8328         extra parameter to getanswer_r.
8329         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8330         _nss_dns_getnetbyaddr2_r.
8332         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8333         gethstbynm3_r.
8334         * nscd/gethstbynm2_r.c: Remove.
8335         * nscd/gethstbynm3_r.c: New file.
8336         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8337         __gethostbyaddr_r.
8338         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8339         __gethostbyaddr_r compatibility wrapper.
8340         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8341         determining timeout of entry.
8342         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8343         __gethostbyaddr2_r.
8344         (addhstbyX): Pass reference to variable for TTL to lookup and
8345         cache_addhst.
8346         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8347         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8348         and __nss_next2.  Remove __nss_services_lookup.
8349         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8350         Add compat wrapper.
8351         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8352         __nss_next2.
8353         * nss/getXXent_r.c: Likewise.
8354         * nss/getnssent_r.c: Likewise.
8355         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8356         does not exist in module, try the optional second name.
8357         (__nss_next2): New function.
8358         (__nss_next): Now wrapper around __nss_next2.
8359         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8360         Declare __nss_next2.
8361         Adjust definition of db_lookup_function type.
8362         * nss/service-lookup.c: Define NO_COMPAT.
8363         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8364         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8365         * inet/ether_ntoh.c: Likewise.
8366         * sunrpc/netname.c: Likewise.
8367         * sunrpc/publickey.c: Likewise.
8368         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8369         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8370         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8371         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8372         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8374         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8376         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8378 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8380         [BZ #5204]
8381         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8382         * crypt/sha512c-test.c: Likewise.
8384         [BZ #5225]
8385         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8386         to keep track of end of %[ format string element.
8387         * stdio-common/Makefile (tests): Add bug20.
8388         * stdio-common/bug20.c: New file.
8390         [BZ #5222]
8391         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8392         path elements in counting mode.
8394 2007-10-27  Andreas Jaeger  <aj@suse.de>
8396         [BZ #5040]
8397         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8399         [BZ #3112]
8400         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8401         (__cleanup): Free shared library when exiting.
8402         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8403         (__cleanup): Free shared library when exiting.
8405 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8407         [BZ #2549]
8408         * math/libm-test.inc (check_float_internal): Support
8409         denormalized return.
8411 2007-10-23  Andreas Jaeger  <aj@suse.de>
8413         [BZ #5208]
8414         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8415         __LONG_LONG_PAIR to handle little endian byte order.
8416         Suggested by abhishekrai@google.com
8418 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8420         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8422 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8424         * nscd/cache.c (prune_cache): Move test for modified file outside
8425         of locking.
8427 2007-10-21  Andreas Jaeger  <aj@suse.de>
8429         * manual/texinfo.tex: Update to latest version.
8431         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8433         * manual/arith.texi (Status bit operations): Fix formatting.
8435         * manual/errno.texi (Error Messages): Fix formatting.
8437         * manual/sysinfo.texi (System Parameters): Fix formatting.
8439         * manual/libc.texinfo: Update VERSION and UPDATED.
8441 2007-10-19  Roland McGrath  <roland@redhat.com>
8443         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8445 2007-10-06  David S. Miller  <davem@davemloft.net>
8447         * configure.in: Add sparcv9v2 and sparc64v2.
8448         * scripts/config.sub: Likewise.
8449         * configure: Regenerate.
8450         * elf/elf.h (HWCAP_SPARC_N2): New.
8451         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8452         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8453         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8454         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8455         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8456         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8457         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8459 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8461         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8462         even if the poll result indicates there is data to read.
8463         Patch by Jeff Moyer <jmoyer@redhat.com>.
8465 2007-10-18  Roland McGrath  <roland@redhat.com>
8467         * elf/elf.h (NT_PPC_VMX): New macro.
8469 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8471         * version.h (VERSION): Set to 2.7.90.
8473 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8475         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8476         weak_alias.
8478 2007-10-17  Roland McGrath  <roland@frob.com>
8480         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8481         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8483 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8485         * version.h (VERSION): Bump to 2.7.
8486         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8488         [BZ #5186]
8489         * time/tzset.c (__tz_convert): Don't force testing for a change of
8490         TZ if not called from localtime.  But then also see whether the
8491         file changed, in case __use_tzfile is set.
8493         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8494         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8495         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8496         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8497         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8498         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8499         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8500         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8502 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8504         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8505         and admin selects to be able to replace the gai.conf file, lock
8506         data structures around the qsort call.
8508 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8510         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8511         new memset.
8512         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8513         too high for the improvements.  Implement bzero unconditionally for
8514         use in libc.
8516 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8517             Jakub Jelinek  <jakub@redhat.com>
8519         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8520         even when time_t is 32-bit.
8521         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8522         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8523         always set after the search.
8525 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8527         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8528         unreachable code on 32-bit machines.
8530 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8532         [BZ #5184]
8533         * time/strftime_l.c: Include stdbool.h.
8534         (my_strftime): New wrapper, old function renamed to...
8535         (__strftime_internal): ... new function.  Add tzset_called
8536         argument, pass it down to recursive calls, don't call tzset ()
8537         if already true, set to true after call to tzset ().
8539 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8541         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8542         into account when copying TZ string.
8544 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8546         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8547         num_transition rather than num_transitions - 1.
8549 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8551         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8552         PIC indirect jump.
8554         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8555         a local label rather than HIDDEN_JUMPTARGET.
8557 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8559         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8560         (init_cacheinfo): Initialize it.
8561         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8562         Always define bzero.
8563         Remove non-glibc code.
8564         * sysdeps/x86_64/bzero.S: Make an empty file.
8566 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8568         * sysdeps/x86_64/cacheinfo.c
8569         (__x86_64_preferred_memory_instruction): New.
8570         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8572         * sysdeps/x86_64/memset.S: Rewrite.
8574 2007-10-15  Roland McGrath  <roland@redhat.com>
8576         * po/libc.pot: Regenerated.
8578 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8580         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8581         pointers.
8583         [BZ #3425]
8584         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8585         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8586         address record to T_A/T_AAAA requests.
8588 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8590         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8592         * posix/glob.c: Add some branch prediction throughout.
8594         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8595         read from nscd.
8597         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8598         service_order.
8599         (rfc3484_sort): Make sure that even if qsort doesn't support
8600         stable sorting out sorting here is stable by comparing service_order.
8601         (getaddrinfo): Initialize service_order.
8602         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8603         service_order field to sorting structure.
8604         * posix/tst-rfc3484-2.c (do_test): Likewise.
8606         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8607         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8608         __tzset_parse_tz and updating of daylight, timezone, tzname into
8609         update_vars.
8610         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8611         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8612         happens in __tz_compute.
8613         * time/tzfile.c (__tzfile_read): Also read TZ string.
8614         (find_transition): Fold into __tzfile_compute.
8615         (__tzfile_compute): For times beyond the last transition try to
8616         use the TZ string.
8617         * timezone/tst-timezone.c: Information in daylight and tzname does
8618         change for Asia/Tokyo timezone with more concrete information.
8619         Remove the test.
8621         * include/stdio.h: Add libc_hidden_proto for ftello.
8622         * libio/ftello.c: Add libc_hidden_def.
8624         [BZ #1140]
8625         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8626         on the specified time and not the last entries in the file.  Move
8627         code to determine tzname[] to...
8628         (find_transition): ...here.  Add ugly guess for times before the
8629         first transition.
8631 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8633         [BZ #3195]
8634         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8635         no entry.
8636         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8637         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8638         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8639         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8641         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8642         read mechanism when there are no group members and avoid no-op
8643         read syscall in this case.
8645         [BZ #3242]
8646         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8647         (__readall): If reading failed due to EAGAIN error wait a bit
8648         and possibly try again.
8649         (__readvall): Likewise.
8651 2007-10-13  Bruno Haible  <bruno@clisp.org>
8653         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8654         when we cannot recode the message.
8656 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8658         [BZ #4359]
8659         * libio/__freading.c (__freading): Don't return true for
8660         write-only streams.  For read/write streams, check whether we
8661         performed a read operation already.
8662         * libio/Makefile (tests): Add tst-ext2.
8663         * libio/tst-ext2.c: New file.
8665 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8667         * locale/programs/repertoire.c (repertoire_read): Always free
8668         memory for repertoire file name [Coverity CID 270].
8670         * elf/cache.c (save_aux_cache): Free memory allocated for
8671         temporary file name [Coverity CID 267].
8673 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8675         * misc/Makefile (headers): Add bits/error.h.
8677 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8679         * posix/fnmatch_loop.c: Take rule index returned as part of
8680         findidx return value into account when accessing weights.
8681         * posix/regcomp.c: Likewise.
8682         * posix/regexec.c: Likewise.
8684         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8685         (skip_to): Fix problems with parameter of elifdef/elifndef.
8687 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8689         * iconv/gconv_simple.c: Add some branch prediction.
8691 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8693         * locale/programs/ld-collate.c (collate_read): If ignore_content
8694         and nowtok is tok_define, eat any tok_eol tokens.
8696 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8698         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8699         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8701         * inet/netinet/in.h: Don't include bits/socket.h.
8702         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8703         macro.
8704         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8706 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8708         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8709         and tok_elifndef.
8710         * locale/programs/locfile-kw.gperf: Likewise.
8711         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8713 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8715         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8716         (__find_specwc): Change into __extern_always_inline function.
8717         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8718         (__parse_one_specmb): Remove ps argument.
8719         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8720         Adjust __find_specmb and __parse_one_specmb callers.
8721         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8722         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8723         Removed.
8724         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8725         caller.
8727 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8729         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8730         with some Pentium Ds.
8732 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8734         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8735         __read not read.
8736         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8737         __write not write.
8739 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8741         [BZ #181]
8742         * locale/C-time.c: Set week_1stday data to 19971201.
8743         * locale/programs/ld-time.c (time_finish): Default for
8744         first_workday is Monday.
8746         [BZ #2633]
8747         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8749         [BZ #5103]
8750         * posix/glob.c (glob): Recognize patterns starting \/.
8751         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8752         (main): Add test for pattern starting \/.
8754         * misc/error.h: Use __const instead of const.
8755         * misc/bits/error.h: Likewise.
8757 2007-10-07  Andreas Jaeger  <aj@suse.de>
8759         * include/bits/error.h: New file.
8761         * misc/bits/error.h (error_at_line): Fix prototype.
8763 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8765         [BZ #3924]
8766         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8767         more little bugs in creating the stack frame when pltexit has to
8768         be called.
8770         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8771         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8773         [BZ #4407]
8774         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8775         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8776         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8777         * math/libm-test.inc: Add test for this case.
8779         [BZ #5010]
8780         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8781         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8782         map service succeeded.
8783         (svc_is_mapped): New function.
8784         (svc_unregister): Use it before trying to unmap service.
8786 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8788         * timezone/zic.c: Update from tzcode2007h.
8790         [BZ #5063]
8791         * timezone/africa: Update from tzdata2007h.
8792         * timezone/antarctica: Likewise.
8793         * timezone/asia: Likewise.
8794         * timezone/australasia: Likewise.
8795         * timezone/europe: Likewise.
8796         * timezone/leapseconds: Likewise.
8797         * timezone/northamerica: Likewise.
8798         * timezone/southamerica: Likewise.
8799         * timzeone/zone.tab: Likewise.
8801         [BZ #5104]
8802         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8804         [BZ #5113]
8805         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8806         avoid warning with -Wconversion.
8807         (__strndup): Likewise.
8808         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8810         [BZ #5112]
8811         * nscd/connections.c (restart): Don't resync if database is
8812         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8814         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8815         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8817         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8818         evetnfd_read, eventfd_write.
8819         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8820         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8821         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8822         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8823         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8824         eventfd_write for GLIBC_2.7.
8826         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8827         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8828         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8829         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8831 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8833         * stdlib/msort.c: Include stdint.h.
8834         (struct msort_param): New type.
8835         (msort_with_tmp): Use struct msort_param pointer for unchanging
8836         parameters.  Add optimized handling for several common sizes
8837         and indirect sorting mode.
8838         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8839         sorting.
8840         Suggested by Belazougui Djamel .
8842         * stdlib/Makefile (tests): Add tst-qsort2.
8843         * stdlib/tst-qsort2.c: New test.
8845 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8847         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8848         for dup2 in case another thread races with the current one.  Retry
8849         in this case.
8851         * misc/error.h: Remove support for use outside of libc.  We have to
8852         include <features.h> now.  Include <bits/error.h> if possible.
8853         * misc/bits/error.h: New file.
8855 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8857         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8858         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8859         __extern_always_inline functions unconditionally, drop macros.
8861         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8862         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8863         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8865         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8866         add __artificial__ attribute.
8868 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8870         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8871         backward to forward direction.
8873         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8875         [BZ #645]
8876         * locale/programs/ld-collate.c (collate_finish): Compare against last
8877         used section which is known to have rules defined.
8878         (collate_read): After order_start, correctly record order of sections
8879         and queue sections up.
8881 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8883         [BZ #5071]
8884         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8885         the same number of pages.
8886         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8888         * locale/programs/ld-collate.c (collate_read): After initial copy
8889         statement, continue in state 0.
8891         * include/stdio_ext.h (__fsetlocking): Define as macro.
8893 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8895         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8896         of section order.
8898         * po/pt_BR.po: Fix typo.
8900 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8902         * iconvdata/Makefile (modules): Add ISO8859-9E.
8903         (distribute): Add iso8859-9e.c.
8904         (gen-8bit-gap-modules): Add iso8859-9e.
8905         * iconvdata/iso8859-9e.c: New file.
8906         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8907         * iconvdata/TESTS: Likewise.
8908         * iconvdata/tst-tables.sh: Likewise.
8910         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8912         * locale/iso-639.def: Add several new entries.
8914 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8916         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8917         void * pointers instead of struct link_map **.
8918         (_dl_scope_free): Change argument type to void *.
8919         * include/link.h (struct link_map): Change type of l_reldeps
8920         to struct link_map_reldeps, move l_reldepsact into that
8921         struct too.
8922         * elf/dl-deps.c: Include atomic.h.
8923         (_dl_map_object_deps): Only change l->l_initfini when it is
8924         fully populated, use _dl_scope_free for freeing it.  Optimize
8925         removal of libs from reldeps by using l_reserved flag, when
8926         some removal is needed, allocate a new list instead of
8927         reallocating and free the old with _dl_scope_free.  Adjust
8928         for l_reldeps and l_reldepsact changes.
8929         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8930         searching in l_initfini and l_reldeps without holding dl_load_lock.
8931         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8932         l_reldepsact changes.
8933         * elf/dl-close.c (_dl_close_worker): Likewise.
8934         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8936 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8938         * iconvdata/Makefile (modules): Add KOI8-RU.
8939         (distribute): Add koi8-ru.c.
8940         (gen-8bit-gap-modules): Add koi8-ru.
8941         * iconvdata/koi8-ru.c: New file.
8942         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8943         * iconvdata/TESTS: Likewise.
8944         * iconvdata/tst-tables.sh: Likewise.
8946         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8948 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8950         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8951         with __warning__/__error__ attributes.
8952         (__warnattr): Define.
8953         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8954         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8955         __warnattr.
8956         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8957         of __*_chk if compile time detectable overflow is found.
8958         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8959         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8960         with __warnattr.
8961         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8962         instead of __*_chk if compile time detectable overflow is found.
8963         (__gets_alias): Rename to...
8964         (__gets_warn): ... this.  Add __warnattr.
8965         (gets): Call __gets_warn instead of __gets_alias.
8966         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8967         aliases with __warnattr.
8968         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8969         time detectable overflow is found.
8970         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8971         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8972         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8973         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8974         __getdomainname_chk_warn): New aliases with __warnattr.
8975         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8976         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8977         __*_chk_warn instead of __*_chk if compile time detectable overflow
8978         is found.
8979         (__getgroups_chk): Rename argument to __listlen from listlen.
8980         (__getwd_alias): Rename to...
8981         (__getwd_warn): ... this.  Add __warnattr.
8982         (getwd): Call __getwd_warn instead of __getwd_alias.
8983         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8984         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8985         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8986         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8987         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8988         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8989         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8990         compile time detectable overflow is found.
8991         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8992         to use __*_chk or not.
8993         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8994         in comparisons which function should be called and in __*_chk*
8995         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8996         detectable overflow is found.
8997         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8998         __*_chk argument.
8999         * debug/tst-chk1.c (do_test): Add a few more tests.
9001 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
9003         [BZ #5058]
9004         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
9005         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
9006         (_nl_unload_domain): Finalize conversions_lock.
9007         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
9008         handling table of known conversions.
9010 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
9012         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
9013         close_not_cancel_no_status instead of close.
9015 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
9017         [BZ #5028]
9018         * posix/regcomp.c (lookup_collation_sequence_value): Check that
9019         nrules != 0 for multibyte chars.
9021 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
9023         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
9024         Provide better error message in case the type is unknown.
9026         [BZ #4963]
9027         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
9028         * string/stratcliff.c: Make usable to test wide char functions.
9029         * wcsmbs/wcsatcliff.c: New file.
9030         * wcsmbs/Makefiel (tests): Add wcsatcliff.
9032         [BZ #4972]
9033         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
9034         (distribute): Add mac-centraleurope.c.
9035         (gen-8bit-gap-modules): Add mac-centraleurope.
9036         * iconvdata/mac-centraleurope.c: New file.
9037         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
9038         * iconvdata/TESTS: Likewise.
9039         * iconvdata/tst-tables.sh: Likewise.
9041         [BZ #5043]
9042         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
9044 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
9046         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
9047         from __x86_64_core_cache_size_half.
9048         (init_cacheinfo): Compute shared cache size for AMD processors with
9049         shared L3 correctly.
9050         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
9051         name change.
9052         Patch in large parts by Evandro Menezes.
9054 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
9056         * elf/dl-lookup.c (add_dependency): Handle failing memory
9057         allocation for dependency list.  Remove unnecessary check.
9059         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
9060         open/close when determining source addresses.
9062         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
9063         sha512-crypt, and sha512.
9064         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
9065         (distribute): Add sha256.h and sha512.h.
9066         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
9067         and call the appropriate code.
9068         * crypt/sha256-crypt.c: New file.
9069         * crypt/sha256.c: New file.
9070         * crypt/sha256.h: New file.
9071         * crypt/sha256c-test.c: New file.
9072         * crypt/sha256test.c: New file.
9073         * crypt/sha512-crypt.c: New file.
9074         * crypt/sha512.c: New file.
9075         * crypt/sha512.h: New file.
9076         * crypt/sha512c-test.c: New file.
9077         * crypt/sha512test.c: New file.
9079 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
9081         * misc/bits/syslog.h (syslog): Remove extraneous argument from
9082         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
9083         __syslog_chk.
9085 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
9087         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
9088         %as in fscanf format strings.
9090         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
9091         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9092         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
9093         Likewise.
9094         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
9095         Likewise.
9097         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
9098         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
9099         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
9100         * elf/dl-sym.c (do_sym): Likewise.
9101         * include/link.h (struct link_map): Add l_serial field.
9102         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
9103         * elf/dl-lookup.c (add_dependency): Add flags argument.
9104         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
9105         flags, use THREAD_GSCOPE_RESET_FLAG before and
9106         THREAD_GSCOPE_SET_FLAG after
9107         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
9108         Don't dereference map until it has been found on some list.
9109         If map->l_serial changed, return -1.
9111 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
9113         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
9114         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
9115         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
9116         libc_hidden_proto.
9117         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
9118         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
9119         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
9120         add libc_hidden_proto.
9121         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9122         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9123         conformance requested.
9124         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
9125         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
9126         conformance requested.
9127         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
9128         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
9129         conformance requested.
9130         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
9131         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
9132         ISO C99 or POSIX conformance requested.
9133         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
9134         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
9135         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
9136         and __isoc99_vsscanf@@GLIBC_2.7.
9137         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
9138         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
9139         (tests): Add scanf14.
9140         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
9141         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
9142         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
9143         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
9144         CFLAGS-isoc99_scanf.c): Add $(exceptions).
9145         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
9146         from using internal headers.
9147         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
9148         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
9149         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
9150         and __isoc99_vswscanf@@GLIBC_2.7.
9151         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
9152         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
9153         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
9154         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
9155         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
9156         * stdio-common/isoc99_scanf.c: New file.
9157         * stdio-common/isoc99_vsscanf.c: New file.
9158         * stdio-common/isoc99_vscanf.c: New file.
9159         * stdio-common/isoc99_vfscanf.c: New file.
9160         * stdio-common/isoc99_fscanf.c: New file.
9161         * stdio-common/isoc99_sscanf.c: New file.
9162         * wcsmbs/isoc99_fwscanf.c: New file.
9163         * wcsmbs/isoc99_vswscanf.c: New file.
9164         * wcsmbs/isoc99_swscanf.c: New file.
9165         * wcsmbs/isoc99_wscanf.c: New file.
9166         * wcsmbs/isoc99_vwscanf.c: New file.
9167         * wcsmbs/isoc99_vfwscanf.c: New file.
9168         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9169         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9170         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9171         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9172         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9173         * stdio-common/scanf14.c: New test.
9174         * stdio-common/scanf15.c: New test.
9175         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9176         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9177         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9178         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9179         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9180         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9181         __nldbl___isoc99_scanf@@GLIBC_2.7,
9182         __nldbl___isoc99_fscanf@@GLIBC_2.7,
9183         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9184         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9185         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9186         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9187         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9188         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9189         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9190         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9191         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9192         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9193         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9194         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9195         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9196         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9197         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9198         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9199         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9200         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9201         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9202         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9203         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9204         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9205         functions.
9206         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9207         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9208         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9209         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9210         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9211         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9212         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9213         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9214         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9215         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9216         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9217         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9219         * stdio-common/Makefile (tests): Add scanf13.
9220         (scanf13-ENV): New.
9221         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9222         m modifier followed by l.
9223         (STRING_ARG): Add width argument.
9224         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9225         <case L_('C')>: Handle %mlc and %mC.
9226         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9227         arguments.
9228         * stdio-common/scanf13.c: New test.
9230         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9231         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9233 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9235         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9236         type and __THROW marker of splice, vmsplice, and tee.
9237         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9238         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9239         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9240         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9241         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9242         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9243         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9244         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9245         as cancellation points.
9247 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9249         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9250         parse more than three parts of the version number.
9252 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9254         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9255         modifier.  Patch by Jakub Jelinek.
9257 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9259         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9260         call_fallocate in misc subdir.
9261         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9262         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9263         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9264         instead of __fallocate64.
9265         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9267 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9269         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9270         * rt/Makefile (headers): Add bits/mqueue2.h.
9271         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9272         optimizing with GCC and __va_arg_pack_len is defined.
9273         * rt/bits/mqueue2.h: New file.
9274         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9275         (mq_open): New strong_alias.
9276         (__mq_open_2): New function.
9277         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9278         (mq_open): New strong_alias.
9279         (__mq_open_2): New function.
9280         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9281         * Versions.def (librt): Add GLIBC_2.7 version.
9282         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9283         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9285         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9286         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9287         is defined rather than when not C++.
9288         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9289         __openat64_alias): New redirects.
9290         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9291         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9292         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9293         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9294         functions instead of function-like macros.
9296 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9298         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9299         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9300         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9302 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9304         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9305         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9307 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9309         * inet/tst-network.c: Increment ERRORS for failing tests.
9311 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9313         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9314         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9315         implement as __extern_always_inline function.
9316         (vsyslog): Define as __extern_always_inline function unconditionally.
9317         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9318         When __va_arg_pack is defined, implement as __extern_always_inline
9319         functions.
9320         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9321         __extern_always_inline functions unconditionally.
9322         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9323         bits/stdio2.h will be included.
9324         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9325         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9326         implement as __extern_always_inline functions.
9327         (vswprintf, vwprintf, vfwprintf): Define as
9328         __extern_always_inline functions unconditionally.
9329         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9331 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9333         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9334         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9335         attribute.
9336         * include/features.h (__USE_EXTERN_INLINES): Define only when
9337         __extern_inline is defined.
9338         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9339         is defined instead of when not __cplusplus.
9340         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9341         is defined instead of when not __cplusplus.
9342         * socket/sys/socket.h: Include bits/socket2.h when
9343         __extern_always_inline is defined instead of when not __cplusplus.
9344         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9345         is defined instead of when not __cplusplus.
9346         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9347         is defined instead of when not __cplusplus.
9348         * string/string.h: Include bits/string3.h when __extern_always_inline
9349         is defined instead of when not __cplusplus.
9350         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9351         is defined instead of when not __cplusplus.
9352         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9353         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9354         is not defined.
9355         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9356         defined __extern_always_inline instead of !defined __cplusplus.
9357         * libio/bits/stdio-ldbl.h: Likewise.
9358         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9359         * misc/bits/syslog.h (syslog): Don't define for C++.
9360         (vsyslog): Use __extern_always_inline function for C++ instead of
9361         a macro.
9362         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9363         whenever that macro is defined.
9364         (vprintf): Don't provide the inline for C++.
9365         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9366         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9367         define the macros for C++.
9368         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9369         __extern_always_inline functions for C++.
9370         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9371         stat64, lstat64, fstat64, fstatat64): Don't define if not
9372         __USE_EXTERN_INLINES.
9373         * wcsmbs/bits/wchar2.h: Fix #error message.
9374         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9375         (vswprintf, vwprintf, vfwprintf): Define using
9376         __extern_always_inline functions for C++.
9377         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9378         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9379         strncpy, strcat, strncat): Define as __extern_always_inline
9380         functions instead of macros for C++.
9381         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9382         defined __extern_inline.
9383         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9384         to __extern_inline whenever that macro is defined.
9385         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9386         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9387         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9388         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9389         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9390         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9391         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9392         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9393         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9394         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9395         prototypes.  Only provide __extern_inline routines if
9396         __USE_EXTERN_INLINES.
9397         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9398         tests.
9399         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9400         For now avoid some *printf tests in C++.  Skip all testing
9401         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9402         is not.
9403         * debug/tst-chk4.cc: New file.
9404         * debug/tst-chk5.cc: New file.
9405         * debug/tst-chk6.cc: New file.
9406         * debug/tst-lfschk4.cc: New file.
9407         * debug/tst-lfschk5.cc: New file.
9408         * debug/tst-lfschk6.cc: New file.
9409         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9410         prototypes in C++.
9411         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9412         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9413         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9415 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9417         * po/cs.po: Update from translation team.
9419 2007-09-11  Roland McGrath  <roland@redhat.com>
9421         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9422         compiling.
9424 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9426         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9428 2007-09-05  Roland McGrath  <roland@redhat.com>
9430         * manual/signal.texi (Signaling Another Process): Typo fix.
9431         From Karl Berry <karl@freefriends.org>.
9433 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9435         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9436         zero if not defined.
9437         (make_request): Recognize optimistic addresses and treat them like
9438         deprecated addresses.
9439         Reported by Neil Horman <nhorman@redhat.com>.
9441 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9443         * nscd/connections.c (send_ro_fd): Also transfer file size.
9444         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9445         file size don't call fstat.
9447         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9448         ahead and map the file.  This should always be correct and we can
9449         catch problems later.
9451 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9453         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9454         prototypes.
9455         (__fread_alias, __fread_unlocked_alias): New aliases.
9456         (fread): New extern inline.
9457         (fread_unlocked): Likewise.  Undef macro before definition of
9458         the inline function.
9459         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9460         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9461         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9462         and __fread_unlocked_chk@@GLIBC_2.7.
9463         * debug/fread_chk.c: New file.
9464         * debug/fread_u_chk.c: New file.
9465         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9467 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9469         * sysdeps/unix/sysv/linux/syscalls.list
9470         (personality): Change caller to EXTRA.
9472 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9474         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9475         to keep gcc quiet.
9476         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9478         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9479         NDEBUG is defined.
9481         * Makerules: Use -p option with mkdir.
9483         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9484         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9485         (_xdr_directory_obj): Likewise.
9486         (xdr_entry_obj): Likewise.
9487         (xdr_group_obj): Likewise.
9488         (xdr_link_obj): Likewise.
9489         (xdr_table_obj): Likewise.
9490         (_xdr_nis_result): Likewise.
9491         (_xdr_ns_request): Likewise.
9492         (_xdr_ib_request): Likewise.
9493         (_xdr_nis_taglist): Likewise.
9494         (xdr_cback_data): Likewise.
9495         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9496         (xdr_ypresp_maplist): Likewise.
9498         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9500         * posix/regex_internal.h: Prevent some declarations and definitions
9501         to be seen when used in tests.
9503         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9504         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9506         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9508         * config.make.in (datarootdir): Add to shut up configure.
9510         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9511         associativity for fully-associative caches.
9513         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9514         requests.  Fill on more associativity values for L2.
9515         Patch mostly by Evandro Menezes.
9517 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9519         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9520         (_libc_vdso_platform_setup): Avoid using exported variable by using
9521         alias.
9523         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9525         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9526         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9527         defined.
9529 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9531         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9532         align stack for call if pltexit is to be used.
9534         [BZ #3924]
9535         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9536         align for function call in case pltexit has to be called later.
9538         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9539         implicit atomic operation when storing function pointer.
9540         (_dl_runtime_profile): Likewise.
9542 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9544         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9545         NIS_NOTFOUND.
9547 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9549         [BZ #4566]
9550         * string/strtok.c: Fix typo in comment.
9552         [BZ #4582]
9553         * debug/segfault.c: Fix typos in comments.
9555         [BZ #4588]
9556         * stdio-common/tempnam.c: Fix comment, it is not checked that
9557         TMPDIR points to a writable directory.
9559         [BZ #4726]
9560         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9561         memory allocated for the name server address.
9563         [BZ #4946]
9564         * nscd/connections.c (handle_request): Using sendfile always
9565         requires that mmap is used for the database.
9566         Patch by Petr Baudis <pasky@suse.cz>.
9568         [BZ #4905]
9569         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9570         suddenly has two or more addresses, ignore it and remove the old
9571         entry.
9573         [BZ #4814]
9574         * resolv/res_hconf.c: Prepare for compiling outside libc.
9575         * nscd/res_hconf.c: New file.
9576         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9577         the new file.
9578         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9579         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9581         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9583         [BZ #4925]
9584         * debug/pcprofiledump.c: Turn on internationalization by calling
9585         setlocale.  Patch mostly by Benno Schulenberg.
9587         [BZ #4936]
9588         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9589         the state.
9590         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9591         * iconvdata/bug-iconv5.c: New file.
9593 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9595         [BZ #4896]
9596         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9597         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9598         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9599         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9600         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9601         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9602         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9603         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9605 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9607         [BZ #4937]
9608         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9609         lookup loop.  Suggested by John Reiser.
9611 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9613         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9615 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9617         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9618         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9619         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9620         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9621         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9622         to...
9623         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9625 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9627         * po/nl.po: Update from translation team.
9629 2007-08-16  Andreas Jaeger  <aj@suse.de>
9631         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9632         Reported by Peter Festner <peter.festner@ewetel.net>.
9634 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9636         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9638 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9640         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9641         to check for undefined symbols.
9643         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9644         If the syscall fails, set errno to the actual returned error number
9645         rather than EINVAL.
9646         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9647         arguments are incorrect, set errno to EINVAL, if the syscall
9648         fails, set errno to the actual returned error number.
9650         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9651         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9653         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9654         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9655         file.
9656         (ASI_PNF, ASI_BLK_P): Don't define.
9657         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9658         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9659         file.
9660         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9661         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9662         file.
9664 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9666         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9667         FE_UNDERFLOW on Niagara CPUs.
9669         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9670         exceptions.
9672 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9674         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9675         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9676         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9677         flush should be used or not inside of the function.
9678         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9680         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9681         __thread_start): Use HIDDEN_JUMPTARGET.
9682         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9683         __thread_start): Likewise.
9684         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9686         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9687         Add libc_hidden_proto.
9688         (STRTOF): Add libc_hidden_proto.
9689         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9690         (strtold_l, wcstold_l): Use them as second argument for
9691         long_double_symbol.
9693 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9695         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9697 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9699         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9701 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9703         * po/bg.po: New file.  From the translation team.
9705 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9707         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9708         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9709         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9710         when each feature was introduced.
9712         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9713         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9714         (CHECK_HASH): New macro.
9715         (PREPARE_VERSION): Use it.
9717         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9718         prototype if not __ASSUME_PSELECT.
9719         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9720         prototype if not __ASSUME_PPOLL.
9722         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9724         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9725         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9726         is defined.
9728 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9730         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9731         (_libc_vdso_platform_setup): If vDSO is not available point
9732         __vdso_gettimeofday to the vsyscall.
9733         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9734         __vdso_gettimeofday instead of vsyscall.
9736 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9738         * nscd/servicescache.c: Include kernel-features.h.
9739         * nscd/gai.c: Likewise.
9740         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9741         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9742         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9743         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9744         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9745         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9746         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9747         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9748         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9750 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9752         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9753         and _dl_get_origin defines anymore.
9755         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9756         Build fix for systems which might lack POSIX timer support.
9758         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9759         (_libc_vdso_platform_setup): Mangle function pointers before storing
9760         them.
9761         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9762         Demangle vdso pointer before use.
9763         (INTERNAL_VSYSCALL): Likewise.
9765         * elf/cache.c (primes): Mark as const.
9766         Noted by Roland McGrath.
9768 2007-08-01  Andreas Jaeger  <aj@suse.de>
9769             Jakub Jelinek  <jakub@redhat.com>
9771         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9772         (options): Add option.
9773         (parse_opt): Handle option.
9774         (manual_link): Adjust process_file caller.  Call implicit_soname.
9775         (search_dir): Formatting.  Use and populate auxiliary cache.
9776         (main): Load and save auxiliary cache.
9777         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9778         stat64 from fstat64 to caller.
9779         (implicit_soname): New function.
9780         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9781         leave *soname as NULL.
9782         * elf/cache.c: Include libgen.h.
9783         (print_entry, print_cache, compare, save_cache, add_to_cache):
9784         Formatting and cleanups.
9785         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9786         aux_cache_file): New structures.
9787         (AUX_CACHEMAGIC): Define.
9788         (primes): New array.
9789         (aux_hash_size, aux_hash): New variables.
9790         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9791         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9792         load_aux_cache, save_aux_cache): New functions.
9793         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9794         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9795         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9796         (process_file): Adjust prototype.
9798 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9800         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9801         with __need_size_t.
9803 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9805         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9806         r_found_version structure as second parameter.
9807         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9808         (_dl_vdso_vsym): Change type of second parameter accordingly.
9809         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9810         (_libc_vdso_platform_setup): Adjust.
9811         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9812         (_libc_vdso_platform_setup): Likewise.
9814         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9815         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9816         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9817         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9818         * csu/libc-start.c: Pretty printing.
9819         Use VDSO_SETUP if defined.
9820         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9821         and let generic code call into _libc_vdso_platform_setup.
9822         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9823         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9824         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9825         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9826         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9827         for GLIBC_PRIVATE.
9828         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9829         (sysdep_rountines): Add dl-vdso.
9831         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9832         of routines.
9834         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9835         attribute_hidden to __vdso_gettimeofday prototype.
9837 2007-08-12  Roland McGrath  <roland@redhat.com>
9839         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9840         From: Karl Berry <karl@freefriends.org>.
9842 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9844         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9845         an atime update for the files we read.
9847 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9849         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9851         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9852         instead of mkstemp.
9854         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9855         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9856         * misc/mkostemp.c: New file.
9857         * misc/mkostemp64.c: New file.
9858         * stdlib/stdlib.h: Declare the new functions.
9859         * sysdeps/posix/tempname.c: Add new parameter which is added to
9860         the flags for open.  Remove __GT_BIGFILE handling.
9861         * stdio-common/tempname.c: Likewise.
9862         * include/stdio.h: Adjust __gen_tempname prototype.
9863         Renumber __GT_* constants.
9864         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9865         * misc/mkdtemp.c: Likewise.
9866         * misc/mkstemp.c: Likewise.
9867         * misc/mkstemp64.c: Likewise.
9868         * misc/mktemp.c: Likewise.
9869         * stdio-common/tempnam.c: Likewise.
9870         * stdio-common/tmpfile.c: Likewise.
9871         * stdio-common/tmpfile64.c: Likewise.
9872         * stdio-common/tmpnam.c: Likewise.
9873         * stdio-common/tmpnam_r.c: Likewise.
9875 2007-08-10  Roland McGrath  <roland@frob.com>
9877         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9878         New macros.
9879         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9880         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9882 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9884         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9885         possible.
9886         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9887         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9888         * nss/nss_files/files-have_o_cloexec.c: New file.
9890         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9891         available.
9893 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9895         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9896         ___new_wcstold_l): New weak aliases.
9897         (strtold_l, wcstold_l): Use them as second argument for
9898         long_double_symbol.
9900 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9902         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9903         register in test for error.
9905         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9906         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9908         * po/sv.po: Update from translation team.
9910 2007-08-06  Roland McGrath  <roland@redhat.com>
9912         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9913         Remove __strto*_l inlines.
9914         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9915         * stdlib/strtod.c: Add libc_hidden_def.
9916         * stdlib/strtod_l.c: Likewise.
9917         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9918         for __new_strtold and __new_wcstold.
9919         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9920         __STRTOF, STRTOF.
9921         * stdlib/strtol.c: Add libc_hidden_def.
9922         * stdlib/strtol_l.c: Likewise.
9923         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9924         strtoq.
9926         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9928         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9929         * scripts/data/localplt-generic.data: ... here.
9930         * elf/Makefile (check-data): Get generic file if no other.
9931         ($(objpfx)check-localplt.out): Make target unconditional.
9933         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9934         Use ElfW(Nhdr).
9936 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9938         * po/zh_CN.po: Updated translation from translation team.
9940 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9943         Don't use CGOTSETUP and CGOTRESTORE macros.
9945 2007-08-04  Roland McGrath  <roland@redhat.com>
9947         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9949 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9951         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9952         __extension__ around the whole statement expression.
9954 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9956         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9957         elements during initialization.
9959         * po/pl.po: Updated translation from translation team.
9960         * po/tr.po: Likewise.
9961         * po/nl.po: Likewise.
9963 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9965         * rt/aio.h: Add __nonnull attributes.
9967 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9969         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9970         * stdlib/Makefile (tests): Add tst-strtod5.
9971         (tst-strtod5-ENV): New.
9972         * stdlib/tst-strtod5.c: New file.
9974         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9975         failed.
9976         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9977         on failure.
9979         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9980         allocated.
9982 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9984         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9985         numbers.
9987 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9989         * io/Makefile (aux): Add have_o_cloexec.
9990         * include/fcntl.h: Declare __have_o_cloexec.
9991         * io/have_o_cloexec.c: New file.
9992         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9993         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9994         fcntl call if not necessary.
9995         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9996         of local variable.
9998         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9999         Avoid memset, add explicit initialization.
10000         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
10001         to the end and change into zero-sized array.
10002         Move lock member to fill a hole on 64-bit platforms.
10004         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
10005         inline functions.
10006         * include/stdlib.h: Add __strto*_internal prototypes here.
10007         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
10008         inline functions.
10009         * include/wchar.h: Add __wcsto*_internal prototypes.
10010         * sysdeps/generic/inttypes.h: No need to protect the declaration
10011         of the __strto*_internal and __wcsto*_internal members here.
10013         * rt/mqueue.h: Change const to __const and add nonnull attributes.
10015 2007-08-02  Roland McGrath  <roland@redhat.com>
10017         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
10018         $(inst_bindir)/getconf if possible.
10020         * posix/Makefile ($(objpfx)getconf.speclist): New target.
10021         (generated): Add it.
10022         ($(inst_libexecdir)/getconf): Use it.
10024 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
10026         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
10027         /proc is faster and sufficient.  /sys is still needed for
10028         __get_nprocs_conf.
10030 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
10032         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
10033         syscall as __fallocate64.
10034         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
10035         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
10037 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
10039         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
10040         value.
10042         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
10043         if off_t is different rank from size_t.
10045         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
10046         uw_frame_state_for): Avoid type punning warnings.
10047         * sysdeps/generic/unwind-dw2-fde-glibc.c
10048         (_Unwind_IteratePhdrCallback): Likewise.
10049         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
10050         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
10051         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
10052         pointers.
10054 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
10056         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
10057         total processors using sysfs.
10058         (__get_nprocs): Use sysfs to determine which processors are online.
10060 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
10062         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
10063         syscall arguments count.
10065         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
10067 2007-07-30  Roland McGrath  <roland@redhat.com>
10069         * manual/libc.texinfo: Update copyrights, formatting magic, and
10070         @dircategory.  From Karl Berry <karl@freefriends.org>.
10072 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
10074         [BZ #4860]
10075         * io/Makefile (headers): Add bits/fcntl2.h.
10077         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
10078         using gcc builtin.
10079         (__CPU_EQUAL_S): Likewise.
10081         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
10082         (tests): Add tst-cpuset.
10083         * posix/sched_cpualloc.c: New file.
10084         * posix/sched_cpufree.c: New file.
10085         * posix/tst-cpuset.c: New file.
10086         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
10087         GLIBC_2.7.
10088         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
10089         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
10090         macros.  Define CPU_*_S macros.
10092 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10094         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
10095         entry.
10097         [BZ #4858]
10098         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
10099         #.0g and value rounded to 1.0.
10100         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
10102 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
10104         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
10105         for int_frac_digits and frac_digits.
10107         * login/logout.c (logout): Avoid aliasing violation.
10108         * login/logwtmp.c (logwtmp): Likewise.
10110         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
10112         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
10113         to avoid warning.
10114         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
10115         warning.
10116         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
10117         warning.
10118         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
10119         to avoid warnings.
10121         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
10122         void **.
10123         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
10125         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
10126         char * to avoid warning.
10127         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
10129         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
10131         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
10132         allocate_arrays): Cast second argument to charmap_find_symbol
10133         to char * to avoid warnings.
10135         * locale/programs/repertoire.c (repertoire_new_char): Change
10136         from_nr, to_nr and cnt to unsigned long, adjust printf format
10137         string.
10139         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
10140         Cast second argument to new_element to char * to avoid warnings.
10142         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
10144         * intl/gettextP.h (struct loaded_domain): Change plural to const
10145         struct expression *.
10146         * intl/plural-eval.c (plural_eval): Change first argument to
10147         const struct expression *.
10148         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
10149         argument to const struct expression **.
10150         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
10151         prototypes.
10152         * intl/loadmsgcat (_nl_unload_domain): Cast away const
10153         in call to __gettext_free_exp.
10155         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
10156         unitialized wstring/wpattern var warnings.
10158         * posix/runtests.c (struct a_test): Make data field const char *.
10160         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
10161         vars if not LDBL_MANT_DIG >= 106.
10163         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10165         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10166         __find_specmb to avoid warning.
10168         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10170         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10171         to avoid warnings.
10173         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10174         initializer.
10176         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10177         tv var when it will be actually used.
10179         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10180         to avoid warnings.
10182         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10183         char array resp. pointer.
10184         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10185         char array.
10186         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10187         to const unsigned char **.
10188         (ucs4_to_cns11643): Change second argument to unsigned char *.
10189         * iconvdata/euc-tw.c (BODY): Change endp type to
10190         const unsigned char *.
10191         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10192         to unsigned char *.
10193         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10194         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10195         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10196         types to unsigned char pointers/arrays instead of char.
10197         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10198         to unsigned char *.
10199         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10200         * iconvdata/jis0212.h: Include assert.h.
10201         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10202         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10203         of trying to handle that.
10204         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10205         shut up a warning.
10206         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10207         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10208         two dimensional const unsigned char arrays.
10209         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10210         Initialize endp to inptr to shut up a warning.
10212 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10214         [BZ #4772]
10215         * time/strptime_l.c (__strptime_internal): Silently ignore
10216         strftime modifiers and field width in recursive calls.
10218         * include/time.h (enum ptime_locale_status): Remove.
10219         (__strptime_internal): Remove decided and era_cnt arguments,
10220         add statep argument.
10221         * time/strptime_l.c (__strptime_internal): Remove decided
10222         and era_cnt arguments, add statep argument.  Don't recompute
10223         any fields in recursive calls, only update caller's tm
10224         and state, if recursive call fails, don't change tm nor
10225         any state.
10226         (get_alt_number): Adjust.
10227         (recursive): Adjust caller.
10228         (strptime): Likewise.
10229         * time/strptime.c (strptime): Likewise.
10231 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10233         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10234         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10235         if from and to charsets are the same.
10236         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10237         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10238         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10240 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10242         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10243         Don't define wint_t when __need_mbstate_t unless it
10244         is necessary.
10245         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10246         in the typedef if possible.
10247         * wctype/wctype.h (wint_t): Define by including
10248         wchar.h with __need_wint_t instead of including stddef.h
10249         with __need_wint_t and as fallback definining it ourselves.
10250         * iconv/gconv.h (__need_wint_t): Define before including
10251         wchar.h.
10252         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10253         or _GLIBCPP_USE_WCHAR_T.
10254         (__need_wchar_t): Don't define
10255         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10256         (__need_wint_t): Don't define before including stddef.h,
10257         define before including wchar.h only if _LIBC or
10258         _GLIBCPP_USE_WCHAR_T.
10259         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10260         * sysdeps/mach/hurd/_G_config.h: Likewise.
10261         * sysdeps/generic/_G_config.h: Likewise.
10262         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10263         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10264         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10265         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10267 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10269         * sysdeps/posix/posix_fallocate64.c: Undefine
10270         __posix_fallocate64_l64 before alias handling.
10271         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10272         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10273         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10274         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10276         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10278 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10280         * locale/programs/ld-collate.c (atwc): New variable.
10281         (add_to_tablewc): New toplevel function, moved from collate_output.
10282         (collate_output): Remove add_to_tablewc nested function.
10284         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10285         (name_insert): New function.
10286         (write_output): Remove hash_table and hash_size vars and name_insert
10287         nested function.
10289 2007-07-24  Roland McGrath  <roland@redhat.com>
10291         * Makerules (install-others-programs-nosubdir): New target.
10292         (install-no-libc.a-nosubdir): Depend on it.
10294         * iconv/Makefile (install-others-programs): Set this instead of
10295         install-others.
10296         * login/Makefile (install-others-programs): Likewise.
10297         * posix/Makefile (install-others-programs): Likewise.
10299         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10300         dependencies.
10302 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10304         * io/Makefile (tests): Add tst-posix_fallocate.
10305         * io/tst-posix_fallocate.c: New file.
10307         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10308         __ASSUME_FALLOCATE.
10310 2007-07-22  Roland McGrath  <roland@frob.com>
10312         * hurd/getdport.c: Add missing copyright year update.
10314         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10315         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10317 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10319         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10321         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10322         O_CLOEXEC is needed.
10323         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10324         Avoid additional fcntl to set O_CLOEXEC if not needed.
10325         * nis/nss_compat/compat-initgroups.c: Likewise.
10326         * nis/nss_compat/compat-pwd.c: Likewise.
10327         * nis/nss_compat/compat-spwd.c: Likewise.
10329 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10331         [BZ #3665]
10332         * manual/errno.texi: Change ECANCELED value to 119.
10334         [BZ #4610]
10335         * mach/lock-intern.h: Include <sys/cdefs.h>.
10337         [BZ #4178]
10338         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10339         reading A.
10341         [BZ #4126]
10342         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10343         to __sigsuspend.
10345         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10347 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10349         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10350         `__ASSEMBLER__'.
10351         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10353 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10355         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10356         descriptor received from nscd.
10358         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10360         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10361         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10362         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10363         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10364         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10365         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10367 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10369         [BZ #4816]
10370         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10372         [BZ #4813]
10373         * login/forkpty.c (forkpty): Close master and slave fds on
10374         fork failure.  Patch by
10375         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10377 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10379         * include/features.h (__USE_ISOC95): New define.
10380         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10381         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10382         for -std=iso9899:199409.
10383         * CONFORMANCE: Remove comments about unsupported AMD1.
10385 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10387         * sysdeps/ia64/sched_cpucount.c: New file.
10388         * sysdeps/powerpc/sched_cpucount.c: New file.
10390         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10391         __BEGIN_DECLS/__END_DECLS around the prototype.
10392         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10393         pointer to const cpu_set_t.
10395         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10396         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10397         __need_size_t and include stddef.h.
10398         * sysvipc/sys/msg.h: Likewise.
10399         * posix/sched.h: Likewise.
10400         * hurd/hurd/signal.h (__need_size_t): Define.
10402         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10403         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10404         no longer defines wint_t or wchar_t.
10406         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10407         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10408         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10409         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10410         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10411         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10412         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10413         * debug/printf_chk.c (__printf_chk): Likewise.
10414         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10415         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10417         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10418         Define.
10420         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10421         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10423 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10425         [BZ #4792]
10426         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10427         * malloc/malloc.h (realloc): Likewise.
10429         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10430         if one of proc_file_chain streams has that fileno.
10431         * stdio-common/Makefile (tests): Add tst-popen2.
10432         * stdio-common/tst-popen2.c: New test.
10434 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10436         * elf/ldconfig.c: Allow GPLv2 or any later version.
10437         * elf/readlib.c: Likewise.
10438         * elf/chroot_canon.c: Likewise.
10439         * elf/cache.c: Likewise.
10440         * nscd/mem.c: Likewise.
10441         * nscd/getpwuid_r.c: Likewise.
10442         * nscd/grpcache.c: Likewise.
10443         * nscd/aicache.c: Likewise.
10444         * nscd/getsrvbynm_r.c: Likewise.
10445         * nscd/nscd.c: Likewise.
10446         * nscd/servicescache.c: Likewise.
10447         * nscd/getsrvbypt_r.c: Likewise.
10448         * nscd/initgrcache.c: Likewise.
10449         * nscd/gethstbyad_r.c: Likewise.
10450         * nscd/gethstbynm2_r.c: Likewise.
10451         * nscd/getgrnam_r.c: Likewise.
10452         * nscd/nscd_setup_thread.c: Likewise.
10453         * nscd/getpwnam_r.c: Likewise.
10454         * nscd/gai.c: Likewise.
10455         * nscd/connections.c: Likewise.
10456         * nscd/dbg_log.c: Likewise.
10457         * nscd/cache.c: Likewise.
10458         * nscd/hstcache.c: Likewise.
10459         * nscd/nscd_conf.c: Likewise.
10460         * nscd/getgrgid_r.c: Likewise.
10461         * nscd/pwdcache.c: Likewise.
10462         * catgets/gencat.c: Likewise.
10463         * locale/programs/linereader.h: Likewise.
10464         * locale/programs/locarchive.c: Likewise.
10465         * locale/programs/ld-paper.c: Likewise.
10466         * locale/programs/locfile-kw.h: Likewise.
10467         * locale/programs/ld-address.c: Likewise.
10468         * locale/programs/xmalloc.c: Likewise.
10469         * locale/programs/ld-time.c: Likewise.
10470         * locale/programs/localedef.c: Likewise.
10471         * locale/programs/simple-hash.c: Likewise.
10472         * locale/programs/xstrdup.c: Likewise.
10473         * locale/programs/ld-numeric.c: Likewise.
10474         * locale/programs/locfile-kw.gperf: Likewise.
10475         * locale/programs/ld-collate.c: Likewise.
10476         * locale/programs/charmap-kw.gperf: Likewise.
10477         * locale/programs/charmap.h: Likewise.
10478         * locale/programs/charmap-kw.h: Likewise.
10479         * locale/programs/config.h: Likewise.
10480         * locale/programs/locfile.c: Likewise.
10481         * locale/programs/ld-ctype.c: Likewise.
10482         * locale/programs/charmap.c: Likewise.
10483         * locale/programs/ld-messages.c: Likewise.
10484         * locale/programs/repertoire.h: Likewise.
10485         * locale/programs/locale.c: Likewise.
10486         * locale/programs/ld-name.c: Likewise.
10487         * locale/programs/linereader.c: Likewise.
10488         * locale/programs/locfile.h: Likewise.
10489         * locale/programs/3level.h: Likewise.
10490         * locale/programs/ld-monetary.c: Likewise.
10491         * locale/programs/ld-measurement.c: Likewise.
10492         * locale/programs/charmap-dir.c: Likewise.
10493         * locale/programs/ld-identification.c: Likewise.
10494         * locale/programs/localedef.h: Likewise.
10495         * locale/programs/charmap-dir.h: Likewise.
10496         * locale/programs/repertoire.c: Likewise.
10497         * locale/programs/simple-hash.h: Likewise.
10498         * locale/programs/ld-telephone.c: Likewise.
10499         * locale/programs/locale-spec.c: Likewise.
10500         * locale/programs/locfile-token.h: Likewise.
10501         * posix/getconf.c: Likewise.
10502         * iconv/dummy-repertoire.c: Likewise.
10503         * iconv/iconv_charmap.c: Likewise.
10504         * iconv/iconvconfig.c: Likewise.
10505         * iconv/iconv_prog.c: Likewise.
10506         * malloc/memusagestat.c: Likewise.
10507         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10509 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10511         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10512         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10513         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10514         check for the first argument.
10516 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10518         [BZ #4775]
10519         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10520         (__tgmath_real_type): Fix if expr is const int or other const
10521         qualified integral type.
10522         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10523         expressions and handle const qualified arguments.
10524         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10525         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10526         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10527         statement expressions.
10528         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10529         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10530         (__TGMATH_UNARY_IMAG): Define.
10531         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10532         * math/Makefile (tests): Add test-tgmath2.
10533         (CFLAGS-test-tgmath2.c): Add.
10534         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10535         count_cfloat, count_cldouble): New variables.
10536         (NCCALLS): Define.
10537         (main): Check number of complex calls as well.
10538         (F(compile_test)): Add complex tests and tests with const qualified
10539         arguments.
10540         (y, z, ccount): Define.
10541         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10542         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10543         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10544         F(cproj)): New functions.
10545         * math/test-tgmath2.c: New test.
10547 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10549         [BZ #4776]
10550         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10551         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10552         instead output ".".
10553         * dlfcn/Makefile (distribute): Add glreflib3.c.
10554         (module-names): Add glreflib3.
10555         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10556         glreflib1.so.
10557         (LDFLAGS_glreflib3.so): New.
10558         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10559         glreflib1.so.
10560         * dlfcn/glreflib3.c: New file.
10562         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10563         returned -1, return NULL.
10564         * intl/explodename.c (_nl_explode_name): Return -1 if
10565         _nl_normalize_codeset failed.
10567 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10569         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10570         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10571         and avoid branch misspredicts for > 31 bytes memset case.
10572         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10573         Remove toc ref to __cache_line_size.
10575         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10576         to get ISA-V2.0 branch hints.
10577         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10578         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10579         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10580         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10581         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10582         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10583         Remove toc ref to __cache_line_size.
10585         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10586         Include math_ldbl_opt.h.
10588 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10590         [BZ #4773]
10591         * time/strptime_l.c (__strptime_internal): Implement greedy
10592         matching of weekday and month names.
10594 2007-07-09  Roland McGrath  <roland@redhat.com>
10596         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10597         (ELF_NOTE_ABI): Use it.
10598         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10600 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10602         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10603         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10605 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10607         [BZ #4745]
10608         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10609         in loop to look for conversion specifier to avoid testing of
10610         wrong errno value.
10611         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10612         * stdio-common/bug18.c: New file.
10613         * stdio-common/bug18a.c: New file.
10614         * stdio-common/bug19.c: New file.
10615         * stdio-common/bug19a.c: New file.
10617 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10619         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10620         running awk script.
10622 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10624         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10625         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10626         Return NULL if mmap failed instead of asserting it does not.
10627         (calloc): Check for integer overflow.
10629         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10630         than LONG_MAX / 10.
10632 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10634         [BZ #4702]
10635         * nis/nss-default.c: Include errno.h.
10636         (init): Preserve errno.
10638 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10640         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10642 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10644         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10646 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10648         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10650 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10652         * sysdeps/s390/dl-procinfo.c: New file.
10653         * sysdeps/s390/dl-procinfo.h: New file.
10654         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10656 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10658         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10659         in PT_NOTE segments with multiple notes.
10660         * elf/readelflib.c (process_elf_file): Likewise.
10662 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10664         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10665         ISO C compliant.
10667 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10669         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10671 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10673         * include/link.h: Don't include rtld-lowlevel.h.
10674         (struct link_map): Remove l_scope_lock.
10675         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10676         (_dl_scope_free_list): New field (variable) in _rtld_global.
10677         (DL_LOOKUP_SCOPE_LOCK): Remove.
10678         (_dl_scope_free): New prototype.
10679         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10680         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10681         (_dl_profile_fixup): Likewise.
10682         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10683         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10684         THREAD_GSCOPE_RESET_FLAG around it.
10685         * elf/dl-close.c (_dl_close_worker): Don't use
10686         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10687         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10688         scopes were queued or if l_scope_mem has been abandoned.
10689         * elf/dl-open.c (_dl_scope_free): New function.
10690         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10691         * elf/dl-support.c (_dl_scope_free_list): New variable.
10692         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10693         Remove DL_LOOKUP_SCOPE_LOCK handling.
10694         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10695         handling.
10696         * elf/dl-object.c (_dl_new_object): Don't use
10697         __rtld_mrlock_initialize.
10699 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10701         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10702         to fill in holes
10703         (rtld_global_ro): Likewise.
10705 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10707         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10708         Move PT_LOAD checking to...
10709         (_dl_addr_inside_object): ... here, new function.
10710         * elf/dl-sym.c (do_sym): If not l_contiguous,
10711         call _dl_addr_inside_object.
10712         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10713         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10714         * elf/dl-open.c (dl_open_worker): Likewise.
10715         (_dl_addr_inside_object): New function if IS_IN_rtld.
10716         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10717         holes are present or are PROT_NONE protected.
10718         * include/link.h (struct link_map): Add l_contiguous field.
10719         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10721 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10722             Tomas Janousek  <tjanouse@redhat.com>
10723             Ulrich Drepper  <drepper@redhat.com>
10725         [BZ #4647]
10726         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10727         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10728         socket.
10729         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10730         unused member a bitmap.
10731         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10732         servers are configured.
10734 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10736         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10738 2007-06-17  Andreas Schwab  <schwab@suse.de>
10740         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10742 2007-06-16  Andreas Jaeger  <aj@suse.de>
10744         [BZ #4125]
10745         * sysdeps/unix/sysv/linux/sys/ptrace.h
10746         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10747         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10748         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10749         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10750         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10751         Define.
10752         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10753         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10754         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10755         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10757 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10759         [BZ #4599]
10760         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10761         determining whether there are IPv4/IPv6 addresses, ignore loopback
10762         addresses.
10764 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10766         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10767         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10768         as the return type.  Change type of "r" variable to CMPtype.
10769         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10770         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10771         * soft-fp/gedf2.c (__gedf2): Likewise.
10772         * soft-fp/gesf2.c (__gesf2): Likewise.
10773         * soft-fp/getf2.c (__getf2): Likewise.
10774         * soft-fp/ledf2.c (__ledf2): Likewise.
10775         * soft-fp/lesf2.c (__lesf2): Likewise.
10776         * soft-fp/letf2.c (__letf2): Likewise.
10777         * soft-fp/unorddf2 (__unorddf2): Likewise.
10778         * soft-fp/unordsf2 (__unordsf2): Likewise.
10779         * soft-fp/unordtf2 (__unordtf2): Likewise.
10781 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10783         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10784         make sure gcc doesn't mess around with this.
10786 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10788         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10790 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10792         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10793         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10794         at most once per _dl_close_worker.
10796 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10798         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10799         __sched_cpucount as const.
10800         * posix/sched_cpucount.c: Adjust.
10802         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10803         instruction for counting bits.
10804         * sysdeps/x86_64/sched_cpucount.c: New file.
10806 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10808         * configure.in: Avoid variable named BASH.
10809         * config.make.in: Likewise.
10810         Patch in part by Mike Frysinger.
10812 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10814         [BZ #4586]
10815         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10816         pseudo-zeros as zero.
10817         * sysdeps/x86_64/ldbl2mpn.c: New file.
10818         * sysdeps/ia64/ldbl2mpn.c: New file.
10820 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10822         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10823         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10824         Remove unreachable code at the end.
10826 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10828         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10829         ldbl-128ibm in comment.
10830         (fpclassifyl): Correct classification of denormals.
10831         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10832         return value for MIN denormal. Rewrite using long double math too
10833         correctly handle denormals and canonicalize the results.
10835 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10837         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10838         (__mpn_construct_long_double): Fix conversion where result ought
10839         to be smaller than __LDBL_MIN__, or the low double should be
10840         denormal.  Fix decision where to negate low double - honor round
10841         to even rules.
10842         * stdio-common/tst-sprintf2.c: Include string.h.
10843         (COMPARE_LDBL): Define.
10844         (TEST): Also test whether a string hexadecimal float representation
10845         can be parsed back to the number.
10846         (main): Add a couple of further tests.
10848 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10850         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10851         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10852         is non-zero, but smaller than 2 * __DBL_MIN__.
10853         * stdio-common/tst-sprintf2.c: New test.
10854         * stdio-common/Makefile (tests): Add tst-sprintf2.
10856         * math/test-misc.c (main): Don't run last batch of tests with
10857         IBM long double format.
10859 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10861         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10862         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10863         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10864         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10865         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10866         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10867         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10868         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10869         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10870         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10873         New file.
10874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10875         New file.
10876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10877         New file.
10878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10879         New file.
10880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10881         New file.
10882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10884         New file.
10885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10886         New file.
10887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10888         New file.
10889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10890         New file.
10891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10892         New file.
10894 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10896         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10897         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10898         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10899         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10900         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10901         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10902         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10903         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10905 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10907         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10908         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10909         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10910         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10911         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10912         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10913         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10914         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10916 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10918         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10919         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10920         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10921         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10923 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10925         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10926         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10928 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10930         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10931         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10932         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10933         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10935 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10937         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10938         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10940 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10942         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10943         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10945         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10946         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10947         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10948         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10950 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10952         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10953         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10954         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10955         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10957 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10959         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10960         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10961         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10962         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10963         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10964         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10966 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10968         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10969         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10970         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10971         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10973 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10975         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10976         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10977         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10978         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10979         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10980         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10981         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10982         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10983         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10984         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10985         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10986         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10987         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10988         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10989         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10990         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10992 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10994         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10995         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10997 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10999         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
11000         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
11002 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
11004         * sysdeps/powerpc/powerpc32/970/Implies: New file.
11005         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
11006         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
11007         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
11008         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
11009         * sysdeps/powerpc/powerpc64/970/Implies: New file.
11010         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
11011         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
11012         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
11013         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
11015 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
11017         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
11019 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
11021         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
11022         branch miss-predicts. Ensure that cache line crossing does not impact
11023         dispatch grouping.
11025 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
11027         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
11028         "../../powerpc32/power4/memcopy.h".
11029         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
11030         "../../powerpc32/power4/wordcopy.c".
11032 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
11034         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
11035         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
11036         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
11037         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
11038         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
11039         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
11041 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
11043         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
11045 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
11047         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
11048         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
11049         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
11050         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
11051         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
11052         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
11053         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
11054         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
11056 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
11058         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
11060 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
11062         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
11063         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
11064         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
11065         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
11066         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
11067         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
11068         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
11070 2007-05-29  Roland McGrath  <roland@redhat.com>
11072         * po/Makefile (po-sed-cmd): New variable.
11073         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
11075 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
11077         * crypt/md5-crypt.c: Fix comment.
11079         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
11080         of crashing.  When this is the case or if the reply is malformed,
11081         don't try to close the new file descriptor since it does not
11082         exist.
11083         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
11085 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
11087         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
11088         if __NR_utimensat is not defined.
11090 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
11092         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
11094 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
11096         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
11097         (open): Fix comment typos.  Don't call __open_2 if flags
11098         is a compile time constant without O_CREAT.
11099         (__open64_2): Add nonnull attribute.
11100         (open64): Fix comment typos.  Don't call __open64_2 if flags
11101         is a compile time constant without O_CREAT.
11102         (__openat_2): Add nonnull attribute, fix nonnull attribute
11103         on redirect.
11104         (openat): Fix comment typos.  Don't call __openat_2 if flags
11105         is a compile time constant without O_CREAT.
11106         (__openat64_2): Add nonnull attribute, fix nonnull attribute
11107         on redirect.
11108         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
11109         is a compile time constant without O_CREAT.
11111 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
11113         * Makerules (sysd-rules): Define PTW for ptw-* files.
11114         * Versions: Define GLIBC_2.7 for libc.
11115         * include/stdio.h: Declare __fortify_fail.
11116         * debug/fortify_fail.c: New file.
11117         * debug/Makefile (routines): Add fortify_fail.
11118         * debug/chk_fail.c: Use __fortify_fail.
11119         * debug/stack_chk_fail.c: Likewise.
11120         * io/Versions: Export __open_2, __open64_2, __openat_2, and
11121         __openat64_2 for GLIBC_2.7.
11122         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
11123         * io/open.c: Define *_2 variant of function which checks for O_CREAT
11124         and fails if necessary.
11125         * io/open64.c: Likewise.
11126         * io/openat.c: Likewise.
11127         * io/openat64.c: Likewise.
11128         * sysdeps/unix/sysv/linux/open64.c: Likewise.
11129         * sysdeps/unix/sysv/linux/openat.c: Likewise.
11130         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
11131         * io/bits/fcntl2.h: New file.
11132         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
11133         __openat64_2.
11134         * include/bits/fcntl2.h: New file.
11135         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11136         Add open_2.
11137         * sysdeps/unix/sysv/linux/open_2.c: New file.
11139 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
11141         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
11142         as second parameter to handle_intel.
11144         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
11145         the entry.
11147         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
11148         handling to ...
11149         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
11150         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11151         cacheinfo.
11152         * sysdeps/x86_64/memcpy.S: Complete rewrite.
11153         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
11154         Patch by Evandro Menezes <evandro.menezes@amd.com>.
11156         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
11158 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
11160         [BZ #4525]
11161         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
11162         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11163         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11165         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11167         [BZ #4514]
11168         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11169         reinitialize workend at the start of each do_positional format spec
11170         loop, free workstart before do_positional loops.
11171         (printf_unknown): Fix size of work_buffer.
11172         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11174         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11175         (public_sET_STATe): If ms->version < 3, put all chunks into
11176         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11177         chunks.
11179         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11180         * malloc/hooks.c: Likewise.
11181         * malloc/arena.c: Likewise.
11182         * malloc/malloc.c (do_check_malloc_state): Don't assert
11183         n_mmaps is not greater than n_mmaps_max.  This removes the need
11184         for the previous change.
11186         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11187         2007-05-07 commit.
11189 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11191         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11192         Define for kernel >= 2.6.22.
11194 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11196         * elf/dl-close.c (_dl_close_worker): When removing object from
11197         global scope, wait for all lookups to finish afterwards.
11198         * elf/dl-open.c (add_to_global): When global scope array must
11199         grow, allocate a new one and free old array only after all
11200         lookups finish.
11201         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11202         (_dl_lookup_symbol_x): Likewise.
11203         * elf/dl-support.c: Define _dl_wait_lookup_done.
11204         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11205         _dl_wait_lookup_done.
11207         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11208         not overlapping with arena.
11210         * malloc/mcheck.c (reallochook): If size==0, free the block.
11212         * rt/tst-shm.c: Use fstat64 instead of fstat.
11214         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11215         __NR_sync_file_range is not defined.
11217 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11219         Dummy files to prevent stub versions from being used.
11220         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11221         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11222         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11223         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11225         * version.h (VERSION): Set to 2.6.90.
11227 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11229         * version.h (VERSION): Define to 2.6.
11230         * include/features.h (__GLIBC_MINOR__): Define to 6.
11232         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11234         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11235         sizes.
11237 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11239         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11240         number of mmaps.  n_mmaps_max is the target.
11241         * malloc/hooks.c: Likewise.
11242         * malloc/arena.c: Likewise.
11244 2007-05-12  Andreas Jaeger  <aj@suse.de>
11246         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11247         getpid.
11249 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11251         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11252         adding new variables.
11254         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11255         optimize.  Completely extend global scope array before making the
11256         new entries visible.
11258 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11260         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11261         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11262         tst-getcpu.
11264         * include/link.h: Move l_version and l_nversion members around to
11265         fill gaps.
11267         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11269         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11270         (__sched_setaffinity_new): If syscall was successful and
11271         RESET_VGETCPU_CACHE is defined, use it before returning.
11272         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11274         * io/sys/stat.h: Make sure struct timespec is defined for
11275         __USE_ATFILE.
11277         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11278         UTIME_OMIT.
11279         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11280         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11281         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11282         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11283         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11284         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11285         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11286         * io/sys/stat.h: Declare utimensat, futimens.
11287         * io/utimensat.c: New file.
11288         * io/futimens.c: New file.
11289         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11290         * sysdeps/unix/sysv/linux/futimens.c: New file.
11291         * io/Makefile (routines): Add utimensat, futimens.
11292         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11293         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11294         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11295         available.
11297         * include/sys/cdefs.h: Redefine __nonnull so that test for
11298         incorrect parameters in the libc code itself are not omitted.
11300 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11302         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11303         exception in addition to inexact when asked to raise only FE_INEXACT.
11305         [BZ #3427]
11306         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11307         in *envp.
11309 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11311         [BZ #4403]
11312         * string/strfry.c (strfry): Make result more random.
11314 2007-05-07  Richard Henderson  <rth@redhat.com>
11316         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11317         if __NO_LONG_DOUBLE_MATH.
11318         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11319         available in the compiler, add .arch directive to the assembly.
11321 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11323         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11324         compat_symbol to GLIBC_2_1.
11325         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11326         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11327         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11328         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11329         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11330         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11331         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11332         libc, not libm.
11333         (__isnanl): New compat_symbol.
11335 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11336             Jakub Jelinek  <jakub@redhat.com>
11338         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11339         (new_heap): Initialize mprotect_size.
11340         (grow_heap): When growing, only mprotect from mprotect_size till
11341         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11342         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11344 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11345             Peter Bergner  <bergner@us.ibm.com>
11347         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11348         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11349         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11350         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11351         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11352         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11353         Call __fe_mask_env() if all FP exceptions disabled.
11354         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11355         from old FPSCR to new fenv to propagate DFP rounding modes.
11356         Call __fe_mask_env() if FP exceptions previously enabled.
11357         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11358         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11359         transitioning from all exceptions disabled to any exception enabled
11360         or visa versa.
11361         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11362         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11363         when transitioning from all exceptions disabled to any exception
11364         enabled or visa versa.
11365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11372 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11374         [BZ #4465]
11375         * posix/unistd.h: Remove __THROW from fdatasync.
11377 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11379         [BZ #4465]
11380         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11382 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11384         * stdio-common/vfprintf.c (process_string_arg): Optimize
11385         ridiculous precision in wide char code printing multi-byte string.
11386         Reported by Jim Meyering <jim@meyering.net>.
11388         [BZ #4131]
11389         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11390         boundaries to work around systems with overlapping binary loading.
11391         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11393 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11395         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11396         __mbsnrtowcs after last change.
11398         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11399         (get_ident): Likewise.
11401 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11403         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11404         with setting the sticky bit.
11405         * math/test-misc.c (main): Add more truncation tests.
11407 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11409         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11410         double in the function declaration.
11411         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11412         double in the function declaration.
11413         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11414         float in the function declaration.
11415         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11416         float in the function declaration.
11418         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11419         denormal operands.  Do not generate FP_EX_DENORM exception.
11420         (FP_UNPACK_RAW_EP): Ditto.
11421         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11422         undefined _FP_UNPACK_RAW_E.
11423         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11424         undefined _FP_UNPACK_RAW_EP.
11425         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11426         undefined _FP_PACK_RAW_E.
11427         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11428         undefined _FP_PACK_RAW_EP.
11430         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11431         _FP_FRAC_COPY_2.
11432         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11433         _FP_FRAC_COPY_4.
11435 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11436             Jakub Jelinek  <jakub@redhat.com>
11438         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11439         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11440         this case.
11441         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11443 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11445         * math/test-misc.c (main): Add tests for rounding long double
11446         values close to smallest double denormalized value to double.
11448 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11450         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11451         condition for truncating to 0.  Set sticky bit for such
11452         truncation.
11454 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11456         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11457         fixed length array for ignore.
11459 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11461         [BZ #4438]
11462         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11463         stack for large precisions.
11464         * stdio-common/test-vfprintf.c (main): Add test for large
11465         precision.
11467 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11469         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11470         for exponent 0.
11471         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11473         [BZ #4439]
11474         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11475         account in the size check.
11476         * resolv/tst-inet_ntop.c: New test.
11477         * resolv/Makefile (tests): Add tst-inet_ntop.
11479 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11480             Jakub Jelinek  <jakub@redhat.com>
11482         [BZ #4349]
11483         * malloc/malloc.c: Keep separate list for first blocks on the bin
11484         lists with a given size.  This helps skipping over list elements
11485         we know won't fit in two places.
11486         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11488 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11490         [BZ #4102]
11491         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11492         label to Teredo tunnel addresses 2001://32.
11494 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11496         * locale/programs/ld-collate.c (collate_read): Allow order_start
11497         after copy.
11499         * locale/programs/ld-collate.c (collate_read): Fix printing of
11500         error message.
11502         [BZ #3213]
11503         * locale/C-translit.h.in: Add entry for U2044.
11505         [BZ #4342]
11506         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11507         hexa-decimal floats without exponent.
11508         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11510 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11512         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11513         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11514         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11515         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11516         GLIBC_2.6.
11517         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11518         Add sched_getcpu.
11520 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11522         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11523         of 0 after the out_fail label.
11525 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11527         [BZ #4406]
11528         * iconv/gconv_charset.h (strip): Allow ':'.
11529         * iconv/iconv_open.c (iconv_open): Adjust comment.
11531 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11533         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11534         version.
11536 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11538         [BZ #4381]
11539         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11540         alignment of buffer and tmp_buffer.
11541         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11542         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11543         alignment of buffer.
11544         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11545         bigger than INT_MAX.
11546         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11547         h_errnop arguments.  Fail if buflen is too small.
11548         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11550 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11552         [BZ #4405]
11553         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11554         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11556 2007-04-22  Roland McGrath  <roland@redhat.com>
11558         * elf/elf.h (NT_PRXFPREG): New macro.
11560 2007-04-19  Andreas Jaeger  <aj@suse.de>
11562         [BZ #3905]
11563         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11564         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11565         Added.
11567 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11569         * include/sys/mman.h: Mark madvise hidden.
11570         * misc/madvise.c: Add libc_hidden_def.
11572 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11574         * nis/nis_domain_of.c (__nis_domain_of): New function.
11575         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11576         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11577         * nis/nis_call.c (rec_dirsearch): Likewise.
11578         (first_shoot): Likewise.  Remove search_parent_first argument.
11579         (struct nis_server_cache): Rename search_parent_first field
11580         to search_parent.
11581         (nis_server_cache_search, nis_server_cache_add): Rename
11582         search_parent_first argument to search_parent.
11583         (__nisfind_server): Likewise.  If search_parent, call
11584         __nis_domain_of.
11586 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11588         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11590 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11592         [BZ #4368]
11593         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11595 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11597         [BZ #4364]
11598         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11600 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11602         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11603         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11604         current number of locales in SUPPORTED.
11605         (create_archive): Initialize serial.
11606         (enlarge_archive): Preserve aliases rather than duplicating
11607         their locrecs.
11609 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11611         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11612         after _IO_un_link, not before it.
11614         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11615         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11616         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11618 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11620         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11621         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11622         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11623         Remove __THROW.
11624         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11625         _IO_file_xsgetn_maybe_mmap): Likewise.
11626         * libio/oldfileops.c (old_do_write): Likewise.
11627         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11628         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11629         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11630         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11631         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11632         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11633         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11634         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11635         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11636         _IO_file_underflow, _IO_file_underflow_mmap,
11637         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11638         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11639         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11640         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11641         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11642         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11643         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11644         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11645         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11646         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11647         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11648         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11649         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11650         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11651         _IO_adjust_column_internal, _IO_default_uflow_internal,
11652         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11653         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11654         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11655         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11656         _IO_file_close_it_internal, _IO_file_underflow_internal,
11657         _IO_file_overflow_internal, _IO_file_attach_internal,
11658         _IO_file_fopen_internal, _IO_file_sync_internal,
11659         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11660         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11661         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11662         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11663         _IO_seekpos_unlocked): Likewise.
11664         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11665         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11667 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11669         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11670         argument in xmalloc size computation.
11672 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11674         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11675         math_opt_barrier and math_force_eval macros.
11677 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11679         [BZ #3306]
11680         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11681         * sysdeps/i386/fpu/math_private.h: New file.
11682         * sysdeps/x86_64/fpu/math_private.h: New file.
11683         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11684         math_force_eval macros.  Use "+m" constraint on asm rather than
11685         "=m" and "m".
11686         * math/s_nextafter.c (__nextafter): Likewise.
11687         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11688         Likewise.
11689         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11690         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11691         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11692         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11693         math_opt_barrier and math_force_eval macros.
11694         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11695         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11696         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11697         (__nexttoward): Use math_opt_barrier and
11698         math_force_eval macros.  Use "+m" constraint on asm rather than
11699         "=m" and "m".  Only use asm to force double result if
11700         FLT_EVAL_METHOD is 2.
11701         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11702         (__nexttowardf): Use math_opt_barrier and
11703         math_force_eval macros.  Use "+m" constraint on asm rather than
11704         "=m" and "m".  Only use asm to force double result if
11705         FLT_EVAL_METHOD is not 0.
11706         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11707         (__nexttowardf): Use math_opt_barrier and
11708         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11709         x to float using asm.
11710         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11711         (__nldbl_nexttowardf): Use math_opt_barrier and
11712         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11713         x to float using asm.
11714         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11715         (__nexttowardf): Use math_opt_barrier and math_force_eval
11716         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11717         * math/bug-nextafter.c (zero, inf): New variables.
11718         (main): Add new tests.
11719         * math/bug-nexttoward.c (zero, inf): New variables.
11720         (main): Add new tests.
11722 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11724         [BZ #3427]
11725         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11726         exceptions both in SW and MXCSR.
11727         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11728         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11729         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11730         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11731         in MXCSR if SSE is available.
11732         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11733         and ldsodefs.h.
11734         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11735         Fix comment typo.
11736         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11737         Return 0 rather than 1.
11738         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11739         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11740         * math/test-fenv.c (feholdexcept_tests): New function.
11741         (main): Call it.
11743 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11745         [BZ #3427]
11746         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11747         in SW.
11749 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11751         [BZ #4344]
11752         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11753         Reported by David Anderson <davea42@earthlink.net>.
11755 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11757         * posix/sys/wait.h: Remove unnecessary forward declaration.
11759 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11761         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11762         with obj->do_servers after first_shoot.
11764 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11766         * posix/Makefile (routines): Add sched_cpucount.
11767         (tests): Add tst-cpucount.
11768         * posix/sched_cpucount.c: New file.
11769         * posix/tst-cpucount.c: New file.
11770         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11771         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11772         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11773         * posix/sched.h: Define CPU_COUNT.
11775 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11777         * posix/fnmatch.c (STRUCT): Define.
11778         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11779         * posix/fnmatch_loop.c (struct STRUCT): New type.
11780         (FCT): Add ends argument.  If ends != NULL and normal * is
11781         seen in the pattern, store current pattern and string pointers
11782         and return.  Adjust recursive calls.
11783         (EXT): Adjust FCT callers.
11784         (STRUCT): Undef at the end of the file.
11785         * posix/Makefile (tests): Add tst-fnmatch2.
11786         * posix/tst-fnmatch2.c: New test.
11788 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11790         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11791         and 1 on failure.
11793         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11794         Change last argument to unsigned int.
11796 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11798         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11800 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11802         * config.h.in (HAVE_LIBCAP): Add.
11803         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11804         sys/capabilities.h.
11805         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11806         free_caps.  Cast away const from 4th cap_set_flag argument.
11808 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11810         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11811         GLIBC_2.6.
11812         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11813         Add sync_file_range.
11814         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11816 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11818         * sysdeps/powerpc/bits/atomic.h
11819         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11820         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11821         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11822         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11823         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11824         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11825         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11826         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11827         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11828         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11829         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11830         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11831         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11832         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11833         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11834         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11835         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11836         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11837         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11838         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11840 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11842         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11843         (__cache_line_size): Define the variable here.  Add
11844         attribute_hidden, remove weak_extern.
11845         (__libc_start_main): Set __cache_line_size
11846         unconditionally.
11847         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11848         (__cache_line_size): Define the variable here.  Add
11849         attribute_hidden, remove weak_extern.
11850         (DL_PLATFORM_AUXV): Set __cache_line_size
11851         unconditionally.
11852         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11853         weak_extern, add attribute_hidden.
11854         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11855         defined in ld.so.
11856         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11857         definition.
11858         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11860 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11862         [BZ #4276]
11863         * timezone/africa: Update from tzdata2007d.
11864         * timezone/asia: Likewise.
11865         * timezone/australasia: Likewise.
11866         * timezone/backward: Likewise.
11867         * timezone/europe: Likewise.
11868         * timezone/iso3166.tab: Likewise.
11869         * timezone/leapseconds: Likewise.
11870         * timezone/northamerica: Likewise.
11871         * timezone/southamerica: Likewise.
11872         * timezone/zone.tab: Likewise.
11874         * timezone/private.h: Update from tzcode2007d.
11875         * timezone/zdump.c: Likewise.
11876         * timezone/zic.c: Likewise.
11878 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11880         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11881         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11882         variables.
11883         (nis_server_cache_search, nis_server_cache_add): New functions.
11884         (__nisfind_server): Use them.  Add dbp and flags argument, if
11885         call __nisbind_create.
11886         (__nisbind_create): Add server_used and current_ep arguments,
11887         only call __nis_findfastest if server_used is ~0.
11888         (__do_niscall2, __prepare_niscall): Adjust callers.
11889         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11890         ckey_cache_euid, ckey_cache_lock): New variables.
11891         (get_ckey): New function.
11892         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11893         __pmap_getnisport.  Save __pmap_getnisport result in
11894         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11895         key.
11896         * nis/nis_lookup.c (nis_lookup): Likewise.
11897         * nis/nis_table.c (nis_list): Likewise.
11898         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11899         prototypes.
11901         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11902         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11903         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11904         _nss_nisplus_getservbyport_r): Likewise.
11905         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11906         _nss_nisplus_getnetbyaddr_r): Likewise.
11907         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11908         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11909         _nss_nisplus_getntohost_r): Likewise.
11910         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11911         _nss_nisplus_getrpcbynumber_r): Likewise.
11913 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11915         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11916         * configure: Rebuilt.
11918         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11919         bit-fields.
11920         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11922 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11924         [BZ #2831]
11925         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11926         bit-fields.
11928 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11930         * nscd/gai.c: Include alloca.h.
11931         (__libc_use_alloca): Define.
11933 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11935         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11936         smaller scopes.
11937         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11938         (DL_DST_REQUIRED): Adjust user.
11940         * include/dlfcn.h (struct link_map): New forward decl.
11942         * inet/getnameinfo.c: Include stddef.h.
11943         (getnameinfo): Use offsetof.
11945         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11947         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11949         * string/strerror_l.c: Include stdlib.h.
11951         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11952         * config.make.in (gnu89-inline-CFLAGS): New variable.
11953         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11954         -std=gnu99.
11955         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11956         * argp/argp.h: Use it.
11957         * bits/mathinline.h: Likewise.
11958         * bits/sigset.h: Likewise.
11959         * bits/string.h: Likewise.
11960         * ctype/ctype.h: Likewise.
11961         * hurd/hurd.h: Likewise.
11962         * hurd/hurd/fd.h: Likewise.
11963         * hurd/hurd/port.h: Likewise.
11964         * hurd/hurd/signal.h: Likewise.
11965         * hurd/hurd/threadvar.h: Likewise.
11966         * hurd/hurd/userlink.h: Likewise.
11967         * io/sys/stat.h: Likewise.
11968         * libio/bits/stdio.h: Likewise.
11969         * libio/bits/stdio2.h: Likewise.
11970         * mach/lock-intern.h: Likewise.
11971         * mach/mach/mig_support.h: Likewise.
11972         * math/bits/cmathcalls.h: Likewise.
11973         * posix/bits/unistd.h: Likewise.
11974         * socket/bits/socket2.h: Likewise.
11975         * stdlib/bits/stdlib.h: Likewise.
11976         * stdlib/stdlib.h: Likewise.
11977         * string/argz.h: Likewise.
11978         * string/bits/string2.h: Likewise.
11979         * string/bits/string3.h: Likewise.
11980         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11981         * sysdeps/generic/inttypes.h: Likewise.
11982         * sysdeps/generic/machine-lock.h: Likewise.
11983         * sysdeps/generic/machine-sp.h: Likewise.
11984         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11985         * sysdeps/i386/i486/bits/string.h: Likewise.
11986         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11987         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11988         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11989         * sysdeps/mach/i386/machine-lock.h: Likewise.
11990         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11991         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11992         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11993         * sysdeps/s390/bits/string.h: Likewise.
11994         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11995         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11996         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11997         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11998         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11999         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
12000         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12001         * wcsmbs/bits/wchar2.h: Likewise.
12002         * wcsmbs/wchar.h: Likewise.
12003         * stdlib/gmp.h: Likewise.  Include <features.h> to get
12004         __extern_inline definition.
12006 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
12008         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
12009         NULL.
12011         [BZ #3919]
12012         * math/libm-test.inc (log_test): Test -Inf and NaN.
12013         (log10_test, log1p_test, log2_test): Test -Inf.
12014         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
12015         FE_INVALID when argument is qNaN.
12016         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
12017         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
12018         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
12019         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
12020         andb $1, %ah with testb $1, %ah, don't test for parity, instead
12021         testb $4, %ah and jump if non-zero.
12022         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
12023         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
12025         [BZ #4101]
12026         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
12027         ancestors with the same depths.
12028         Patch by Niels Moeller <nisse@lysator.liu.se>.
12029         (filter_doc): Don't crash if argp is NULL.
12030         * argp/Makefile (tests): Add tst-argp2.
12031         * argp/tst-argp2.c: New test.
12033         [BZ #4130]
12034         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
12035         open_not_cancel_2.
12036         (updwtmp_file): Likewise.
12038         [BZ #4181]
12039         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
12040         (inet6_opt_append): Don't check extlen is big enough if extbuf
12041         is NULL.
12042         (inet6_opt_finish): Likewise.
12043         * inet/Makefile (tests): Add test-inet6_opt.
12044         * inet/test-inet6_opt.c: New test.
12046         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
12047         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
12048         NLMSG_ERR.  Instead use a page sized buffer.
12049         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
12050         buffer.
12052 2007-03-14  Richard Henderson  <rth@redhat.com>
12054         * sysdeps/alpha/fpu/s_llround.c: New file.
12055         * sysdeps/alpha/fpu/s_llroundf.c: New file.
12056         * sysdeps/alpha/fpu/s_lround.c: New file.
12057         * sysdeps/alpha/fpu/s_lroundf.c: New file.
12058         * sysdeps/alpha/fpu/s_round.c: New file.
12059         * sysdeps/alpha/fpu/s_roundf.c: New file.
12060         * sysdeps/alpha/fpu/s_trunc.c: New file.
12061         * sysdeps/alpha/fpu/s_truncf.c: New file.
12063         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
12064         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12065         * sysdeps/alpha/fpu/s_floor.c: Likewise.
12066         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12067         * sysdeps/alpha/fpu/s_rint.c: Likewise.
12068         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12070         * sysdeps/alpha/fpu/s_fmax.S: New file.
12071         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
12072         * sysdeps/alpha/fpu/s_fmin.S: New file.
12073         * sysdeps/alpha/fpu/s_fminf.S: New file.
12074         * sysdeps/alpha/fpu/s_isnan.c: New file.
12075         * sysdeps/alpha/fpu/s_isnanf.c: New file.
12076         * sysdeps/alpha/fpu/s_llrint.c: New file.
12077         * sysdeps/alpha/fpu/s_llrintf.c: New file.
12078         * sysdeps/alpha/fpu/s_lrint.c: New file.
12079         * sysdeps/alpha/fpu/s_lrintf.c: New file.
12080         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
12081         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
12083         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
12084         (__fdimf, fdimf, __fdim, fdim): Remove.
12085         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
12086         (__isnanf, __isnan, __isnanl): New.
12088 2007-03-13  Richard Henderson  <rth@redhat.com>
12090         * sysdeps/ieee754/ldbl-128/Makefile: New file.
12092 2007-03-13  Richard Henderson  <rth@redhat.com>
12094         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
12095         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
12096         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
12097         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
12098         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
12099         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
12101 2007-03-13  Richard Henderson  <rth@redhat.com>
12103         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
12104         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
12105         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
12106         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
12107         Move to dl-auxv.h; initialize instead of extern weak.
12108         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
12109         weak symbol.
12110         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
12111         Extern instead of initialized.
12113 2007-03-13  Richard Henderson  <rth@redhat.com>
12115         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
12116         __sigsuspend_nocancel.
12118 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
12120         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
12121         172.16/12 address range.
12123 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
12125         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
12126         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
12127         message.
12129 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
12131         [BZ #4069]
12132         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
12133         earlier.
12134         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
12136         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
12137         for x qNaN and y either +-inf or non-integer value.
12138         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
12139         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12140         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12142 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
12144         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
12145         from sysdep_headers.
12147 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
12149         * time/tzfile.c (find_transition): Instead of a linear search try to
12150         guess the transition index, use a linear search if the result is at
12151         most 10 transitions away from the guess or binary search otherwise.
12153 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
12155         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
12156         memory reallocation.
12158 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
12160         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
12161         and fix some typos.
12162         Optimize use of TOLOWER.
12164         [BZ #3325]
12165         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12166         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12167         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12169         [BZ #3458]
12170         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12171         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12173         [BZ #4076]
12174         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12175         (open_dir_stream): Likewise.
12176         * io/Makefile (tests): Add bug-ftw5.
12177         * io/bug-ftw5.c: New file.
12179         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12180         * nscd/servicescache.c (cache_addserv): Likewise.
12182         * nscd/grpcache.c (cache_addgr): In case a record changed on
12183         refresh, adjust key_copy.
12185         [BZ #4074]
12186         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12187         refresh, adjust key_copy.
12189         [BZ #4070]
12190         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12191         special cases.
12192         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12194 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12196         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12197         optimization.
12199         * stdio-common/vfscanf.c: Small cleanups throughout.
12201 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12203         [BZ #3325]
12204         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12205         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12206         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12207         Patch by Jared Casper <jaredcasper@gmail.com>.
12209         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12210         * sysdeps/unix/opendir.c: Likewise.
12211         * sysdeps/unix/readdir.c: Likewise.
12213         [BZ #2211]
12214         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12215         point numbers.
12216         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12218         * stdio-common/vfscanf.c: Fix problems in width accounting.
12219         * stdio-common/tst-sscanf.c (double_tests): New tests.
12220         (main): Hook them up.
12222         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12223         More simplifications of floating-point reader.
12225         * stdio-common/Makefile (tests): Add tst-swscanf.
12226         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12227         testing.
12228         * stdio-common/tst-swscanf.c: New file.
12230 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12232         [BZ #2633]
12233         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12234         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12235         Remove using for __jmp_buf_tag.
12236         * locale/locale.h (struct lconv): Also define in std namespace.
12237         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12239         [BZ #3842]
12240         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12241         using __libc_enable_secure.
12243         [BZ #3818]
12244         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12246         [BZ #3745]
12247         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12248         of names for ellipsises.
12250         [BZ #3348]
12251         * malloc/memusage.sh: Cleanups.
12252         * debug/xtrace.sh: Quoting and trap changes.
12254 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12256         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12258         * locale/iso-3166.def: Update entry for Serbia.
12259         * locale/iso-4217.def: Define RSD, remove CSD.
12261         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12262         and 64-bit operations.
12264         [BZ #4040]
12265         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12266         16-bit operations.
12268         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12269         of writev.
12271 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12273         [BZ #3991]
12274         * assert/assert.h (assert): Simplify.
12275         (assert_perror): Likewise.
12276         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12278         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12279         reqdata.
12281         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12282         change: don't pass NULL in place of an integer.
12284 2007-02-02  Bruno Haible  <bruno@clisp.org>
12286         [BZ #3954]
12287         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12288         Add mapping for U+327E.
12289         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12290         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12291         mapping of 0xD9 0xE8.
12292         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12293         mapping of U+327E.
12294         Reported by Jungshik Shin <jungshik@google.com>.
12296         [BZ #3955]
12297         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12298         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12299         Reported by Jungshik Shin <jungshik@google.com>.
12301 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12303         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12304         byte variants.
12306         [BZ #4040]
12307         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12308         byte variants.  Patch mostly be tom@tommay.net.
12310 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12312         [BZ #3996]
12313         * posix/glob.c (attribute_hidden): Define if not defined.
12314         (glob): Unescape dirname, filename or username when needed and not
12315         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12316         is NULL.  Handle unescaped [ in pattern without closing ].
12317         Don't pass GLOB_CHECK down to recursive glob for directories.
12318         (__glob_pattern_type): New function.
12319         (__glob_pattern_p): Implement using __glob_pattern_type.
12320         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12321         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12322         Remove unreachable code.
12323         * posix/globtest.sh: Add a couple of new tests.
12325 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12327         * po/ru.po: Update from translation team.
12329 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12331         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12332         to the list of i486+ CPUs.
12333         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12335 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12337         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12338         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12339         references.
12341 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12343         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12345         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12346         * resolv/res_mkquery.c: Define __res_nopt.
12347         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12348         try adding EDNS0 record.
12349         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12350         EDNS0 record was send make sure we don't try it again.
12351         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12352         * include/resolv.h: Declare __res_nopt.
12354 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12356         [BZ #3944]
12357         * time/strptime_l.c (__strptime_internal): Set have_mon for
12358         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12359         have been computed from tm_yday and tm_year.  Don't crash
12360         in day_of_the_week or day_of_the_year if not have_mon
12361         and tm_mon contains bogus value.
12362         * time/Makefile (tests): Add tst-strptime3.
12363         * time/tst-strptime3.c: New test.
12365 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12367         [BZ #3957]
12368         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12369         bit for RE_HAT_LISTS_NOT_NEWLINE.
12370         (build_charclass_op): Remove bogus comment.
12371         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12372         * posix/bug-regex27.c: New test.
12373         * posix/bug-regex28.c: New test.
12375 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12377         * po/sv.po: Update from translation team.
12379 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12381         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12383 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12385         * include/locale.h (__uselocale): Add libc_hidden_proto.
12386         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12388         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12389         gettimeofday.
12391 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12393         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12394         returning.
12395         (PTR_DEMANGLE): Real definition now that it's not the same as
12396         PRT_MANGLE anymore.
12397         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12399         * string/strerror_l.c: New file.
12400         * string/Makefile (routines): Add strerror_l.
12401         * string/string.h: Declare strerror_l.
12402         * string/Versions: Export strerror_l for GLIBC_2.6.
12404 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12406         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12407         as parameter.  Construct request record.  Try sending request
12408         before the first poll use, it usually succeeds.  Adjust all
12409         callers.
12410         * nscd/nscd-client.h: Define MAXKEYLEN.
12411         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12413 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12415         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12416         from return value.
12417         * nscd/nscd_helper.c: Include string.h.
12418         (__nscd_cache_search): Remove const qualifier from return value.
12419         On strict alignment architectures check hash entry and data head
12420         alignment.
12421         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12422         mmapped data during GC cycle contains garbage.  If
12423         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12424         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12425         dropped to 0.
12426         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12427         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12428         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12429         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12430         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12432 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12434         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12436 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12438         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12439         names not numbers in cfi_*.
12441 2007-01-26  Andreas Jaeger  <aj@suse.de>
12443         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12444         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12445         Correct values of PER_HPUX and PER_OSF4.
12447 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12449         * elf/dl-minimal.c: Undefine _itoa first.
12450         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12451         * malloc/mtrace.c: Revert last change.
12452         * posix/wordexp.c: Likewise.
12454 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12456         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12457         and __geode__ to the list of i486+ CPUs.
12458         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12460 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12462         * stdio-common/_itoa.c: Include <limits.h>.
12463         * stdio-common/_itowa.c: Likewise.
12465 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12467         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12468         platforms.
12469         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12470         64-bit platforms.
12471         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12472         possible.
12473         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12474         if possible.
12476         [BZ #3902]
12477         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12478         * stdio-common/Makefile (tests): Add bug17.
12479         * stdio-common/bug17.c: New file.
12481 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12483         * iconvdata/brf.c: New file.
12484         * iconvdata/testdata/BRF: New file.
12485         * iconvdata/testdata/BRF..UTF8: New file.
12486         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12487         * iconvdata/Makefile: Add rules to build BRF.
12488         * iconvdata/TESTS: Add BRF entry.
12489         * iconvdata/gconv-modules: Likewise.
12490         * iconvdata/tst-tables.sh: Likewise.
12492 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12494         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12495         type `long long int', not `long int'.
12496         (wcstoq): Likewise.
12498 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12500         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12501         of values on 64-bit platforms which are too large.
12503 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12504             Joe Kerian  <jkerian@us.us.ibm.com>
12506         [BZ #2749]
12507         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12508         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12509         (__copysignl): Use signbit() for comparison.
12510         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12511         SET_LDOUBLE_WORDS64.
12513         [BZ #2423, #2749]
12514         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12515         (__ceill): Remove calls to fegetround(), fesetround().
12516         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12517         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12518         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12520 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12522         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12524         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12526 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12528         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12529         demangle pointer.
12530         * csu/libc-start.c: Likewise.
12532 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12534         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12535         really work anyway.
12537 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12539         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12540         users.
12541         (handle_request): Remove unnecessary tests.
12543         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12545 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12547         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12548         workbits in semi-raw fraction.
12550         * math/test-misc.c: Add new tests.
12552 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12554         * math/basic-test.c: Include test-skeleton.c.
12555         (TEST_TRUNC): Define.
12556         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12557         (main): Rename to ...
12558         (do_test): ...this.  Run new tests.
12559         (TEST_FUNCTION): Define.
12561 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12562             Joe Kerian  <jkerian@us.us.ibm.com>
12564         [BZ #2749]
12565         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12566         handling for high words.
12567         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12568         and overflow for infinity.
12570 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12572         * nscd/connections.c (handle_request): Add a __builtin_expect.
12574         * nscd/connections.c (serv2db): Change type into structure which
12575         also says whether this is a request for data.  Renamed to
12576         servinfo.  All users changed.
12577         (handle_request): Much simpler test whether we should search the cache.
12579         * nscd/connections.c (handle_request): Fix thinko in selinux test
12580         invocation.
12582         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12583         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12584         it before getting dl_load_lock and then relock.
12585         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12586         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12587         case we unlocked the scope.
12588         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12589         _dl_lookup_symbol_x in case we locked the scope.
12590         (_dl_profile_fixup): Likewise.
12591         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12592         set DL_LOOKUP_SCOPE_LOCK.
12594 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12596         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12597         CFLAGS-getsrvbynpt_r.c.
12598         * nscd/getsrvbynm_r.c: New file.
12599         * nscd/getsrvbypt_r.c: New file.
12600         * nscd/nscd_getserv_r.c: New file.
12601         * nscd/servicescache.c: New file.
12602         * nscd/Makefile (routines): Add nscd_getserv_r.
12603         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12604         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12605         CFLAGS-getsrvbypt_r.c.
12606         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12607         table.  Add entries for services database.
12608         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12609         services database.
12610         (dbs): Add .reset_res and servdb initialization.
12611         (serv2db): Add entries for services database.
12612         (verify_persistent_db): Accept dbnr == servdb.
12613         (invalidate_cache): Rewrite database name recognition to use a table.
12614         Call res_init() if .reset_res is set for database.
12615         (handle_request): Add code to handle services database.
12616         * nscd/gai.c: Don't define __getservbyname_r.
12617         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12618         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12619         (serv_response_header): Define.
12620         (struct datahead): Add serv_response_header member.
12621         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12622         using table.
12623         * nscd/nscd.conf: Add entries for services database.
12624         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12625         Declare serv_iov_disabled.
12626         Declare addservbyname, readdservbyname, addservbyport, and
12627         readdservbyport.
12628         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12629         (find_db): Fix error message.
12630         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12631         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12632         * nscd/selinux.c (perms): Add entries for services database.
12633         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12634         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12636         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12637         * nscd/hstcache.c: Likewise.
12638         * nscd/pwdcache.c: Likewise.
12640         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12641         computation of keylen.
12643         * include/string.h: Only redefine strndupa if this is really for
12644         libc code.
12646 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12648         * nscd/nscd_gethst_r.c: Minor cleanups.
12650         * nscd/connections.c (handle_request): Check selinux permissions
12651         for all non-admin commands.
12653         * sysdeps/i386/i486/bits/atomic.h: Define
12654         atomic_compare_and_exchange_val_acq,
12655         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12656         using __sync_* built-ins for gcc >= 4.1.
12657         * sysdeps/x86_64/bits/atomic.h: Likewise.
12659         [BZ #3840]
12660         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12661         and .oS.d files.
12663 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12665         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12666         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12667         (do_test): Check errno and exit(0) if ENOSYS.
12669 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12671         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12672         thousands separators.
12673         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12674         * stdlib/tst-strtod4.c: New test.
12676         [BZ #3855]
12677         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12678         hexadecimal digit should accept just the initial 0.
12679         * stdlib/tst-strtod2.c (tests): New variable.
12680         (do_test): Run several tests rather than just one.
12682 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12684         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12685         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12687 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12689         * io/fts.c: Make sure fts_cur is always valid after return from
12690         fts_read.
12691         Patch by Miloslav Trmac <mitr@redhat.com>.
12693 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12695         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12696         (R_MIPS_NUM): Bump by 1.
12698 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12700         * posix/execvp.c: Include alloca.h.
12701         (allocate_scripts_argv): Renamed to...
12702         (scripts_argv): ... this.  Don't allocate buffer here nor count
12703         arguments.
12704         (execvp): Use alloca if possible.
12705         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12706         * posix/tst-vfork3.c: New test.
12708 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12710         * string/Makefile (tst-strxfrm2-ENV): Define.
12711         * stdlib/Makefile (tst-strtod3-ENV): Define.
12713 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12715         * posix/getconf.c: Update copyright year.
12716         * nss/getent.c: Likewise.
12717         * iconv/iconvconfig.c: Likewise.
12718         * iconv/iconv_prog.c: Likewise.
12719         * elf/ldconfig.c: Likewise.
12720         * catgets/gencat.c: Likewise.
12721         * csu/version.c: Likewise.
12722         * elf/ldd.bash.in: Likewise.
12723         * elf/sprof.c (print_version): Likewise.
12724         * locale/programs/locale.c: Likewise.
12725         * locale/programs/localedef.c: Likewise.
12726         * nscd/nscd.c (print_version): Likewise.
12727         * debug/xtrace.sh: Likewise.
12728         * malloc/memusage.sh: Likewise.
12729         * malloc/mtrace.pl: Likewise.
12730         * debug/catchsegv.sh: Likewise.
12732 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12734         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12735         attempts.
12737 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12739         * posix/wordexp.c: Remove some unnecessary tests.
12741 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12743         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12744         blacklist the group till after we look it up.
12746 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12748         * include/atomic.h (atomic_forced_read): New macro.
12750 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12752         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12754 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12756         * nss/getXXbyYY_r.c: Include atomic.h.
12757         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12758         add atomic_write_barrier () in between.
12760         * stdlib/Makefile (tests): Add tst-makecontext.
12761         * stdlib/tst-makecontext.c: New test.
12763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12764         (__makecontext): Don't realign uc_mcontext.uc_regs.
12766 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12768         * elf/dl-support.c: Include dl-procinfo.h.
12769         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12770         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12771         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12772         Define.
12773         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12774         hardcoded constants.
12775         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12776         PPC_PLATFORM_* macros for array designators.
12778 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12780         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12781         names to the beginning.
12782         (_dl_powerpc_platforms): Add "power6x".
12783         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12784         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12785         (_DL_PLATFORMS_COUNT): Increase.
12786         (_dl_string_platform): Handle power6x case.
12787         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12788         PPC_FEATURE_POWER6_EXT): Define.
12789         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12791 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12793         [BZ #3747]
12794         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12795         [-2^31 .. 2^31) range.
12796         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12797         targets.
12798         * stdlib/tst-rand48-2.c: New test.
12799         * stdlib/Makefile (tests): Add tst-rand48-2.
12801 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12803         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12805 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12807         * misc/tst-pselect.c (do_test): Make sure the helper process is
12808         terminating when the test is aborted.
12810 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12812         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12813         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12814         Handle relatime mount option.
12816         [BZ #2337]
12817         * libio/Makefile (tests): Add tst-setvbuf1.
12818         * libio/tst-setvbuf1.c: New file.
12820 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12822         [BZ #2337]
12823         * libio/genops.c (__uflow): Fix a typo.
12824         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12825         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12826         the narrow buffer size.
12828 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12830         [BZ #2337]
12831         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12832         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12833         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12834         in _flags.
12835         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12836         _IO_wstr_finish): Likewise.
12837         * libio/wmemstream.c (open_wmemstream): Likewise.
12838         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12839         even for wide streams.
12841 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12844         kernel-features.h.
12846 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12848         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12849         separators also if no non-zero digits found.
12850         * stdlib/Makefile (tests): Add tst-strtod3.
12852 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12854         [BZ #3632]
12855         * include/features.h: Fix comment about default value for
12856         _POSIX_C_SOURCE.
12858         [BZ #3664]
12859         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12860         empty parsed strings.
12861         * stdlib/Makefile (tests): Add tst-strtod2.
12862         * stdlib/tst-strtod2.c: New file.
12864         [BZ #3673]
12865         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12866         computation.
12867         * stdlib/Makefile (tests): Add tst-atof2.
12868         * stdlib/tst-atof2.c: New file.
12870         [BZ #3674]
12871         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12872         correctly if removing trailing zero of hex-float.
12873         * stdlib/Makefile (tests): Add tst-atof1.
12874         * stdlib/tst-atof1.c: New file.
12876 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12878         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12879         Start searching for next comma at p rather than rest.
12880         * misc/Makefile (tests): Add tst-mntent2.
12881         * misc/tst-mntent2.c: New test.
12883         * misc/getusershell.c (initshells): Check for integer overflows.
12884         Make strings buffer one bigger as fgets always succeeds when second
12885         argument is 1.  Don't use calloc for shells array.  Disallow
12886         / as shell.
12888 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12890         * malloc/memusage.c: Handle realloc with new size of zero and
12891         non-NULL pointer correctly.
12892         (me): Really write first record twice.
12893         (struct entry): Make format bi-arch safe.
12894         (dest): Write out more realloc statistics.
12895         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12897 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12899         * nis/nis_subr.c (nis_getnames): Revert last change.
12901 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12903         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12904         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12905         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12906         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12907         ENOTTY.
12908         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12909         * io/tst-ttyname_r.c: New test.
12911 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12913         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12915 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12917         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12918         jump table entries.
12920 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12922         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12923         `clone' function to ensure proper unwinding stop of gdb.
12924         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12926 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12928         * nscd/nscd.init: Remove obsolete and commented-out -S option
12929         handling.
12931 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12933         [BZ #3514]
12934         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12936         [BZ #3515]
12937         * manual/string.texi (strtok): Remove duplicate paragraph.
12939 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12941         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12942         libgcc not supporting `rflags' unwinding (register # >= 17).
12944 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12946         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12947         succeeded.
12949 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12950             Jakub Jelinek  <jakub@redhat.com>
12951             Jan Kratochvil  <jan.kratochvil@redhat.com>
12953         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12954         unwind information.
12955         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12956         'restore_rt' even in the 'signal' directory.
12957         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12959 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12961         [BZ #3559]
12962         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12963         malloc crashed.  Don't allocate memory unnecessarily in each
12964         loop.
12966 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12968         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12970 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12972         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12974 2006-11-18  Bruno Haible  <bruno@clisp.org>
12976         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12977         __sysconf only after having tried to call getgroups32.
12979 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12981         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12982         addresses for IPv4 queries if they can be mapped.
12984 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12986         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12987         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12988         (signmask): Add .size directive.
12989         (othermask): Add .type directive.
12991 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12993         * po/nl.po: Update from translation team.
12995         * timezone/zdump.c: Redo fix for BZ #3137.
12997 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12999         * nss/nss_files/files-alias.c (get_next_alias): Set line back
13000         to first_unused after parsing :include: file.
13002 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13004         * timezone/africa: Update from tzdata2006o.
13005         * timezone/antarctica: Likewise.
13006         * timezone/asia: Likewise.
13007         * timezone/australasia: Likewise.
13008         * timezone/backward: Likewise.
13009         * timezone/europe: Likewise.
13010         * timezone/iso3166.tab: Likewise.
13011         * timezone/northamerica: Likewise.
13012         * timezone/southamerica: Likewise.
13013         * timezone/zone.tab: Likewise.
13015         * time/tzfile.c (__tzfile_read): Extend to handle new file format
13016         on machines with 64-bit time_t.
13018         * timezone/checktab.awk: Update from tzcode2006o.
13019         * timezone/ialloc.c: Likewise.
13020         * timezone/private.h: Likewise.
13021         * timezone/scheck.c: Likewise.
13022         * timezone/tzfile.h: Likewise.
13023         * timezone/tzselect.ksh: Likewise.
13024         * timezone/zdump.c: Likewise.
13025         * timezone/zic.c: Likewise.
13027         [BZ #3483]
13028         * elf/ldconfig.c (main): Call setlocale and textdomain.
13029         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13031         [BZ #3480]
13032         * manual/argp.texi: Fix typos.
13033         * manual/charset.texi: Likewise.
13034         * manual/errno.texi: Likewise.
13035         * manual/filesys.texi: Likewise.
13036         * manual/lang.texi: Likewise.
13037         * manual/maint.texi: Likewise.
13038         * manual/memory.texi: Likewise.
13039         * manual/message.texi: Likewise.
13040         * manual/resource.texi: Likewise.
13041         * manual/search.texi: Likewise.
13042         * manual/signal.texi: Likewise.
13043         * manual/startup.texi: Likewise.
13044         * manual/stdio.texi: Likewise.
13045         * manual/sysinfo.texi: Likewise.
13046         * manual/syslog.texi: Likewise.
13047         * manual/time.texi: Likewise.
13048         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13050         [BZ #3465]
13051         * sunrpc/clnt_raw.c: Minimal message improvements.
13052         * sunrpc/pm_getmaps.c: Likewise.
13053         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
13054         * nis/nis_print_group_entry.c: Likewise.
13055         * locale/programs/repertoire.c: Likewise.
13056         * locale/programs/charmap.c: Likewise.
13057         * malloc/memusage.sh: Likewise.
13058         * elf/dl-deps.c: Likewise.
13059         * locale/programs/ld-collate.c: Likewise.
13060         * libio/vswprintf.c: Likewise.
13061         * malloc/memusagestat.c: Likewise.
13062         * sunrpc/auth_unix.c: Likewise.
13063         * sunrpc/rpc_main.c: Likewise.
13064         * nscd/cache.c: Likewise.
13065         * locale/programs/repertoire.c: Unify output messages.
13066         * locale/programs/charmap.c: Likewise.
13067         * locale/programs/ld-ctype.c: Likewise.
13068         * locale/programs/ld-monetary.c: Likewise.
13069         * locale/programs/ld-numeric.c: Likewise.
13070         * locale/programs/ld-time.c: Likewise.
13071         * elf/ldconfig.c: Likewise.
13072         * nscd/selinux.c: Likewise.
13073         * elf/cache.c: Likewise.
13074         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
13076         [BZ #3451]
13077         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
13078         change atomic.
13079         (ceil): Likewise.
13081 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13083         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
13084         if N is one bigger than return value.
13085         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
13086         and l1 last arguments, if buf is defined, verify the return value
13087         equals to strlen (buf) and verify no byte beyond passed length
13088         is modified.
13090 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
13092         * po/sv.po: Update from translation team.
13094 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13096         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
13097         noinline attribute.
13099 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
13101         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
13102         noinline attribute.
13104         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
13105         Use __new_sys_siglist instead of _sys_siglist_internal as
13106         second macro argument.
13107         (_old_sys_siglist): Use declare_symbol_alias macro instead of
13108         strong_alias.
13110 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
13112         [BZ #3493]
13113         * posix/unistd.h (sysconf): Remove const attribute.
13115         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
13116         temporary or deprecated addresses.
13117         Patch by Sridhar Samudrala <sri@us.ibm.com>.
13119         * string/Makefile (tests): Add tst-strxfrm2.
13120         * string/tst-strxfrm2.c: New file.
13122 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
13124         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
13125         rather than r->r_brk.
13127 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
13129         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
13130         optimization even if needed > n.
13132         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
13133         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
13134         return false, otherwise return true.
13135         (cache_rpath): Return decompose_rpath return value.
13137 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
13139         * include/libc-symbols.h (declare_symbol): Rename to...
13140         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
13141         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
13142         .size directive.
13143         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
13144         changes.
13145         * sysdeps/gnu/siglist.c: Likewise.
13147 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
13149         * sysdeps/powerpc/fpu/bits/mathinline.h
13150         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
13151         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
13153 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
13155         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13156         Update handling of cache descriptor 0x49 for new models.
13157         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
13158         Likewise.
13160 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
13162         * malloc/memusage.c (dest): Reset not_me back to false after
13163         printing statistics.
13165 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
13167         * configure.in: Work around ld --help change and avoid -z relro
13168         test completely if the architecture doesn't care about security.
13170 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
13172         * po/sv.po: Update from translation team.
13174 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
13176         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13177         generate compatibility version.
13179 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
13181         * configure.in: Relax -z relro requirement a bit.
13183         * po/sv.po: Update from translation team.
13185 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13187         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13188         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13189         * elf/dl-close.c (_dl_close_worker): Likewise.
13190         * elf/dl-open.c (_dl_open_worker): Likewise.
13191         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13193 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13195         * configure.in: Require assembler support for visibility, compiler
13196         support for visibility and aliases, linker support for various -z
13197         options.
13198         * Makeconfig: Remove conditional code which now is unnecessary.
13199         * config.h.in: Likewise.
13200         * config.make.in: Likewise.
13201         * dlfcn/Makefile: Likewise.
13202         * elf/Makefile: Likewise.
13203         * elf/dl-load.c: Likewise.
13204         * elf/rtld.c: Likewise.
13205         * include/libc-symbols.h: Likewise.
13206         * include/stdio.h: Likewise.
13207         * io/Makefile: Likewise.
13208         * io/fstat.c: Likewise.
13209         * io/fstat64.c: Likewise.
13210         * io/fstatat.c: Likewise.
13211         * io/fstatat64.c: Likewise.
13212         * io/lstat.c: Likewise.
13213         * io/lstat64.c: Likewise.
13214         * io/mknod.c: Likewise.
13215         * io/mknodat.c: Likewise.
13216         * io/stat.c: Likewise.
13217         * io/stat64.c: Likewise.
13218         * libio/stdio.c: Likewise.
13219         * nscd/Makefile: Likewise.
13220         * stdlib/Makefile: Likewise.
13221         * stdlib/atexit.c: Likewise.
13222         * sysdeps/generic/ldsodefs.h: Likewise.
13223         * sysdeps/i386/dl-machine.h: Likewise.
13224         * sysdeps/i386/sysdep.h: Likewise.
13225         * sysdeps/i386/i686/memcmp.S: Likewise.
13226         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13227         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13228         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13230         * Makerules: USE_TLS support is now default.
13231         * tls.make.c: Likewise.
13232         * csu/Versions: Likewise.
13233         * csu/libc-start.c: Likewise.
13234         * csu/libc-tls.c: Likewise.
13235         * csu/version.c: Likewise.
13236         * dlfcn/dlinfo.c: Likewise.
13237         * elf/dl-addr.c: Likewise.
13238         * elf/dl-cache.c: Likewise.
13239         * elf/dl-close.c: Likewise.
13240         * elf/dl-iteratephdr.c: Likewise.
13241         * elf/dl-load.c: Likewise.
13242         * elf/dl-lookup.c: Likewise.
13243         * elf/dl-object.c: Likewise.
13244         * elf/dl-open.c: Likewise.
13245         * elf/dl-reloc.c: Likewise.
13246         * elf/dl-support.c: Likewise.
13247         * elf/dl-sym.c: Likewise.
13248         * elf/dl-sysdep.c: Likewise.
13249         * elf/dl-tls.c: Likewise.
13250         * elf/ldconfig.c: Likewise.
13251         * elf/rtld.c: Likewise.
13252         * elf/tst-tls-dlinfo.c: Likewise.
13253         * elf/tst-tls1.c: Likewise.
13254         * elf/tst-tls10.h: Likewise.
13255         * elf/tst-tls14.c: Likewise.
13256         * elf/tst-tls2.c: Likewise.
13257         * elf/tst-tls3.c: Likewise.
13258         * elf/tst-tls4.c: Likewise.
13259         * elf/tst-tls5.c: Likewise.
13260         * elf/tst-tls6.c: Likewise.
13261         * elf/tst-tls7.c: Likewise.
13262         * elf/tst-tls8.c: Likewise.
13263         * elf/tst-tls9.c: Likewise.
13264         * elf/tst-tlsmod1.c: Likewise.
13265         * elf/tst-tlsmod13.c: Likewise.
13266         * elf/tst-tlsmod13a.c: Likewise.
13267         * elf/tst-tlsmod14a.c: Likewise.
13268         * elf/tst-tlsmod2.c: Likewise.
13269         * elf/tst-tlsmod3.c: Likewise.
13270         * elf/tst-tlsmod4.c: Likewise.
13271         * elf/tst-tlsmod5.c: Likewise.
13272         * elf/tst-tlsmod6.c: Likewise.
13273         * include/errno.h: Likewise.
13274         * include/link.h: Likewise.
13275         * include/tls.h: Likewise.
13276         * locale/global-locale.c: Likewise.
13277         * locale/localeinfo.h: Likewise.
13278         * malloc/arena.c: Likewise.
13279         * malloc/hooks.c: Likewise.
13280         * malloc/malloc.c: Likewise.
13281         * resolv/Versions: Likewise.
13282         * sysdeps/alpha/dl-machine.h: Likewise.
13283         * sysdeps/alpha/libc-tls.c: Likewise.
13284         * sysdeps/generic/ldsodefs.h: Likewise.
13285         * sysdeps/generic/tls.h: Likewise.
13286         * sysdeps/i386/dl-machine.h: Likewise.
13287         * sysdeps/ia64/dl-machine.h: Likewise.
13288         * sysdeps/ia64/libc-tls.c: Likewise.
13289         * sysdeps/mach/hurd/fork.c: Likewise.
13290         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13291         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13292         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13293         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13294         * sysdeps/s390/libc-tls.c: Likewise.
13295         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13296         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13297         * sysdeps/sh/dl-machine.h: Likewise.
13298         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13299         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13300         * sysdeps/x86_64/dl-machine.h: Likewise.
13302         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13303         split out locking and parameter checking.
13304         (_dl_close): Call _dl_close_worker after locking and checking.
13305         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13306         _dl_close.
13307         * elf/Makefile: Add rules to build and run tst-thrlock.
13308         * elf/tst-thrlock.c:  New file.
13310         [BZ #3426]
13311         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13312         reality.
13314         [BZ #3429]
13315         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13316         we are sure we do not need it anymore for _dl_close.  Also move
13317         the asserts inside the lock region.
13318         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13320 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13322         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13323         argument.
13324         (_dl_lookup_symbol_x): Adjust caller.
13326         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13327         _ns_global_scope.
13328         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13330         * elf/dl-libc.c: Revert l_scope name changes.
13331         * elf/dl-load.c: Likewise.
13332         * elf/dl-object.c: Likewise.
13333         * elf/rtld.c: Likewise.
13334         * elf/dl-close.c (_dl_close): Likewise.
13335         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13336         always use __rtld_mrlock_{change,done}.  Always free old scope list
13337         here if not l_scope_mem.
13338         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13339         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13340         the lookup and __rtld_mrlock_unlock it after the lookup.
13341         * elf/dl-sym.c: Likewise.
13342         * include/link.h (struct r_scoperec): Remove.
13343         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13344         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13346 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13348         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13350 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13352         * configure.in: Disable building profile libraries by default.
13354 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13356         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13357         as signed longs, check for x_base + pos overflow.
13358         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13359         * sunrpc/tst-xdrmem2.c: New test.
13361 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13363         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13364         _dl_lookup_symbol_x code.
13366 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13368         * elf/dl-runtime.c: Include sysdep-cancel.h.
13369         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13370         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13371         instead of catomic_* macros.
13372         * elf/dl-sym.c: Include sysdep-cancel.h.
13373         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13374         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13375         * elf/dl-close.c: Include sysdep-cancel.h.
13376         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13377         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13378         * elf/dl-open.c: Include sysdep-cancel.h.
13379         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13380         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13382 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13384         [BZ #3313]
13385         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13386         fastbin rather than end of fastbin array.
13388 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13390         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13391         body macro.
13392         * sysdeps/x86_64/bits/atomic.h
13393         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13394         (catomic_decrement): Use correct body macro.
13396 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13398         * include/atomic.h: Add a unique prefix to all local variables
13399         in macros.
13400         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13402 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13404         [BZ #3369]
13405         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13406         and 7.
13408 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13410         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13412 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13414         [BZ #3313]
13415         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13416         determine highest fast bin to consolidate, always look into all of
13417         them.
13418         (do_check_malloc_state): Only require for empty bins for large
13419         sizes in main arena.
13421         * libio/stdio.h: Add more __wur attributes.
13423         * elf/dl-minimal.c (realloc): Optimize last patch.
13425 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13427         [BZ #3352]
13428         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13429         and use memcpy() if it does.
13431 2006-11-12  Andreas Jaeger  <aj@suse.de>
13433         [BZ #2510]
13434         * manual/search.texi (Hash Search Function): Clarify.
13435         (Array Search Function): Clarify.
13437 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13439         [BZ #2830]
13440         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13441         shifting.
13442         * math/atest-exp2.c (read_mpn_hex): Likewise.
13443         * math/atest-sincos.c (main): Likewise.
13445 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13447         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13448         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13449         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13450         version GLIBC_2.6.
13451         * Versions.def: Add GLIBC_2.6 for libc.
13453         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13455         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13457 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13459         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13461         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13463         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13464         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13466 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13468         * include/atomic.c: Define catomic_* operations.
13469         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13470         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13471         * malloc/memusage.c: Likewise.
13472         * gmon/mcount.c: Likewise.
13473         * elf/dl-close.c: Likewise.
13474         * elf/dl-open.c: Likewise.
13475         * elf/dl-profile.c: Likewise.
13476         * elf/dl-sym.c: Likewise.
13477         * elf/dl-runtime.c: Likewise.
13478         * elf/dl-fptr.c: Likewise.
13479         * resolv/res_libc.c: Likewise.
13481 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13483         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13484         components which lack them.
13486         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13487         at least one entry consisting of the parameter concatenated with
13488         the domain.
13490 2006-10-10  Roland McGrath  <roland@frob.com>
13492         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13493         * sysdeps/mach/hurd/futimes.c: Likewise.
13494         * sysdeps/mach/hurd/lutimes.c: Likewise.
13496 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13497             Jakub Jelinek  <jakub@redhat.com>
13499         Implement reference counting of scope records.
13500         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13501         from the list in objects which remain.  Always allocate new scope
13502         record.
13503         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13504         don't resize, allocate a new one.
13505         * elf/dl-runtime.c: Update reference counters before using a scope
13506         array.
13507         * elf/dl-sym.c: Likewise.
13508         * elf/dl-libc.c: Adjust for l_scope name change.
13509         * elf/dl-load.c: Likewise.
13510         * elf/dl-object.c: Likewise.
13511         * elf/rtld.c: Likewise.
13512         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13513         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13514         Add l_scoperec_lock.
13515         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13516         * sysdeps/generic/rtld-lowlevel.h: New file.
13518         * include/atomic.h: Rename atomic_and to atomic_and_val and
13519         atomic_or to atomic_or_val.  Define new macros atomic_and and
13520         atomic_or which do not return values.
13521         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13522         Various cleanups.
13523         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13525         * po/sv.po: Update from translation team.
13527 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13529         * Versions.def: Add GLIBC_2.6 to libpthread.
13531         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13532         (versioned_symbol): Likewise.
13533         (compat_symbol): Likewise.
13535         * po/tr.po: Update from translation team.
13537 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13539         * nis/Banner: Removed.  It's been integral part forever and the
13540         author info is incomplete anyway.
13541         * libio/Banner: Likewise.
13543         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13544         code, make sure the nis_freeresult call doesn't crash and that the
13545         result is reported correctly.
13547 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13549         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13550         when callback is NULL.
13552         * nis/Versions (libnss_nisplus): Add
13553         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13554         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13555         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13556         _nss_create_tablename): Rename to...
13557         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13558         ... these.  No longer static.
13559         (internal_setgrent): Adjust users.
13560         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13561         Don't use locking around _nss_grp_create_tablename call.
13562         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13564 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13566         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13568 2006-10-06  Andreas Jaeger  <aj@suse.de>
13570         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13572 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13574         * po/pl.po: Update from translation team.
13576         * nscd/nscd.c (main): Fix typo in message.
13577         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13579 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13581         [BZ #3291]
13582         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13583         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13584         (__sigprocmask): Define.
13586 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13588         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13589         used.
13591 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13593         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13594         in oldtotal and newtotal calculation.
13595         * nscd/nscd-client.h (struct mapped_database): Add datasize
13596         field.
13597         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13598         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13599         increased.
13600         (__nscd_cache_search): Add checks to make sure we never reference
13601         data beyond the current mapping.
13603 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13605         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13606         variables const to avoid compiler warnings.
13608         * io/fts.c (fts_close): Remove redundant checks.
13609         (fts_build): Likewise.
13610         (fts_palloc): Likewise.
13612         * manual/message.texi (Advanced gettext functions,
13613         Using gettextized software): Fix typos.
13615 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13617         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13618         explain why there are no leaks.
13620 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13622         * libio/wmemstream.c: Include <wchar.h>.
13623         * libio/bug-wmemstream1.c: Likewise.
13624         * libio/tst-wmemstream1.c: Likewise.
13625         * libio/tst-wmemstream2.c: Likewise.
13627         * version.h (RELEASE): Bump to 2.5.
13628         * README: Regenerated.
13630         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13632         [BZ #3273]
13633         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13634         found no group members.
13635         Patch by Petr Baudis.
13637 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13639         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13640         assert bootstrap_map.l_tls_modid is zero.
13641         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13642         if USE___THREAD.
13644 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13646         * libio/stdio.h: Move open_wmemstream prototype to ...
13647         * wcsmbs/wchar.h: ... here.
13649 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13651         [BZ #3252]
13652         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13653         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13654         __{,l}chown to handle the rest.
13655         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13656         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13657         __{,l}chown to handle the rest.
13658         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13659         i386/fchownat.c.
13660         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13661         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13663         [BZ #3253]
13664         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13665         time, rather allocate increasingly bigger arrays of pointers, if
13666         possible with alloca, if too large with malloc.
13668 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13670         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13672         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13674 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13676         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13677         home addresses.
13678         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13679         IFA_F_HOMEADDRESS flag for interfaces.
13680         * include/ifaddrs.h (struct in6addrinfo): Define
13681         in6ai_homeaddress.
13683 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13685         [BZ #3225]
13686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13687         PTR_DEMANGLE3): Define.
13688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13689         PTR_DEMANGLE3): Likewise.
13690         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13691         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13692         Likewise.
13693         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13695 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13697         * po/libc.pot: Regenerated.
13698         * po/be.po: Updated.
13699         * po/ca.po: Likewise.
13700         * po/cs.po: Likewise.
13701         * po/da.po: Likewise.
13702         * po/de.po: Likewise.
13703         * po/el.po: Likewise.
13704         * po/en_GB.po: Likewise.
13705         * po/es.po: Likewise.
13706         * po/fi.po: Likewise.
13707         * po/fr.po: Likewise.
13708         * po/gl.po: Likewise.
13709         * po/hr.po: Likewise.
13710         * po/hu.po: Likewise.
13711         * po/ja.po: Likewise.
13712         * po/ko.po: Likewise.
13713         * po/nb.po: Likewise.
13714         * po/nl.po: Likewise.
13715         * po/pl.po: Likewise.
13716         * po/pt_BR.po: Likewise.
13717         * po/ru.po: Likewise.
13718         * po/rw.po: Likewise.
13719         * po/sk.po: Likewise.
13720         * po/sv.po: Likewise.
13721         * po/tr.po: Likewise.
13722         * po/zh_CN.po: Likewise.
13723         * po/zh_TW.po: Likewise.
13725         [BZ #3137]
13726         * iconv/iconv_prog.c (main): Fix spelling in error message.
13727         * iconv/iconvconfig.c (main): Likewise.
13728         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13729         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13730         * locale/programs/localedef.c (main): Likewise.
13731         * locale/programs/repertoire.c (repertoire_read): Likewise.
13732         * timezone/zdump.c (main): Likewise.
13733         * nscd/connections.c (handle_request): Fix spelling in log message.
13734         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13736 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13738         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13739         interfaces.
13741 2006-09-20  Andreas Jaeger  <aj@suse.de>
13743         * math/libm-test.inc (lrint_test_upward): Fix typo.
13745 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13747         [BZ #2592]
13748         * math/libm-test.inc (lrint_test_tonearest): New function.
13749         (lrint_test_towardzero): New function.
13750         (lrint_test_downward): New function.
13751         (lrint_test_upward): New function.
13752         (main): Run these new tests.
13753         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13754         of values near to 0.
13755         (two52): Use double not long double.
13756         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13757         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13758         (two23): Use float not double.
13759         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13760         (two23): Use float not double.
13761         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13762         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13763         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13764         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13766 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13768         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13769         Cast sp to unsigned long to avoid compiler warning.
13770         Use __makecontext_ret function instead of a trampoline on the stack.
13771         (__makecontext_ret): New function.
13772         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13774 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13776         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13777         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13778         bits.
13780 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13782         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13783         sure no reference to the unloaded map's search list remains in the
13784         dependency's scope.
13786 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13788         * elf/Makefile: Add rules to build and run unload7 test.
13789         * elf/unload7.c: New test.
13790         * elf/unload7mod1.c: New file.
13791         * elf/unload7mod2.c: New file.
13793 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13795         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13796         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13797         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13798         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13799         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13800         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13801         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13802         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13803         PTRACE_GETEVENTMSG): Likewise.
13804         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13805         values.
13807 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13809         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13810         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13811         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13812         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13814 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13816         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13817         write '\0' to the fd.
13818         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13819         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13820         Change regs to unsigned long pointer from unsigned int, fix fscr
13821         offset.
13823 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13825         * io/Makefile (CFLAGS-fstatat.c): Set.
13826         (CFLAGS-fstatat64.c): Likewise.
13827         (CFLAGS-mknodat.c): Likewise.
13829         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13830         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13831         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13832         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13834 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13835             Steven Munroe  <sjmunroe@us.ibm.com>
13837         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13838         names to the beginning.  Rename "cell" to "cellbe".
13839         (_dl_powerpc_platforms): New.
13840         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13841         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13842         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13843         (_DL_HWCAP_PLATFORM): Define to new mask.
13844         (_dl_platform_string, _dl_string_platform): New functions.
13845         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13846         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13848 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13850         [BZ #2526]
13851         * README.libm: Fix a thinko in sqrt algorithm description.
13853         [BZ #3143]
13854         * manual/string.texi (argz_delete): Fix prototype.
13855         Patch by <alpt@freaknet.org>.
13857 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13859         [BZ #3138]
13860         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13861         * io/tst-fcntl.c (do_prepare): Likewise.
13862         * posix/tst-exec.c (do_prepare): Likewise.
13863         * posix/tst-preadwrite.c (do_prepare): Likewise.
13864         * posix/tst-spawn.c (do_prepare): Likewise.
13865         * posix/tst-truncate.c (do_prepare): Likewise.
13866         * rt/tst-aio.c (do_prepare): Likewise.
13867         * rt/tst-aio64.c (do_prepare): Likewise.
13868         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13869         size_t.
13871 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13873         [BZ #2821]
13874         * time/mktime.c (guess_time_tm): Fix overflow detection.
13875         * time/Makefile (tests): Add bug-mktime1.
13876         * time/bug-mktime1.c: New file.
13878         [BZ #3189, #3188]
13879         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13880         (mremap): Likewise.
13882 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13884         [BZ #1006]
13885         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13886         Ensure relocation doesn't clobber any bits outside of the
13887         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13888         R_SPARC_HI22 and R_SPARC_H44.
13890         [BZ #2775]
13891         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13892         (long) (MINSIZE + nb - old_size) is positive.
13894         * malloc/arena.c (grow_heap): When growing bail even if new_size
13895         is negative.
13897         [BZ #3155]
13898         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13899         stack below r1.
13901 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13903         * posix/regex_internal.c (re_string_reconstruct): Handle
13904         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13905         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13906         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13907         re_string_context_at.
13908         * posix/Makefile: Add rules to build and run bug-regex26 test.
13909         * posix/bug-regex26.c: New test.
13911         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13912         rather than col_sym_free.  Move seqp declaration earlier.
13914         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13916 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13918         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13919         decl before first goto out.
13921 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13923         * Makerules (shlib.lds): If have-hash-style, put .hash section
13924         at the end of the RO segment.
13926 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13928         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13929         style hash table format is used.
13931 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13933         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13934         randomization rather than before.
13935         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13937 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13939         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13941         * malloc/malloc.c (_int_malloc): Use full list insert and not
13942         shortcut which assumes the list is empty for large requests
13943         too.
13945         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13947 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13949         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13950         and offout arguments to the prototype.
13951         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13952         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13953         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13954         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13955         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13956         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13957         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13958         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13960 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13962         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13964         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13965         dlopen parameters.
13967 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13969         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13970         only if herrno is NETDB_INTERNAL.  Handle errors other than
13971         ERANGE outside of the loops, handle TRY_AGAIN.
13973         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13974         if other's ctype category was missing.
13975         * locale/programs/ld-collate.c (collate_read): Return if
13976         copy_locale's collate category is missing.
13978 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13980         [BZ #2684]
13981         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13982         arenas if allocation failed.
13983         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13985 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13987         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13988         waste bins[0..1].
13989         (malloc_state): Reduce bins size by 2.
13990         (_int_malloc): Fix test for large enough buffer for early termination.
13991         When no unsorted block matches perfectly and an exiting block has
13992         to be split, use full list insert and not shortcut which assumes
13993         the list is empty.
13995         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13996         failure.
13998 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14000         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
14001         do anything.
14003         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
14004         symbol require exact match (these are PLTs).
14005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
14006         (_dl_ppc64_addr_sym_match): Likewise.
14008         [BZ #2683]
14009         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
14010         If symbol has a value use it.
14011         * elf/tst-dladdr1.c: New file.
14012         * elf/Makefile: Add rules to build and run tst-addr1.
14014 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
14016         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
14017         keeps failing and heap growth or new heap creation isn't
14018         successful either.
14019         * malloc/tst-malloc.c (main): Add new tests.
14021 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
14023         [BZ #2734]
14024         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
14025         as in the x86-64 code to use bswap.
14027 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
14029         [BZ #2680]
14030         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
14031         __USE_UNIX98.
14032         * posix/bits/unistd.h: Likewise.
14034 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
14036         [BZ #2751]
14037         * string/strchr.c: Add cast to avoid warning.
14039 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14041         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
14042         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
14043         limit is needed to avoid the exploding of the address space
14044         requirement for secondary heaps.
14045         * malloc/arena.c (HEAP_MAX_SIZE): Define using
14046         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
14048 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
14050         [BZ #3018]
14051         * Makerules (depfiles): Handle extra-test-objs the same as
14052         extra-objs.
14053         (common-mostlyclean): Likewise.
14054         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
14055         instead.
14056         * elf/Makefile (extra-objs): Likewise.
14057         * stdlib/Makefile (extra-objs): Likewise.
14059 2006-08-14  Eric Blake  <ebb9@byu.net>
14061         [BZ #3044]
14062         * misc/error.h: Assume C89 or better.
14063         * misc/error.c: Likewise.
14065 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
14067         [BZ #3040]
14068         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
14069         __ASSUME_ATFCTS is defined.
14071 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
14073         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
14074         to sort in each call.
14076         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
14077         is empty simply return and use next service.
14078         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
14080         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
14081         tells us when not finding a charmap file is an error.
14082         * locale/programs/charmap.h: Adjust charmap_read prototype.
14083         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
14084         cannot find a charmap.
14085         * locale/programs/localedef.c (main): Adjust charmap_read call.
14087 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
14089         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
14090         sysdeps/posix/pause.c implementation instead.
14092 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
14094         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
14095         to EPERM.
14097 2006-08-13  Andreas Schwab  <schwab@suse.de>
14099         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
14100         Don't clobber caller's LRSAVE.
14101         (_dl_prof_resolve): Likewise.
14103 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
14105         [BZ #1996]
14106         * libio/memstream.c (open_memstream): Allocate initial buffer with
14107         calloc.
14108         * libio/wmemstream.c (open_wmemstream): Likewise.
14109         * libio/strops.c: Pretty printing.
14110         (_IO_str_overflow): Clear uninitialized part of the new buffer.
14111         (enlarge_userbuf): New function.
14112         (_IO_str_seekoff): Call it if seek position is larger than current
14113         buffer.
14114         * libio/wstrops.c: Likewise.
14115         * libio/vasprintf.c: Add comment as to why we do not have to use
14116         calloc instead of malloc to allocate initial buffer.
14117         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
14118         * libio/bug-memstream1.c: New file.
14119         * libio/bug-wmemstream1.c: New file.
14121 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14123         * libio/wstrops.c: Remove dead macro definitions and comments.
14124         * libio/strops.c: Likewise.
14126         [BZ #2764]
14127         * login/utmpname.c (__utmpname): Remove unnecessary test.
14129 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
14131         [BZ #2832]
14132         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
14133         0s from integers.
14135 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
14137         [BZ #2987]
14138         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
14139         for CPU clocks.
14140         * sysdeps/unix/clock_settime.c: Add support for platform-specific
14141         setting of CPU clocks.
14143 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14145         [BZ #2841]
14146         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
14147         since C99 requires the result to promote to 'int' when uint_least8_t
14148         and uint_least16_t promote to 'int'.
14150 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
14152         [BZ #3013]
14153         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
14154         lenght of one output field, correct bitmask creation.
14155         * locale/programs/ld-time.c: Add alignment.
14157         [BZ #2997]
14158         * misc/error.c: Add space between program name and message if file
14159         name is missing.
14161 2006-08-03  Eric Blake  <ebb9@byu.net>
14163         [BZ #2998]
14164         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14166 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
14168         * malloc/memusagestat.c: Silence warnings.
14170         * malloc/malloc.c: Dynamically size mmap treshold if the program
14171         frees mmaped blocks.
14172         Patch by Valerie Henson and Arjan van de Ven.
14174 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
14176         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14177         __USE_GNU.
14179         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14180         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14181         (DEF): Don't put the var into .gnu.linkonce.r.* section.
14182         Only provide var definitions in strtol_l (or for *ull*
14183         in strtoll_l).
14185         * stdio-common/bug16.c (tests): New array.
14186         (do_tests): Allow the first hexadecimal digit
14187         to be 1, 2, 4 or 8.  Do 3 additional tests.
14189         * sysdeps/s390/fpu/libm-test-ulps: Update.
14191         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14192         fchownat syscall if available.
14193         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14194         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14195         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14197 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14199         * nis/nis_xdr.c: Avoid some function calls.
14201 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14202             Ulrich Drepper  <drepper@redhat.com>
14204         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14205         short cut if only one name component is stripped away.
14207 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14209         * nis/nis_call.c: Minor cleanups throughout.
14210         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14211         (first_shoot): Add search_parent_first parameter.  Only if it is set
14212         search parent server first.
14213         If directory for table found through cold start cache is not the same
14214         as referenced in the cache, don't use it.
14215         (__nisfind_server): Take additional parameter.  Pass it on to
14216         first_shoot.
14217         (__prepare_niscall): Adjust __nisfind_server call.
14218         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14219         * nis/nis_table.c: Adjust __nisfind_server call.
14220         * nis/nis_lookup.c: Likewise.
14221         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14223 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14225         [BZ #2182]
14226         * math/s_cacosh.c: Return values from positive branch.
14227         * math/s_cacoshf.c: Likewise.
14228         * math/s_cacoshl.c: Likewise.
14230         [BZ #2883]
14231         * sysvipc/sys/msg.h: Change return value to ssize_t.
14232         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14233         * sysvipc/msgrcv.c: Likewise.
14234         * include/sys/msg.h: Likewise.
14236         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14237         test introduced in patch for bz #661.
14238         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14239         element for NEWGROUPS.
14241         [BZ #2908]
14242         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14243         'f', use '1' as leading digit not '\1'.
14244         * stdio-common/Makefile (tests): Add bug16.
14245         * stdio-common/bug16.c: New file.
14247         [BZ #2914]
14248         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14249         and don't try to open it.  The patch introducing the macro
14250         contained a bug and used the same file name as the new file
14251         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14252         this out completely.
14254         [BZ #2926]
14255         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14256         Patch by Jerry James <Jerry.James@usu.edu>.
14258         * rt/Makefile (tests): Add tst-clock2.
14259         * rt/tst-clock2.c: New file.
14261         [BZ #2978]
14262         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14263         function and its parameters and pass it to new thread.
14264         (__gai_notify): Add support for alternative waiting for completion.
14265         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14266         waiting for completion.
14267         * resolv/getaddrinfo_a.c: Likewise.
14268         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14269         waiting for completion is used.
14270         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14271         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14272         * resolv/gai_error.c: Likewise.
14273         * resolv/gai_sigqueue.c: Likewise.
14275 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14277         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14278         errno to EBADF and return MACH_PORT_NULL.
14280 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14282         [BZ #2980]
14283         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14285 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14287         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14288         walk them instead of the symbol table.
14290 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14292         [BZ #2098]
14293         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14294         status of NSS calls, not the number of returned entries.
14296         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14297         request_key, keyctl.
14299 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14301         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14303 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14305         * elf/tst-auditmod1.c: Fix typo in #error.
14307 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14309         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14311         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14313 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14315         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14316         that the directory is empty even on non-POSIX filesystems.
14318 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14320         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14322         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14323         the backend NSS module.  If backend setgrent call failed, don't have
14324         internal_setgrent fail.  Just remember this until it is needed.
14325         * nis/nss_compat/compat-pwd.c: Likewise.
14326         * nis/nss_compat/compat-spwd.c: Likewise.
14328 2006-07-30  Roland McGrath  <roland@redhat.com>
14330         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14331         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14332         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14333         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14335         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14336         (nanosleep_not_cancel): New macro.
14337         (sigsuspend_not_cancel): new macro.
14338         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14339         (do_sigsuspend): Define as inline.
14340         (__sigsuspend): Always use do_sigsuspend.
14341         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14342         * include/signal.h: Declare __sigsuspend_nocancel.
14343         * sysdeps/posix/pause.c
14344         [! NO_CANCELLATION] (__pause_nocancel): New function.
14346         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14347         * include/time.h (__nanosleep_nocancel): Likewise.
14349 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14351         * locale/programs/localedef.c (add_to_readlist): Rename local
14352         variables to avoid confusion.
14354         * locale/programs/charmap.c (charmap_read): Emit error message if
14355         charmap couldn't be found or read.
14357 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14359         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14360         __ASSUME_FUTEX_LOCK_PI.
14361         * include/time.h: Declare __nanosleep_nocancel.
14362         * include/unistd.h: Declare __pause_nocancel.
14364         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14365         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14366         get the __stack_chk_fail_local definition when it's needed.
14368 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14370         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14371         * dlfcn/bug-atexit3.c: New file.
14372         * dlfcn/bug-atexit3-lib.cc: New file.
14374         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14375         used when the namespace is not the base namespace.
14377 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14379         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14380         (__new_exitfn): Bump it in every successful call.
14381         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14382         more exit handlers, call them right away.
14383         * stdlib/exit.h: Declare __new_exitfn_called.
14385 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14387         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14388         calling registered handler.
14390         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14391         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14392         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14393         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14394         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14395         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14396         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14397         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14399 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14401         * elf/dl-lookup.c (dl_new_hash): New functions.
14402         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14403         value here.  Compute new-style hash value.  Pass new hash value
14404         and reference to variable with the old value to do_lookup_x.
14405         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14406         old-style hash table.
14407         (_dl_debug_bindings): Pass new hash value and reference to variable
14408         with the old value to do_lookup_x.
14409         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14410         new-style hash value and change old-style hash value parameter to
14411         be a reference.  Reoganize functions to determine whether
14412         new-style hash table is available.  Only fall back on old-style
14413         table.  If old-style hash value is needed, compute it here.
14414         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14415         entry.
14416         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14417         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14418         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14419         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14420         * Makeconfig: If linker supports --hash-style option add it to all
14421         linker command lines to build DSOs.
14422         * config.make.in: Define have-hash-style.
14423         * configure.in: Test whether linker supports --hash-style option.
14425         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14426         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14428 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14430         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14431         auditing.
14433         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14434         RPATH of main map twice.
14436 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14438         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14439         look further, return original strings.
14440         (_nl_find_msg): Do not return found translation if the conversion
14441         failed.  Either signal the string is unusable or that something went
14442         wrong and the original should be used.
14444 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14446         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14448 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14450         [BZ #2766]
14451         * misc/insremque.c (insque): Handle prev == NULL.
14452         * misc/Makefile (tests): Add tst-insremque.
14453         * misc/tst-insremque.c: New test.
14455 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14457         [BZ #2792]
14458         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14459         conflict with DL_DST_REQUIRED.
14461 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14463         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14464         match what Solaris does.
14466 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14468         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14469         local_setegid instead of seteuid and setegid.
14470         * sysdeps/generic/local-setxid.h: New file.
14471         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14473         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14475         * string/Makefile (tests): Add bug-envz1.
14476         * string/bug-envz1.c: New file.
14478 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14480         * posix/regex_internal.c (re_string_skip_chars): If no character has
14481         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14482         to the byte which couldn't be converted.
14483         (re_string_reconstruct): Don't clear valid_raw_len before calling
14484         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14485         tip_context using re_string_context_at.
14486         * posix/Makefile: Add rules to build and run bug-regex25 test.
14487         * posix/bug-regex25.c: New test.
14489 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14491         [BZ #2703]
14492         * string/envz.c (envz_strip): Correct erroneously reversed src
14493         and dest parameters to memmove() invocation.
14495 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14497         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14498         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14499         to make sure the database has been already invalidated.
14500         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14501         after the cache has been invalidated.  Use pthread_mutex_lock rather
14502         than pthread_mutex_trylock if fd != -1.
14503         * nscd/connections.c (invalidate_cache): Add fd argument, write
14504         response to fd if not calling prune_cache, pass fd to prune_cache.
14505         (handle_request): Adjust invalidate_cache caller.
14506         (nscd_run): Pass -1 as fd to prune_cache.
14508 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14510         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14511         the correct place.
14513 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14515         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14516         * nscd/cache.c (prune_cache): Take prunelock before starting the
14517         work.  Just return in case it is already taken.
14518         * nscd/connections.c (dbs): Initialize .prunelock.
14520 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14522         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14523         copying.  No need to allocate new array for group members.  Just
14524         move the pointers and update the size.
14526         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14527         Avoid memory leak in case realloc fails.  Simplification for
14528         better code generation.
14530         Avoid deprecation warning because of libc_hidden_proto for
14531         inet6_option_alloc.
14532         * inet/inet6_option.c (option_alloc): Renamed from
14533         inet6_option_alloc.  Made static.
14534         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14535         (inet6_option_append): Call option_alloc.
14536         * include/netinet/in.h: Remove libc_hidden_proto for
14537         inet6_option_alloc.
14539         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14540         for cleanup when cb!=NULL [Coverity CID 233].
14542 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14544         [BZ #2693]
14545         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14546         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14547         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14548         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14549         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14550         and inet6_rth_getaddr.
14551         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14552         array.
14553         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14554         Mark inet6_option_* interfaces as deprecated.
14555         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14556         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14557         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14558         inet6_rth_segments, and inet6_rth_getaddr.
14559         * inet/inet6_opt.c: New file.
14560         * inet/inet6_rth.c: New file.
14562         * inet/netinet/icmp6.h: Pretty printing.
14564         [BZ #2683]
14565         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14567 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14569         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14570         doing it all here.  When server does not know the answer do not
14571         fail immediate, try parent first.
14573         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14574         overflow test.
14576 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14578         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14579         from __do_niscall.
14580         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14581         and exported.
14582         (__follow_path): New function.  Split out from nis_list.
14583         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14584         _xdr_nis_result.
14585         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14586         _xdr_nis_result.
14587         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14588         and __follow_path.
14589         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14590         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14591         from libnsl for version GLIBC_PRIVATE.
14592         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14593         Remove entry parameter from _nss_nisplus_parse_pwent and
14594         _nss_nisplus_parse_grent.
14595         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14596         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14597         again.  Rewrite getpwent handling to not use nis_first_entry and
14598         nis_next_entry.  Roll out own niscall handling.
14599         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14601         * sunrpc/xdr_rec.c: Fix typo in comment.
14603 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14605         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14606         handling.
14608         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14609         to allocate memory for my_pollfd.  Better initialization of
14610         cb_is_running.  Use TEMP_FAILURE_RETRY.
14612         * malloc/memusage.sh (memusageso): Add quotes.
14613         (memusagestat): Likewise.
14614         * debug/xtrace.sh (pcprofileso): Likewise.
14615         (pcprofiledump): Likewise.
14616         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14617         replacement.
14618         * malloc/Makefile ($(objpfx)memusage): Likewise.
14620         * nis/nis_callback.c (__nis_create_callback): Calls to
14621         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14622         asprintf call fails.
14624         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14625         no uninitialized memory is passed to sendto.
14627 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14629         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14630         of snprintf+strdup.  Handle OOM.
14631         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14632         cb->serv together.  Remove now obsolete free calls.
14633         (__nis_destroy_callback): Remove now obsolete free call.
14635 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14637         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14638         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14639         and ULA respectively). Set precedence for IPv4 address to 10 as
14640         defined in RFC3484 for preferring IPv6.
14641         * posix/gai.conf: Update to match the new default tables.
14643 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14645         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14646         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14647         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14648         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14650         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14651         Removed.
14652         (init_nss_interface): Remove initialization of these variables.
14654 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14656         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14657         nis_free_directory forward to avoid duplication.
14659 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14661         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14662         rec_dirsearch returning NULL.
14663         (first_shoot): Handle __nis_finddirectory returning NULL.
14664         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14666         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14667         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14669 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14671         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14672         pid changed.
14674 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14676         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14678         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14679         * nscd/nscd_getgr_r.c: Likewise.
14681         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14683         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14684         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14686         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14688         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14690         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14692         * include/rpc/auth.h: Mark xdr_des_block_internal and
14693         xdr_opaque_auth_internal as hidden.
14695         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14696         hidden.
14698         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14700         * misc/getusershell.c (okshells): Don't use static initializers,
14701         do it dynamically.
14703         * stdlib/fmtmsg.c (keywords): Change type of len element to
14704         uint32_t to not waste space on 64bit machines.
14706         * locale/setlocale.c: Change _nl_category_names into a string.
14707         Add new _nl_category_name_idxs.  Change all users.
14708         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14709         Declare _nl_category_name_idxs.
14710         * locale/findlocale.c: Adjust for _nl_category_names change.
14711         * locale/loadlocale.c: Likewise.
14712         * locale/newlocale.c: Likewise.
14713         * intl/dcigettext.c: Likewise.
14715         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14716         (add_alias2): ...here.  New function.
14717         (__gconv_read_conf): Simplify builtin alias handling.
14718         (builtin_aliases): Convert to string to avoid relocations.
14719         * iconv/gconv_builtin.h: Add comment about correct formatting.
14721 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14723         * resolv/res_debug.c (loc_ntoa): Make error const.
14725 2006-05-14  Andreas Schwab  <schwab@suse.de>
14727         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14729 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14731         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14732         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14733         sizeof (cpu_set_t).
14735 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14737         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14739         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14741         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14742         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14744         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14745         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14747         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14748         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14749         xdr_cback_data.
14751         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14752         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14753         xdr_ypupdate_args.
14755         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14756         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14758         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14759         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14761         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14762         * include/rpcsvc/nis_callback.h: New file.
14764         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14765         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14767         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14768         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14770         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14771         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14773         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14774         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14776         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14777         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14778         xdr_ypdelete_args.
14780         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14781         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14783         * nis/nis_error.c: Remove table of strings.  Use position
14784         independent mechanism.
14785         * nis/nis_error.h: New file.
14787 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14789         * locale/programs/ld-time.c (time_finish): If wide era name or
14790         format aren't provided, set both wname and wformat to L"".
14792 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14794         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14795         results if the call was succesful.
14797         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14799         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14800         as hidden.
14802 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14804         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14806 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14808         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14809         caller makes sure this is not the case.
14810         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14812 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14814         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14815         calls.
14817         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14818         [Coverity CID 229, 230]
14820         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14821         DGETTEXT calls.
14822         (hol_help): Likewise.  [Coverity CID 226, 227]
14824         * string/argz-replace.c (__argz_replace): Unconditionally call
14825         free on SRC.  [Coverity CID 225]
14827         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14828         the return value of __nis_default_owner and __nis_default_group,
14829         it has been especially allocated.  [Coverity CID 224]
14831         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14832         searchgroup and searchowner.  Significantly simplified.
14833         (__nis_default_owner): Remove duplication.  Do not locally copy the
14834         string before duplicating it.
14835         (__nis_default_group): Likewise.
14837         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14838         we must clear the variable before calling __nisfind_server.
14840         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14841         nis_getnames.  [Coverity CID 223]
14843         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14844         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14846         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14847         allocate memory for the input to add_bytes.  [Coverity CID 221]
14849         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14850         was allocated here.  [Coverity CID 219, 220]
14852         * posix/getconf.c (print_all): Free confstr data after printing.
14853         [Coverity CID 218]
14855         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14856         list allocation fails.  [Coverity CID 215]
14858         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14859         [Coverity CID 213]
14861         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14862         string is NULL.  [Coverity CID 212]
14863         * argp/Makefile: Add rules to build and run bug-argp1.
14864         * argp/bug-argp1.c: New file.
14866         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14867         end of string.
14868         * stdlib/canonicalize.c (__realpath): Likewise.
14870         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14871         pointer.  [Coverity CID 206]
14873         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14874         in statically linked code.
14875         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14876         statically built code, be prepared to have no link map.
14877         [Coverity CID 205]
14879         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14880         dgettext calls. [Coverity CID 204]
14882         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14883         the one user.
14884         (uparam_names): Reduce size.  Avoid relative relocations.
14885         Moved to read-only segment.
14886         (fill_in_uparams): Update for new layout.
14888         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14889         assumed to always be != NULL. [Coverity CID 202]
14891         * argp/argp-help.c (hol_entry_help): Remove some dead code
14892         [Coverity CID 200].
14894         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14895         away a few more unconditional yperr2nss calls.
14896         (_nss_nis_getservbyname_r): Likewise.
14898 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14900         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14901         architectures.
14903         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14904         that unused memory passed to sendto is nevertheless initialized.
14906         [BZ #2499]
14907         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14908         possibly unaligned memory accesses.
14910         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14911         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14912         and __putlong respectively.  Correct buffer overflow check for
14913         NS_NOTIFY_OP.
14915         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14917         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14918         (send_dg): Rewrite error handling to be more compact and avoid
14919         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14921         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14923         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14924         instead of ns_get16.
14925         (res_queriesmatch): Likewise.  Minor optimization.
14927         [BZ #2499]
14928         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14929         __libc_res_nsend might reallocate the buffer for the answer.  In
14930         this case we have to reload the HP pointer.
14932 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14934         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14935         some branch prediction hints.
14937         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14938         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14939         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14940         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14941         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14942         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14943         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14944         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14946 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14948         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14949         by a GOT relocation to make Scrt1.o position independent.
14950         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14952         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14953         six system call parameters.
14954         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14956 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14958         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14959         malloc&bzero.
14961         * sunrpc/svc_udp.c (BZERO): Remove definition.
14962         (CALLOC): Define.
14963         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14965         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14966         (des_SPtrans): Use uint32_t type.
14967         (des_skb): Likewise.
14969         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14971 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14973         [BZ #2509]
14974         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14975         on 32-bit arches.
14977 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14979         * locale/programs/ld-address.c (address_finish): Fix one more
14980         place where the iso639 array might be accessed beyond the limits.
14982 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14984         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14985         filling it for the first time.
14987         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14988         Adjust all callers.
14989         Free res object content before returning.
14991         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14993         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14994         client->cl_auth.
14996         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14997         cleanup for initial thread, just the free call on TVP.
14999         * nscd/gai.c (__getline): Define.
15002 See ChangeLog.16 for earlier changes.